Skip to main content

Hello,
I do have issue regarding a check that was previsouly working on 21.04. I’m now running 24.10
I use the check_nt -V COUNTER to query the number of “Total Sessions” on a Windows host (RDS).
The command used is the following :

/usr/lib64/nagios/plugins/check_nt -H HOST.domain.local -v COUNTER -p 12489 -s MyPassword -l "\\Terminal Services()\\Total Sessions","Terminal Services Total","Sessions" -w 45 -c 50

 

On the centreon GUI, I do have the following output :

NSClient - ERROR: No performance data from command: check_pdh

 

On the nsclient log file, I have the following line :

2025-08-27 16:22:20: error:D:\a\nscp\nscp\modules\CheckSystem\check_pdh.cpp:240: Exception in Failed to poll counter: Terminal Services()\Total Sessions counter not found: c0000bc0: Unable to parse the counter path. Check the format and syntax of the  specified path.

 

But, connected on a SSH session on the Central, I can query the Windows host :

root@CENTREON-POLLER:~# /usr/lib64/nagios/plugins/check_nt -H HOST.domain.local -v COUNTER -p 12489 -s MyPassword -l "\\Terminal Services()\\Total Sessions","Terminal Services Total","Sessions" -w 45 -c 50
Terminal Services Total = 3.00 Sessions | 'Terminal Services Total'=3.000000Sessions;45.000000;50.000000;

 

I have doubt that it is due to bad interpretation or escape character but I don’t understand why evn with multiple attempt.
Any ideas ?

Ok, answering to myself for everybody, need to check now the “Enable shell” in the command

 


Reply