Page 1 of 1
WMI Check returns "No unit counter specified"
Posted: Mon Jun 13, 2011 2:12 pm
by 800Response
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
Re: WMI Check returns "No unit counter specified"
Posted: Tue Jun 14, 2011 9:44 am
by tonyyarusso
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;
Re: WMI Check returns "No unit counter specified"
Posted: Tue Jun 14, 2011 1:39 pm
by 800Response
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?
Re: WMI Check returns "No unit counter specified"
Posted: Tue Jun 14, 2011 3:39 pm
by tonyyarusso
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
Re: WMI Check returns "No unit counter specified"
Posted: Tue Jun 14, 2011 3:46 pm
by 800Response
That did it. Thanks for the help!