load: uptime hanez@localhost ~ % uptime 23:26:22 up 1:32, 3 users, load average: 1.02, 1.26, 1.24 hanez@localhost ~ % -------------------------------------------------------------------------------- disksize: df -a hanez@localhost ~ % df -a Filesystem 1K-blocks Used Available Use% Mounted on rootfs 24027628 14713820 8093272 65% / /dev/root 24027628 14713820 8093272 65% / proc 0 0 0 - /proc rc-svcdir 1024 104 920 11% /lib/rc/init.d sysfs 0 0 0 - /sys debugfs 0 0 0 - /sys/kernel/debug udev 10240 452 9788 5% /dev devpts 0 0 0 - /dev/pts none 1548712 0 1548712 0% /dev/shm /dev/mapper/crypt-home 188457012 92981596 85902336 52% /home usbfs 0 0 0 - /proc/bus/usb binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc hanez@localhost ~ % -------------------------------------------------------------------------------- dirsize & filesize: du -chs /home/mysql localhost ~ # du -chs /home/mysql 82M /home/mysql 82M total localhost ~ # -------------------------------------------------------------------------------- tcpconnect / connect to port: see sshconnect! -------------------------------------------------------------------------------- loggedinusercount: who | wc -l hanez@localhost ~ % who | wc -l 3 hanez@localhost ~ % -------------------------------------------------------------------------------- loggedinusers: who hanez@localhost ~ % who hanez tty7 2011-06-29 23:53 (:0) hanez pts/0 2011-06-29 22:59 (:0.0) hanez pts/1 2011-06-29 23:09 (:0.0) hanez@localhost ~ % -------------------------------------------------------------------------------- raidstatus: very special (tw_cli): ??? -------------------------------------------------------------------------------- processcount: ps ax | wc -l hanez@localhost ~ % ps ax | wc -l 153 hanez@localhost ~ % -------------------------------------------------------------------------------- swapusage: cat /proc/swaps hanez@localhost ~ % cat /proc/swaps Filename Type Size Used Priority /dev/sda3 partition 4200992 0 -1 hanez@localhost ~ % -------------------------------------------------------------------------------- sshconnect: ssh hanez.org exit hanez@localhost ~ % ssh hanez.org exit hanez@localhost ~ % echo $? 0 hanez@localhost ~ % ssh hanez.org exit2 zsh:1: command not found: exit2 hanez@localhost ~ % echo $? 127 hanez@localhost ~ % (tcpconnect could be done in the same way. just evaluate the return code of program X) -------------------------------------------------------------------------------- mysqlconnect: see sshconnect! -------------------------------------------------------------------------------- checkservice: see sshconnect! -------------------------------------------------------------------------------- SPECIALSERVICE (oracle etc.): write a plugin! -------------------------------------------------------------------------------- fileexists: Check if a file exists local or over http, ssh etc. - Maybe check the content too, like a string "UP" or whatever... -------------------------------------------------------------------------------- mailquesize: ??? -------------------------------------------------------------------------------- db-, etc-, fsclusterstatus: ??? -------------------------------------------------------------------------------- And a lot more...! --------------------------------------------------------------------------------