After lots of trying I managed to setup nagios.
Most manuals I read manage to monitor more than 1 server. I am trying too.
I defined two hosts in loacalhost.cfg like this:
define host(
use linux-server
host_name localhost
alias vmware
address 192.168.0.250
}
And did exactly the same for server noirix at 192.168.0.6
The only service I activated is PING.
Nagios is installed on FC4 running on vmware on Ubuntu Edgy.
Noirix is FC3.
Both localhost and noirix can be pinged from command line.
Nagios -v /usr/local/nagios/etc/nagios.cfg gives me no troubles
Nagios -d starts the daemon.
No problem so far, but when starting the web interface I only see one server (localhost).
Noirix has disapeared in all off the screens, except when I look at Configuration / View Config / Hosts I see them both.
What have I configured wrong or doing wrong? Is there anyone who can give me a clue?
Thanks for answering so quick.
Tried nagios daemon to start with /etc/rc.d/initd/nagios start and this went good.
But… the problem still remains. Localhost can be seen, no problem, other hosts on my LAN do’nt show.
But they do in Configuration / View Config / Hosts.
Do you have more solutions?
Just a bit trying…
I am able now to add hosts.
This was because the chown of the files in libexec were all root:root.
When I changed them to nagios:nagios this went better.
Will I ever learn…
Many other things are not working still but this problem seems to be solved.
Thanks again for answering.
I think I will be back (and I am not even close to being governor of California…)
I’m having the same issue and double checked ownership in /libexec program is ran via /etc/initd/nagios
Some hosts are showing up and some are not in hosts details. Also, under the Tac overview, only 2-3 hosts are showing up intermidiately (sp).then from time to time I get the dreaded “It appears as though you do not have permission to view information for any of the hosts you requested… If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file.”
I’ve double checked my httpd.conf file and have a valid .htaccess. Also, I changed cgi.cfg authentication to 0 from 1. I want to go back to 1 on cgi.cfg and for all my hosts to report in and stay active on the screen. Any suggestions?
In relation to the same question thought this was interesting. Ran the command within 30 seconds of each other. Why am I getting a report of different hosts / service numbers?
Figured out my problem and jakkedup had answered the issue without me even knowing it. I had nagios running several times due to my stupidity. I stopped all processes and just ran via /etc/rc.d/init.d/nagios restart this created the only copy running and runs just like it should. Now on to the configuring / fine tuning.