Re: Check results from same check command but diffrent service.
Posted: Wed Jul 14, 2010 11:18 am
Any chance we could see the actual performance data in a text file so we can check it's syntax?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
'Terminal Services Active Sessions is %.f'=0.000000%;0.000000;0.000000;Yes, I am using NSClient++ 0.3.7.493mmestnik wrote: This information is provided by the check command you are using, this information can be found in the CCM. That screen would also be helpful, it's nsclinet++ no? So then the nsclient++ application has some configuration related to the config in CCM that's important.
Code: Select all
-l "\\Terminal Services\\Active Sessions","Terminal Services Active Sessions is %.f"Code: Select all
check_nt -H <hostname> -p 12489 -v COUNTER -l "\\Terminal Services\\Active Sessions","Terminal Services Active Sessions is %.f"Code: Select all
Terminal Services Active Sessions is 2 | 'Terminal Services Active Sessions is %.f'=2.000000%;0.000000;0.000000;I try with %i:mmestnik wrote:The other issue I see is that "%.f" could be a formatted print function that's not being resolved. The third and final issue is that RRD and thus pnp can only graph integers, so what should be being printed here is %i, not %f or %.f anything. These numbers should not have '.' they need to be whole.Code: Select all
'Terminal Services Active Sessions is %.f'=0.000000%;0.000000;0.000000;
Code: Select all
check_nt -H <hostname> -p 12489 -v COUNTER -l "\\Terminal Services\\Active Sessions","Terminal Services Active Sessions is %.i"Code: Select all
Terminal Services Active Sessions is 0 | 'Terminal Services Active Sessions is %i'=2.000000%;0.000000;0.000000;Code: Select all
check_nt -H <hostname> -p 12489 -v COUNTER -l "\\Terminal Services\\Active Sessions","Terminal Services Active Sessions is %f"Code: Select all
Terminal Services Active Sessions is 2.000000 | 'Terminal Services Active Sessions is %f'=2.000000%;0.000000;0.000000;Code: Select all
check_nt -H <hostname> -p 12489 -v COUNTER -l "\\Server\\Errors Logon","Login Errors since last reboot is %.f" -w 2 -c 20
Login Errors since last reboot is 0 | 'Login Errors since last reboot is %.f'=0.000000%;2.000000;20.000000;
check_nt -H <hostname> -p 12489 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w 70 -c 90
Paging File usage is 0.17 % | 'Paging File usage is %.2f %%'=0.166791%;70.000000;90.000000;
check_nt -H <hostname> -p 12489 -v COUNTER -l "\\Server Work Queues(0)\\Queue Length","Current work queue (an indication of processing load) is %.f " -w 4 -c 7
Current work queue (an indication of processing load) is 0 | 'Current work queue (an indication of processing load) is %.f '=0.000000%;4.000000;7.000000;
The values above indicate the following:mmestnik wrote:These numbers should not have '.' they need to be whole.