Page 1 of 1

nagios.debug

Posted: Fri May 03, 2019 2:20 pm
by giadirks
I am using Nagios Core 3.5.1

In my Event logs, I see the following message -


Error: Unable to rename file '/usr/local/nagios/var/nagios.debug' to '/usr/local/nagios/var/nagios.debug.old': No such file or directory

-rw-rw-r-- 1 nagios nagios 592920 May 3 13:55 nagios.debug
-rw-rw-r-- 1 nagios nagios 1000025 May 3 13:55 nagios.debug.old

Permissions on the archive folder
drwxrwxr-x 2 nagios nagios 230 May 3 00:00 archives

Permissions on the /usr/local/Nagios/var folder
drwxrwxr-x 5 nagios nagios 255 May 3 14:19 var


Any assistance would be greatly appreciated.

Re: nagios.debug

Posted: Fri May 03, 2019 2:33 pm
by npolovenko
Hello, @giadirks. Is there a particular reason you have debugging on? I'd just change debug_level to 0 in the /usr/local/nagios/etc/nagios.cfg, restart nagios and delete both debug files.
rm -rf /usr/local/nagios/var/nagios.debug
rm -rf /usr/local/nagios/var/nagios.debug.old

Re: nagios.debug

Posted: Fri May 03, 2019 2:36 pm
by ssax
Please post the output of these commands:
- Point adjust the commands as necessary to make them work

Code: Select all

chage -l nagios
grep nag /etc/group
grep "User \|Group " /etc/httpd/conf/httpd.conf
grep "user\|group\|lock" /usr/local/nagios/etc/nagios.cfg
ps aux | grep nagios.cfg
ls -l /var/run
ls -l /var/run/nagios
Thank you!