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?
Check_Oracle_health
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Check_Oracle_health
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
Awesome, exactly what I was looking for.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.
Thanks
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Check_Oracle_health
Excellent, you're welcome!