I am currently moving some hosts and service from an old to a new Nagios XI setup and I'm having some trouble with certain services.
* Old Server : CentOS 6 with Nagios XI 5.6.12
* New Server : CentOS 7 with Nagios XI 5.6.14
* Monitored server is running nsclient 0.5.2.35
When I run the service with the "run check command" from the CCM on the Old Server I get the following :
Code: Select all
[nagios@oldserver ~]$ /usr/local/nagios/libexec/check_nt -H 10.5.133.20 -s "MyPasswd" -p 12489 -v COUNTER -l "\\Web Service(_Total)\\Current connections","Current Connections %.0f"
Current Connections 0 | 'Current Connections %.0f'=0.000000%;0.000000;0.000000;
Code: Select all
[nagios@newserver ~]$ /usr/local/nagios/libexec/check_nt -H 10.5.133.20 -s "MyPasswd" -p 12489 -v COUNTER -l "\\Web Service(_Total)\\Current connections","Current Connections %.0f"
NSClient - ERROR: No performance data from command: check_pdh
Code: Select all
2020-05-11 12:57:01: error:c:\source\master\service\plugin_manager.cpp:475: Unknown command(s): MyPasswd available commands: commands
Running the command from the commandline as root on the new server works perfect
Code: Select all
[root@newserver ~]# /usr/local/nagios/libexec/check_nt -H 10.5.133.20 -s "MyPasswd" -p 12489 -v COUNTER -l "\\Web Service(_Total)\\Current connections","Current Connections %.0f"
Current Connections 3 | 'Current Connections %.0f'=3.000000%;0.000000;0.000000;
Code: Select all
[root@newserver ~]# su nagios
[nagios@newserver root]$ /usr/local/nagios/libexec/check_nt -H 10.5.133.20 -s "MyPasswd" -p 12489 -v COUNTER -l "\\Web Service(_Total)\\Current connections","Current Connections %.0f"
Current Connections 2 | 'Current Connections %.0f'=2.000000%;0.000000;0.000000;
Code: Select all
[nagios@newserver root]$ /usr/local/nagios/libexec/check_nt --version
check_nt v2.2.1 (nagios-plugins 2.2.1)
[nagios@newserver root]$ ll /usr/local/nagios/libexec/check_nt
-rwxrwxr-x. 1 apache nagios 219488 May 11 12:00 /usr/local/nagios/libexec/check_nt
Code: Select all
[root@oldserver ~]# /usr/local/nagios/libexec/check_nt --version
check_nt v2.2.1 (nagios-plugins 2.2.1)
[root@oldserver ~]# ll /usr/local/nagios/libexec/check_nt
-rwxrwxr-x 1 apache nagios 186451 Aug 7 2018 /usr/local/nagios/libexec/check_nt
It seems like a rights issue on the new server but I can't seem to find it.
Can someone help me out here pls ?