We had this problem aswell at our site.
What seems to be happening is logrotate makes a new /var/log/messages file and changes the permissions on the file. What we did to fix this was:
1. Make a new goup and add the hobbit/bb user to the grp.
2. Edit /etc/logrotate.d/syslog and add/edit the following line
create 640 root "name of group"
Then hobbit/bb should be able to read the file.
Kveðja / With regards
Björgvin Þorgrímsson Kerfisstjóri Unix - Þjónusta fyrirtækjasviðs
Sími / Tel. +XXX XXX XXXX
Fax +XXX XXX XXXX
Ármúli 31 * 108 Reykjavík * Iceland * http://www.siminn.is <http://www.siminn.is/>
Síminn auðgar lífið
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: 16. maí 2008 06:56
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] /var/log/messages permission denied
chgrp HOBBITUSER /var/log/messages
chmod g+r /var/log/messages
Taken from: http://en.wikibooks.org/wiki/System_Monitoring_with_Hobbit/Administration_Guide/Compiling_on_CentOS
On Fri, May 16, 2008 at 2:51 AM, Gavin Leonard <user-d65663809eb4@xymon.invalid> wrote:
When I look at my messages status on the Main BB page I only see this? Do I need to change the perms on the /var/log/messages folder?
No entries in /var/log/messages <http://misery.pgx.local/hobbit-cgi/bb-hostsvc.sh?CLIENT=pbx-01&SECTION=msgs:/var/log/messages> Full log /var/log/messages <http://misery.pgx.local/hobbit-cgi/bb-hostsvc.sh?CLIENT=pbx-01&SECTION=msgs:/var/log/messages> Cannot open logfile /var/log/messages : Permission denied
Gavin Leonard
Director, Systems-Network Engineering
T
XXX-XXX-XXXX
F
XXX-XXX-XXXX
E
user-d65663809eb4@xymon.invalid <mailto:user-d65663809eb4@xymon.invalid>
Research | Marketing | Sales Generation
www.progrexion.com <http://www.progrexion.com/>
This email and its contents are confidential. If you are not the intended recipient, delete this email and do not use or disclose the information within this email or its attachments. Thank you.
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer