Page 1 of 1

Compressing Nagios archives

Posted: Fri Sep 19, 2014 4:14 am
by anil_kumarv
Is it possible to compress the Nagios archives logs. If we do, will we be able to view pull up old reports from GUI if archives are zipped.

-- Anil

Re: Compressing Nagios archives

Posted: Fri Sep 19, 2014 11:42 am
by Box293
Can you tell us what specific log files you are talking about.

Also, what reports are you talking about?

Re: Compressing Nagios archives

Posted: Mon Sep 22, 2014 2:11 am
by anil_kumarv
I was referring to old nagios logs that are saved under /usr/local/nagios/var/archives

grep archives /usr/local/nagios/etc/nagios.cfg
log_archive_path=/usr/local/nagios/var/archives

Reports from GUI like : Notifications for the past month or Availability report for a specific hostgroup for the past 2 weeks or a month. Or any report options available under "Reports" section in XI GUI.

I'm looking to achieve some thing like this :

http://monitoringtt.blogspot.in/2011/12 ... -logs.html

Probably not deleting the logs, but just zipping them.

Re: Compressing Nagios archives

Posted: Mon Sep 22, 2014 11:21 am
by sreinhardt
Unfortunately, while you certainly can do that, it would not result in a file format that core would be able to read and use for reporting, as core does not support extracting files. Have you considered moving them to a shared volume or something else stored off disk for longer term storage?

Re: Compressing Nagios archives

Posted: Mon Sep 22, 2014 11:36 am
by anil_kumarv
If core cant read that format, then it is not of any good use to us. I'll point the archive directory to a NFS mount partition on the Nagios machine. Will that affect pulling any reports then.?

Re: Compressing Nagios archives

Posted: Mon Sep 22, 2014 1:00 pm
by lmiltchev
I'll point the archive directory to a NFS mount partition on the Nagios machine. Will that affect pulling any reports then.?
You can probably do this but if you have issues with the I/O on the NFS some of the reports may take a very long time to run (or even time out).