MOTDstat

Message Of The Day - System Status will dynamicaly generate the /etc/motd file with current information about system resources and usage. Using crontab the script will periodically display status of system resources and services. The original message of the day will be stored in the /etc/motd.orig file.

Configuring e-mail address you'll receive the notifications about following issues with configurable warning and critical limits:

  • high CPU load
  • exceeding disk space
  • intensive usage of SWAP space
  • specific process is not runnig
  • specific local network service is not running
  • NTP is not synchronized with network peer(s)
  • too many e-mails in mail queue


When you want to have displayed MOTD when logging via SSH client you have to change setting on the sshd server.
Update SSH server configuration file /etc/ssh/sshd_config and set the PrintMotd parameter to 'yes' and restart sshd service:
~snip~
PrintMotd yes
~snip~


The system status report is organized into three columns:

  • 1st column contains information about partition(s) free space and usage in percentage.
  • 2nd column will display information about used memory and swap space
  • 3rd column will monitor running processes and local network services



Feel free to contact me if you have any suggestions or bug report(s) at e-mail address: motdstat@gelogic.net

Printed from: http://www.gelogic.net/?page_id=339 .
© Pavol Krigler 2014.