[CentOS] Logwatch and System uptime

Tue Jun 16 01:39:24 UTC 2015
Bill Gee <bgee at campercaver.net>

It is also pretty easy to add a new item to the logwatch report.  I created my 
own uptime module which is really nothing more than the piped output of 
/usr/bin/uptime.

The uptime section of the logwatch report looks like this:

 --------------------- Uptime report Begin ------------------------ 

  03:50:21 up 34 days, 17:50,  0 users,  load average: 0.42, 0.10, 0.03
 
 ---------------------- Uptime report End ------------------------- 


Bill Gee



On Monday, June 15, 2015 11:27:18 Valeri Galtsev wrote:
> On Mon, June 15, 2015 11:16 am, Pete Geenhuizen wrote:
> > Enable it in /usr/share/logwatch/default.conf/services/zz-runtime.conf
> 
> Thanks a lot! Helps you to be aware that you definitely missed something
> important if you haven't the box rebooted during more than 45-60 days...
> 
> Valeri
> 
> > Pete
> > 
> > On 06/15/15 09:58, James B. Byrne wrote:
> >> CentOS-6.6
> >> 
> >> Can logwatch be configured to display the system uptime as part of the
> >> reporting prologue?  If not then what would be the recommended way of
> >> including this information in a daily logwatch report?
> > 
> > --
> > If money can fix it, it's not a problem.
> > 
> >   -- Click and Clack the Tappet brothers
> > 
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> 
> ++++++++++++++++++++++++++++++++++++++++
> Valeri Galtsev
> Sr System Administrator
> Department of Astronomy and Astrophysics
> Kavli Institute for Cosmological Physics
> University of Chicago
> Phone: 773-702-4247
> ++++++++++++++++++++++++++++++++++++++++
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos