mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 10:23:46 +01:00
This commit is contained in:
parent
265ed681a9
commit
b118e2c9e9
@ -86,7 +86,7 @@ def runCommand(command):
|
|||||||
stdout, stderr = proc.communicate('through stdin to stdout')
|
stdout, stderr = proc.communicate('through stdin to stdout')
|
||||||
if proc.returncode > 0:
|
if proc.returncode > 0:
|
||||||
print "Error %s: %s\n command was: '%s'" % (proc.returncode,stderr.strip(),command)
|
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")
|
path=getenv("PATH")
|
||||||
print "Current Path: %s" % (path)
|
print "Current Path: %s" % (path)
|
||||||
exit(unknown)
|
exit(unknown)
|
||||||
|
Loading…
Reference in New Issue
Block a user