Updated DomainCheck Template, added kernel process agent
This commit is contained in:
parent
23897d552b
commit
2c4d39eec6
3 changed files with 20 additions and 8 deletions
7
scripts/cpu-count.trap
Executable file
7
scripts/cpu-count.trap
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#numCPU=$(grep processor /proc/cpuinfo | wc -l)
|
||||||
|
numKernelThreads=$(ps aux | awk '{if($11~/^\[/){print $11}}' | wc -l)
|
||||||
|
|
||||||
|
#echo "- system.cpucount $numCPU"
|
||||||
|
echo "- proc.kernel.num $numKernelThreads"
|
5
scripts/proc.kernel.num.trap
Executable file
5
scripts/proc.kernel.num.trap
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
numKernelThreads=$(ps aux | awk '{if($11~/^\[/){print $11}}' | wc -l)
|
||||||
|
|
||||||
|
echo "- proc.kernel.num $numKernelThreads"
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<zabbix_export>
|
<zabbix_export>
|
||||||
<version>2.0</version>
|
<version>2.0</version>
|
||||||
<date>2013-06-28T17:36:52Z</date>
|
<date>2013-07-19T12:40:20Z</date>
|
||||||
<groups>
|
<groups>
|
||||||
<group>
|
<group>
|
||||||
<name>Templates</name>
|
<name>Templates</name>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<discovery_rules>
|
<discovery_rules>
|
||||||
<discovery_rule>
|
<discovery_rule>
|
||||||
<name>Domain Name Discovery</name>
|
<name>Domain Name Discovery</name>
|
||||||
<type>7</type>
|
<type>0</type>
|
||||||
<snmp_community/>
|
<snmp_community/>
|
||||||
<snmp_oid/>
|
<snmp_oid/>
|
||||||
<key>domain.check.discovery</key>
|
<key>domain.check.discovery</key>
|
||||||
|
@ -50,12 +50,12 @@
|
||||||
<description>Discovery of domain names to check and monitor for expiration.</description>
|
<description>Discovery of domain names to check and monitor for expiration.</description>
|
||||||
<item_prototypes>
|
<item_prototypes>
|
||||||
<item_prototype>
|
<item_prototype>
|
||||||
<name>Days for domain {$DOMAIN} to expire</name>
|
<name>Days for domain {#DOMAIN} to expire</name>
|
||||||
<type>2</type>
|
<type>2</type>
|
||||||
<snmp_community/>
|
<snmp_community/>
|
||||||
<multiplier>0</multiplier>
|
<multiplier>0</multiplier>
|
||||||
<snmp_oid/>
|
<snmp_oid/>
|
||||||
<key>domain.daysleft[{$DOMAIN}]</key>
|
<key>domain.daysleft[{#DOMAIN}]</key>
|
||||||
<delay>0</delay>
|
<delay>0</delay>
|
||||||
<history>120</history>
|
<history>120</history>
|
||||||
<trends>365</trends>
|
<trends>365</trends>
|
||||||
|
@ -91,20 +91,20 @@
|
||||||
</item_prototypes>
|
</item_prototypes>
|
||||||
<trigger_prototypes>
|
<trigger_prototypes>
|
||||||
<trigger_prototype>
|
<trigger_prototype>
|
||||||
<expression>{Template_DomainCheck:domain.daysleft[{$DOMAIN}].last(0)}<{$EXPIRECRIT}</expression>
|
<expression>{Template_DomainCheck:domain.daysleft[{#DOMAIN}].last(0)}<{$EXPIRECRIT}</expression>
|
||||||
<name>Domain {#DOMAIN} will expire in {ITEM.VALUE1} days</name>
|
<name>Domain {#DOMAIN} will expire in {ITEM.VALUE1} days</name>
|
||||||
<url/>
|
<url/>
|
||||||
<status>0</status>
|
<status>0</status>
|
||||||
<priority>5</priority>
|
<priority>4</priority>
|
||||||
<description/>
|
<description/>
|
||||||
<type>1</type>
|
<type>1</type>
|
||||||
</trigger_prototype>
|
</trigger_prototype>
|
||||||
<trigger_prototype>
|
<trigger_prototype>
|
||||||
<expression>{Template_DomainCheck:domain.daysleft[{$DOMAIN}].last(0)}<{$EXPIREWARN}</expression>
|
<expression>{Template_DomainCheck:domain.daysleft[{#DOMAIN}].last(0)}<{$EXPIREWARN}&{Template_DomainCheck:domain.daysleft[{#DOMAIN}].last(0)}>{$EXPIRECRIT}</expression>
|
||||||
<name>Domain {#DOMAIN} will expire in {ITEM.VALUE1} days</name>
|
<name>Domain {#DOMAIN} will expire in {ITEM.VALUE1} days</name>
|
||||||
<url/>
|
<url/>
|
||||||
<status>0</status>
|
<status>0</status>
|
||||||
<priority>2</priority>
|
<priority>3</priority>
|
||||||
<description/>
|
<description/>
|
||||||
<type>0</type>
|
<type>0</type>
|
||||||
</trigger_prototype>
|
</trigger_prototype>
|
||||||
|
|
Loading…
Reference in a new issue