File formats between 1.x and 2.x

Andreas Ericsson ae at op5.se
Fri Nov 10 00:17:15 CET 2006


Andy Shellam (Mailing Lists) wrote:
> Hi,
> 
> The following is a file-list taken from a Nagios installation's ./var 
> directory - I believe it is Nagios 1.x - can someone clarify?
> 
> drwxrwxr-x 2 nagios nagios     4096 Nov  9 00:00 archives
> -rwxrwxr-x 1 nagios nagios      238 Nov  3 17:56 comment.log
> -rwxrwxr-x 1 nagios nagios      239 Nov  3 17:56 downtime.log
> -rwxrwxr-x 1 nagios nagios     1574 Nov  9 19:46 host-perfdata.dat
> -rw-r--r-- 1 nagios nagios        6 Nov  9 19:09 nagios.lock
> -rwxrwxr-x 1 nagios nagios   629203 Nov  9 19:45 nagios.log
> -rwxrwxr-x 1 nagios nagios   169090 Nov  9 19:09 objects.cache
> -rwxrwxr-x 1 nagios nagios        0 Nov  9 19:09 retention.dat
> drwxrwxr-x 2 nagios nagiocmd   4096 Nov  9 19:09 rw
> -rwxrwxr-x 1 nagios nagios     6302 Nov  9 19:46 service-perfdata.dat
> -rw-rw-r-- 1 nagios nagios   227505 Nov  9 19:46 status.log
> -rw------- 1 nagios nagios   239027 Nov  9 19:09 status.sav
> 
> In comparison to my 2.5 installations ./var directory:
> 
> -rw-rw-r-- 1 nagios nagios   500 Nov  8 22:45 comments.dat
> -rw-rw-r-- 1 nagios nagios   239 Nov  8 22:36 downtime.dat
> -rw-r--r-- 1 nagios nagios     5 Nov  8 22:36 nagios.lock
> -rw-rw-r-- 1 nagios nagios     0 Nov  8 22:36 nagios.log
> -rw-r--r-- 1 nagios nagios 45383 Nov  8 22:36 objects.cache
> -rw------- 1 nagios nagios 63927 Nov  9 21:36 retention.dat
> drwxrws--- 2 nagios nagcmd  4096 Nov  8 22:36 rw
> -rw-rw-r-- 1 nagios nagios 60676 Nov  9 21:59 status.dat
> 
> In which version were the ".log" files dropped in favour of ".dat"?

1.2 -> 2.0 transition. As is proper, backward-incompatible changes only 
occur on a "major-version" upgrade. The reason, I think, was that the 
.log-suffix is usually preserved for files which are only appended to. 
This has never been the case for any of 
{downtime,comments,status,retention}.{log,dat}

> Are the .log files the same format as the current .dat files?
> 

Nopes. If I were you I'd drop 1.x support from NLG though. It's, imo, 
not worth the trouble to cater to an already small audience that will 
only diminish in numbers.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
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
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list