--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_ups.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_ups 2009-03-24 23:23:40.000000000 +0100 @@ -1,6 +1,33 @@ # Monitor UPS status + +# Description: Nut UPS load +# Type: Agent or Agent (active) +# Key: ups.load +# Type of information: Numeric (float) +# Units: % +# Multiplier: Do not use +# Store Value: As is UserParameter=ups.load,upsc UPS@localhost ups.load + +# Description: Nut UPS Battery Charge +# Type: Agent or Agent (active) +# Key: ups.battery.charge +# Type of information: Numeric (float) +# Units: % +# Multiplier: Do not use +# Store Value: As is UserParameter=ups.battery.charge,upsc UPS@localhost battery.charge + +# Description: Nut UPS Status +# Type: Agent or Agent (active) +# Key: ups.status +# Type of information: Character +# Show Value: As is (you can also define a dictionnary OL=>On Line etc...) UserParameter=ups.status,upsc UPS@localhost ups.status + +# Description: Nut UPS Model +# Type: Agent or Agent (active) +# Key: ups.model +# Type of information: Text UserParameter=ups.model,upsc UPS@localhost ups.model --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swap.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swap 2009-03-24 23:15:32.000000000 +0100 @@ -1,3 +1,12 @@ # Amount of used swap in bytes + +# Description: Used swap space +# Type: Agent or Agent (active) +# Key: system.swap.size.used +# Type of information: Numeric (integer 64bit) +# Units: B +# Multiplier: do not use +# Store Value: As is +# Show Value: As is UserParameter=system.swap.size.used,free -b | grep Swap | awk '\{print $3\}' --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailIn.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailIn 2009-03-24 22:52:11.000000000 +0100 @@ -1,5 +1,20 @@ # Incomming mails statistics +# Description: Incoming Mail +# Type: Agent or Agent (active) +# Key: mail.in. (for example mail.in.denied.dnsbl) +# Type of information: Numeric (integer 64bit) +# Units: mails/h +# Use multiplier: Custom multiplier +# Custom multiplier: 6 +# Update interval: 600 +# Store Value: As is +# Show Value: As is + +# Choosing 6 as custom muliplier and 600 as interval allow you to get stats in mails/h +# In fact, each key retrieve the number of emails since the last run. If you retrieve each value every 600 sec +# (10 Min), you'll have stats in mails/10min. If you multiply this by 6 (6x10min), you'll get it in mails/h + UserParameter=mail.in.denied.dnsbl,/var/lib/zabbix/bin/mail_in.sh dnsbl UserParameter=mail.in.denied.rhsbl,/var/lib/zabbix/bin/mail_in.sh rhsbl UserParameter=mail.in.denied.clamav,/var/lib/zabbix/bin/mail_in.sh clamav --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_memory.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_memory 2009-03-24 23:06:14.000000000 +0100 @@ -1,6 +1,24 @@ # Amount of used memory (the agent lacks this stats) + +# Description: Used Memory +# Type: Agent or Agent (active) +# Key: vm.memory.size.used +# Type of information: Numeric (integer 64bit) +# Units: B +# Use multiplier: do not use +# Store Value: As is +# Show Value: As is UserParameter=vm.memory.size.used,free -b | grep 'buffers/cache' | awk '\{print $3\}' # Amount of used memory in % (the agent lacks this stats) + +# Description: Used Memory in % +# Type: Agent or Agent (active) +# Key: vm.memory.size.pused +# Type of information: Numeric (integer 64bit) +# Units: % +# Use multiplier: do not use +# Store Value: As is +# Show Value: As is UserParameter=vm.memory.size.pused,echo $(($(free -b | grep 'buffers/cache' | awk '\{print $3\}')*100/$(free -b | grep 'Mem' | awk '\{print $2\}'))) --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_netStats.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_netStats 2009-03-24 23:13:24.000000000 +0100 @@ -16,14 +16,44 @@ $OUT .=<<"HERE"; +# Description: In Internal +# Type: Agent or Agent (active) +# Key: net.if.in.internal +# Type of information: Numeric (float) +# Units: b/s +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s) +# Store Value: Delta (speed per second) UserParameter=net.if.in.internal,cat /proc/net/dev | grep $internal | cut -d":" -f2 | awk '{print \$1}' + +# Description: Out Internal +# Type: Agent or Agent (active) +# Key: net.if.out.internal +# Type of information: Numeric (float) +# Units: b/s +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s) +# Store Value: Delta (speed per second) UserParameter=net.if.out.internal,cat /proc/net/dev | grep $internal | cut -d":" -f2 | awk '{print \$9}' HERE if (($SystemMode || 'serveronly') ne 'serveronly'){ $OUT .=<<"HERE"; +# Description: In External +# Type: Agent or Agent (active) +# Key: net.if.in.external +# Type of information: Numeric (float) +# Units: b/s +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s) +# Store Value: Delta (speed per second) UserParameter=net.if.in.external,cat /proc/net/dev | grep $external | cut -d":" -f2 | awk '{print \$1}' + +# Description: Out External +# Type: Agent or Agent (active) +# Key: net.if.out.external +# Type of information: Numeric (float) +# Units: b/s +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s) +# Store Value: Delta (speed per second) UserParameter=net.if.out.external,cat /proc/net/dev | grep $external | cut -d":" -f2 | awk '{print \$9}' HERE --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mysql.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mysql 2009-03-24 23:08:58.000000000 +0100 @@ -1,10 +1,16 @@ # Some stats about MySQL + +# Description: MySQL +# Type: Agent or Agent (active) +# Type of information: Numeric (float) +# Unit: (for example, qps) +# Use multiplier: do not use +# Store Value: As is UserParameter=mysql.uptime,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f2 UserParameter=mysql.threads,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f5 UserParameter=mysql.questions,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f8 UserParameter=mysql.slowqueries,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f12 UserParameter=mysql.qps,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f29 -UserParameter=mysql.qps,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f29 UserParameter=mysql.size,/usr/bin/sudo -u mysql /usr/bin/du -s /var/lib/mysql | awk '\{print $1\}' --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_extIP.userparam_comment 2009-03-24 22:39:22.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_extIP 2009-03-24 22:44:35.000000000 +0100 @@ -1,4 +1,9 @@ -# Retrieve rela external IP +# Retrieve real external IP +# Description: Ext IP +# Type: Agent or Agent (active) +# Key: ip.external +# Type of information: Character +# Show Value: As is UserParameter=ip.external,/usr/bin/curl --connect-timeout 5 -s -o - -k "http://www.wimip.fr/?t=" --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swRaid.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swRaid 2009-03-24 23:19:24.000000000 +0100 @@ -1,6 +1,18 @@ # Report status of every Raid Array (parsing /proc/mdtstat) -# Just add a key named raid.sw.status, type caracter. Then A new trigger with an expression like that: -# \{hostname:raid.sw.status.str(CRITICAL)\}=1 + +# Description: Software Raid Status +# Type: Agent or Agent (active) +# Key: raid.sw.status +# Type of Information: Character +# Show Value: As is + +# The value reported is like: +# OK - md3 [UU] has 2 of 2 devices active (active=sdc1,sdd1 failed=none spare=none) +# CRITICAL - md2 [_U] has 1 of 2 devices active (active=sdb2 failed=sda2 spare=none) +# OK - md1 [UU] has 2 of 2 devices active (active=sda1,sdb1 failed=none spare=none) + +# Tips: You can add a simple trigger on this check like: +# \{ hostname:raid.sw.status.str( CRITICAL ) \}=1 UserParameter=raid.sw.status,/var/lib/zabbix/bin/mdstat-parser.pl --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailOut.userparam_comment 2009-03-24 22:39:23.000000000 +0100 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailOut 2009-03-24 22:53:18.000000000 +0100 @@ -1,5 +1,20 @@ # Outgoing mails statistics +# Description: Incoming Mail +# Type: Agent or Agent (active) +# Key: mail.out. (for example mail.out.total) +# Type of information: Numeric (integer 64bit) +# Units: mails/h +# Use multiplier: Custom multiplier +# Custom multiplier: 6 +# Update interval: 600 +# Store Value: As is +# Show Value: As is + +# Choosing 6 as custom muliplier and 600 as interval allow you to get stats in mails/h +# In fact, each key retrieve the number of emails since the last run. If you retrieve each value every 600 sec +# (10 Min), you'll have stats in mails/10min. If you multiply this by 6 (6x10min), you'll get it in mails/h + UserParameter=mail.out.total,/var/lib/zabbix/bin/mail_out.sh total UserParameter=mail.out.success,/var/lib/zabbix/bin/mail_out.sh success UserParameter=mail.out.deferral,/var/lib/zabbix/bin/mail_out.sh deferral