Missing "su" in /etc/init.d/nagios

Morten Guldager morten.guldager at gmail.com
Sun Aug 28 16:17:48 CEST 2005


Aloha!

I tried to create a SuSE online_update plugin for my nagios (nagios-2.0b4).
But for some reason the program (/usr/bin/online_update) fails to run.

I modified my /etc/init.d/nagios (line ~120) to do a
(+)  su - $NagiosUser -c "$NagiosBin -d $NagiosCfgFile"
instead of the normal
(-)  $NagiosBin -d $NagiosCfgFile
line.

That helped, and I have not noticed any bad side effects yet.

I guess nagios is not that good at cleaning up after SuSE's init scripts.

Comments?

-- 
/Morten %-)


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list