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?
Enable it in /usr/share/logwatch/default.conf/services/zz-runtime.conf
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?
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@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 ++++++++++++++++++++++++++++++++++++++++
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@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@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 15 Jun 2015, Pete Geenhuizen wrote:
Enable it in /usr/share/logwatch/default.conf/services/zz-runtime.conf
More sustainable, I think, would be to copy zz-runtime.conf to /etc/logwatch/conf/services and then enable it.
Changes in /usr/share/logwatch/* will be overwritten during a package update, while customizations in /etc/logwatch will remain unchanged.