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 »

Did you run the following as well:

Code: Select all

make install-cgis
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 »

Where do I make install-cgis?

Here is what i tried which no luck

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-cgis
make install
/etc/init.d/nagios restar
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

From the source folder. Looks like it was right above.
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.
ZaphoidPA
Posts: 4
Joined: Fri Dec 20, 2013 12:50 pm

Re: Nagios Map

Post by ZaphoidPA »

I have just upgraded from 3.5 to 4.0.2, and noticed that whenever I go to my maps, trends of histogram, I get failure messages, specifically "Error: Could not read object configuration data!".

As I was looking around, I noticed that none of these files were updated when I built the new nagios core. They all have a date stamp of March, not today.

Looking in the cgi source directory, I see that none of these 3 files have been built.

root@nagios:~/nagios-4.0.2/cgi# ls -l histo*
-rw-rw-r-- 1 root root 83318 Nov 25 06:16 histogram.c
-rw-rw-r-- 1 root root 30100 Nov 25 06:16 history.c
-rwxr-xr-x 1 root root 634562 Dec 20 10:24 history.cgi
root@nagios:~/nagios-4.0.2/cgi# ls -l status*
-rw-rw-r-- 1 root root 208448 Nov 25 06:16 status.c
-rwxr-xr-x 1 root root 773457 Dec 20 10:24 status.cgi
-rw-r--r-- 1 root root 16836 Dec 20 10:24 statusdata-cgi.o
-rw-rw-r-- 1 root root 92851 Nov 25 06:16 statusmap.c
-rw-rw-r-- 1 root root 49853 Nov 25 06:16 statuswml.c
-rwxr-xr-x 1 root root 663870 Dec 20 10:24 statuswml.cgi
-rw-rw-r-- 1 root root 36263 Nov 25 06:16 statuswrl.c
-rwxr-xr-x 1 root root 640632 Dec 20 10:24 statuswrl.cgi
root@nagios:~/nagios-4.0.2/cgi# ls -l trends*
-rw-rw-r-- 1 root root 97395 Nov 25 06:16 trends.c
root@nagios:~/nagios-4.0.2/cgi#

Is there an error in the Makefile that is stopping these modules from being built? As I look through the build spam, I don't even see these three modules being referenced.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Map

Post by sreinhardt »

I realize this is a similar issue zaphoid, but could you please create a new topic so that we can address this specifically for your environment.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

Could I manually delete the status maps cgi's and then do another:

./configure --with-command-group=nagcmd
make all
make install-cgis
make install
/etc/init.d/nagios restart
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

diverseft wrote:Could I manually delete the status maps cgi's and then do another:
[snip]
Yes, but I have a feeling that you are still missing a few dependencies for the map - probably gd/gd-devel. You should get a warning/error about this on compile - the text of the warning should be fairly noticeable on stdout.
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 »

So shall I do another make install and take a note of the any errors?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Map

Post by slansing »

That would be beneficial, we need to make sure you are not missing anything. If you can ouput the contents of your commands to a text file that would be great. Then just upload it here when done.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

./configure --with-command-group=nagcmd
http://pastebin.com/eKH5LnRL


make all
http://pastebin.com/s5cTLxtV


make install
http://pastebin.com/7Ci64uBf
Locked