Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
malgashe120
Posts: 2 Joined: Mon Mar 05, 2012 8:28 am
Post
by malgashe120 » Mon Mar 05, 2012 9:47 am
Hello,
I am a problem in "Current Event Log" of Nagios Core:
Error: Unable to rename file '/usr/local/nagios/var/nagios.log ' to '/usr/local/nagios/var/archives/nagios-03-05-2012-14.log': Permission denied
and sometimes, also:
Error: Unable to rename file '/usr/local/nagios/var/nagios.debug ' to '/usr/local/nagios/var/nagios.debug.old': No such file or directory
Even if
-rw-rw-rw- 1 nagios nagios 3590646 Mar 5 14:27 /usr/local/nagios/var/nagios.log
drw-rw-rw- 2 nagios nagios 49152 Jan 10 13:00 /usr/local/nagios/var/archives
and
-rw-rw-r-- 1 nagios nagios 472 Mar 5 14:45 /usr/local/nagios/var/nagios.debug
Help me please.
Last edited by
malgashe120 on Tue Mar 06, 2012 3:05 am, edited 1 time in total.
agriffin
Posts: 876 Joined: Mon May 09, 2011 9:36 am
Post
by agriffin » Mon Mar 05, 2012 1:03 pm
You need executable permissions on your directory. Try this:
Code: Select all
# chmod ug+x /usr/local/nagios/var/archives
jchristy16
Posts: 3 Joined: Wed Sep 09, 2015 1:29 am
Post
by jchristy16 » Wed Sep 09, 2015 1:42 am
I am having a similar issue. The following error is showing in nagios.log:
Error: Unable to rename file '/var/log/nagios/nagios.debug' to '/var/log/nagios/nagios.debug.old': No such file or directory
The permissions on the 2 debug files are:
-rw-rw-r-- 1 nagios nagios 2309 Sep 8 23:39 nagios.debug
-rw-rw-r-- 1 nagios nagios 1000050 Sep 8 23:39 nagios.debug.old
I am running running nagios v3.5.1-1 on RHEL 6.7.