1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 10:23:46 +01:00
This commit is contained in:
Páll Guðjón Sigurðsson 2010-09-02 23:40:42 +00:00
parent 265ed681a9
commit b118e2c9e9

View File

@ -86,7 +86,7 @@ def runCommand(command):
stdout, stderr = proc.communicate('through stdin to stdout')
if proc.returncode > 0:
print "Error %s: %s\n command was: '%s'" % (proc.returncode,stderr.strip(),command)
if proc.returncode == 127: # File not found, lets print path
#if proc.returncode == 127: # File not found, lets print path
path=getenv("PATH")
print "Current Path: %s" % (path)
exit(unknown)