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
Compressing Nagios archives
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Compressing Nagios archives
Can you tell us what specific log files you are talking about.
Also, what reports are you talking about?
Also, what reports are you talking about?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: Compressing Nagios archives
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Compressing Nagios archives
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: Compressing Nagios archives
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
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).I'll point the archive directory to a NFS mount partition on the Nagios machine. Will that affect pulling any reports then.?
Be sure to check out our Knowledgebase for helpful articles and solutions!