configuring a windows server for monitoring
Posted: Tue Sep 17, 2019 3:19 pm
Hello,
Ok, I'm a little confused. I have Nagios set up and it is working fine, however, until now I am only monitoring Unix/Linux boxes.
I now need to monitor Windows boxes, and having trouble setting it up and getting it working.
my nagios is nagios 4.4.3
I found so many articles to install and configure windows, but, it is not working and the info is misleading I think.
I downloaded the NSClient++ Agent on Windows Machine and the download says NSCP-0.5.2.35-x64.msi
I installed the client with the windows installer.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg shows Things look okay - No serious problems were detected during the pre-flight check
however, I'm getting Critical Error Socket Timeouts
I'm not sure if I have the windows configuration correct. also, I do not understand if NRPE is needed, when I use it, it complains, It doesn't look like the windows services use NRPE ????
define host {
use windows-server ; Inherit default values from a template
host_name CGHCTS000000588 ; The name we're giving to this host
alias MTS IIS ; A longer name associated with the host
address 10.141.16.83 ; IP address of the host
register 1
}
define hostgroup {
hostgroup_name windows-servers ; The name of the hostgroup
alias Windows Servers ; Long name of the group
}
define service {
use generic-service
host_name CGHCTS000000588
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
It appears this uses check_nt
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
this suggests it is somewhat working or can talk.
/usr/local/nagios/libexec/check_nrpe -H 10.141.16.83
I (0.5.2.35 2018-01-28) seem to be doing fine...
Help, what am I doing wrong - thank you!!!
Ok, I'm a little confused. I have Nagios set up and it is working fine, however, until now I am only monitoring Unix/Linux boxes.
I now need to monitor Windows boxes, and having trouble setting it up and getting it working.
my nagios is nagios 4.4.3
I found so many articles to install and configure windows, but, it is not working and the info is misleading I think.
I downloaded the NSClient++ Agent on Windows Machine and the download says NSCP-0.5.2.35-x64.msi
I installed the client with the windows installer.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg shows Things look okay - No serious problems were detected during the pre-flight check
however, I'm getting Critical Error Socket Timeouts
I'm not sure if I have the windows configuration correct. also, I do not understand if NRPE is needed, when I use it, it complains, It doesn't look like the windows services use NRPE ????
define host {
use windows-server ; Inherit default values from a template
host_name CGHCTS000000588 ; The name we're giving to this host
alias MTS IIS ; A longer name associated with the host
address 10.141.16.83 ; IP address of the host
register 1
}
define hostgroup {
hostgroup_name windows-servers ; The name of the hostgroup
alias Windows Servers ; Long name of the group
}
define service {
use generic-service
host_name CGHCTS000000588
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
It appears this uses check_nt
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
this suggests it is somewhat working or can talk.
/usr/local/nagios/libexec/check_nrpe -H 10.141.16.83
I (0.5.2.35 2018-01-28) seem to be doing fine...
Help, what am I doing wrong - thank you!!!