Hi to all, I’ve compiled and configured the last version of nagios (2.0b) correctly. In fact the process start correclty as daemon and in the log I can see all the check executed.
In the web interface, configured as described in the guide, I can see only a few pages (main, log, documentation) and with the other pages I have this error:
Whoops!
Error: Could not read host and service status information!
The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you’ve just installed things, make sure you read the documentation on starting Nagios.
But the process is still running!!!
What may be???
Anyone can help me???
Thanks Nicola :evil:
0 error and 0 warning. In fact the nagios process is working correctly. I can say this becouse I can see in the log faile (tail -f …) all the check done by the process
Hi
try stopping the nagios entirely and then restarting it
/etc/rc.d/init.d/nagios stop
ps -ef|grep nagios
You should not have nagios running now.
if you do, kill them.
Then
/etc/rc.d/init.d/nagios start
ps -ef|grep nagios
I already tried this. I have compiled nagios as root and I’'m running it as root, but I have created tha nagios user in my os linux.
Do I have to redo all with nagios user in your opinion?
It sounds to me like he had bad permissions on a file in var.
This is what I have.
ls -la var/
total 76
drwxrwxr-x 4 nagios nagios 4096 Aug 26 00:00 .
drwxrwxr-x 9 nagios nagios 4096 Jun 27 13:27 …
drwxrwxr-x 2 nagios nagios 28672 Aug 26 00:00 archives
-rw-r–r-- 1 root root 6 Aug 25 13:03 nagios.lock
-rw-rw-r-- 1 nagios nagios 13117 Aug 26 13:00 nagios.log
drwxrwsr-x 2 nagios nagiocmd 4096 Aug 25 13:03 rw
-rw-rw-r-- 1 nagios nagios 0 Aug 25 13:03 status.sav
If you don’t have the group called nagiocmd, then you didn’t install per the docs of nagios 1.x.
I did an installation via the deb packages on Debian Sarge. Insteed of nagioscmd there is just one the nagios group and user.
Permissions are granted to this user and everything seems ok.
I am going mad…