Problem with web interface


#1

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:


#2

what’s the output of
$nagiosdir/bin/nagios -v $nagiosdir/etc/nagios.cfg ?

Ciao, Luca


#3

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


#4

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

try out and let us know


#5

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?


#6

paste your output when you do
ps -aux | grep nagios

i am not expert with all this but i will still try to help you out

Thanks


#7

Hi
Did you check your cgi.cfg file ?are all the settings done properly?


#8

nagios 8985 0.0 0.2 6940 1324 ? Ssl 11:05 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 9016 0.0 0.2 6876 1332 ? S 11:05 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 9017 0.0 0.1 1872 692 ? S 11:05 0:00 /usr/local/nagios/libexec//check_ping -H 10.13.17.203 -w 3000.0,80% -c 5000.0,100% -p 1
nagios 9018 0.0 0.0 1632 480 ? S 11:05 0:00 /bin/ping -n -U -w 10 -c 1 10.13.17.203
root 9021 0.0 0.1 1792 628 pts/2 R+ 11:06 0:00 grep nagios


#9

Ok boys, there was an error with the authrization of one (1!!!) file in /usr/local/nagios/var/
Thanks to all!


#10

Would you please explain how you solve it as I am experience the same and cannot find what’s going on.

Thanks


#11

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.


#12

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…