Page 1 of 1

After upgrade, missing some functions

Posted: Thu Aug 13, 2015 6:54 am
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.

Re: After upgrade, missing some functions

Posted: Thu Aug 13, 2015 2:19 pm
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.

Re: After upgrade, missing some functions

Posted: Fri Aug 14, 2015 12:23 am
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?

Re: After upgrade, missing some functions

Posted: Fri Aug 14, 2015 12:35 pm
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.

Re: After upgrade, missing some functions

Posted: Mon Aug 31, 2015 1:40 am
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.

Re: After upgrade, missing some functions

Posted: Mon Aug 31, 2015 9:11 am
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?

Re: After upgrade, missing some functions

Posted: Mon Aug 31, 2015 9:20 am
by wer_ops
No, thank you.
You may close this case (uncertain if I can close it myself?)

Have a nice day y'all....