Discussion:
[Nagios-users] logs dissapering
Jeff McKeon
2003-07-21 12:08:18 UTC
Permalink
Nagios ver 1.0 Nov 24, 2002

I've got some disturbing behavior, my nagios logs are empty for days at
a time, all of them, Event, Notifications, alert history etc. They seem
to delete whenever the day rolls over... I can see all of today's
events but not the past 3-4 days. the logs are empty, not even the
hourly "auto save of retension date completed successfully"

Any ideas as to what is going on here or where I should look?

thanks,
--
Jeff McKeon <***@inpro.net>
Claus Rosenberger
2003-07-21 12:46:27 UTC
Permalink
Perhaps the rotation of log failed. Check the permissions of the archive
directory.

Claus
Post by Jeff McKeon
Nagios ver 1.0 Nov 24, 2002
I've got some disturbing behavior, my nagios logs are empty for days at
a time, all of them, Event, Notifications, alert history etc. They seem
to delete whenever the day rolls over... I can see all of today's
events but not the past 3-4 days. the logs are empty, not even the
hourly "auto save of retension date completed successfully"
Any ideas as to what is going on here or where I should look?
thanks,
--
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Jeff McKeon
2003-07-21 19:33:28 UTC
Permalink
Permissions are fine, disk space is plentiful.. Is this perhaps a bug
that is addressed in ver 1.1?
Post by Claus Rosenberger
Perhaps the rotation of log failed. Check the permissions of the archive
directory.
Claus
Post by Jeff McKeon
Nagios ver 1.0 Nov 24, 2002
I've got some disturbing behavior, my nagios logs are empty for days at
a time, all of them, Event, Notifications, alert history etc. They seem
to delete whenever the day rolls over... I can see all of today's
events but not the past 3-4 days. the logs are empty, not even the
hourly "auto save of retension date completed successfully"
Any ideas as to what is going on here or where I should look?
thanks,
--
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Jeff McKeon <***@inpro.net>
Jeff McKeon
2003-07-23 12:39:59 UTC
Permalink
Does anyone have any info on this???
Post by Jeff McKeon
Permissions are fine, disk space is plentiful.. Is this perhaps a bug
that is addressed in ver 1.1?
Post by Claus Rosenberger
Perhaps the rotation of log failed. Check the permissions of the archive
directory.
Claus
Post by Jeff McKeon
Nagios ver 1.0 Nov 24, 2002
I've got some disturbing behavior, my nagios logs are empty for days at
a time, all of them, Event, Notifications, alert history etc. They seem
to delete whenever the day rolls over... I can see all of today's
events but not the past 3-4 days. the logs are empty, not even the
hourly "auto save of retension date completed successfully"
Any ideas as to what is going on here or where I should look?
thanks,
--
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Jeff McKeon <***@inpro.net>
Jasmine
2003-07-23 23:44:30 UTC
Permalink
Post by Jeff McKeon
Does anyone have any info on this???
hmm interesting problem..
Did you check to make sure that this is set to 1 in nagios.cfg?

retain_state_information=1

Maybe you would like to post your nagios.cfg together with the permissions of
all nagios log files.

Jasmine
Jeff McKeon
2003-07-24 11:11:02 UTC
Permalink
/usr/local/nagios/var/

[***@MIS01TC07927 var]# ls -l
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00 archives
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21 comment.log
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21 downtime.log
-rw-r--r-- 1 root root 4 Jul 24 12:21 nagios.lock
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26 nagios.log
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07 status.log
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21 status.sav

/usr/local/nagios/var/archives/

--snip--

-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log

--snip--
Jasmine
2003-07-25 11:49:04 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Jeff McKeon
/usr/local/nagios/var/
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00 archives
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21 comment.log
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21 downtime.log
-rw-r--r-- 1 root root 4 Jul 24 12:21 nagios.lock
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26 nagios.log
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07 status.log
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21 status.sav
/usr/local/nagios/var/archives/
--snip--
-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log
--snip--
Jeff McKeon
2003-07-30 12:34:09 UTC
Permalink
All reports/histories are blank on the same days..
Post by Jasmine
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Jeff McKeon
/usr/local/nagios/var/
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00 archives
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21 comment.log
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21 downtime.log
-rw-r--r-- 1 root root 4 Jul 24 12:21 nagios.lock
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26 nagios.log
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07 status.log
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21 status.sav
/usr/local/nagios/var/archives/
--snip--
-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log
--snip--
Marc Powell
2003-07-21 13:27:08 UTC
Permalink
How is disk space on that machine. Could you have been low?

--
Marc
-----Original Message-----
Sent: Monday, July 21, 2003 9:07 AM
To: Nagios List
Nagios ver 1.0 Nov 24, 2002
I've got some disturbing behavior, my nagios logs are empty for days
at
a time, all of them, Event, Notifications, alert history etc. They
seem
to delete whenever the day rolls over... I can see all of today's
events but not the past 3-4 days. the logs are empty, not even the
hourly "auto save of retension date completed successfully"
Any ideas as to what is going on here or where I should look?
thanks,
--
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single
machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at
the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Marc Powell
2003-07-30 12:42:11 UTC
Permalink
This is the same problem I have been experiencing. If you'll notice,
some logs end in -23.log. If you rename those to -00.log, the reporting
works fine again. The FAQ indicates that it's likely a result of the
time on the machine changing but that's not happening in my case.

