# Network: ARP entries [Entries] UserParameter=arp.entries,grep -c -v 'HW type' /proc/net/arp # System: CPU speed [] UserParameter=cpuspeed.core0,grep MHz /proc/cpuinfo | head -n 1 | cut -c 12- | awk '{ sum += $1 } END { print sum }' UserParameter=cpuspeed.core1,grep MHz /proc/cpuinfo | tail -n 1 | cut -c 12- | awk '{ sum += $1 } END { print sum }' # System: HDD SMART Temperature UserParameter=hdd_smart_temp[*],smartctl -a /dev/$1 |awk '/194 Tempera/ {print $4}' # Detailed process count UserParameter=processes_uninterruptible,ps axo state= |grep -c D UserParameter=processes_runnable,ps axo state= |grep -c R UserParameter=processes_sleeping,ps axo state= |grep -c S UserParameter=processes_stopped,ps axo state= |grep -c T UserParameter=processes_paging,ps axo state= |grep -c W UserParameter=processes_dead,ps axo state= |grep -c X UserParameter=processes_zombie,ps axo state= |grep -c Z # Number of process forks per second UserParameter=processes_forks,awk '/processes/ {print $2}' /proc/stat # Available entropy UserParameter=entropy,cat /proc/sys/kernel/random/entropy_avail # WiFi level, noise, and network values # Quality - link : general quality of the reception. UserParameter=wifi_quality,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $4; }' /proc/net/wireless # Quality - level : signal strength at the receiver. UserParameter=wifi_level,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $5; }' /proc/net/wireless # Quality - noise : silence level (no packet) at the receiver. UserParameter=wifi_noise,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $6; }' /proc/net/wireless # Discarded - nwid : number of discarded packets due to invalid network id. UserParameter=wifi_d_nwid,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $7; }' /proc/net/wireless # Discarded - crypt : number of packet unable to decrypt. UserParameter=wifi_d_crypt,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $8; }' /proc/net/wireless # Discarded - misc UserParameter=wifi_d_misc,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $11; }' /proc/net/wireless # Missed Beacons UserParameter=wifi_mbeac,awk -F'[ :]*' '/:/ {gsub(/\. /," ",$0); print $12; }' /proc/net/wireless # Networking: Connection tracking UserParameter=conntrack_established,sudo grep -c ESTABLISHED /proc/net/ip_conntrack UserParameter=conntrack_fin_wait,sudo grep -c FIN_WAIT /proc/net/ip_conntrack UserParameter=conntrack_time_wait,sudo grep -c TIME_WAIT /proc/net/ip_conntrack UserParameter=conntrack_syn_sent,sudo grep -c SYN_SENT /proc/net/ip_conntrack UserParameter=conntrack_assured,sudo grep -c ASSURED /proc/net/ip_conntrack UserParameter=conntrack_tcp_tot,sudo grep -c ^tcp /proc/net/ip_conntrack UserParameter=conntrack_udp_tot,sudo grep -c ^udp /proc/net/ip_conntrack # Remote Ping (specify host) UserParameter=rping[*],ping $2 -c1 -W5|awk -F '[ /]*' '/rtt/ {print $7}' || echo # Debian: packages stats - WARNING: quite heavy processes, run it infrequently UserParameter=deb_pkg_removed,grep -c '^Status: deinstall ok config-files$' /var/lib/dpkg/status UserParameter=deb_pkg_installed,grep -c '^Status: install ok installed$' /var/lib/dpkg/status UserParameter=deb_pkg_purged,grep -c '^Status: purge ok not-installed$' /var/lib/dpkg/status # Debian: last dpkg run date - useful to spot unmantained systems UserParameter=deb_dpkg_lastrun,awk 'END{print $1,$2}' /var/log/dpkg.log # iptables: bytes processed by each firewall rule. Rule number must be specified. UserParameter=iptables_input_bytes[*],iptables -nv -LINPUT|awk "NR==2+$1"|echo $((`awk '{r=$2;sub(/G/,"*1048576",r);sub(/M/,"*1024",r);print r}'`)) UserParameter=iptables_forward_bytes[*],iptables -nv -LFORWARD|awk "NR==2+$1"|echo $((`awk '{r=$2;sub(/G/,"*1048576",r);sub(/M/,"*1024",r);print r}'`)) UserParameter=iptables_output_bytes[*],iptables -nv -LOUTPUT|awk "NR==2+$1"|echo $((`awk '{r=$2;sub(/G/,"*1048576",r);sub(/M/,"*1024",r);print r}'`))
вторник, 21 августа 2012 г.
Usefull zabbix UserParameters
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий