Hi Everyone,
I am newbie with Nagios. I have got the basic installation complete and monitoring the local host. I am currently trying to setup monitoring of my web servers on the internet (not on my local network). I have been working with the artcile on nagios.com and a nagios book I purchased but I am having trouble understanding a few things and getting it working to monitor the web servers.
Overall I am still getting use to woring with the .cfg files so here is what I have so far in my /etc/nagios3 directory
services.cfg
cgi.cfg
hosts.cfg
nagios.cfg
commands.cfg
resource.cfg
hosts.cfg~
services.cfg~
My host.cfg containts the following:
*define host{
use generic-host ; Inherit default values from a template
host_name remotehost ; The name we're giving to this host
alias MyWebServer ; A longer name associated with the host
address 72.74.50.XX ; IP address of the host
hostgroups allhosts ; Host groups this host is associated with
}*
My commands.cfg contains the following:
*define command{
name check_http
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}*
My services.cfg contains the following:
*define service{
use generic-service ; Inherit default values from a template
host_name remotehost
service_description HTTP
check_command check_http
}*
Those are basic configurations I pulled off the nagios web site. After I save all the configuration files and reload nagios, the MyWebServer is not being monitored or showing up in my list of hosts. I am just curious as to what I am missing.
Thanks!!