NSClient++ Help (#1) - CheckCounter not working (#658) - Message List

CheckCounter not working

I am trying to get nsclient to monitor a perfmon counter. I have exported the list of counters and have found the one of interest.

It is \ASP.NET Apps v2.0.50727(_LM_W3SVC_5_ROOT)\Request Execution Time.

I am running the following command from my nagios server. /usr/local/libexec/nagios/check_nrpe2 -H 192.168.0.101 -c CheckCounter -a "Counter:request=\\Objects\\ASP.NET Apps v2.0.50727(_LM_W3SVC_5_ROOT)
Request Execution Time" ShowAll MaxWarn=500 MaxCrit=1000 -t30

I am getting the following error. CRIT: Counter not found:
Objects
ASP.NET Apps v2.0.50727(_LM_W3SVC_5_ROOT)
Request Execution Time: Unable to connect to the specified computer or the computer is offline. (800007D0)

Any help is appreciated.

  • Message #1959

    I have no problem with counters like this. But I use a slightly different syntax:

    # check_nrpe -H joe -c CheckCounter -a "\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_Webshopservice)\Request Execution Time" MaxWarn=500 MaxCrit=1000

    OK all counters within bounds.|'\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_Webshopservice)\Request Execution Time'=12;500;1000;

    I don't know what your parameter "-t30" should do. And what's the difference of your check_nrpe2 and the "original" check_nrpe?

    #check_nrpe -h

    NRPE Plugin for Nagios Copyright (c) 1999-2007 Ethan Galstad (nagios@…) Version: 2.8.1

    Regards, Chris

  • Message #1962


    Objects is I think wrong...

    Michael Medin

Subscriptions