[Xymon] RPMs - logrotate - duplicate entry

John Horne john.horne at plymouth.ac.uk
Tue May 7 01:37:29 CEST 2019


Hi,

I'm just throwing this one out there as I haven't been able to think about it
too much. With the Terabithia RPMs, on our Xymon server I have installed both
the 'xymon' and 'xymon-client' packages. The problem is that they both install
an '/etc/logrotate.d' file - called 'xymon' and 'xymon-client' respectively.
Both files are exactly the same.

However, when logrotate runs it actually throws up an error because it is
trying to rotate the same file twice (because there are two logrotate files
which reference it). This error is emailed to me:

====
Subject: Anacron job 'cron.daily' on <server name>

/etc/cron.daily/logrotate:

error: xymon-client:4 duplicate log entry for /var/log/xymon/acknowledge.log
====

My thoughts about this have only got as far as thinking that perhaps when the
packages are installed, a pre or post installation check for the existence of
both logrotate files would cause one of them to be deleted. (Since both files
are exactly the same there is no need to install them both.) The downside would
be if, perhaps, we later removed the 'xymon' package (maybe moved it to another
server), we might then be left with no logrotate file on the server.

The 'acknowledge.log' file exists but is empty. Not sure if that is relevant.



John.

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>

This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.


More information about the Xymon mailing list