Xymon Mailing List Archive search

Xymon forgetting acks at reboot

list Japheth Cleaver
Sat, 16 Mar 2013 18:14:01 -0000 (UTC)
Message-Id: <user-e4af20a62ebc@xymon.invalid>

(moved to bottom posting)
On Mar 16, 2013, at 12:05 AM, user-dcee455aaab0@xymon.invalid wrote:
Hi,

I am running the 4.3.10 rpms from terabithia.org on a Centos 6 machine.

Every time I reboot the machine xymon forgets all of the services that
are either
acked or disabled.

Is this expected behavior and if not how do I go about troubleshooting
it?

Regards,

Tom     user-dcee455aaab0@xymon.invalid           Spamtrap address        user-4d123f9c385b@xymon.invalid
Firstly, where is the ack directory? If it is in /tmp that would explain
them disappearing.


Steve
Actually, it might be simpler than that... :/

Long story short, there's a $XYMONRUNDIR patched in pointing to
(/var/run/xymon/) to differentiate certain daemon-controlled files for
SELinux purposes. Sockets and pid files are fine there, but checkpoint
files shouldn't be if they're expected to survive a reboot/crash (which
they are). xymond state will be recreated relatively soon, but the alert
checkpoint is gone and would be missed. Kind of surprised I hadn't caught
this, or it hadn't been reported by now...


Quick fix: Double check the --checkpoint-file and --restart options for
[xymond] and [alert] in /etc/xymon/tasks.cfg -- change them to point to
$XYMONTMP (default: /var/lib/xymon/tmp/ in the RPM) instead of
$XYMONRUNDIR.


This is almost certainly a packaging issue; I'll post a note on this on
the site and get a new RPM out soon.


Thanks,

-jc