Page 4 of 6

Re: Nagios Map

Posted: Wed Dec 18, 2013 11:49 am
by abrist
Where ever you expanded the source tarball . . .

Re: Nagios Map

Posted: Wed Dec 18, 2013 12:02 pm
by diverseft
service httpd restart =

httpd: unrecognized service

Re: Nagios Map

Posted: Wed Dec 18, 2013 12:05 pm
by abrist

Code: Select all

service apache restart
service apache2 restart
?

Re: Nagios Map

Posted: Wed Dec 18, 2013 12:36 pm
by diverseft
i get apache: unrecognized service

if I do: ps -eaf - In the list of services I get apache2 in the list

If i then run service apache2 restart - I get

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Re: Nagios Map

Posted: Wed Dec 18, 2013 12:44 pm
by abrist
diverseft wrote: If i then run service apache2 restart - I get

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
That is the one. What version is your cgi reporting now?

Re: Nagios Map

Posted: Wed Dec 18, 2013 3:05 pm
by diverseft
My maps view is still showing 4.0.0

Re: Nagios Map

Posted: Wed Dec 18, 2013 4:55 pm
by abrist
What is the date on that cgi?

Code: Select all

ls -la /usr/local/nagios/sbin 

Re: Nagios Map

Posted: Thu Dec 19, 2013 3:28 am
by diverseft
Heres what I got:


total 4320
drwxrwxr-x 2 nagios nagios 4096 Dec 18 16:47 .
drwxr-xr-x 9 root root 4096 Apr 3 2012 ..
-rwxrwxr-x 1 nagios nagios 293696 Dec 18 16:47 avail.cgi
-rwxrwxr-x 1 nagios nagios 288008 Dec 18 16:47 cmd.cgi
-rwxrwxr-x 1 nagios nagios 260848 Dec 18 16:47 config.cgi
-rwxrwxr-x 1 nagios nagios 305952 Dec 18 16:47 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 256936 Sep 30 15:08 histogram.cgi
-rwxrwxr-x 1 nagios nagios 236328 Dec 18 16:47 history.cgi
-rwxrwxr-x 1 nagios nagios 232208 Dec 18 16:47 notifications.cgi
-rwxrwxr-x 1 nagios nagios 228072 Dec 18 16:47 outages.cgi
-rwxrwxr-x 1 nagios nagios 232184 Dec 18 16:47 showlog.cgi
-rwxrwxr-x 1 nagios nagios 305976 Dec 18 16:47 status.cgi
-rwxrwxr-x 1 nagios nagios 252912 Sep 30 15:08 statusmap.cgi
-rwxrwxr-x 1 root root 252912 Sep 30 15:08 statusmap.cgi.orig
-rw-r--r-- 1 root root 2177 Oct 4 15:45 statusmap.cgi.rej
-rwxrwxr-x 1 nagios nagios 248632 Dec 18 16:47 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 232216 Dec 18 16:47 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 256840 Dec 18 16:47 summary.cgi
-rwxrwxr-x 1 nagios nagios 244544 Dec 18 16:47 tac.cgi
-rwxrwxr-x 1 nagios nagios 261040 Sep 30 15:08 trends.cgi

Re: Nagios Map

Posted: Thu Dec 19, 2013 10:52 am
by abrist
A few of those cgis are not the right date. Go back into your nagios source directory and recompile it (be sure to make clean). In fact, you may want to redownload the source tarball and make sure to expand it in a new folder.

Re: Nagios Map

Posted: Thu Dec 19, 2013 11:33 am
by diverseft
Still not working. Here are my steps:

mkdir tmp2
cd tmp2
wget http://prdownloads.sourceforge.net/sour ... 0.2.tar.gz
tar xzf nagios-4.0.2.tar.gz
cd nagios-4.0.2
./configure --with-command-group=nagcmd
make all
make install
/etc/init.d/nagios restart

statusmap.cgi in nagios\sbin is still showing up as sep-30

can i manually replace that one file?