Quote:
Thanks. |
Okay, do you see where your nagios.lock file is owned by root? It shouldn't be, so it looks like its not being created properly.
Unless you toyed with the owner of the file. Try deleting the lock file Code:
rm -f /usr/local/nagios/var/nagios.lock The go and run Code:
ls -la /usr/local/nagios/var/ |
Quote:
deleted nagios.lock file as requested. Then Code:
ODB2:/usr/local/nagios/etc# /etc/init.d/nagios restart |
Hi Spuddy,
Can you please paste your nagios service script ? cat /etc/init.d/nagios also give O/P of below command id nagios |
Quote:
Code:
ODB2:/usr/local/nagios/etc# cat /etc/init.d/nagios |
You're users are set in the script you just pasted:
Code:
NagiosUser=nagiosadmin Change nagiosadmin to nagios. The reason you saw the kill error above was because we had deleted the lock file. Fix the nagios user, then restart nagios, see if the lock file has the correct permissions and owner. After that post your /var/log/messages log for the restart, and see if there are any errors. |
Quote:
value as per your file is nagiosadmin change it to nagios Code:
NagiosUser=nagios now try to start or restart nagios service let us know if you get any error |
That was it!
Code:
ODB2:/usr/local/nagios/etc# /etc/init.d/nagios restart Code:
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server. Code:
The requested URL /nagios/cgi-bin/histogram.cgi was not found on this server. Thanks for all your help guys, this is certainly the most helpful forum I have ever used! I have only been into Linux for a month or so and have been learning extensively. |
Check your nagios path for the files and see if they are there. You'd need to see where apache is sending your request.
I'm assuming you have a alias and scriptalias directive setup? See where the /cgibin/ is taking you then look for the file in the path. you should also be able to look at your apache logs to see the path its looking at for those files. |
Quote:
Code:
[Wed Jul 21 14:20:48 2010] [error] [client 192.168.0.239] script not found or unable to stat: /usr/local/nagios/sbin/histogram.cgi, referer: http://192.168.$ Code:
ODB2:/# cd /usr/local/nagios/sbin |
From the nagios support site:
Description: Trying to access the statusmap, trends, or histogram CGIs from the web interface either results in a 404 error (missing document) or produces errors. Solution: The most probable cause of this is that you do not have the gd library and/or its required libraries (i.e. libpng, libjpeg, and zlib). If you do have the libraries installed on your system, the configure script may not have properly detected them before you compiled the CGIs. Here's what you can do to solve the issue: Install the gd, png, jpeg, and zlib libraries on your system. You will also have to install the gd-devel, png-devel, jpeg-devel, and zlib-devel libraries. If you want RPMs for these libraries, try searching rpmfind.net for the following libraries: |
@Spuddy
I think you have not installed gd library. just install gd library to access those .cgi files. |
Thanks guys, I have looked at that article and also searched aptitude, but what version(s) do I need?
Code:
ODB2:/usr/local/nagios/sbin# aptitude search libgd |
Should just need the base package, and it's development version as well to provide source etc.
Not sure about the debian package manager's naming of these, but they should be something like below. libgd2, libgd-dev, libgd2-xpm-dev, libgd2-xpm, libpng, libpng-dev, libjpeg, libjpeg-dev, zlib, and zlib-dev |
you require gd 1.6.3 or higher
just instll libgd2-dev on ubuntu also install png and jpeg library suggested by rfelsburg |
All times are GMT -5. The time now is 10:32 PM. |