mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-12-22 17:13:52 +01:00
This commit is contained in:
parent
de41b69a18
commit
51a0c2ed7e
@ -88,6 +88,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)
|
||||
debug("results: %s" % (stdout.strip() )
|
||||
if proc.returncode == 127: # File not found, lets print path
|
||||
path=getenv("PATH")
|
||||
print "Check if your path is correct %s" % (path)
|
||||
|
BIN
nsclient.zip
BIN
nsclient.zip
Binary file not shown.
@ -37,6 +37,7 @@ get_time=scripts/date.exe +%s
|
||||
get_netstat=netstat -an
|
||||
get_ifconfig=ipconfig /all
|
||||
get_systeminfo=cmd scripts/get_systeminfo.bat
|
||||
get_computername=cmd scripts/get_computername.bat
|
||||
|
||||
check_exchange_mailbox=cmd /c scripts\check_exchange\test.bat
|
||||
check_ad=cmd /c scripts\check_ad\check_ad.exe
|
||||
|
Loading…
Reference in New Issue
Block a user