Starting Nagios

Gert Lindstrom gert.lindstrom at brevik.nu
Wed Oct 15 08:34:42 CEST 2003


Hello.

I have a strange "problem", let start with that im not a Linux guru, quite a newbie.

We have been running Nagios for almost a year now everything working fine. Yesterday I noticed a strange thing.
After developing a java pluging on a test machine and running it there for a week or so we decided to move to our production machine. We installed all the java things and copied the plugins. It did not work !!!

After a couple of hours I did get it to work.

If I start Nagios with "service nagios start" it doesnt work.
if I start with /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg it works.

I looked at the start script under /etc/rc.d/init.d and noticed that it do "su -l nagios".
So I tryed to do it manually;
su -l nagios
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 

It still works.


What could be the problem when executing the start script under /etc/rc.d/init.d ?


Regards
Gert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031015/dd851b17/attachment.html>


More information about the Users mailing list