ncpa-2.1.8 On windows server 2008 not working
Posted: Wed Aug 28, 2019 2:09 pm
I have installed the ncpa-2.1.8 On windows server 2008 R2 Enterprise and when I log into the NCPA web GUI from the server I can see the CPU, Memory, disks, and interfaces. Then I remote to the Nagios server which is running CentOS7 and I found a form to run a test so i CD to this location /usr/local/nagios/libexec and I run this command ./check_ncpa.py -H <Nagios server IP> -t <Mt token name setup in the NCPA installer> -M 'cpu/percent' -w 20 -c 40 -q 'aggregate=avg' -v
This returns:
Connecting to: https://X.X.X.X:5693/api/cpu/percent/?t ... regate=avg
File returned contained:
{
"perfdata": "'percent'=0.00%;20;40;",
"returncode": 0,
"stdout": "OK: Percent was 0.00 % | 'percent'=0.00%;20;40;"
}
OK: Percent was 0.00 % | 'percent'=0.00%;20;40;
But no matter how many times i run the commands
net stop ncpalistener
net start ncpalistener
net stop ncpapassive
net stop ncpapassive
I cannot get this windows host in the list of hosts on the Nagios server. This is what i followed when trying to get things setup - https://assets.nagios.com/downloads/nag ... installing
Does anyone happen to have any ideas on what I can try. I am trying to use the ncpa-2.1.8 client but if I cant get it to work then I might try the NSClient++. I was told from someone at Nagios that the NCPA is better supported. I also took the IP address out but it is the IP of the Nagios server.
This returns:
Connecting to: https://X.X.X.X:5693/api/cpu/percent/?t ... regate=avg
File returned contained:
{
"perfdata": "'percent'=0.00%;20;40;",
"returncode": 0,
"stdout": "OK: Percent was 0.00 % | 'percent'=0.00%;20;40;"
}
OK: Percent was 0.00 % | 'percent'=0.00%;20;40;
But no matter how many times i run the commands
net stop ncpalistener
net start ncpalistener
net stop ncpapassive
net stop ncpapassive
I cannot get this windows host in the list of hosts on the Nagios server. This is what i followed when trying to get things setup - https://assets.nagios.com/downloads/nag ... installing
Does anyone happen to have any ideas on what I can try. I am trying to use the ncpa-2.1.8 client but if I cant get it to work then I might try the NSClient++. I was told from someone at Nagios that the NCPA is better supported. I also took the IP address out but it is the IP of the Nagios server.