Hello, Seems to me you forgot the escape the second \ in your statement :
-H $HOSTADDRESS$ -p 12489 -v COUNTER -l "\\Terminal Services\\Active Sessions","active sessions %.f" -w 45 -c 50 This is for example my check for physical memory : -H $HOSTADDRESS$ -v COUNTER -d SHOWALL -l '\\Memory\\Available MBytes','Available Physical Memory: %.0f MB' -w 512 -c 256 -p 12489 Met vriendelijke groet, Peter Plate -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Natxo Asenjo Sent: woensdag 7 april 2010 12:52 To: Opsview Users Subject: [opsview-users] problem with check_nt performance counter hi, I want to monitor the total number of sessions in our terminal servers/ citrix servers. From the shell it works as expected, but the web interface does not work: nag...@host::/usr/local/nagios/libexec$ ./check_nt -H termserver -p 12489 -v COUNTER -l "\\Terminal Services\active Sessions","active sessions %.f" -w 45 -c 50 active sessions 10 | 'active sessions %.f'=10.000000%;45.000000;50.000000; so as the user nagios I get the results of 10 active sessions and some performance data. Good. Enter opsview. I create a service check and select the check_nt plugin with these arguments: -H $HOSTADDRESS$ -p 12489 -v COUNTER -l "\\Terminal Services\Active Sessions","active sessions %.f" -w 45 -c 50 after reloading the web interface, the results that I get are active sessions 0 Performance Data: 'active sessions %.f'=0.000000%;45.000000;50.000000; so the -w and -c options are being read, but it does not get the number of active sessions. Any ideas what may be going wrong, or what I am missing/doing wrong? TIA. -- Groeten, J.Asenjo _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
