NSClient++ Help (#1) - external NRPE Scripts (#148) - Message List

external NRPE Scripts

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?

gumbie@…

  • Message #401

    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

    MickeM

Subscriptions