Template_Yunohost.xml 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3. <version>4.0</version>
  4. <date>2019-03-07T14:08:51Z</date>
  5. <groups>
  6. <group>
  7. <name>Templates/Applications</name>
  8. </group>
  9. </groups>
  10. <templates>
  11. <template>
  12. <template>Template Yunohost</template>
  13. <name>Template Yunohost</name>
  14. <description>cat /etc/sudoers.d/zabbix &#13;
  15. zabbix ALL=(ALL) NOPASSWD: /etc/zabbix/zabbix_agentd.d/yunohost.sh&#13;
  16. &#13;
  17. cat /etc/zabbix/zabbix_agentd.d/userP_yunohost.conf &#13;
  18. UserParameter=yunohost.users.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.users.discover&#13;
  19. UserParameter=yunohost.user.quota[*],sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.user.quota &quot;$1&quot;&#13;
  20. UserParameter=yunohost.domains.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.domains.discover&#13;
  21. UserParameter=yunohost.domain.cert[*],sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.domain.cert &quot;$1&quot;&#13;
  22. UserParameter=yunohost.services.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.services.discover&#13;
  23. UserParameter=yunohost.service.status[*],sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.service.status &quot;$1&quot;&#13;
  24. UserParameter=yunohost.backups.number,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.backups.number&#13;
  25. UserParameter=yunohost.backups.ageoflastbackup,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.backups.ageoflastbackup&#13;
  26. UserParameter=yunohost.ports.tcp.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.ports.tcp.discovery&#13;
  27. UserParameter=yunohost.ports.udp.discover,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.ports.udp.discovery&#13;
  28. UserParameter=yunohost.migrations.lastinstalled,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.migrations.lastinstalled&#13;
  29. UserParameter=yunohost.migrations.lastavailable,sudo /etc/zabbix/zabbix_agentd.d/yunohost.sh yunohost.migrations.lastavailable&#13;
  30. &#13;
  31. cat /etc/zabbix/zabbix_agentd.d/yunohost.sh &#13;
  32. #!/bin/bash&#13;
  33. yunobin=$(which yunohost)&#13;
  34. &#13;
  35. if [ &quot;$1&quot; == &quot;yunohost.users.discover&quot; ];then&#13;
  36. users=$($yunobin user list --fields 'uid' | awk -F ': ' '/username: / {print $2}');echo -n &quot;{\&quot;data\&quot;:[&quot;;for user in $users;do echo -n &quot;{\&quot;{#USERNAME}\&quot;:\&quot;$user\&quot;},&quot;;done | sed 's/,$//' ;echo &quot;]}&quot;&#13;
  37. fi&#13;
  38. &#13;
  39. if [ &quot;$1&quot; == &quot;yunohost.user.quota&quot; ] ;then&#13;
  40. quota=$($yunobin user info &quot;$2&quot; | grep -Po &quot;use:.*\(\K([0-9]{1,3})&quot;);if [ -z &quot;$quota&quot; ];then echo 0 ; else echo &quot;$quota&quot; ;fi&#13;
  41. fi&#13;
  42. &#13;
  43. if [ &quot;$1&quot; == &quot;yunohost.domains.discover&quot; ] ;then&#13;
  44. domains=$($yunobin domain list --output-as plain);echo -n &quot;{\&quot;data\&quot;:[&quot;;for domain in $domains;do echo -n &quot;{\&quot;{#DOMAIN}\&quot;:\&quot;$domain\&quot;},&quot;;done | sed 's/,$//' ;echo &quot;]}&quot;&#13;
  45. fi&#13;
  46. &#13;
  47. if [ &quot;$1&quot; == &quot;yunohost.domain.cert&quot; ] ;then&#13;
  48. $yunobin domain cert-status &quot;$2&quot; --output-as plain --full| awk '/#/{ next;} {printf &quot;%s;&quot;,$0} END {print &quot;&quot;}'&#13;
  49. fi&#13;
  50. &#13;
  51. if [ &quot;$1&quot; == &quot;yunohost.services.discover&quot; ] ;then&#13;
  52. services=$($yunobin service status 2&gt;/dev/null| grep -Po '^([A-Za-z]+)(?=(:))');echo -n &quot;{\&quot;data\&quot;:[&quot;;for service in $services;do echo -n &quot;{\&quot;{#SERVICE}\&quot;:\&quot;$service\&quot;},&quot;;done | sed 's/,$//' ;echo &quot;]}&quot;&#13;
  53. fi&#13;
  54. &#13;
  55. if [ &quot;$1&quot; == &quot;yunohost.service.status&quot; ] ;then&#13;
  56. service=$($yunobin service status &quot;$2&quot; --output-as json 2&gt;/dev/null)&#13;
  57. if [[ &quot;$(echo $service | jq -r '.description')&quot; == *&quot;doesn't exists for systemd&quot;* ]] ;then&#13;
  58. echo &quot;$service&quot; | jq -c '.active = &quot;disabled&quot;' &#13;
  59. else&#13;
  60. echo &quot;$service&quot;&#13;
  61. fi&#13;
  62. fi&#13;
  63. &#13;
  64. if [ &quot;$1&quot; == &quot;yunohost.backups.number&quot; ] ;then&#13;
  65. $yunobin backup list --output-as plain | wc -l&#13;
  66. fi&#13;
  67. &#13;
  68. if [ &quot;$1&quot; == &quot;yunohost.backups.ageoflastbackup&quot; ] ;then&#13;
  69. if [ $($yunobin backup list --output-as plain | wc -l) -ne 0 ] ;then&#13;
  70. timestamp=$(date +&quot;%d/%m/%Y %H:%M&quot; -d&quot;$($yunobin backup list -i | tail -n 4 | head -n 1 | grep -Po 'created_at: \K(.*)')&quot;)&#13;
  71. echo $(( ($(date +%s) - $(date -d&quot;$timestamp&quot; +%s))/(60*60*24) ))&#13;
  72. else&#13;
  73. echo &quot;No backup detected&quot;&#13;
  74. fi&#13;
  75. fi&#13;
  76. &#13;
  77. if [ &quot;$1&quot; == &quot;yunohost.ports.tcp.discovery&quot; ] ;then&#13;
  78. 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 &quot;{\&quot;data\&quot;:[&quot;;for port in $ports;do echo -n &quot;{\&quot;{#PORT}\&quot;:\&quot;$port\&quot;},&quot;;done | sed 's/,$//' ;echo &quot;]}&quot;&#13;
  79. fi&#13;
  80. &#13;
  81. if [ &quot;$1&quot; == &quot;yunohost.ports.udp.discovery&quot; ] ;then&#13;
  82. 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 &quot;{\&quot;data\&quot;:[&quot;;for port in $ports;do echo -n &quot;{\&quot;{#PORT}\&quot;:\&quot;$port\&quot;},&quot;;done | sed 's/,$//' ;echo &quot;]}&quot;&#13;
  83. fi&#13;
  84. &#13;
  85. if [ &quot;$1&quot; == &quot;yunohost.migrations.lastinstalled&quot; ] ;then&#13;
  86. $yunobin tools migrations state | grep -Po &quot; number: \K(.*)&quot;&#13;
  87. fi&#13;
  88. &#13;
  89. if [ &quot;$1&quot; == &quot;yunohost.migrations.lastavailable&quot; ] ;then&#13;
  90. $yunobin tools migrations list | tail -n 1 | grep -Po &quot; number: \K(.*)&quot;&#13;
  91. fi</description>
  92. <groups>
  93. <group>
  94. <name>Templates/Applications</name>
  95. </group>
  96. </groups>
  97. <applications>
  98. <application>
  99. <name>Yunohost : Backups</name>
  100. </application>
  101. <application>
  102. <name>Yunohost : Certificates</name>
  103. </application>
  104. <application>
  105. <name>Yunohost : Certificates : Expiration</name>
  106. </application>
  107. <application>
  108. <name>Yunohost : Certificates : State</name>
  109. </application>
  110. <application>
  111. <name>Yunohost : Migrations</name>
  112. </application>
  113. <application>
  114. <name>Yunohost : Ports</name>
  115. </application>
  116. <application>
  117. <name>Yunohost : Services</name>
  118. </application>
  119. <application>
  120. <name>Yunohost : Services : Status</name>
  121. </application>
  122. <application>
  123. <name>Yunohost : Users</name>
  124. </application>
  125. </applications>
  126. <items>
  127. <item>
  128. <name>Age of the last backup</name>
  129. <type>0</type>
  130. <snmp_community/>
  131. <snmp_oid/>
  132. <key>yunohost.backups.ageoflastbackup</key>
  133. <delay>1d;h10m45</delay>
  134. <history>90d</history>
  135. <trends>365d</trends>
  136. <status>0</status>
  137. <value_type>3</value_type>
  138. <allowed_hosts/>
  139. <units>days</units>
  140. <snmpv3_contextname/>
  141. <snmpv3_securityname/>
  142. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  143. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  144. <snmpv3_authpassphrase/>
  145. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  146. <snmpv3_privpassphrase/>
  147. <params/>
  148. <ipmi_sensor/>
  149. <authtype>0</authtype>
  150. <username/>
  151. <password/>
  152. <publickey/>
  153. <privatekey/>
  154. <port/>
  155. <description/>
  156. <inventory_link>0</inventory_link>
  157. <applications>
  158. <application>
  159. <name>Yunohost : Backups</name>
  160. </application>
  161. </applications>
  162. <valuemap/>
  163. <logtimefmt/>
  164. <preprocessing/>
  165. <jmx_endpoint/>
  166. <timeout>3s</timeout>
  167. <url/>
  168. <query_fields/>
  169. <posts/>
  170. <status_codes>200</status_codes>
  171. <follow_redirects>1</follow_redirects>
  172. <post_type>0</post_type>
  173. <http_proxy/>
  174. <headers/>
  175. <retrieve_mode>0</retrieve_mode>
  176. <request_method>0</request_method>
  177. <output_format>0</output_format>
  178. <allow_traps>0</allow_traps>
  179. <ssl_cert_file/>
  180. <ssl_key_file/>
  181. <ssl_key_password/>
  182. <verify_peer>0</verify_peer>
  183. <verify_host>0</verify_host>
  184. <master_item/>
  185. </item>
  186. <item>
  187. <name>Number of Yunohost backups</name>
  188. <type>0</type>
  189. <snmp_community/>
  190. <snmp_oid/>
  191. <key>yunohost.backups.number</key>
  192. <delay>1d;h11</delay>
  193. <history>90d</history>
  194. <trends>365d</trends>
  195. <status>0</status>
  196. <value_type>3</value_type>
  197. <allowed_hosts/>
  198. <units/>
  199. <snmpv3_contextname/>
  200. <snmpv3_securityname/>
  201. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  202. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  203. <snmpv3_authpassphrase/>
  204. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  205. <snmpv3_privpassphrase/>
  206. <params/>
  207. <ipmi_sensor/>
  208. <authtype>0</authtype>
  209. <username/>
  210. <password/>
  211. <publickey/>
  212. <privatekey/>
  213. <port/>
  214. <description/>
  215. <inventory_link>0</inventory_link>
  216. <applications>
  217. <application>
  218. <name>Yunohost : Backups</name>
  219. </application>
  220. </applications>
  221. <valuemap/>
  222. <logtimefmt/>
  223. <preprocessing/>
  224. <jmx_endpoint/>
  225. <timeout>3s</timeout>
  226. <url/>
  227. <query_fields/>
  228. <posts/>
  229. <status_codes>200</status_codes>
  230. <follow_redirects>1</follow_redirects>
  231. <post_type>0</post_type>
  232. <http_proxy/>
  233. <headers/>
  234. <retrieve_mode>0</retrieve_mode>
  235. <request_method>0</request_method>
  236. <output_format>0</output_format>
  237. <allow_traps>0</allow_traps>
  238. <ssl_cert_file/>
  239. <ssl_key_file/>
  240. <ssl_key_password/>
  241. <verify_peer>0</verify_peer>
  242. <verify_host>0</verify_host>
  243. <master_item/>
  244. </item>
  245. <item>
  246. <name>Id of the last migration available</name>
  247. <type>0</type>
  248. <snmp_community/>
  249. <snmp_oid/>
  250. <key>yunohost.migrations.lastavailable</key>
  251. <delay>1d;h10m50</delay>
  252. <history>90d</history>
  253. <trends>365d</trends>
  254. <status>0</status>
  255. <value_type>3</value_type>
  256. <allowed_hosts/>
  257. <units/>
  258. <snmpv3_contextname/>
  259. <snmpv3_securityname/>
  260. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  261. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  262. <snmpv3_authpassphrase/>
  263. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  264. <snmpv3_privpassphrase/>
  265. <params/>
  266. <ipmi_sensor/>
  267. <authtype>0</authtype>
  268. <username/>
  269. <password/>
  270. <publickey/>
  271. <privatekey/>
  272. <port/>
  273. <description/>
  274. <inventory_link>0</inventory_link>
  275. <applications>
  276. <application>
  277. <name>Yunohost : Migrations</name>
  278. </application>
  279. </applications>
  280. <valuemap/>
  281. <logtimefmt/>
  282. <preprocessing/>
  283. <jmx_endpoint/>
  284. <timeout>3s</timeout>
  285. <url/>
  286. <query_fields/>
  287. <posts/>
  288. <status_codes>200</status_codes>
  289. <follow_redirects>1</follow_redirects>
  290. <post_type>0</post_type>
  291. <http_proxy/>
  292. <headers/>
  293. <retrieve_mode>0</retrieve_mode>
  294. <request_method>0</request_method>
  295. <output_format>0</output_format>
  296. <allow_traps>0</allow_traps>
  297. <ssl_cert_file/>
  298. <ssl_key_file/>
  299. <ssl_key_password/>
  300. <verify_peer>0</verify_peer>
  301. <verify_host>0</verify_host>
  302. <master_item/>
  303. </item>
  304. <item>
  305. <name>Id of the last migration installed</name>
  306. <type>0</type>
  307. <snmp_community/>
  308. <snmp_oid/>
  309. <key>yunohost.migrations.lastinstalled</key>
  310. <delay>1d;h10m55</delay>
  311. <history>90d</history>
  312. <trends>365d</trends>
  313. <status>0</status>
  314. <value_type>3</value_type>
  315. <allowed_hosts/>
  316. <units/>
  317. <snmpv3_contextname/>
  318. <snmpv3_securityname/>
  319. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  320. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  321. <snmpv3_authpassphrase/>
  322. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  323. <snmpv3_privpassphrase/>
  324. <params/>
  325. <ipmi_sensor/>
  326. <authtype>0</authtype>
  327. <username/>
  328. <password/>
  329. <publickey/>
  330. <privatekey/>
  331. <port/>
  332. <description/>
  333. <inventory_link>0</inventory_link>
  334. <applications>
  335. <application>
  336. <name>Yunohost : Migrations</name>
  337. </application>
  338. </applications>
  339. <valuemap/>
  340. <logtimefmt/>
  341. <preprocessing/>
  342. <jmx_endpoint/>
  343. <timeout>3s</timeout>
  344. <url/>
  345. <query_fields/>
  346. <posts/>
  347. <status_codes>200</status_codes>
  348. <follow_redirects>1</follow_redirects>
  349. <post_type>0</post_type>
  350. <http_proxy/>
  351. <headers/>
  352. <retrieve_mode>0</retrieve_mode>
  353. <request_method>0</request_method>
  354. <output_format>0</output_format>
  355. <allow_traps>0</allow_traps>
  356. <ssl_cert_file/>
  357. <ssl_key_file/>
  358. <ssl_key_password/>
  359. <verify_peer>0</verify_peer>
  360. <verify_host>0</verify_host>
  361. <master_item/>
  362. </item>
  363. </items>
  364. <discovery_rules>
  365. <discovery_rule>
  366. <name>Yunohost domains</name>
  367. <type>0</type>
  368. <snmp_community/>
  369. <snmp_oid/>
  370. <key>yunohost.domains.discover</key>
  371. <delay>1d;h10</delay>
  372. <status>0</status>
  373. <allowed_hosts/>
  374. <snmpv3_contextname/>
  375. <snmpv3_securityname/>
  376. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  377. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  378. <snmpv3_authpassphrase/>
  379. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  380. <snmpv3_privpassphrase/>
  381. <params/>
  382. <ipmi_sensor/>
  383. <authtype>0</authtype>
  384. <username/>
  385. <password/>
  386. <publickey/>
  387. <privatekey/>
  388. <port/>
  389. <filter>
  390. <evaltype>0</evaltype>
  391. <formula/>
  392. <conditions/>
  393. </filter>
  394. <lifetime>30d</lifetime>
  395. <description/>
  396. <item_prototypes>
  397. <item_prototype>
  398. <name>Certificate {#DOMAIN} expiration</name>
  399. <type>18</type>
  400. <snmp_community/>
  401. <snmp_oid/>
  402. <key>yunohost.domain.cert.expiration[{#DOMAIN}]</key>
  403. <delay>0</delay>
  404. <history>180d</history>
  405. <trends>365d</trends>
  406. <status>0</status>
  407. <value_type>3</value_type>
  408. <allowed_hosts/>
  409. <units>d</units>
  410. <snmpv3_contextname/>
  411. <snmpv3_securityname/>
  412. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  413. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  414. <snmpv3_authpassphrase/>
  415. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  416. <snmpv3_privpassphrase/>
  417. <params/>
  418. <ipmi_sensor/>
  419. <authtype>0</authtype>
  420. <username/>
  421. <password/>
  422. <publickey/>
  423. <privatekey/>
  424. <port/>
  425. <description/>
  426. <inventory_link>0</inventory_link>
  427. <applications>
  428. <application>
  429. <name>Yunohost : Certificates</name>
  430. </application>
  431. <application>
  432. <name>Yunohost : Certificates : Expiration</name>
  433. </application>
  434. </applications>
  435. <valuemap/>
  436. <logtimefmt/>
  437. <preprocessing>
  438. <step>
  439. <type>5</type>
  440. <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);
  441. \2</params>
  442. </step>
  443. </preprocessing>
  444. <jmx_endpoint/>
  445. <timeout>3s</timeout>
  446. <url/>
  447. <query_fields/>
  448. <posts/>
  449. <status_codes>200</status_codes>
  450. <follow_redirects>1</follow_redirects>
  451. <post_type>0</post_type>
  452. <http_proxy/>
  453. <headers/>
  454. <retrieve_mode>0</retrieve_mode>
  455. <request_method>0</request_method>
  456. <output_format>0</output_format>
  457. <allow_traps>0</allow_traps>
  458. <ssl_cert_file/>
  459. <ssl_key_file/>
  460. <ssl_key_password/>
  461. <verify_peer>0</verify_peer>
  462. <verify_host>0</verify_host>
  463. <application_prototypes/>
  464. <master_item>
  465. <key>yunohost.domain.cert[{#DOMAIN}]</key>
  466. </master_item>
  467. </item_prototype>
  468. <item_prototype>
  469. <name>Certificate {#DOMAIN} state</name>
  470. <type>18</type>
  471. <snmp_community/>
  472. <snmp_oid/>
  473. <key>yunohost.domain.cert.state[{#DOMAIN}]</key>
  474. <delay>0</delay>
  475. <history>180d</history>
  476. <trends>0</trends>
  477. <status>0</status>
  478. <value_type>1</value_type>
  479. <allowed_hosts/>
  480. <units/>
  481. <snmpv3_contextname/>
  482. <snmpv3_securityname/>
  483. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  484. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  485. <snmpv3_authpassphrase/>
  486. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  487. <snmpv3_privpassphrase/>
  488. <params/>
  489. <ipmi_sensor/>
  490. <authtype>0</authtype>
  491. <username/>
  492. <password/>
  493. <publickey/>
  494. <privatekey/>
  495. <port/>
  496. <description/>
  497. <inventory_link>0</inventory_link>
  498. <applications>
  499. <application>
  500. <name>Yunohost : Certificates</name>
  501. </application>
  502. <application>
  503. <name>Yunohost : Certificates : State</name>
  504. </application>
  505. </applications>
  506. <valuemap>
  507. <name>Yunohost : certificates</name>
  508. </valuemap>
  509. <logtimefmt/>
  510. <preprocessing>
  511. <step>
  512. <type>5</type>
  513. <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);
  514. \3:unknown=0:critical=1:warning=2:attention=3:good=4;great=5</params>
  515. </step>
  516. <step>
  517. <type>5</type>
  518. <params>^(unknown|critical|warning|attention|good|great):(?=.*\1=(\d))
  519. \2</params>
  520. </step>
  521. </preprocessing>
  522. <jmx_endpoint/>
  523. <timeout>3s</timeout>
  524. <url/>
  525. <query_fields/>
  526. <posts/>
  527. <status_codes>200</status_codes>
  528. <follow_redirects>1</follow_redirects>
  529. <post_type>0</post_type>
  530. <http_proxy/>
  531. <headers/>
  532. <retrieve_mode>0</retrieve_mode>
  533. <request_method>0</request_method>
  534. <output_format>0</output_format>
  535. <allow_traps>0</allow_traps>
  536. <ssl_cert_file/>
  537. <ssl_key_file/>
  538. <ssl_key_password/>
  539. <verify_peer>0</verify_peer>
  540. <verify_host>0</verify_host>
  541. <application_prototypes/>
  542. <master_item>
  543. <key>yunohost.domain.cert[{#DOMAIN}]</key>
  544. </master_item>
  545. </item_prototype>
  546. <item_prototype>
  547. <name>Informations {#DOMAIN} full</name>
  548. <type>0</type>
  549. <snmp_community/>
  550. <snmp_oid/>
  551. <key>yunohost.domain.cert[{#DOMAIN}]</key>
  552. <delay>1d</delay>
  553. <history>180d</history>
  554. <trends>0</trends>
  555. <status>0</status>
  556. <value_type>1</value_type>
  557. <allowed_hosts/>
  558. <units/>
  559. <snmpv3_contextname/>
  560. <snmpv3_securityname/>
  561. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  562. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  563. <snmpv3_authpassphrase/>
  564. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  565. <snmpv3_privpassphrase/>
  566. <params/>
  567. <ipmi_sensor/>
  568. <authtype>0</authtype>
  569. <username/>
  570. <password/>
  571. <publickey/>
  572. <privatekey/>
  573. <port/>
  574. <description/>
  575. <inventory_link>0</inventory_link>
  576. <applications>
  577. <application>
  578. <name>Yunohost : Certificates</name>
  579. </application>
  580. </applications>
  581. <valuemap/>
  582. <logtimefmt/>
  583. <preprocessing/>
  584. <jmx_endpoint/>
  585. <timeout>3s</timeout>
  586. <url/>
  587. <query_fields/>
  588. <posts/>
  589. <status_codes>200</status_codes>
  590. <follow_redirects>1</follow_redirects>
  591. <post_type>0</post_type>
  592. <http_proxy/>
  593. <headers/>
  594. <retrieve_mode>0</retrieve_mode>
  595. <request_method>0</request_method>
  596. <output_format>0</output_format>
  597. <allow_traps>0</allow_traps>
  598. <ssl_cert_file/>
  599. <ssl_key_file/>
  600. <ssl_key_password/>
  601. <verify_peer>0</verify_peer>
  602. <verify_host>0</verify_host>
  603. <application_prototypes/>
  604. <master_item/>
  605. </item_prototype>
  606. </item_prototypes>
  607. <trigger_prototypes/>
  608. <graph_prototypes/>
  609. <host_prototypes/>
  610. <jmx_endpoint/>
  611. <timeout>3s</timeout>
  612. <url/>
  613. <query_fields/>
  614. <posts/>
  615. <status_codes>200</status_codes>
  616. <follow_redirects>1</follow_redirects>
  617. <post_type>0</post_type>
  618. <http_proxy/>
  619. <headers/>
  620. <retrieve_mode>0</retrieve_mode>
  621. <request_method>0</request_method>
  622. <allow_traps>0</allow_traps>
  623. <ssl_cert_file/>
  624. <ssl_key_file/>
  625. <ssl_key_password/>
  626. <verify_peer>0</verify_peer>
  627. <verify_host>0</verify_host>
  628. </discovery_rule>
  629. <discovery_rule>
  630. <name>TCP Ports opened</name>
  631. <type>0</type>
  632. <snmp_community/>
  633. <snmp_oid/>
  634. <key>yunohost.ports.tcp.discover</key>
  635. <delay>1d;h9m30</delay>
  636. <status>0</status>
  637. <allowed_hosts/>
  638. <snmpv3_contextname/>
  639. <snmpv3_securityname/>
  640. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  641. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  642. <snmpv3_authpassphrase/>
  643. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  644. <snmpv3_privpassphrase/>
  645. <params/>
  646. <ipmi_sensor/>
  647. <authtype>0</authtype>
  648. <username/>
  649. <password/>
  650. <publickey/>
  651. <privatekey/>
  652. <port/>
  653. <filter>
  654. <evaltype>0</evaltype>
  655. <formula/>
  656. <conditions/>
  657. </filter>
  658. <lifetime>7d</lifetime>
  659. <description/>
  660. <item_prototypes>
  661. <item_prototype>
  662. <name>Check TCP port {#PORT} responding</name>
  663. <type>0</type>
  664. <snmp_community/>
  665. <snmp_oid/>
  666. <key>net.tcp.service[tcp,127.0.0.1,{#PORT}]</key>
  667. <delay>900s</delay>
  668. <history>90d</history>
  669. <trends>365d</trends>
  670. <status>0</status>
  671. <value_type>3</value_type>
  672. <allowed_hosts/>
  673. <units/>
  674. <snmpv3_contextname/>
  675. <snmpv3_securityname/>
  676. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  677. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  678. <snmpv3_authpassphrase/>
  679. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  680. <snmpv3_privpassphrase/>
  681. <params/>
  682. <ipmi_sensor/>
  683. <authtype>0</authtype>
  684. <username/>
  685. <password/>
  686. <publickey/>
  687. <privatekey/>
  688. <port/>
  689. <description/>
  690. <inventory_link>0</inventory_link>
  691. <applications>
  692. <application>
  693. <name>Yunohost : Ports</name>
  694. </application>
  695. </applications>
  696. <valuemap>
  697. <name>Service state</name>
  698. </valuemap>
  699. <logtimefmt/>
  700. <preprocessing/>
  701. <jmx_endpoint/>
  702. <timeout>3s</timeout>
  703. <url/>
  704. <query_fields/>
  705. <posts/>
  706. <status_codes>200</status_codes>
  707. <follow_redirects>1</follow_redirects>
  708. <post_type>0</post_type>
  709. <http_proxy/>
  710. <headers/>
  711. <retrieve_mode>0</retrieve_mode>
  712. <request_method>0</request_method>
  713. <output_format>0</output_format>
  714. <allow_traps>0</allow_traps>
  715. <ssl_cert_file/>
  716. <ssl_key_file/>
  717. <ssl_key_password/>
  718. <verify_peer>0</verify_peer>
  719. <verify_host>0</verify_host>
  720. <application_prototypes/>
  721. <master_item/>
  722. </item_prototype>
  723. </item_prototypes>
  724. <trigger_prototypes>
  725. <trigger_prototype>
  726. <expression>{Template Yunohost:net.tcp.service[tcp,127.0.0.1,{#PORT}].last()}=0</expression>
  727. <recovery_mode>0</recovery_mode>
  728. <recovery_expression/>
  729. <name>TCP port {#PORT} not responding</name>
  730. <correlation_mode>0</correlation_mode>
  731. <correlation_tag/>
  732. <url/>
  733. <status>0</status>
  734. <priority>4</priority>
  735. <description/>
  736. <type>0</type>
  737. <manual_close>1</manual_close>
  738. <dependencies/>
  739. <tags/>
  740. </trigger_prototype>
  741. </trigger_prototypes>
  742. <graph_prototypes/>
  743. <host_prototypes/>
  744. <jmx_endpoint/>
  745. <timeout>3s</timeout>
  746. <url/>
  747. <query_fields/>
  748. <posts/>
  749. <status_codes>200</status_codes>
  750. <follow_redirects>1</follow_redirects>
  751. <post_type>0</post_type>
  752. <http_proxy/>
  753. <headers/>
  754. <retrieve_mode>0</retrieve_mode>
  755. <request_method>0</request_method>
  756. <allow_traps>0</allow_traps>
  757. <ssl_cert_file/>
  758. <ssl_key_file/>
  759. <ssl_key_password/>
  760. <verify_peer>0</verify_peer>
  761. <verify_host>0</verify_host>
  762. </discovery_rule>
  763. <discovery_rule>
  764. <name>UDP Ports opened</name>
  765. <type>0</type>
  766. <snmp_community/>
  767. <snmp_oid/>
  768. <key>yunohost.ports.udp.discover</key>
  769. <delay>1d;h9m45</delay>
  770. <status>0</status>
  771. <allowed_hosts/>
  772. <snmpv3_contextname/>
  773. <snmpv3_securityname/>
  774. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  775. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  776. <snmpv3_authpassphrase/>
  777. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  778. <snmpv3_privpassphrase/>
  779. <params/>
  780. <ipmi_sensor/>
  781. <authtype>0</authtype>
  782. <username/>
  783. <password/>
  784. <publickey/>
  785. <privatekey/>
  786. <port/>
  787. <filter>
  788. <evaltype>0</evaltype>
  789. <formula/>
  790. <conditions/>
  791. </filter>
  792. <lifetime>0d</lifetime>
  793. <description/>
  794. <item_prototypes>
  795. <item_prototype>
  796. <name>Check UDP port {#PORT} listening</name>
  797. <type>0</type>
  798. <snmp_community/>
  799. <snmp_oid/>
  800. <key>net.udp.listen[{#PORT}]</key>
  801. <delay>900s</delay>
  802. <history>90d</history>
  803. <trends>365d</trends>
  804. <status>0</status>
  805. <value_type>3</value_type>
  806. <allowed_hosts/>
  807. <units/>
  808. <snmpv3_contextname/>
  809. <snmpv3_securityname/>
  810. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  811. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  812. <snmpv3_authpassphrase/>
  813. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  814. <snmpv3_privpassphrase/>
  815. <params/>
  816. <ipmi_sensor/>
  817. <authtype>0</authtype>
  818. <username/>
  819. <password/>
  820. <publickey/>
  821. <privatekey/>
  822. <port/>
  823. <description/>
  824. <inventory_link>0</inventory_link>
  825. <applications>
  826. <application>
  827. <name>Yunohost : Ports</name>
  828. </application>
  829. </applications>
  830. <valuemap>
  831. <name>Service state</name>
  832. </valuemap>
  833. <logtimefmt/>
  834. <preprocessing/>
  835. <jmx_endpoint/>
  836. <timeout>3s</timeout>
  837. <url/>
  838. <query_fields/>
  839. <posts/>
  840. <status_codes>200</status_codes>
  841. <follow_redirects>1</follow_redirects>
  842. <post_type>0</post_type>
  843. <http_proxy/>
  844. <headers/>
  845. <retrieve_mode>0</retrieve_mode>
  846. <request_method>0</request_method>
  847. <output_format>0</output_format>
  848. <allow_traps>0</allow_traps>
  849. <ssl_cert_file/>
  850. <ssl_key_file/>
  851. <ssl_key_password/>
  852. <verify_peer>0</verify_peer>
  853. <verify_host>0</verify_host>
  854. <application_prototypes/>
  855. <master_item/>
  856. </item_prototype>
  857. </item_prototypes>
  858. <trigger_prototypes>
  859. <trigger_prototype>
  860. <expression>{Template Yunohost:net.udp.listen[{#PORT}].last()}=0</expression>
  861. <recovery_mode>0</recovery_mode>
  862. <recovery_expression/>
  863. <name>UDP port {#PORT} not listening</name>
  864. <correlation_mode>0</correlation_mode>
  865. <correlation_tag/>
  866. <url/>
  867. <status>0</status>
  868. <priority>4</priority>
  869. <description/>
  870. <type>0</type>
  871. <manual_close>1</manual_close>
  872. <dependencies/>
  873. <tags/>
  874. </trigger_prototype>
  875. </trigger_prototypes>
  876. <graph_prototypes/>
  877. <host_prototypes/>
  878. <jmx_endpoint/>
  879. <timeout>3s</timeout>
  880. <url/>
  881. <query_fields/>
  882. <posts/>
  883. <status_codes>200</status_codes>
  884. <follow_redirects>1</follow_redirects>
  885. <post_type>0</post_type>
  886. <http_proxy/>
  887. <headers/>
  888. <retrieve_mode>0</retrieve_mode>
  889. <request_method>0</request_method>
  890. <allow_traps>0</allow_traps>
  891. <ssl_cert_file/>
  892. <ssl_key_file/>
  893. <ssl_key_password/>
  894. <verify_peer>0</verify_peer>
  895. <verify_host>0</verify_host>
  896. </discovery_rule>
  897. <discovery_rule>
  898. <name>Yunohost services</name>
  899. <type>0</type>
  900. <snmp_community/>
  901. <snmp_oid/>
  902. <key>yunohost.services.discover</key>
  903. <delay>1d;h10m15</delay>
  904. <status>0</status>
  905. <allowed_hosts/>
  906. <snmpv3_contextname/>
  907. <snmpv3_securityname/>
  908. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  909. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  910. <snmpv3_authpassphrase/>
  911. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  912. <snmpv3_privpassphrase/>
  913. <params/>
  914. <ipmi_sensor/>
  915. <authtype>0</authtype>
  916. <username/>
  917. <password/>
  918. <publickey/>
  919. <privatekey/>
  920. <port/>
  921. <filter>
  922. <evaltype>0</evaltype>
  923. <formula/>
  924. <conditions/>
  925. </filter>
  926. <lifetime>7d</lifetime>
  927. <description/>
  928. <item_prototypes>
  929. <item_prototype>
  930. <name>Yunohost service {#SERVICE} status</name>
  931. <type>18</type>
  932. <snmp_community/>
  933. <snmp_oid/>
  934. <key>yunohost.service.statusrunp[{#SERVICE}]</key>
  935. <delay>0</delay>
  936. <history>7d</history>
  937. <trends>365d</trends>
  938. <status>0</status>
  939. <value_type>3</value_type>
  940. <allowed_hosts/>
  941. <units/>
  942. <snmpv3_contextname/>
  943. <snmpv3_securityname/>
  944. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  945. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  946. <snmpv3_authpassphrase/>
  947. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  948. <snmpv3_privpassphrase/>
  949. <params/>
  950. <ipmi_sensor/>
  951. <authtype>0</authtype>
  952. <username/>
  953. <password/>
  954. <publickey/>
  955. <privatekey/>
  956. <port/>
  957. <description/>
  958. <inventory_link>0</inventory_link>
  959. <applications>
  960. <application>
  961. <name>Yunohost : Services</name>
  962. </application>
  963. <application>
  964. <name>Yunohost : Services : Status</name>
  965. </application>
  966. </applications>
  967. <valuemap>
  968. <name>Yunohost : services</name>
  969. </valuemap>
  970. <logtimefmt/>
  971. <preprocessing>
  972. <step>
  973. <type>12</type>
  974. <params>$.active</params>
  975. </step>
  976. <step>
  977. <type>5</type>
  978. <params>(.*)
  979. \1:inactive=0:active=1:unknown=2;disabled=3</params>
  980. </step>
  981. <step>
  982. <type>5</type>
  983. <params>^(inactive|active|unknown|disabled):(?=.*\1=(\d))
  984. \2</params>
  985. </step>
  986. </preprocessing>
  987. <jmx_endpoint/>
  988. <timeout>3s</timeout>
  989. <url/>
  990. <query_fields/>
  991. <posts/>
  992. <status_codes>200</status_codes>
  993. <follow_redirects>1</follow_redirects>
  994. <post_type>0</post_type>
  995. <http_proxy/>
  996. <headers/>
  997. <retrieve_mode>0</retrieve_mode>
  998. <request_method>0</request_method>
  999. <output_format>0</output_format>
  1000. <allow_traps>0</allow_traps>
  1001. <ssl_cert_file/>
  1002. <ssl_key_file/>
  1003. <ssl_key_password/>
  1004. <verify_peer>0</verify_peer>
  1005. <verify_host>0</verify_host>
  1006. <application_prototypes/>
  1007. <master_item>
  1008. <key>yunohost.service.status[{#SERVICE}]</key>
  1009. </master_item>
  1010. </item_prototype>
  1011. <item_prototype>
  1012. <name>Yunohost service {#SERVICE} status (full)</name>
  1013. <type>0</type>
  1014. <snmp_community/>
  1015. <snmp_oid/>
  1016. <key>yunohost.service.status[{#SERVICE}]</key>
  1017. <delay>15m</delay>
  1018. <history>7d</history>
  1019. <trends>0</trends>
  1020. <status>0</status>
  1021. <value_type>1</value_type>
  1022. <allowed_hosts/>
  1023. <units/>
  1024. <snmpv3_contextname/>
  1025. <snmpv3_securityname/>
  1026. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  1027. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  1028. <snmpv3_authpassphrase/>
  1029. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  1030. <snmpv3_privpassphrase/>
  1031. <params/>
  1032. <ipmi_sensor/>
  1033. <authtype>0</authtype>
  1034. <username/>
  1035. <password/>
  1036. <publickey/>
  1037. <privatekey/>
  1038. <port/>
  1039. <description/>
  1040. <inventory_link>0</inventory_link>
  1041. <applications>
  1042. <application>
  1043. <name>Yunohost : Services</name>
  1044. </application>
  1045. </applications>
  1046. <valuemap/>
  1047. <logtimefmt/>
  1048. <preprocessing/>
  1049. <jmx_endpoint/>
  1050. <timeout>3s</timeout>
  1051. <url/>
  1052. <query_fields/>
  1053. <posts/>
  1054. <status_codes>200</status_codes>
  1055. <follow_redirects>1</follow_redirects>
  1056. <post_type>0</post_type>
  1057. <http_proxy/>
  1058. <headers/>
  1059. <retrieve_mode>0</retrieve_mode>
  1060. <request_method>0</request_method>
  1061. <output_format>0</output_format>
  1062. <allow_traps>0</allow_traps>
  1063. <ssl_cert_file/>
  1064. <ssl_key_file/>
  1065. <ssl_key_password/>
  1066. <verify_peer>0</verify_peer>
  1067. <verify_host>0</verify_host>
  1068. <application_prototypes/>
  1069. <master_item/>
  1070. </item_prototype>
  1071. </item_prototypes>
  1072. <trigger_prototypes>
  1073. <trigger_prototype>
  1074. <expression>{Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=3</expression>
  1075. <recovery_mode>0</recovery_mode>
  1076. <recovery_expression/>
  1077. <name>Service {#SERVICE} disabled</name>
  1078. <correlation_mode>0</correlation_mode>
  1079. <correlation_tag/>
  1080. <url/>
  1081. <status>0</status>
  1082. <priority>4</priority>
  1083. <description/>
  1084. <type>0</type>
  1085. <manual_close>1</manual_close>
  1086. <dependencies/>
  1087. <tags/>
  1088. </trigger_prototype>
  1089. <trigger_prototype>
  1090. <expression>{Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=0</expression>
  1091. <recovery_mode>0</recovery_mode>
  1092. <recovery_expression/>
  1093. <name>Service {#SERVICE} state is inactive</name>
  1094. <correlation_mode>0</correlation_mode>
  1095. <correlation_tag/>
  1096. <url/>
  1097. <status>0</status>
  1098. <priority>4</priority>
  1099. <description/>
  1100. <type>0</type>
  1101. <manual_close>1</manual_close>
  1102. <dependencies/>
  1103. <tags/>
  1104. </trigger_prototype>
  1105. <trigger_prototype>
  1106. <expression>{Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=2</expression>
  1107. <recovery_mode>0</recovery_mode>
  1108. <recovery_expression/>
  1109. <name>Service {#SERVICE} state is unknown</name>
  1110. <correlation_mode>0</correlation_mode>
  1111. <correlation_tag/>
  1112. <url/>
  1113. <status>0</status>
  1114. <priority>4</priority>
  1115. <description/>
  1116. <type>0</type>
  1117. <manual_close>1</manual_close>
  1118. <dependencies/>
  1119. <tags/>
  1120. </trigger_prototype>
  1121. </trigger_prototypes>
  1122. <graph_prototypes/>
  1123. <host_prototypes/>
  1124. <jmx_endpoint/>
  1125. <timeout>3s</timeout>
  1126. <url/>
  1127. <query_fields/>
  1128. <posts/>
  1129. <status_codes>200</status_codes>
  1130. <follow_redirects>1</follow_redirects>
  1131. <post_type>0</post_type>
  1132. <http_proxy/>
  1133. <headers/>
  1134. <retrieve_mode>0</retrieve_mode>
  1135. <request_method>0</request_method>
  1136. <allow_traps>0</allow_traps>
  1137. <ssl_cert_file/>
  1138. <ssl_key_file/>
  1139. <ssl_key_password/>
  1140. <verify_peer>0</verify_peer>
  1141. <verify_host>0</verify_host>
  1142. </discovery_rule>
  1143. <discovery_rule>
  1144. <name>Yunohost users</name>
  1145. <type>0</type>
  1146. <snmp_community/>
  1147. <snmp_oid/>
  1148. <key>yunohost.users.discover</key>
  1149. <delay>1d;h10m30</delay>
  1150. <status>0</status>
  1151. <allowed_hosts/>
  1152. <snmpv3_contextname/>
  1153. <snmpv3_securityname/>
  1154. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  1155. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  1156. <snmpv3_authpassphrase/>
  1157. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  1158. <snmpv3_privpassphrase/>
  1159. <params/>
  1160. <ipmi_sensor/>
  1161. <authtype>0</authtype>
  1162. <username/>
  1163. <password/>
  1164. <publickey/>
  1165. <privatekey/>
  1166. <port/>
  1167. <filter>
  1168. <evaltype>0</evaltype>
  1169. <formula/>
  1170. <conditions/>
  1171. </filter>
  1172. <lifetime>30d</lifetime>
  1173. <description/>
  1174. <item_prototypes>
  1175. <item_prototype>
  1176. <name>Quota percent for user {#USERNAME}</name>
  1177. <type>0</type>
  1178. <snmp_community/>
  1179. <snmp_oid/>
  1180. <key>yunohost.user.quota[{#USERNAME}]</key>
  1181. <delay>1h</delay>
  1182. <history>30d</history>
  1183. <trends>365d</trends>
  1184. <status>0</status>
  1185. <value_type>3</value_type>
  1186. <allowed_hosts/>
  1187. <units>%</units>
  1188. <snmpv3_contextname/>
  1189. <snmpv3_securityname/>
  1190. <snmpv3_securitylevel>0</snmpv3_securitylevel>
  1191. <snmpv3_authprotocol>0</snmpv3_authprotocol>
  1192. <snmpv3_authpassphrase/>
  1193. <snmpv3_privprotocol>0</snmpv3_privprotocol>
  1194. <snmpv3_privpassphrase/>
  1195. <params/>
  1196. <ipmi_sensor/>
  1197. <authtype>0</authtype>
  1198. <username/>
  1199. <password/>
  1200. <publickey/>
  1201. <privatekey/>
  1202. <port/>
  1203. <description/>
  1204. <inventory_link>0</inventory_link>
  1205. <applications>
  1206. <application>
  1207. <name>Yunohost : Users</name>
  1208. </application>
  1209. </applications>
  1210. <valuemap/>
  1211. <logtimefmt/>
  1212. <preprocessing/>
  1213. <jmx_endpoint/>
  1214. <timeout>3s</timeout>
  1215. <url/>
  1216. <query_fields/>
  1217. <posts/>
  1218. <status_codes>200</status_codes>
  1219. <follow_redirects>1</follow_redirects>
  1220. <post_type>0</post_type>
  1221. <http_proxy/>
  1222. <headers/>
  1223. <retrieve_mode>0</retrieve_mode>
  1224. <request_method>0</request_method>
  1225. <output_format>0</output_format>
  1226. <allow_traps>0</allow_traps>
  1227. <ssl_cert_file/>
  1228. <ssl_key_file/>
  1229. <ssl_key_password/>
  1230. <verify_peer>0</verify_peer>
  1231. <verify_host>0</verify_host>
  1232. <application_prototypes/>
  1233. <master_item/>
  1234. </item_prototype>
  1235. </item_prototypes>
  1236. <trigger_prototypes>
  1237. <trigger_prototype>
  1238. <expression>{Template Yunohost:yunohost.user.quota[{#USERNAME}].last()}&gt;=80</expression>
  1239. <recovery_mode>0</recovery_mode>
  1240. <recovery_expression/>
  1241. <name>User {#USERNAME} quota exceed 80%</name>
  1242. <correlation_mode>0</correlation_mode>
  1243. <correlation_tag/>
  1244. <url/>
  1245. <status>0</status>
  1246. <priority>3</priority>
  1247. <description/>
  1248. <type>0</type>
  1249. <manual_close>1</manual_close>
  1250. <dependencies/>
  1251. <tags/>
  1252. </trigger_prototype>
  1253. <trigger_prototype>
  1254. <expression>{Template Yunohost:yunohost.user.quota[{#USERNAME}].last()}&gt;=90</expression>
  1255. <recovery_mode>0</recovery_mode>
  1256. <recovery_expression/>
  1257. <name>User {#USERNAME} quota exceed 90%</name>
  1258. <correlation_mode>0</correlation_mode>
  1259. <correlation_tag/>
  1260. <url/>
  1261. <status>0</status>
  1262. <priority>4</priority>
  1263. <description/>
  1264. <type>0</type>
  1265. <manual_close>1</manual_close>
  1266. <dependencies/>
  1267. <tags/>
  1268. </trigger_prototype>
  1269. </trigger_prototypes>
  1270. <graph_prototypes/>
  1271. <host_prototypes/>
  1272. <jmx_endpoint/>
  1273. <timeout>3s</timeout>
  1274. <url/>
  1275. <query_fields/>
  1276. <posts/>
  1277. <status_codes>200</status_codes>
  1278. <follow_redirects>1</follow_redirects>
  1279. <post_type>0</post_type>
  1280. <http_proxy/>
  1281. <headers/>
  1282. <retrieve_mode>0</retrieve_mode>
  1283. <request_method>0</request_method>
  1284. <allow_traps>0</allow_traps>
  1285. <ssl_cert_file/>
  1286. <ssl_key_file/>
  1287. <ssl_key_password/>
  1288. <verify_peer>0</verify_peer>
  1289. <verify_host>0</verify_host>
  1290. </discovery_rule>
  1291. </discovery_rules>
  1292. <httptests/>
  1293. <macros/>
  1294. <templates/>
  1295. <screens/>
  1296. </template>
  1297. </templates>
  1298. <triggers>
  1299. <trigger>
  1300. <expression>{Template Yunohost:yunohost.migrations.lastavailable.last()}&lt;&gt;{Template Yunohost:yunohost.migrations.lastinstalled.last()}</expression>
  1301. <recovery_mode>0</recovery_mode>
  1302. <recovery_expression/>
  1303. <name>Yunhost has migration in pending state</name>
  1304. <correlation_mode>0</correlation_mode>
  1305. <correlation_tag/>
  1306. <url/>
  1307. <status>0</status>
  1308. <priority>1</priority>
  1309. <description/>
  1310. <type>0</type>
  1311. <manual_close>1</manual_close>
  1312. <dependencies/>
  1313. <tags/>
  1314. </trigger>
  1315. <trigger>
  1316. <expression>{Template Yunohost:yunohost.backups.ageoflastbackup.last()}&gt;=7</expression>
  1317. <recovery_mode>0</recovery_mode>
  1318. <recovery_expression/>
  1319. <name>Yunhost hasn't backup since 7 days</name>
  1320. <correlation_mode>0</correlation_mode>
  1321. <correlation_tag/>
  1322. <url/>
  1323. <status>0</status>
  1324. <priority>4</priority>
  1325. <description/>
  1326. <type>0</type>
  1327. <manual_close>1</manual_close>
  1328. <dependencies/>
  1329. <tags/>
  1330. </trigger>
  1331. <trigger>
  1332. <expression>{Template Yunohost:yunohost.backups.number.last()}=0</expression>
  1333. <recovery_mode>0</recovery_mode>
  1334. <recovery_expression/>
  1335. <name>Yunhost hasn't backup yet</name>
  1336. <correlation_mode>0</correlation_mode>
  1337. <correlation_tag/>
  1338. <url/>
  1339. <status>0</status>
  1340. <priority>4</priority>
  1341. <description/>
  1342. <type>0</type>
  1343. <manual_close>1</manual_close>
  1344. <dependencies/>
  1345. <tags/>
  1346. </trigger>
  1347. </triggers>
  1348. <value_maps>
  1349. <value_map>
  1350. <name>Service state</name>
  1351. <mappings>
  1352. <mapping>
  1353. <value>0</value>
  1354. <newvalue>Down</newvalue>
  1355. </mapping>
  1356. <mapping>
  1357. <value>1</value>
  1358. <newvalue>Up</newvalue>
  1359. </mapping>
  1360. </mappings>
  1361. </value_map>
  1362. <value_map>
  1363. <name>Yunohost : certificates</name>
  1364. <mappings>
  1365. <mapping>
  1366. <value>0</value>
  1367. <newvalue>unknown</newvalue>
  1368. </mapping>
  1369. <mapping>
  1370. <value>1</value>
  1371. <newvalue>critical</newvalue>
  1372. </mapping>
  1373. <mapping>
  1374. <value>2</value>
  1375. <newvalue>warning</newvalue>
  1376. </mapping>
  1377. <mapping>
  1378. <value>3</value>
  1379. <newvalue>attention</newvalue>
  1380. </mapping>
  1381. <mapping>
  1382. <value>4</value>
  1383. <newvalue>good</newvalue>
  1384. </mapping>
  1385. <mapping>
  1386. <value>5</value>
  1387. <newvalue>great</newvalue>
  1388. </mapping>
  1389. </mappings>
  1390. </value_map>
  1391. <value_map>
  1392. <name>Yunohost : services</name>
  1393. <mappings>
  1394. <mapping>
  1395. <value>0</value>
  1396. <newvalue>inactive</newvalue>
  1397. </mapping>
  1398. <mapping>
  1399. <value>1</value>
  1400. <newvalue>active</newvalue>
  1401. </mapping>
  1402. <mapping>
  1403. <value>2</value>
  1404. <newvalue>unknow</newvalue>
  1405. </mapping>
  1406. <mapping>
  1407. <value>3</value>
  1408. <newvalue>disabled</newvalue>
  1409. </mapping>
  1410. </mappings>
  1411. </value_map>
  1412. </value_maps>
  1413. </zabbix_export>