| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402 |
- <?xml version="1.0" encoding="UTF-8"?>
- <zabbix_export>
- <version>4.0</version>
- <date>2019-01-15T12:48:48Z</date>
- <groups>
- <group>
- <name>Templates/Applications</name>
- </group>
- </groups>
- <templates>
- <template>
- <template>Template Yunohost</template>
- <name>Template Yunohost</name>
- <description>cat /etc/sudoers.d/zabbix
- zabbix ALL=(root) NOPASSWD: /etc/zabbix/zabbix_agentd.d/yunohost.sh
-
- cat /etc/zabbix/zabbix_agentd.d/userP_yunohost.conf
- UserParameter=yunohost.users.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.users.discover
- UserParameter=yunohost.user.quota[*],sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.user.quota "$1"
- UserParameter=yunohost.domains.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.domains.discover
- UserParameter=yunohost.domain.cert[*],sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.domain.cert "$1"
- UserParameter=yunohost.services.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.services.discover
- UserParameter=yunohost.service.status[*],sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.service.status "$1"
- UserParameter=yunohost.backups.number,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.backups.number
- UserParameter=yunohost.backups.ageoflastbackup,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.backups.ageoflastbackup
- UserParameter=yunohost.ports.tcp.discovery,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.ports.tcp.discovery
- UserParameter=yunohost.ports.udp.discovery,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.ports.udp.discovery
- UserParameter=yunohost.migrations.lastinstalled,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.migrations.lastinstalled
- UserParameter=yunohost.migrations.lastavailable,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.migrations.lastavailable
-
- cat /etc/zabbix/zabbix_agentd.d/yunohost.sh
- #!/bin/bash
- yunobin=$(which yunohost)
-
-
- if [ "$1" == "yunohost.users.discover" ];then
- users=$($yunobin user list --fields 'uid' | awk -F ': ' '/username: / {print $2}');echo -n "{\"data\":[";for user in $users;do echo -n "{\"{#USERNAME}\":\"$user\"},";done | sed 's/,$//' ;echo "]}"
- fi
-
- if [ "$1" == "yunohost.user.quota" ] ;then
- quota=$($yunobin user info "$2" | grep -Po "use:.*\(\K([0-9]{1,3})");if [ -z "$quota" ];then echo 0 ; else echo "$quota" ;fi
- fi
-
- if [ "$1" == "yunohost.domains.discover" ] ;then
- domains=$($yunobin domain list --plain);echo -n "{\"data\":[";for domain in $domains;do echo -n "{\"{#DOMAIN}\":\"$domain\"},";done | sed 's/,$//' ;echo "]}"
- fi
-
- if [ "$1" == "yunohost.domain.cert" ] ;then
- $yunobin domain cert-status "$2" --plain | awk '/#/{ next;} {printf "%s;",$0} END {print ""}'
- fi
-
- if [ "$1" == "yunohost.services.discover" ] ;then
- services=$($yunobin service status | grep -Po '^([A-Za-z]+)(?=(:))');echo -n "{\"data\":[";for service in $services;do echo -n "{\"{#SERVICE}\":\"$service\"},";done | sed 's/,$//' ;echo "]}"
- fi
-
- if [ "$1" == "yunohost.service.status" ] ;then
- $yunobin service status "$2" --plain | awk '/#/{ next;} {printf "%s;",$0} END {print ""}'
- fi
-
- if [ "$1" == "yunohost.backups.number" ] ;then
- $yunobin backup list --plain | wc -l
- fi
-
- if [ "$1" == "yunohost.backups.ageoflastbackup" ] ;then
- timestamp=$(date +"%d/%m/%Y %H:%M" -d"$($yunobin backup list -i | tail -n 4 | head -n 1 | grep -Po 'created_at: \K(.*)')")
- echo $(( ($(date +%s) - $(date -d"$timestamp" +%s))/(60*60*24) ))
- fi
-
-
- if [ "$1" == "yunohost.ports.tcp.discovery" ] ;then
- ports=$($yunobin firewall list -r --plain | awk '/#ipv4/{flag=1;next}/#uPnP/{flag=0}flag' | awk '/##TCP/{flag=1;next}/##TCP/{flag=0}flag');echo -n "{\"data\":[";for port in $ports;do echo -n "{\"{#PORT}\":\"$port\"},";done | sed 's/,$//' ;echo "]}"
- fi
-
- if [ "$1" == "yunohost.ports.udp.discovery" ] ;then
- ports=$($yunobin firewall list -r --plain | awk '/#ipv4/{flag=1;next}/#uPnP/{flag=0}flag' | awk '/##UDP/{flag=1;next}/##TCP/{flag=0}flag');echo -n "{\"data\":[";for port in $ports;do echo -n "{\"{#PORT}\":\"$port\"},";done | sed 's/,$//' ;echo "]}"
- fi
-
- if [ "$1" == "yunohost.migrations.lastinstalled" ] ;then
- $yunobin tools migrations state | grep -Po " number: \K(.*)"
- fi
-
- if [ "$1" == "yunohost.migrations.lastavailable" ] ;then
- $yunobin tools migrations list | tail -n 1 | grep -Po " number: \K(.*)"
- fi</description>
- <groups>
- <group>
- <name>Templates/Applications</name>
- </group>
- </groups>
- <applications>
- <application>
- <name>Yunohost : Backups</name>
- </application>
- <application>
- <name>Yunohost : Certificates</name>
- </application>
- <application>
- <name>Yunohost : Certificates : Expiration</name>
- </application>
- <application>
- <name>Yunohost : Certificates : State</name>
- </application>
- <application>
- <name>Yunohost : Migrations</name>
- </application>
- <application>
- <name>Yunohost : Ports</name>
- </application>
- <application>
- <name>Yunohost : Services</name>
- </application>
- <application>
- <name>Yunohost : Services : Status</name>
- </application>
- <application>
- <name>Yunohost : Users</name>
- </application>
- </applications>
- <items>
- <item>
- <name>Age of the last backup</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.backups.ageoflastbackup</key>
- <delay>1d</delay>
- <history>90d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units>days</units>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Backups</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <master_item/>
- </item>
- <item>
- <name>Number of Yunohost backups</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.backups.number</key>
- <delay>1d</delay>
- <history>90d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Backups</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <master_item/>
- </item>
- <item>
- <name>Id of the last migration available</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.migrations.lastavailable</key>
- <delay>1d</delay>
- <history>90d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Migrations</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <master_item/>
- </item>
- <item>
- <name>Id of the last migration installed</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.migrations.lastinstalled</key>
- <delay>1d</delay>
- <history>90d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Migrations</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <master_item/>
- </item>
- </items>
- <discovery_rules>
- <discovery_rule>
- <name>Yunohost domains</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.domains.discover</key>
- <delay>1d</delay>
- <status>0</status>
- <allowed_hosts/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <filter>
- <evaltype>0</evaltype>
- <formula/>
- <conditions/>
- </filter>
- <lifetime>30d</lifetime>
- <description/>
- <item_prototypes>
- <item_prototype>
- <name>Certificate {#DOMAIN} expiration</name>
- <type>18</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.domain.cert.expiration[{#DOMAIN}]</key>
- <delay>0</delay>
- <history>180d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units>d</units>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Certificates</name>
- </application>
- <application>
- <name>Yunohost : Certificates : Expiration</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing>
- <step>
- <type>5</type>
- <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);
- \2</params>
- </step>
- </preprocessing>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item>
- <key>yunohost.domain.cert[{#DOMAIN}]</key>
- </master_item>
- </item_prototype>
- <item_prototype>
- <name>Certificate {#DOMAIN} state</name>
- <type>18</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.domain.cert.state[{#DOMAIN}]</key>
- <delay>0</delay>
- <history>180d</history>
- <trends>0</trends>
- <status>0</status>
- <value_type>1</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Certificates</name>
- </application>
- <application>
- <name>Yunohost : Certificates : State</name>
- </application>
- </applications>
- <valuemap>
- <name>Yunohost : certificates</name>
- </valuemap>
- <logtimefmt/>
- <preprocessing>
- <step>
- <type>5</type>
- <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);
- \3:unknown=0:critical=1:warning=2:attention=3:good=4;great=5</params>
- </step>
- <step>
- <type>5</type>
- <params>^(unknown|critical|warning|attention|good|great):(?=.*\1=(\d))
- \2</params>
- </step>
- </preprocessing>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item>
- <key>yunohost.domain.cert[{#DOMAIN}]</key>
- </master_item>
- </item_prototype>
- <item_prototype>
- <name>Informations {#DOMAIN} full</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.domain.cert[{#DOMAIN}]</key>
- <delay>1d</delay>
- <history>180d</history>
- <trends>0</trends>
- <status>0</status>
- <value_type>1</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Certificates</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item/>
- </item_prototype>
- </item_prototypes>
- <trigger_prototypes/>
- <graph_prototypes/>
- <host_prototypes/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- </discovery_rule>
- <discovery_rule>
- <name>TCP Ports opened</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.ports.tcp.discover</key>
- <delay>1d</delay>
- <status>0</status>
- <allowed_hosts/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <filter>
- <evaltype>0</evaltype>
- <formula/>
- <conditions/>
- </filter>
- <lifetime>7d</lifetime>
- <description/>
- <item_prototypes>
- <item_prototype>
- <name>Check TCP port {#PORT} responding</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>net.tcp.service[tcp,127.0.0.1,{#PORT}]</key>
- <delay>900s</delay>
- <history>90d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Ports</name>
- </application>
- </applications>
- <valuemap>
- <name>Service state</name>
- </valuemap>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item/>
- </item_prototype>
- </item_prototypes>
- <trigger_prototypes>
- <trigger_prototype>
- <expression>{Template Yunohost:net.tcp.service[tcp,127.0.0.1,{#PORT}].last()}=0</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>TCP port {#PORT} not responding</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- </trigger_prototypes>
- <graph_prototypes/>
- <host_prototypes/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- </discovery_rule>
- <discovery_rule>
- <name>UDP Ports opened</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.ports.udp.discover</key>
- <delay>1d</delay>
- <status>0</status>
- <allowed_hosts/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <filter>
- <evaltype>0</evaltype>
- <formula/>
- <conditions/>
- </filter>
- <lifetime>0d</lifetime>
- <description/>
- <item_prototypes>
- <item_prototype>
- <name>Check UDP port {#PORT} listening</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>net.udp.listen[{#PORT}]</key>
- <delay>900s</delay>
- <history>90d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Ports</name>
- </application>
- </applications>
- <valuemap>
- <name>Service state</name>
- </valuemap>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item/>
- </item_prototype>
- </item_prototypes>
- <trigger_prototypes>
- <trigger_prototype>
- <expression>{Template Yunohost:net.udp.listen[{#PORT}].last()}=0</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>UDP port {#PORT} not listening</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- </trigger_prototypes>
- <graph_prototypes/>
- <host_prototypes/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- </discovery_rule>
- <discovery_rule>
- <name>Yunohost services</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.services.discover</key>
- <delay>1d</delay>
- <status>0</status>
- <allowed_hosts/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <filter>
- <evaltype>0</evaltype>
- <formula/>
- <conditions/>
- </filter>
- <lifetime>7d</lifetime>
- <description/>
- <item_prototypes>
- <item_prototype>
- <name>Yunohost service {#SERVICE} status</name>
- <type>18</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.service.statusrunp[{#SERVICE}]</key>
- <delay>0</delay>
- <history>7d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Services</name>
- </application>
- <application>
- <name>Yunohost : Services : Status</name>
- </application>
- </applications>
- <valuemap>
- <name>Yunohost : services</name>
- </valuemap>
- <logtimefmt/>
- <preprocessing>
- <step>
- <type>5</type>
- <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);
- \6:inactive=0:active=1:unknown=2;disabled=3</params>
- </step>
- <step>
- <type>5</type>
- <params>^(inactive|active|unknown|disabled):(?=.*\1=(\d))
- \2</params>
- </step>
- </preprocessing>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item>
- <key>yunohost.service.status[{#SERVICE}]</key>
- </master_item>
- </item_prototype>
- <item_prototype>
- <name>Yunohost service {#SERVICE} status (full)</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.service.status[{#SERVICE}]</key>
- <delay>15m</delay>
- <history>7d</history>
- <trends>0</trends>
- <status>0</status>
- <value_type>1</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Services</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item/>
- </item_prototype>
- </item_prototypes>
- <trigger_prototypes>
- <trigger_prototype>
- <expression>{Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=3</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>Service {#SERVICE} disabled</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- <trigger_prototype>
- <expression>{Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=0</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>Service {#SERVICE} state is inactive</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- <trigger_prototype>
- <expression>{Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=2</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>Service {#SERVICE} state is unknown</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- </trigger_prototypes>
- <graph_prototypes/>
- <host_prototypes/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- </discovery_rule>
- <discovery_rule>
- <name>Yunohost users</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.users.discover</key>
- <delay>1d</delay>
- <status>0</status>
- <allowed_hosts/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <filter>
- <evaltype>0</evaltype>
- <formula/>
- <conditions/>
- </filter>
- <lifetime>30d</lifetime>
- <description/>
- <item_prototypes>
- <item_prototype>
- <name>Quota percent for user {#USERNAME}</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>yunohost.user.quota[{#USERNAME}]</key>
- <delay>1h</delay>
- <history>30d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units>%</units>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications>
- <application>
- <name>Yunohost : Users</name>
- </application>
- </applications>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <output_format>0</output_format>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- <application_prototypes/>
- <master_item/>
- </item_prototype>
- </item_prototypes>
- <trigger_prototypes>
- <trigger_prototype>
- <expression>{Template Yunohost:yunohost.user.quota[{#USERNAME}].last()}>=80</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>User {#USERNAME} quota exceed 80%</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>3</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- <trigger_prototype>
- <expression>{Template Yunohost:yunohost.user.quota[{#USERNAME}].last()}>=90</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>User {#USERNAME} quota exceed 90%</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- </trigger_prototypes>
- <graph_prototypes/>
- <host_prototypes/>
- <jmx_endpoint/>
- <timeout>3s</timeout>
- <url/>
- <query_fields/>
- <posts/>
- <status_codes>200</status_codes>
- <follow_redirects>1</follow_redirects>
- <post_type>0</post_type>
- <http_proxy/>
- <headers/>
- <retrieve_mode>0</retrieve_mode>
- <request_method>0</request_method>
- <allow_traps>0</allow_traps>
- <ssl_cert_file/>
- <ssl_key_file/>
- <ssl_key_password/>
- <verify_peer>0</verify_peer>
- <verify_host>0</verify_host>
- </discovery_rule>
- </discovery_rules>
- <httptests/>
- <macros/>
- <templates/>
- <screens/>
- </template>
- </templates>
- <triggers>
- <trigger>
- <expression>{Template Yunohost:yunohost.migrations.lastavailable.last()}<>{Template Yunohost:yunohost.migrations.lastinstalled.last()}</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>Yunhost has migration in pending state</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>1</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger>
- <trigger>
- <expression>{Template Yunohost:yunohost.backups.ageoflastbackup.last()}>=7</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>Yunhost hasn't backup since 7 days</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger>
- <trigger>
- <expression>{Template Yunohost:yunohost.backups.number.last()}=0</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>Yunhost hasn't backup yet</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger>
- </triggers>
- <value_maps>
- <value_map>
- <name>Service state</name>
- <mappings>
- <mapping>
- <value>0</value>
- <newvalue>Down</newvalue>
- </mapping>
- <mapping>
- <value>1</value>
- <newvalue>Up</newvalue>
- </mapping>
- </mappings>
- </value_map>
- <value_map>
- <name>Yunohost : certificates</name>
- <mappings>
- <mapping>
- <value>0</value>
- <newvalue>unknown</newvalue>
- </mapping>
- <mapping>
- <value>1</value>
- <newvalue>critical</newvalue>
- </mapping>
- <mapping>
- <value>2</value>
- <newvalue>warning</newvalue>
- </mapping>
- <mapping>
- <value>3</value>
- <newvalue>attention</newvalue>
- </mapping>
- <mapping>
- <value>4</value>
- <newvalue>good</newvalue>
- </mapping>
- <mapping>
- <value>5</value>
- <newvalue>great</newvalue>
- </mapping>
- </mappings>
- </value_map>
- <value_map>
- <name>Yunohost : services</name>
- <mappings>
- <mapping>
- <value>0</value>
- <newvalue>inactive</newvalue>
- </mapping>
- <mapping>
- <value>1</value>
- <newvalue>active</newvalue>
- </mapping>
- <mapping>
- <value>2</value>
- <newvalue>unknow</newvalue>
- </mapping>
- <mapping>
- <value>3</value>
- <newvalue>disabled</newvalue>
- </mapping>
- </mappings>
- </value_map>
- </value_maps>
- </zabbix_export>
|