Follow via:
RSS
Email Alert
Question
0 Votes
+ -

Does Nagios compress logs files?

Web Interface of Nagios shows me at Event Log Page:

Error: Could not open log file '/var/log/nagios/archives/nagios-09-01-2012-00.log' for reading!

It is because it has name "nagios-09-01-2012-00.log.bz2"

Something compress it every 5 days. But logrotate doesn't do this, and I haven't cron job at all. And I have not found is able nagios to do this.
Tags: linux, networks
Updated - 3rd Sep

Answers (1)

1 Vote
+ -
Well BZ2 is a zip file format
/etc/cron.weekly/nagios should just do this once a week...
4th Sep

Replies

Thanks!! I have found it!!
Before i use "crontab -l -u nagios" and it didn't show me any job.
Is there command to show all jobs, or I have to go to every directory of cron and look for?
Vladislav86 5th Sep
Answer the question
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.