NSClient++ Help (#1) - external NRPE Scripts (#148) - Message List
I have an External check_ping.bat script working, but it returns OK: "Whatever i have here"
Is there away to have it ping return status on Warning and Critical as the unix check_ping does, via a bat file and give the result?
Or am i doing something wrong?
check the critical.bat file in the scripts subfoilder:
@echo CRITICAL: Everything is not going to be ok! @exit 2
the exit is the key if you check nagios/nrpe exit codes they are IIRC:
- 0 = OK
- 1 = WARNING
- 2 = CRITICAL
- 4 = UNKNOWN
MickeManonymous05/13/08 07:12:10 (5 years ago)