nagios init.d patch to set site-specific environment variables

Vonnahme, Nathan nathan.vonnahme at bannerhealth.com
Thu Jul 13 22:43:38 CEST 2006


Hello,

I had trouble with the contrib/check_oracle_instance.pl plugin not
picking up my ORACLE_HOME and LD_LIBRARY_PATH environment variables, so
I patched the nagios daemon start/stop script in /etc/rc.d/init.d to
read environment variables from a site-specific file named 'nagios_env'
in the same directory as the .cfg files.

I think the attached patch will fix Makefile.in and daemon-init.in, and
the attached sample nagios_env file can go in sample-config.  

One thing I can't figure out is how to make 'make install-config' not
overwrite the nagios_env file if you already have one; I think the whole
point would be to not overwrite it when you upgrade etc.

Comments?  Feedback?

--
nathan vonnahme, system engineer at fairbanks memorial hospital
   1650 cowles street, fairbanks alaska 99701.  907-458-5464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios_env.diffu
Type: application/octet-stream
Size: 2252 bytes
Desc: nagios_env.diffu
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060713/f6c90fc1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios_env
Type: application/octet-stream
Size: 299 bytes
Desc: nagios_env
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060713/f6c90fc1/attachment-0001.obj>
-------------- next part --------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list