Nagios restart fail after mod of windows.cfg
Posted: Wed Oct 10, 2012 4:29 am
Hello,
This is my very first try with nagios and here's the problem. I use a fedora 17 server. Yum install nagios was fine, and i've installed all the plugins (i know, this is certainly not usefull nor clever...). It works fine so far, since i can access to the nagios web page and see my localhost. So go further and installed nsc++ on a windows computer i want to monitor. The installation on the windows side seems to be fine, i've downed the windows firewall so i can access (theorically) the win computer from the fedora server. I've uncommented the line
cfg_file=/etc/nagios/objects/windows.cfg
and have the following windows.cfg file :
define host{
use windows-server ; Inherit default values from a template
host_name xxx-win ; The name we're giving to this host
alias xxxWindows ; A longer name associated with the host
address xx.yy.zz.tt ; IP address of the host
}
# Define a hostgroup for Windows machines
# All hosts that use the windows-server template will automatically be a member of this group
define hostgroup{
hostgroup_name windows-server ; The name of the hostgroup
alias xxx ; Long name of the group
}
# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name winserver
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
But when i restart nagios, i have this :
service nagios restart
Restarting nagios (via systemctl): Job failed. See system journal and 'systemctl status' for details.
the nagios.log gives me this :
Caught SIGTERM, shutting down...
Successfully shutdown... (PID=30788)
Moreover, but i don't know if it's linked, i can't access the windows server with the check_nt...
/usr/lib/nagios/plugins/check_nt -H xx.yy.zz.tt -v CLIENTVERSION -p 12489 -s password
I'm sure i've entered the password during the win§client configuration, and type it the right way when trying to check on the fedora side...
Doed anyone see where i've made mistakes ?
TIA
R
This is my very first try with nagios and here's the problem. I use a fedora 17 server. Yum install nagios was fine, and i've installed all the plugins (i know, this is certainly not usefull nor clever...). It works fine so far, since i can access to the nagios web page and see my localhost. So go further and installed nsc++ on a windows computer i want to monitor. The installation on the windows side seems to be fine, i've downed the windows firewall so i can access (theorically) the win computer from the fedora server. I've uncommented the line
cfg_file=/etc/nagios/objects/windows.cfg
and have the following windows.cfg file :
define host{
use windows-server ; Inherit default values from a template
host_name xxx-win ; The name we're giving to this host
alias xxxWindows ; A longer name associated with the host
address xx.yy.zz.tt ; IP address of the host
}
# Define a hostgroup for Windows machines
# All hosts that use the windows-server template will automatically be a member of this group
define hostgroup{
hostgroup_name windows-server ; The name of the hostgroup
alias xxx ; Long name of the group
}
# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name winserver
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
But when i restart nagios, i have this :
service nagios restart
Restarting nagios (via systemctl): Job failed. See system journal and 'systemctl status' for details.
the nagios.log gives me this :
Caught SIGTERM, shutting down...
Successfully shutdown... (PID=30788)
Moreover, but i don't know if it's linked, i can't access the windows server with the check_nt...
/usr/lib/nagios/plugins/check_nt -H xx.yy.zz.tt -v CLIENTVERSION -p 12489 -s password
I'm sure i've entered the password during the win§client configuration, and type it the right way when trying to check on the fedora side...
Doed anyone see where i've made mistakes ?
TIA
R