Check_Oracle_health

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Hendrik
Posts: 14
Joined: Wed Jan 26, 2011 2:18 am

Check_Oracle_health

Post 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?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Check_Oracle_health

Post 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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Hendrik
Posts: 14
Joined: Wed Jan 26, 2011 2:18 am

Re: Check_Oracle_health

Post 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
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Check_Oracle_health

Post by tonyyarusso »

Excellent, you're welcome!
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked