Finally got Nagios running, now what?
Posted: Fri Jul 11, 2014 9:54 am
All,
Total newbie to Nagios, and thanks to the help of the admins I was able to solve my installation issues and I have a functioning installation! But I am struggling to understand the documentation on how to do anything useful.
My biggest current issue is adding hosts. I don't understand why my .cfg files are not working, I have copied templates from all over trying to get a host other than localhost to show up in nagios with no luck. Here's an example of my most recent host file that includes all the directives required according to the documentation.
And I have placed the absolute path of **HOSTNAME**.cfg in the /usr/local/nagios/etc/nagios.cfg file, the **HOSTNAME**.cfg file is located under /usr/local/nagios/etc/objects/. Every time that I attempt to get this working I restart the nagios and httpd services, yet nothing ever appears.
What am I doing wrong?
Total newbie to Nagios, and thanks to the help of the admins I was able to solve my installation issues and I have a functioning installation! But I am struggling to understand the documentation on how to do anything useful.
My biggest current issue is adding hosts. I don't understand why my .cfg files are not working, I have copied templates from all over trying to get a host other than localhost to show up in nagios with no luck. Here's an example of my most recent host file that includes all the directives required according to the documentation.
Code: Select all
define host{
name **HOSTNAME**.cfg
host_name **FQDN**
alias **HOSTNAME**
address **IP-ADDR**
use generic-host
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period workhours
notification_interval 120
notification_options d,u,r
contact_groups admins
}
What am I doing wrong?