NSClient++ Help (#1) - Can’t get the checkservicestate to work (#21) - Message List
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.
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 Alerteranonymous06/27/07 23:20:15 (6 years ago)
./check_nrpe -H 192.168.1.2 -c checkservicestate -a service=Alerter
Here, "service" should be replaced with the name of the service.anonymous07/05/07 16:08:37 (6 years ago)