Nagios Map

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

Where ever you expanded the source tarball . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

service httpd restart =

httpd: unrecognized service
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

Code: Select all

service apache restart
service apache2 restart
?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

My maps view is still showing 4.0.0
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

What is the date on that cgi?

Code: Select all

ls -la /usr/local/nagios/sbin 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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?
Locked