Nagios init file version 2.0rc2

Andreaco andreaco at email.it
Wed Feb 8 09:07:19 CET 2006


Hi,
I had some troubles with the init scrip /etc/init.d/nagios in nagios version
2
'cos when the nagios application's started its checks ignore the
/home/nagios/.bashrc and /home/nagios/.netrc

I updated from nagios 1.3 to 2.0rc2 and the new init script contain the
# 2003-01-11 Ethan Galstad <nagios at nagios.org>
#  - Updated su syntax (Gary Miller)
it causes the my problem.

The solution is changing in the start procedure the line :
$NagiosBin -d $NagiosCfgFile

with the line:
su -l $NagiosUser -c "$NagiosBin -d $NagiosCfgFile"

Bye
Andrea 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Meetic, il primo sito di incontri in Europa con milioni di single iscritti.
Iscriviti, consulta i profili e chatta con le persone in linea.
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4050&d=20060208




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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