meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

spickzettel:zabbix:userparameters [2016/02/21 10:23:03] – created - external edit 127.0.0.1spickzettel:zabbix:userparameters [2023/09/27 12:36:01] (current) Marcel Jäpel
Line 45: Line 45:
 UserParameter=mysql.version,sudo mysql -V UserParameter=mysql.version,sudo mysql -V
 UserParameter=net.bond.status,for i in /proc/net/bonding/*; do cat "$i" | egrep -e '^(MII Status|Speed|Duplex|Slave queue ID):'|sort|uniq -u; done | wc -l UserParameter=net.bond.status,for i in /proc/net/bonding/*; do cat "$i" | egrep -e '^(MII Status|Speed|Duplex|Slave queue ID):'|sort|uniq -u; done | wc -l
-UserParameter=ntp.offset,ntpdate -q ntp.plusserver.com | tail -n1 | xargs echo | cut -d ' ' -f10+UserParameter=ntp.offset[*],ntpdate -q $1 | tail -n1 | xargs echo | sed -E 's/.*(( [\+-]*[0-9]+\.[0-9]+ sec)|( [\+-]*[0-9]+\.[0-9]+ \+\/- )).*/\1/g' | cut -d' ' -f2
 UserParameter=pacemaker.status,sudo crm_mon -s | egrep -q -v "^Ok: |^CLUSTER OK: "; echo $? UserParameter=pacemaker.status,sudo crm_mon -s | egrep -q -v "^Ok: |^CLUSTER OK: "; echo $?
 UserParameter=packages.apt.available.security_updates,if [ -x /usr/lib/update-notifier/apt-check ] ; then /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f2; else yum -e 0 -d 0 --security check-update | tail -n +1| wc -l; fi UserParameter=packages.apt.available.security_updates,if [ -x /usr/lib/update-notifier/apt-check ] ; then /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f2; else yum -e 0 -d 0 --security check-update | tail -n +1| wc -l; fi