SYSTEMCHECK v6steemCreated with Sketch.

in #linux6 years ago

systemcheck.png
Image source: Willi Glenz - SystemCheck

UPDATE
$ vim ~/scripts/check   
  1 #!/bin/bash
  2 # check [cpu] [disk] [network] 
  3 # Wrapper for inxi, nmap and ip
  4 #
  5 
  6 clear
  7 
  8 while [ -n "$1" ]
  9 do
 10    case "$1" in
 11       "cpu" )
 12          echo
 13          inxi -f
 14          echo
 15          ;;
 16       "disk" )
 17          echo
 18          inxi -Dp
 19          echo
 20          ;;
 21       "network" )
 22          echo
 23          inxi -i
 24          nmap --iflist
 25          ip neigh
 26          echo
 27          ;;
 28    esac
 29    shift
 30 done
 31 
 32 exit


SYSTEMCHECK v6
01 System Dump                # inxi -v7 -c0 | tee system.txt
02 Prelogin message           $ cat /etc/issue
03 Hostname                   $ cat /etc/hostname; hostnamectl; uname --nodename
04 Disk                       # lshw -short -class disk
05 Volumes                    # lshw -short -class volume
06 USB                        # usbview; lsusb
07 Operating System           $ cat /etc/os-release; lsb_release -a; uname --operating-system
08 Kernel Name                $ uname --kernel-name
09 Kernel Release             $ uname --kernel-release
10 Kernel Version             $ uname --kernel-version
11 Debian Version             $ cat /etc/debian_version
12 Upgradeable Packages       $ apt-show-versions -u > dummy.txt; vim dummy.txt
13 Processes                  $ ps auxw | sort | less
14 Interfaces & Routes        $ nmap --iflist
15 Neighbours                 $ ip neigh; ip monitor
16 TCP Sessions               # netstat -tupan
17 Identify Internet Services $ nmap a.b.c.d; nmap -sP a.b.c.d/24
18 Network Diagnostic         $ mtr --curses google.com
19 ufw status                 # ufw status
20 Rootkit                    # chkrootkit
21 Process-Monitoring         $ atop | htop | top 
22 Server-Check               $ sntop
23 Systemd Journal            # journalctl

24 BLEACHBIT                  
    Homepage        : bleachbit.org
    Documentation   : docs.bleachbit.org
    Tutorial        : bleachbit.org/videos
    Admin           # bleachbit --gui & 

25 CACTI                      
    Homepage        : cacti.net
    Documentation   : cacti.net/documentation.php
    Tutorial        : nwlab.net/tutorials/cacti/cacti-tutorial.html
    Admin           : localhost/cacti : user admin

26 ZABBIX                   
    Homepage        : zabbix.com
    Documentation   : zabbix.com/documentation/1.8/start
    Tutorial        : zabbix.com/documentation/1.8/manual/tutorials
    
$ vim ~/scripts/check   
  1 #!/bin/bash
  2 # check [cpu] [disk] [network]
  3 # Wrapper for inxi, nmap and ip
  4 #
  5 
  6 clear
  7 
  8 while [ -n "$1" ]
  9 do
 10    case "$1" in
 11       "cpu" )
 12          echo
 13          inxi -f
 14          echo
 15          ;;
 16       "disk" )
 17          echo
 18          inxi -Dp
 19          echo
 20          ;;
 21       "network" )
 22          echo
 23          inxi -i
 24          nmap --iflist
 25          ip neigh
 26          echo
 27          ;;
 28    esac
 29    shift
 30 done
 31 
 32 exit
Sort:  

Congratulations @wglenz! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 500 upvotes. Your next target is to reach 1000 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 62102.06
ETH 2415.08
USDT 1.00
SBD 2.49