| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413 |
- <?xml version="1.0" encoding="UTF-8"?>
- <zabbix_export>
- <version>4.0</version>
- <date>2019-03-07T14:08:51Z</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=(ALL) 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.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.ports.tcp.discovery
- UserParameter=yunohost.ports.udp.discover,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 --output-as 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" --output-as plain --full| awk '/#/{ next;} {printf "%s;",$0} END {print ""}'
- fi
-
- if [ "$1" == "yunohost.services.discover" ] ;then
- services=$($yunobin service status 2>/dev/null| 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
- service=$($yunobin service status "$2" --output-as json 2>/dev/null)
- if [[ "$(echo $service | jq -r '.description')" == *"doesn't exists for systemd"* ]] ;then
- echo "$service" | jq -c '.active = "disabled"'
- else
- echo "$service"
- fi
- fi
-
- if [ "$1" == "yunohost.backups.number" ] ;then
- $yunobin backup list --output-as plain | wc -l
- fi
-
- if [ "$1" == "yunohost.backups.ageoflastbackup" ] ;then
- if [ $($yunobin backup list --output-as plain | wc -l) -ne 0 ] ;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) ))
- else
- echo "No backup detected"
- fi
- fi
-
- if [ "$1" == "yunohost.ports.tcp.discovery" ] ;then
- ports=$($yunobin firewall list -r --output-as 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 --output-as 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;h10m45</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;h11</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;h10m50</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;h10m55</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;h10</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;h9m30</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;h9m45</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;h10m15</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>12</type>
- <params>$.active</params>
- </step>
- <step>
- <type>5</type>
- <params>(.*)
- \1: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;h10m30</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>
|