nagios.debug

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.
Locked
giadirks
Posts: 1
Joined: Fri May 03, 2019 2:05 pm

nagios.debug

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nagios.debug

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nagios.debug

Post 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!
Locked