After upgrade, missing some functions

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.
Locked
wer_ops
Posts: 4
Joined: Thu Aug 13, 2015 6:45 am

After upgrade, missing some functions

Post by wer_ops »

Hello.
Just upgraded from NAGIOS 4.0.2 to 4.0.8.
After the upgrade, I am receiving this message:
"Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
1.Verify configuration options using the -v command-line option to check for errors.
2.Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
"

But, this message only occurs when I am trying to click on MAP or TRENDS or HISTOGRAM.
All other, for example TACTICAL OVERVIEW or SERVICES are working and are showing accurate data.

When looking in my /usr/local/nagios/sbin, the HISTOGRAM.CGI, STATUSMAP.CGI and TRENDS.CGI all have different date and time compared to all the other cgi´s in this directory.
If this could have anything to do with it?

Please give me some advice as to where to start looking for errors.

Thank you.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: After upgrade, missing some functions

Post by tgriep »

Run the following to verify your configuration is correct and post the output.

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Then run the tail of the Apache error log while you click on the errored links and post that.

Code: Select all

tail -f /var/log/httpd/error_log
If the CGI are different, you may have to do the upgrade again.
Post any errors from that.
Be sure to check out our Knowledgebase for helpful articles and solutions!
wer_ops
Posts: 4
Joined: Thu Aug 13, 2015 6:45 am

Re: After upgrade, missing some functions

Post by wer_ops »

The configuration check ends with:
"Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check"

Also, there are no errors in my /var/log/apache2/error.log.
Just to be sure, I moved statusjson.cgi out of its directory, and immediately there where errors in the log about the file missing.
So the logging itself seems to be working.

Is it possible to compile/fix only the .cgi´s or should I run the whole upgrade again?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: After upgrade, missing some functions

Post by hsmith »

wer_ops wrote:The configuration check ends with:
"Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check"

Also, there are no errors in my /var/log/apache2/error.log.
Just to be sure, I moved statusjson.cgi out of its directory, and immediately there where errors in the log about the file missing.
So the logging itself seems to be working.

Is it possible to compile/fix only the .cgi´s or should I run the whole upgrade again?
At this point, I would attempt to run the whole upgrade again.
Former Nagios Employee.
me.
wer_ops
Posts: 4
Joined: Thu Aug 13, 2015 6:45 am

Re: After upgrade, missing some functions

Post by wer_ops »

Instead of re-running the 4.0.8 upgrade, I ran the 4.1.1 upgrade.
The result is the same: statusmap, histogram and trends are not working, seems the .CGIs have the wrong date, hence they have not been replaced during the upgrades.
Can I somehow compile those 3 cgi´s manually?




Actually, just found that I was missing libgd-tools on my server.
Ran "apt-get install libgd-tools" and the re-ran the nagios upgrade.
Now it is working as expected.

Thank you.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: After upgrade, missing some functions

Post by hsmith »

wer_ops wrote:Instead of re-running the 4.0.8 upgrade, I ran the 4.1.1 upgrade.
The result is the same: statusmap, histogram and trends are not working, seems the .CGIs have the wrong date, hence they have not been replaced during the upgrades.
Can I somehow compile those 3 cgi´s manually?




Actually, just found that I was missing libgd-tools on my server.
Ran "apt-get install libgd-tools" and the re-ran the nagios upgrade.
Now it is working as expected.

Thank you.
Thanks for posting and updating us on how you got this one resolved, it's appreciated and very helpful for someone else that may be having the issue!

Is there anything else we can do for you regarding this particular issue?
Former Nagios Employee.
me.
wer_ops
Posts: 4
Joined: Thu Aug 13, 2015 6:45 am

Re: After upgrade, missing some functions

Post by wer_ops »

No, thank you.
You may close this case (uncertain if I can close it myself?)

Have a nice day y'all....
Locked