Truncating the Nagios logs
Bertrand DELEPINE
bertrand at delepine.info
Thu Nov 13 09:23:02 CET 2003
On Thu, 13 Nov 2003 08:52:23 +0100
BOLLENGIER Eric <ebollengier at sigma.fr> wrote:
Hi
You can rotate the serviceperf.log.
I wrote this script, thai launch every day, at 11:59pm :
#!/bin/sh
DATE=`date +%d%m%Y`
mv /var/log/nagios/process_data.log /var/log/nagios/archives/process_data_$DATE.log
echo "`date +%c` [NAGIOS] Rotation du fichier nagios_perdata.log" >> /var/log/messages
> Hi,
>
> Yes you can, if you doent use it. You can do something like
> [root at plume nagios]# > serviceperf.log
>
> or
> cat > serviceperf.log
> ^D
>
> Hope it's help
> Regards
>
>
> On Wed, 2003-11-12 at 19:36, Matthew.Quinney at hollandandholland.com
> wrote:
> > Hello all !!
> >
> > Is it possible to truncate the serviceperf.log ? Our is almost 2GB. I
> > have looked through the docs and the FAQ but to no avail.
> >
> > Any help would be great,
> >
> > Matthew
>
--
Bertrand DELEPINE
<bertrand at delepine.info>
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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