Template_Yunohost.xml 63 KB

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