--
Marc
-----Original Message-----
Sent: Wednesday, July 30, 2003 9:33 AM
To: Jasmine
Cc: Nagios List
All reports/histories are blank on the same days..
Post by Jasmine
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Jeff McKeon
/usr/local/nagios/var/
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00 archives
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21
comment.log
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21
downtime.log
Post by Jasmine
Post by Jeff McKeon
-rw-r--r-- 1 root root 4 Jul 24 12:21
nagios.lock
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26 nagios.log
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07 status.log
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21 status.sav
/usr/local/nagios/var/archives/
--snip--
-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log
--snip--
Jeff McKeon
2003-07-31 13:46:03 UTC
Permalink
Interesting, what version of Nagios are you running...
Post by Marc Powell
This is the same problem I have been experiencing. If you'll notice,
some logs end in -23.log. If you rename those to -00.log, the reporting
works fine again. The FAQ indicates that it's likely a result of the
time on the machine changing but that's not happening in my case.
--
Marc
-----Original Message-----
Sent: Wednesday, July 30, 2003 9:33 AM
To: Jasmine
Cc: Nagios List
All reports/histories are blank on the same days..
Post by Jasmine
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Jeff McKeon
/usr/local/nagios/var/
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00 archives
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21
comment.log
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21
downtime.log
Post by Jasmine
Post by Jeff McKeon
-rw-r--r-- 1 root root 4 Jul 24 12:21
nagios.lock
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26 nagios.log
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07 status.log
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21 status.sav
/usr/local/nagios/var/archives/
--snip--
-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log
--snip--
Jeff McKeon
2003-07-31 16:37:03 UTC
Permalink
I renamed any logs ending in -23.log to -00.log and something weird has
now happened...

when you go into any of the history files it will say

log file navigation
fri jul 18 00:00:00 GMT 2003
to
Sat jul 19 00:00:00 GMT 2003

But all the dates displayed in the log are from Jul 19 00:00:00 GMT or
later... The logs appear to have shifted a day...
Post by Marc Powell
This is the same problem I have been experiencing. If you'll notice,
some logs end in -23.log. If you rename those to -00.log, the reporting
works fine again. The FAQ indicates that it's likely a result of the
time on the machine changing but that's not happening in my case.
--
Marc
-----Original Message-----
Sent: Wednesday, July 30, 2003 9:33 AM
To: Jasmine
Cc: Nagios List
All reports/histories are blank on the same days..
Post by Jasmine
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Jeff McKeon
/usr/local/nagios/var/
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00 archives
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21
comment.log
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21
downtime.log
Post by Jasmine
Post by Jeff McKeon
-rw-r--r-- 1 root root 4 Jul 24 12:21
nagios.lock
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26 nagios.log
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07 status.log
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21 status.sav
/usr/local/nagios/var/archives/
--snip--
-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log
--snip--
Marc Powell
2003-08-01 13:21:18 UTC
Permalink
1.0b3 but I haven't seen anything that appears to relate to this changed
in CVS...

marc
-----Original Message-----
Sent: Thursday, July 31, 2003 10:39 AM
To: Marc Powell
Cc: Jasmine; Nagios List
Interesting, what version of Nagios are you running...
Post by Marc Powell
This is the same problem I have been experiencing. If you'll notice,
some logs end in -23.log. If you rename those to -00.log, the
reporting
Post by Marc Powell
works fine again. The FAQ indicates that it's likely a result of the
time on the machine changing but that's not happening in my case.
--
Marc
-----Original Message-----
Sent: Wednesday, July 30, 2003 9:33 AM
To: Jasmine
Cc: Nagios List
All reports/histories are blank on the same days..
Post by Jasmine
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Jeff McKeon
/usr/local/nagios/var/
total 60
drwxrwxr-x 2 nagios nagios 4096 Jul 24 00:00
archives
Post by Marc Powell
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 708 Jul 24 12:21
comment.log
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 0 Jul 24 12:21
downtime.log
Post by Jasmine
Post by Jeff McKeon
-rw-r--r-- 1 root root 4 Jul 24 12:21
nagios.lock
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 12494 Jul 24 12:26
nagios.log
Post by Marc Powell
Post by Jasmine
Post by Jeff McKeon
drwxrws--- 2 nagios nagiocmd 4096 Jul 24 12:21 rw
-rw-rw-r-- 1 nagios nagios 15782 Jul 24 13:07
status.log
Post by Marc Powell
Post by Jasmine
Post by Jeff McKeon
-rw-rw-r-- 1 nagios nagios 12034 Jul 24 12:21
status.sav
Post by Marc Powell
Post by Jasmine
Post by Jeff McKeon
/usr/local/nagios/var/archives/
--snip--
-rw-rw-r-- 1 nagios nagios 33 Jul 19 23:59
nagios-07-20-2003-00.log
-rw-rw-r-- 1 nagios nagios 5291 Jul 20 23:44
nagios-07-20-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 20 23:59
nagios-07-21-2003-00.log
-rw-rw-r-- 1 nagios nagios 49941 Jul 21 23:44
nagios-07-22-2003-00.log
-rw-rw-r-- 1 nagios nagios 25519 Jul 22 23:39
nagios-07-22-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 22 23:59
nagios-07-23-2003-00.log
-rw-rw-r-- 1 nagios nagios 5143 Jul 23 23:39
nagios-07-23-2003-23.log
-rw-rw-r-- 1 nagios nagios 33 Jul 23 23:59
nagios-07-24-2003-00.log
--snip--
Loading...