I am setting up a few WMI counter monitors but while trying to monitor non paged pool usage I am gettting the following in Nagios: "No unit counter specified." Under the service definition in the reconfigure area this is what is listed as the command being run:
check_xi_service_nsclient!xxxxxx!COUNTER!-l "\\Memory\\Pool Nonpaged Bytes","Nonpaged Pool Bytes" -w 150000000 -c 170000000
The monitor shows ok in Nagios but if I check the details it states "No unit counter specified."
I am using Nagios XI 2009R1.4B on CentOS 5 x64.
Thanks
WMI Check returns "No unit counter specified"
-
800Response
- Posts: 5
- Joined: Mon May 09, 2011 8:37 am
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: WMI Check returns "No unit counter specified"
I think it might be a bug in the plugin / the plugin's documentation. For instance, note this:
Code: Select all
[root@demo nagios]# libexec/check_nt -H 192.168.5.9 -s "welcome2" -p 12489 -v COUNTER -l "\\Memory\\Pool Nonpaged Bytes","Paging file usage is %.f" -w 150000000 -c 170000000
Paging file usage is 24256500 | 'Paging file usage is %.f'=24256500.000000%;150000000.000000;170000000.000000;
-
800Response
- Posts: 5
- Joined: Mon May 09, 2011 8:37 am
Re: WMI Check returns "No unit counter specified"
Do you have any ideas on what I would need to change the command to in XI? Would I replace the check_xi_service_nsclient with a check_nt command?
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: WMI Check returns "No unit counter specified"
check_xi_service_nsclient already is check_nt. You just need to add a %.f in there, and know that the performance data label might look weird. So,
Code: Select all
check_xi_service_nsclient!xxxxxx!COUNTER!-l "\\Memory\\Pool Nonpaged Bytes","Nonpaged Pool Bytes: %.f" -w 150000000 -c 170000000
-
800Response
- Posts: 5
- Joined: Mon May 09, 2011 8:37 am
Re: WMI Check returns "No unit counter specified"
That did it. Thanks for the help!