2017-07-21 12:22:16 +02:00
(2017) New project was fork MOTDstat https://bitbucket.org/hetii/motdstat
2017-07-20 11:20:55 +02:00
2017-07-21 15:43:53 +02:00
# MOTDs32 Custom MOTD by 🅴🆁🆁🅴🆄🆁32
2017-07-22 22:47:23 +02:00
MOTDs32 = MOTD + Stats32
2017-07-21 12:11:07 +02:00
2017-07-21 23:32:26 +02:00
2017-07-22 22:47:23 +02:00
# Project
2017-07-21 23:32:26 +02:00
2017-07-22 22:47:23 +02:00
- Project https://gitlab.echosystem.fr/Erreur32/MOTDs32
2017-07-20 11:19:39 +02:00
2017-07-19 13:15:28 +02:00
< pre data-source-line = "10" > < code class = "hljs" >
,--. ,--. ,-----. ,--------.,------. ,----. ,---.
2017-07-19 10:01:43 +02:00
| `.' |' .-. ''--. .--'| .-. \ ,---. '.-. |'.-. \
| |'.'| || | | | | | | | \ :( .-' .' < .-' .'
| | | |' '-' ' | | | '--' /.-' `)/'-' |/ '-.
`--' ` --' `-----' ` --' `-------' ` ----' `----' '-----'
| + S t a t s 3 2 |< / code > < / pre > < p data-source-line = "18" >
< / p > < ul class = "toc" >
< li >
< a href = "#motds32-documentation" > MOTDs32 Documentation:< / a >
< / li >
< li >
< a href = "#installation" > INSTALLATION:< / a >
< / li >
< li >
< a href = "#update" > UPDATE:< / a >
< / li >
< li >
< a href = "#sample-motd32-report" > Sample MOTD32 report< / a >
2017-07-20 14:27:40 +02:00
< / li >
< li >
< a href = "https://echosystem.fr/termrec/MOTDs32.html" > View terminal screen result (slow and buggy .p)< / a >
2017-07-19 10:01:43 +02:00
< / li >
< li >
< a href = "#explanation-of-the-report" > Explanation of the report< / a >
< / li >
< li >
< a href = "#author" > Author< / a >
2017-07-21 12:11:07 +02:00
original fork https://bitbucket.org/hetii/motdstat
2017-07-21 12:22:16 +02:00
Customized by E r r e u r 3 2
2017-07-19 10:01:43 +02:00
< / li >
< / ul >
< p > < / p >
2017-07-21 10:20:24 +02:00
< h2 id = "motds32-documentation" data-source-line = "20" > < a class = "anchor" href = "#motds32-documentation" > < span class = "octicon octicon-link" > MOTDs32 Documentation:< / span > < / a > < / h2 >
2017-07-19 10:01:43 +02:00
< p data-source-line = "23" > Original project:
< a href = "http://www.gelogic.net/" > http://www.gelogic.net/< / a > < / p >
2017-07-21 12:26:40 +02:00
2017-07-19 10:01:43 +02:00
< p data-source-line = "26" > MOTDs32 is a fork of the excelent MOTDstat !< / p >
< p data-source-line = "28" > Usage: generate dynamicaly the /etc/motd file with current information about system resources and usage< / p >
< p data-source-line = "30" > Using crontab the script will periodically display status of system resources and services.< / p >
< p data-source-line = "32" > The original message of the day is now stored in /etc/motd.orig file.< / p >
< p data-source-line = "34" > Everytime you connect throught the SSH you will see some informations (customisable).< / p >
2017-07-21 12:26:40 +02:00
2017-07-19 10:04:00 +02:00
< p data-source-line = "37" > < a href = "https://gitlab.echosystem.fr/Erreur32/MOTDs32/blob/master/README.md#sample-motd32-report" > See example< / a > < / p >
2017-07-19 10:01:43 +02:00
< hr >
2017-07-21 10:20:24 +02:00
< h2 id = "installation" data-source-line = "44" > < a class = "anchor" href = "#installation" > < span class = "octicon octicon-link" > INSTALLATION:< / span > < / a > < / h2 >
2017-07-19 12:55:35 +02:00
< p data-source-line = "46" > < code class = "hljs" > git clone < a href = "https://gitlab.echosystem.fr/Erreur32/MOTDs32.git" > https://gitlab.echosystem.fr/Erreur32/MOTDs32.git< / a > < / code > < / p >
2017-07-19 10:01:43 +02:00
< p data-source-line = "48" > type inside the directory:< / p >
2017-07-23 16:00:53 +02:00
< code class = "hljs" > ./Install.sh< / code >
< p > Answer: y (install the package needed) < / p >
If you want some help,
try this command: /usr/bin/motds32
2017-07-21 10:20:24 +02:00
or
< code > motd
< / code > < / pre >
2017-07-21 10:13:34 +02:00
< pre data-source-line = "50" > < code class = "hljs" > motd
2017-07-19 12:58:45 +02:00
Usage: motds32 OPTIONS
-g, --generate Check system status and generate it to /etc/motd file
-s, --status Show limited content of MOTD file
-v, --version Display information about motds32 version and author
2017-07-20 11:08:15 +02:00
-m, --MotD32 See the MOTD file
2017-07-19 13:03:44 +02:00
< / code > < / pre >
2017-07-19 13:09:02 +02:00
You can see the result with :
< code > cat /etc/motd< / code >
< br > or
< code > usr/bin/motds32 -c< / code >
2017-07-21 10:10:13 +02:00
< br > or
2017-07-21 12:22:16 +02:00
< code > motd -m< / code > < br > < br >
2017-07-21 12:26:40 +02:00
< h2 > You can set differents features in /etc/motds32/motds32.conf< / h2 >
2017-07-19 12:58:45 +02:00
2017-07-21 10:10:13 +02:00
< br > < br >
2017-07-21 10:20:24 +02:00
< h2 id = "update" data-source-line = "52" > < a class = "anchor" href = "#update" > UPDATE:< / a > < / h2 >
2017-07-21 10:22:31 +02:00
need to redownload the last version form gitlab, do the following:
< pre data-source-line = "55" > < code class = "hljs" > git clone https://gitlab.echosystem.fr/Erreur32/MOTDs32.git
cd MOTDs32
2017-07-21 10:10:13 +02:00
./uninstall.sh
git pull
./install.sh
< / code > < / pre >
2017-07-19 12:53:43 +02:00
2017-07-22 22:47:23 +02:00
## Stats Repo:
2017-07-19 12:53:43 +02:00
2017-07-22 22:47:23 +02:00
- https://echosystem.fr/MOTDs32
- https://echosystem.fr/MOTDs32/32.html
- https://echosystem.fr/MOTDs32/Stats/index.html
2017-07-19 12:53:09 +02:00
2017-07-19 10:02:51 +02:00
< hr >
2017-07-21 10:20:24 +02:00
< h2 id = "sample-motd32-report" data-source-line = "74" > < a class = "anchor" href = "#sample-motd32-report" > < span class = "octicon octicon-link" > Sample MOTD32 report< / span > < / a > < / h2 >
2017-07-19 13:03:44 +02:00
< pre data-source-line = "77" >< code class = "hljs" > 00:03:47 19/07 @echosystem .../Stats-tools/MOTDs32 (master)# /usr/bin/motds32 -c
--------------------------------------------------
2017-07-19 00:05:06 +02:00
2017-07-21 10:07:37 +02:00
motd -m
Read motds32 file
echosystem.fr > status at 10:05 > 5min load is 0.82 on 8 cpu(s)
2017-07-19 00:05:06 +02:00
Disk status | Memory status | Service status
partition free usg | Memory used kB [%] | service(s) (count)
2017-07-21 10:07:37 +02:00
/ 4,9G 74% | Memory: 59711808 90% | tcp/0.0.0.0:2222
/home 1,5T 12% | Swap: 3560 0% | tcp6/:::2222
| Buffers: 1271192 | tcp/0.0.0.0:25
| Cached: 51624824 | tcp6/:::25
2017-07-19 00:05:06 +02:00
| | tcp/127.0.0.1:8080
| | tcp6/:::80
| | tcp6/:::443
| | udp/37.187.162.229:123
| | udp/127.0.0.1:123
| | udp/0.0.0.0:123
| | udp6/fe80::ec4:7aff:fe0f:123
| | udp6/2001:41d0:d:2e5:::123
| | udp6/::1:123
2017-07-21 10:07:37 +02:00
__ __ ___
.-----.----.| |--.-----.-----.--.--.-----.| |_.-----.--------. .' _|.----.
| -__| __ || | _ |__ --| | |__ --|| _| -__| |__| _|| _ |
|_____|____||__|__|_____|_____|___ |_____||____|_____|__|__|__|__|__| |__|
|_____|
/bin/bash : root
10:05:39 up 66 days, 15:35, 2 users, load average: 1,40, 0,79, 0,67
2017-07-19 00:07:36 +02:00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
2017-07-21 10:07:37 +02:00
erreur32 pts/0 213.173.170.22 mar.15 2days 1.62s 0.26s sshd: erreur32 [priv]
erreur32 pts/1 2a01:e35:8aa3:87 08:57 4.00s 1.10s 0.01s sshd: erreur32 [priv]
2017-07-19 00:07:36 +02:00
Debian GNU/Linux 8.8 (jessie) (3.16.0-4-amd64).
Kernel Info: Linux 3.16.0-4-amd64 x86_64
----------- --- ------------ ----------
2017-07-21 10:07:37 +02:00
System load : 1.40 IP Address: 37.187.162.229
Memory usage: 10.3% System uptime: 66 days
Usage on / : 74% Swap usage: 0.0%
Local Users : 2 Processes: 282
2017-07-19 00:07:36 +02:00
----------- --- ------------ ----------
2017-07-21 10:07:37 +02:00
vendredi 21 juillet 2017, 10:05:39 (UTC+0200)
2017-07-24 20:11:57 +02:00
< / code > < / pre > < h2 id = "explanation-of-the-report" data-source-line = "127" > < a class = "anchor" href = "#explanation-of-the-report" > < span class = "octicon octicon-link" > Explanation of the report< / span > < / a > < / h2 >
2017-07-19 10:02:51 +02:00
< pre data-source-line = "129" > < code class = "hljs" > Explanation of the report
2017-07-18 23:06:11 +02:00
-------------------------
system hostname report time system load
| | |
| NTP status | | Number of CPU(s)
| | | | |
V V V V V
2017-07-19 13:12:19 +02:00
echosystem.fr+-+ > status at 00:03 > 5min load is 0.75 on 8 cpu(s)< / code > < / pre >
2017-07-20 14:25:21 +02:00
2017-07-20 14:27:40 +02:00
View on terminal screen the resultat:
< a class = "anchor" href = "https://echosystem.fr/termrec/MOTDs32.html" > https://echosystem.fr/termrec/MOTDs32.html< / a >
2017-07-19 13:12:19 +02:00
< h2 id = "author" data-source-line = "144" > < a class = "anchor" href = "#author" > < span class = "octicon octicon-link" > < / span > < / a > Author< / h2 >
2017-07-21 12:26:40 +02:00
original project: https://bitbucket.org/hetii/motdstat.git < br > < br >
2017-07-19 10:02:51 +02:00
< div class = "success" data-source-line = "146" >
2017-07-21 12:26:40 +02:00
< p > 🅴🆁🆁🅴🆄🆁32< / p >
2017-07-19 10:01:43 +02:00
< / div >
2017-07-19 10:02:51 +02:00
< div class = "warning" data-source-line = "152" >
2017-07-19 10:01:43 +02:00
< p > Hosted on< / p >
< / div >
2017-07-19 10:02:51 +02:00
< div class = "info" data-source-line = "158" >
2017-07-19 10:01:43 +02:00
< p > 🅴🅲🅷🔵🆂🆈🆂🆃🅴🅼< / p >
< / div >
< / article >