Nagios core configuration files
Posted: Fri Nov 09, 2012 2:26 pm
Hi everyone,
I am fairly new to linux however, today i tried setting up Nagios Core 3.2.3. It installed properly, however when i try to follow the instructions provided with the documentation, i discovered that some of the .cfg files are missing. For example, i wasn't able to find windows.cfg, and it clearly states in my nagios.cfg file that i can find it @ /etc/nagios3/objects/windows.cfg. I had to manually create the objects directory and also the windows.cfg. Another .cfg file i see missing is the templates.cfg and also hosts.cfg.
Is it something wrong i did with my installation?
now when i run sudo nagios3 -v /etc/nagios3/nagios.cfg, i get the following error message :
Error: Invalid max_check_attempts value for host 'server'
Error: Could not register host (config file '/etc/nagios3/objects/windows.cfg', starting on line 2)
Error processing object config files!
I am following documentation, here is what the hosts.cfg file looks like ( i manually created it)
define host{
host_name server.mydomain.com
alias server
address 192.168.1.55
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
Any help on this would be greatly appreciated.
Thanks
I am fairly new to linux however, today i tried setting up Nagios Core 3.2.3. It installed properly, however when i try to follow the instructions provided with the documentation, i discovered that some of the .cfg files are missing. For example, i wasn't able to find windows.cfg, and it clearly states in my nagios.cfg file that i can find it @ /etc/nagios3/objects/windows.cfg. I had to manually create the objects directory and also the windows.cfg. Another .cfg file i see missing is the templates.cfg and also hosts.cfg.
Is it something wrong i did with my installation?
now when i run sudo nagios3 -v /etc/nagios3/nagios.cfg, i get the following error message :
Error: Invalid max_check_attempts value for host 'server'
Error: Could not register host (config file '/etc/nagios3/objects/windows.cfg', starting on line 2)
Error processing object config files!
I am following documentation, here is what the hosts.cfg file looks like ( i manually created it)
define host{
host_name server.mydomain.com
alias server
address 192.168.1.55
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
Any help on this would be greatly appreciated.
Thanks