I've installed Nagios Core 4.1.0 with plugins onto a newly installed CentOS 6. The site is up and running correctly as well as successfully monitoring localhost.
I've created a new file in the objects directory ending with .cfg. Within this file I've defined a host and a service, only to check_http. I've created it exactly as outlined in http://nagios.sourceforge.net/docs/nagi ... vices.html
I've also matched the permissions of this new file to localhost.cfg.
I've both reloaded Nagios as well as rebooted the server, but the website doesn't show the new host. Why is that?
Clean Install: Nagios not displaying newly created host
Re: Clean Install: Nagios not displaying newly created host
Please post the configuration in question.
In addition, try running the following command - it will check your configuration files for errors.
In addition, try running the following command - it will check your configuration files for errors.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgRe: Clean Install: Nagios not displaying newly created host
Configuration <sheller.cfg>
The config check reports no errors. I used this before per the article I linked above.
btw, the server can resolve sheller.com into the actual IP, not a problem here.
Code: Select all
define host{
use generic-host
host_name shellerwebsite
alias Sheller.com Website
address sheller.com
hostgroups allhosts
}
define service{
use generic-service
host_name shellerwebsite
service_description HTTP
check_command check_http
}btw, the server can resolve sheller.com into the actual IP, not a problem here.
Re: Clean Install: Nagios not displaying newly created host
I got it all figured out now.
The problem was that the nagios.cfg didn't specify any cfg_file or cfg_dir which would have included my new file. Once I did this, all is well.
/Closed
The problem was that the nagios.cfg didn't specify any cfg_file or cfg_dir which would have included my new file. Once I did this, all is well.
/Closed
Re: Clean Install: Nagios not displaying newly created host
Great to hear.
I'll be closing this thread now, but feel free to open another if you need anything in the future!
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee