Nagios will never take the log files into account to build status.dat. The file is updated only when a check is run, and it saves only the state of the last check it performed.
If it's really critical to you that the new system tell you it thinks the box has been up for longer than that, you're probably going to have to hand-edit the status.dat file, or write a script to convert your old netsaint status file (or at least insert the dats into the right places in the status.dat file). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cormac O' Cianain Sent: Monday, May 08, 2006 7:49 AM To: [email protected] Subject: [Nagios-users] Log files Hi There, I have made a clean installation made of nagios 2.2. In my /usr/local/nagios/var/ there are 2 directories, archives and rw. I have copied the netsaint-*.log files over to /usr/local/nagios/var/archives/ in the nagios-*.log format. When I run /etc/init.d/nagios start the folowing files are created. comments.dat downtime.dat nagios.lock nagios.log objects.cache retention.dat status.dat >From the Web GUI, everything is in pending status and the duration states something like 0h0m23s Which variable am I missing which get nagios to take the nagios-*.log files into consideration when creating status.dat? It should report that these machines have been up for years. I think the correct permissions have been applied to the log files because they can be read by the event log tab using the GUI. Thanks again, Cormac __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] 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 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Nagios-users mailing list [email protected] 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
