Page 1 of 1

Check_Oracle_health

Posted: Tue May 10, 2011 10:33 pm
by Hendrik
Hi Guys

Whenever I apply configuration from the core config, my oracle checks fail due to env issues, all env are set for the nagios user, once i go to cli and restart nagios the checks work fine. Where can I add the env to ensure they get set whenever I click the apply configuration button?

Re: Check_Oracle_health

Posted: Wed May 11, 2011 2:44 pm
by tonyyarusso
The script that runs when you click "Apply Configuration" is /usr/local/nagiosxi/scripts/reconfigure_nagios.sh . I'm not sure I entirely understand your current setup, but if you're saying that it works if you log in to a console as the nagios user and restart the service it work, then perhaps you want to add a sourcing of your profile to that script.

Re: Check_Oracle_health

Posted: Wed May 11, 2011 9:56 pm
by Hendrik
tonyyarusso wrote:The script that runs when you click "Apply Configuration" is /usr/local/nagiosxi/scripts/reconfigure_nagios.sh . I'm not sure I entirely understand your current setup, but if you're saying that it works if you log in to a console as the nagios user and restart the service it work, then perhaps you want to add a sourcing of your profile to that script.
Awesome, exactly what I was looking for.

Thanks

Re: Check_Oracle_health

Posted: Thu May 12, 2011 9:23 am
by tonyyarusso
Excellent, you're welcome!