nagios Error: Could not read object configuration data - error-logging

I have a brand new install of nagios3 on ubuntu 12.04. After I log in to the web interface and click any link I get the error:
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
I ran it with the -v option and it reported no errors:
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
The nagios log and apache error log and debug log all have nothing regarding this. Does anyone know how to turn on logging that will give me some kind of useful error? Or if anyone knows how to fix this specific problem without additional logging, I guess that's okay too.
Thanks!

Possibly an issue with permissions.
/var/cache/nagios3 probably has wrong user/group or permissions set.

Related

ejtserver won't start, but no errors, after power outage

I have an install4j license that is served by ejtserver. After a power outage ejtserver doesn't start any more. It doesn't issue any errors, either.
My workaround is to run ejtserver_console. That starts up and opens the port to listen for connections.
I appear to be running ejtserver 1.12. What can I do to get my ejtserver running as expected?
Thanks,
Michael
On Windows, please check the service manager if the "ej-technologies license server" service is started and if not, please start it while ejtserver_console is closed. Executing ejtserver directly has no effect. The log file is located in log/server.log, an error log would be in log/error.log only if an error has occurred. Please contact support#ej-technologies.com to share a log file or error log.

When exporting an Adhoc Report it gives an internal server error

When trying to export an report from the adhoc editor to any format it loads for a while, and then gives an "Internal Server Error".
The report has approx. 15.000 rows. But some are filled with large chunks of text.
Any ideas on how to solve this ?
I also looked at the logs but they aren't showing anything. The only thing i get in the browser is
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
The jasperserver.log and the catalina.out do not show any error stacktraces.
It looks like i'm getting a timeout ?

could not open session as Root

I came across this error that is apparently pretty common among Linux Systems.
"Too many files Open"
In my code I tried to set the Python open file limit to unlimited and it threw an error saying that I could not exceed the system limit.
import resource
try:
resource.setrlimit(resource.RLIMIT_NOFILE, (500,-1))
except Exception as err:
print err
pass
So...I Googled around a bit and followed this tutorial.
However, I set everything to 9999999 which I thought would be as close to unlimited as I could get. Now I cannot open a session as root on that machine. I can't login as root at all and am pretty much stuck. What can I do to get this machine working again? I need to be able to login as root! I am running Centos 6 and it's as up to date as possible.
Did you try turning it off and on?
If this doesn't help you can supply init=/bin/bash as kernel boot parameter to enter a root shell. Or boot from a live cd and revert your changes.
After performing an 'strace su -', I looked for the 'No such file or directory' error. When comparing the output, I found that some of those errors are ok, however, there were other files missing on my problem system that existed on a comparison system. Ultimately, it led me to a faulty line in /etc/pam.d/system-auth-ac referencing an invalid shared object.
So, my recommendation is to go through your /etc/pam.d config files and validate the existence of the shared object libraries, or, look in /var/log/secure and it should give some clue to missing shared objects as well.

Eclipse startup fails in Fedora 12 with the message "JVM terminated. Exit code = -1"

I am using Fedora12.
I have downloaded eclipse-cpp-galileo-SR1-linux-gtk.
I am using Java version "1.6.0_18"
When I start eclipse, I get the following error dialog. What might be the issue?
I used to see that message when there was any error in eclipse.ini.
Try using my eclipse.ini to see if that solve the problem.
In particular, check there is no extra space at the end of each line.
That being said, the error message:
/usr/java/jre1.6.0_18/bin/../lib/i386/client/libjvm.so:
cannot enable executable stack as shared object requires: Permission denied
is probably the real issue here.
Check if this is not related to the fact that most applications are not permitted to run with an executable stack.
See this article.
This forum suggests:
#setsebool -P allow_execstack 1
After reading SELinux Reveals Bugs in other code and SELinux Reveals Bugs in other code., I then tried
#execstack -c /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/libjvm.so
and this seemed to work also.
Update June 2012: la89ondevg mentions in the comments:
In case command above didn't made the changes so one can select to make changes by going to System->Administration->SElinux Management after that select "Boolean" and set Boolean appropriately or simply search "allow_execstack" in filter and set it.
This will work same as above command.

Why doesn't WebBBS work now that I've migrated to a new server?

I've moved a WebBBS board from one server to another. Ever since the board doesn't work.
I'm getting an Apache error whenever I try to access the board. Don't even know where to start the debugging, I'm not a Perl person. The file paths remained the same and there isn't any DB involved.
http://gammonline.com/members/board/
Any ideas?
After a bit of testing I believe that the problem has something to do with the index.cgi which is located in that folder (not getting the error when renaming it).
Thanks,
Roy.
More information about this error may be available in the server error log.
Says it all. You will have to find the error log and look at it.
If you are using CGI, the first step is to check you have given it the right permissions so it is an executable script at all.
chmod 755 index.cgi
This is caused by Apache config errors. Set LogLevel debug and tail -f the error log. It will probably be something to do with .htaccess permission for override, or, it's requiring a module which isn't loaded. The error log will tell you instantly.