NSClient++ Help (#1) - Can’t get the checkservicestate to work (#21) - Message List

Can’t get the checkservicestate to work

Hi everyone,

We are using CheckMem, CheckCounter, CheckProcState without any problems, however checkservicestate is causing us some problems - Please help us :-)

Can someone please tell me what I’m doing wrong here:

The command: ./check_nrpe -H 192.168.1.2 -c checkservicestate -a service=Alerter

Returns: Service: service caused: Could not open Service

Environment information: NSClient=I (0.2.7 2007-03-06) seem to be doing fine... Windows server 2003, with SP2, Windows XP with SP2.

PS: This project kicks a.., keep up the good work.

  • Message #31

    I am by no means an expert with this stuff, but it looks like you're using the NRPE module here. In doing that, you're referring to a check named "service" so you'd want to have that defined in your NRPE check commands in the NSC.INI file.

    What you probaly want is to use the CheckServiceState module which is part of the NSClient module. My understanding is that to invoke the nsclient stuff you want to use "check_nt" (part of Nagios Plugins) on the server side and use the "-v SERVICESTATE" argument. So you'd say something like

    check_nt -H <host> -v SERVICESTATE -l Alerter

  • Message #32

    ./check_nrpe -H 192.168.1.2 -c checkservicestate -a service=Alerter

    Here, "service" should be replaced with the name of the service.

    Example for the service Telnet (name : TlntSvr?) : ./check_nrpe -H 192.168.1.2 -c checkservicestate -a TlntSvr?=Alerter

Subscriptions