Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios33
> suse.de-nagios
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File suse.de-nagios of Package nagios33 (Revision 2)
Currently displaying revision
2
,
show latest
#!/bin/sh # # Compress old nagios logfiles in /var/log/nagios/archives/ # once a week, if sysconfig variable is set to true # if [ -r /etc/sysconfig/nagios ]; then . /etc/sysconfig/nagios else echo "/etc/sysconfig/nagios not found or not readable." exit 1 fi if [ x"$NAGIOS_COMPRESS_LOGFILES" = x"true" ]; then LOGS=$(echo /var/log/nagios/archives/*.log) for f in $LOGS ; do if [ -e $f ] ; then /usr/bin/bzip2 /var/log/nagios/archives/*.log break fi done fi