I’m running Nagios 3.0.3 on Scientific Linux 5.2
I have a problem when the server running nagios is rebooted, the environment variables that nagios has when executing plugins does not load any of my env variables (ie JAVA_HOME, CATALINA_HOME), breaking several of my plugins; However, if i restart nagios from the command line as root using “/etc/init.d/nagios restart” all my environment variables get loaded properly and the plugins that try to use them work normally.
Could someone please explain why this is happening and how to fix it so my environment variables get loaded properly after a reboot?