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.
Upgraded from 3.5 to 4.0.2. Some cgi modules didn't build
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Upgraded from 3.5 to 4.0.2. Some cgi modules didn't buil
No those all should definitely be created, what os are you running on, and what commands for ./configure and make did you run?
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.
Re: Upgraded from 3.5 to 4.0.2. Some cgi modules didn't buil
I did:
./configure --with-command-group=nagcmd
make all
make install
I also tried make install-cgi, but that didn't do anything different.
It seems really puzzling that those modules didn't build at all..
O/S info;
uname -a
Linux nagios 2.6.38-16-generic-pae #67~lucid1-Ubuntu SMP Fri Sep 7 18:39:12 UTC 2012 i686 GNU/Linux
./configure --with-command-group=nagcmd
make all
make install
I also tried make install-cgi, but that didn't do anything different.
It seems really puzzling that those modules didn't build at all..
O/S info;
uname -a
Linux nagios 2.6.38-16-generic-pae #67~lucid1-Ubuntu SMP Fri Sep 7 18:39:12 UTC 2012 i686 GNU/Linux
Re: Upgraded from 3.5 to 4.0.2. Some cgi modules didn't buil
Are you sure you have all the necessary dependencies? The maps will not build if packages like gd and its associated dependencies are not available. Can you attach a log of the compile to you next post?
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.
"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.
Re: Upgraded from 3.5 to 4.0.2. Some cgi modules didn't buil
So.. It was indeed GD that was missing. I had missed a warning message in the information that ./configure produced.
It was an ubuntu install, so it was a pretty simple matter to apt-get install libgd2-xpm-dev, reboot, and the build worked flawlessly after that!
Thanks,
Richard.
It was an ubuntu install, so it was a pretty simple matter to apt-get install libgd2-xpm-dev, reboot, and the build worked flawlessly after that!
Thanks,
Richard.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Upgraded from 3.5 to 4.0.2. Some cgi modules didn't buil
Awesome glad its working! Locking this up then.
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.