NSClient++ Help (#1) - NSClient++ / event handling / batch files (#66) - Message List

NSClient++ / event handling / batch files

Hello,

I need to find a way to be able to have nsclient++ execute a batch file for a given circumstance. We are monitoring a service on a machine, and when that service stops, and the alert is sent out, I want nsc++ to be able to run a batch file that lives on the machine where the service has stopped. How do I go about doing this?

Thanks

  • Message #150

    simple way is have the nagios "call" a custom command (need NRPE) since they can be batch files you could do it that way.

    ie:

    [NRPE Handlers]
    ...
    run_my_script=c:\myscript.bat
    

    and on the nagios side have the "command" be:

    check_nrpe ... -c run_my_script
    

Subscriptions