Search found 10 matches

by Philix
Fri Sep 06, 2019 9:50 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

The situation you describe would absolutely cause those issues. If possible, you should allow the nagios server to run continuously. This way you can detect outages or other issues which would occur off-shift for you (even if you don't handle them until coming in the next morning). If that's not po...
by Philix
Fri Sep 06, 2019 9:03 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

Okay, the directory permissions look fine. I haven't reproduced your issue so far - though we're on day 2 so far, and yours hadn't failed by then. When you say I restarted the Nagios process on a regular interval, using the command systemctl restart Nagios do you mean that you have a cron job that ...
by Philix
Wed Sep 04, 2019 12:46 pm
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

Hi Philix , We haven't figured out what the issue is yet, but I've set up several test machines running 4.4.3 and 4.4.5 to see if we can reproduce. There are a couple of other things we can take a look at, though they probably won't lead to resolution. 1. I'm curious to see the permissions for the ...
by Philix
Tue Sep 03, 2019 3:59 pm
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

If you click "Process Info" from the left menu, what does it say in the "Last Log File Rotation:"? Also, what do you get when running the following? date date +%s grep last_log_rotation /usr/local/nagios/var/status.dat Last Log File Rotation: N/A root@debian:/usr/local/nagios/et...
by Philix
Tue Sep 03, 2019 10:20 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

That is strange, it doesn't even seem to have attempted the rotation since 8/25 what is the output of the following ps -ef|grep nagios.cfg root@debian:~# ps -ef|grep nagios.cfg nagios 719 1 0 08:07 ? 00:00:02 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 776 719 0 08:07 ? ...
by Philix
Tue Sep 03, 2019 9:49 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

So this seems to have stopped working on 8/26/2019, does this correspond to an upgrade to 4.4.5? what do you get with the following? grep ROT -4 /usr/local/nagios/var/nagios.log it is a fresh installation root@debian:~# grep ROT -4 /usr/local/nagios/var/nagios.log [1566712800] LOG ROTATION: DAILY [...
by Philix
Tue Sep 03, 2019 9:36 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

scottwilkerson wrote:what is the log_rotation_method set to?

Code: Select all

grep log_rotation_method /usr/local/nagios/etc/nagios.cfg
I would expect

Code: Select all

log_rotation_method=d
root@debian:~# grep log_rotation_method /usr/local/nagios/etc/nagios.cfg
log_rotation_method=d
root@debian:~#
by Philix
Tue Sep 03, 2019 9:27 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

That is weird, you don't have a nagios-08-29-2019-00.log file... Did someone change the log rotation settings in the nagios.cfg? Has Nagios been running as I don't see any newer than nagios-08-25-2019-00.log when i was not getting the desired results, i was playing with the nagios.cfg file and i am...
by Philix
Tue Sep 03, 2019 9:11 am
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Re: Cannot open log file '/usr/local/nagios/var/archives/nag

What are the permissions of the files in this directory? ls -al /usr/local/nagios/var/archives/ root@debian:~# ls -al /usr/local/nagios/var/archives/ total 16 drwxrwxr-x 2 nagios nagios 4096 Aug 24 23:59 . drwxr-xr-x 5 nagios nagios 4096 Sep 3 08:08 .. -rw-r--r-- 1 nagios nagios 2939 Aug 23 23:35 n...
by Philix
Thu Aug 29, 2019 4:55 pm
Forum: Open Source Nagios Projects
Topic: Cannot open log file '/usr/local/nagios/var/archives/nagios
Replies: 19
Views: 6532

Cannot open log file '/usr/local/nagios/var/archives/nagios

Hi everyone! ON console, when I try to see Service Alert History for whatever service, I can see only events for present log file When I try to browse on console view for previous log history, Notification, Eventlogs the following error appears! Error: Cannot open log file '/usr/local/nagios/var/arc...