[Xymon] Xymon forgetting acks at reboot

cleaver at terabithia.org cleaver at terabithia.org
Sat Mar 16 19:14:01 CET 2013


(moved to bottom posting)

> On Mar 16, 2013, at 12:05 AM, me at tdiehl.org 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     me at tdiehl.org           Spamtrap address        me123 at tdiehl.org
>
> 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




More information about the Xymon mailing list