The initscript shipped currently has two issues:
1 - it doesnt set the PID on /var/run/nagios.pid, thus being unable to properly
stop the daemon
2 - it tries to run commands as the nagios user, through usage of "su - nagios
-c ". Since the rpm creates the user with the nologin shell, the message "This
account is currently not available." is shown.
The attached patch replaces the su call with similar commands that dont require
the usage of the nagios user account and the necessary call to set the pid on
Created attachment 128742 [details]
Patch for nagios initscript
Thanks for the patch, I was unable to recreate this problem. After started,
nagios will exit properly when issuing a service nagios stop. Are you able to
create this every time? Also what version of Fedora are you running?
That's interesting. For me, on my FC5 install (fully updated), I always get the
Since I had already replaced the nagios initscript with my patched version , I
extracted the files from the rpm and tried again. Attached is the full log of
the test with the original initscript.
Created attachment 128823 [details]
Test of the original initscript
I couldn't completely recreate this (I did get the /sbin/nologin warning). The
patch was very resonable, I've included it. Nagios has been built and it should
be released to the general population soon.