Enable new Windows Server 2019 in nagios
Posted: Wed Jan 13, 2021 9:54 am
I have updated a server that is already included in our nagios (3.5.0) with some checks:
RAM, CPU, hard disk C and D plus uptime.
The check in the file windows.cfg looks like this:
define service{
use generic-service
host_name DEGHUV02
service_description CPU Auslastung
check_command check_snmp_load
}
define service{
use generic-service
host_name DEGHUV02
service_description Arbeitsspeicher
check_command check_snmp_storage!'Physical Memory'!90!95
}
define service{
use generic-service
host_name DEGHUV02
service_description Platte C
check_command check_snmp_storage!^C:!85!90
}
define service{
use generic-service
host_name DEGHUV02
service_description Platte D
check_command check_snmp_storage!^D:!92!93
On the old Windows Server 2012 I dont know how exactly it was configured but I could not see any NCP Client installed.
And now the checks give me the error: ERROR: Description/Type table : No response from remote host "192.168.82.43".
I already installed the NSClient++ (x64) version 0.5.2035 and the NCPA client 2.2.2 - but it still does not work.
I am not aware of any passwort. The commands.cfg config file looks like this:
# 'check_snmp_storage.pl' command definition
define command{
command_name check_snmp_storage
command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C public -m $ARG1$ -w $ARG2$ -c $ARG3$
}
And that looks to me like there is no option with -s. So no password is set so I also did not set any in the config.
I also added the IP of the nagios server to allowed hosts with a ,
Windows firewall is also disabled.
What do I need to install on the Server and how to configure it to get this working again?
RAM, CPU, hard disk C and D plus uptime.
The check in the file windows.cfg looks like this:
define service{
use generic-service
host_name DEGHUV02
service_description CPU Auslastung
check_command check_snmp_load
}
define service{
use generic-service
host_name DEGHUV02
service_description Arbeitsspeicher
check_command check_snmp_storage!'Physical Memory'!90!95
}
define service{
use generic-service
host_name DEGHUV02
service_description Platte C
check_command check_snmp_storage!^C:!85!90
}
define service{
use generic-service
host_name DEGHUV02
service_description Platte D
check_command check_snmp_storage!^D:!92!93
On the old Windows Server 2012 I dont know how exactly it was configured but I could not see any NCP Client installed.
And now the checks give me the error: ERROR: Description/Type table : No response from remote host "192.168.82.43".
I already installed the NSClient++ (x64) version 0.5.2035 and the NCPA client 2.2.2 - but it still does not work.
I am not aware of any passwort. The commands.cfg config file looks like this:
# 'check_snmp_storage.pl' command definition
define command{
command_name check_snmp_storage
command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C public -m $ARG1$ -w $ARG2$ -c $ARG3$
}
And that looks to me like there is no option with -s. So no password is set so I also did not set any in the config.
I also added the IP of the nagios server to allowed hosts with a ,
Windows firewall is also disabled.
What do I need to install on the Server and how to configure it to get this working again?