Summary: | net-analyzer/nagios init.d script reload fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Richard Scott <gentoo.bugs> |
Component: | New packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | eldad, ramereth |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Other | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 172480 |
Description
Richard Scott
2006-11-07 06:14:08 UTC
A nicer way of doing this is as follows: reload() { checkconfig || return 1 ebegin "Reloading configuration" [ -f /var/nagios/nagios.lock ] && kill -HUP `cat /var/nagios/nagios.lock` &>/dev/null eend $? } This will also display a status output of [!!] when you've tried to reload the config when Nagios isn't running! ok, this one is confusing me now as its started to fail to reload the config :-( in /var/nagios/nagios.log we have the following last entry: [1162910170] Caught SIGHUP, restarting... It seems that a kill -HUP kills the daemon rather than restarting it. I've tried executing the daemon form the command line and still the same thing happens: # /usr/nagios/bin/nagios -d /etc/nagios/nagios.cfg # kill -HUP `cat /var/nagios/nagios.lock` when I then look in the process list, there are no nagios items listed :-( which exact version of nagios are using? the masked 2.5 version. Has become a bit stale, is this still an issue for you? Please reopen if so |