Nagios Log Management Tips?
Tom Nail
tom.nail at amd.com
Thu Sep 20 22:46:30 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rogelio Bastardo wrote:
> Anyone have any tips for dealing with Nagios logs?
>
> Things are getting a little crazy, and I haven't even been logging very much!
>
> e.g.
>
> [root at nagios-server run]# find / *nagios* -type f -size +1000000k
> -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
> /var/log/nagios/archives/nagios-08-14-2007-00.log: 2.3G
> /var/log/nagios/archives/nagios-08-13-2007-00.log: 3.4G
> /var/log/nagios/archives/nagios-08-12-2007-00.log: 2.6G
> /var/log/messages.4: 3.5G
> [root at nagios-server run]#
>
gzip comes to mind, since this is ASCII data it should compress nicely.
Also, there are several log rotation scripts out there, including the
"logrotate" utility supplied in RedHat and other Linux distros. Try "man
logrotate' on one of them for more information.
Cheers,
- -=Tom Nail
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG8twm1zsLRjt/NQ0RAvKOAJ4mxJO5nWMULVHDJ/+7JtybkM8BzQCbBWXE
DpaU9AZVLETFgS31QRSAXj0=
=auBZ
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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