Template_Yunohost.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3. <version>4.4</version>
  4. <date>2020-04-22T11:49:47Z</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. <key>yunohost.backups.ageoflastbackup</key>
  130. <delay>1d;h10m45</delay>
  131. <units>days</units>
  132. <applications>
  133. <application>
  134. <name>Yunohost : Backups</name>
  135. </application>
  136. </applications>
  137. <triggers>
  138. <trigger>
  139. <expression>{last()}&gt;=7</expression>
  140. <name>Yunhost hasn't backup since 7 days</name>
  141. <priority>HIGH</priority>
  142. <manual_close>YES</manual_close>
  143. </trigger>
  144. </triggers>
  145. </item>
  146. <item>
  147. <name>Number of Yunohost backups</name>
  148. <key>yunohost.backups.number</key>
  149. <delay>1d;h11</delay>
  150. <applications>
  151. <application>
  152. <name>Yunohost : Backups</name>
  153. </application>
  154. </applications>
  155. <triggers>
  156. <trigger>
  157. <expression>{last()}=0</expression>
  158. <name>Yunhost hasn't backup yet</name>
  159. <priority>HIGH</priority>
  160. <manual_close>YES</manual_close>
  161. </trigger>
  162. </triggers>
  163. </item>
  164. <item>
  165. <name>Id of the last migration available</name>
  166. <key>yunohost.migrations.lastavailable</key>
  167. <delay>1d;h10m50</delay>
  168. <applications>
  169. <application>
  170. <name>Yunohost : Migrations</name>
  171. </application>
  172. </applications>
  173. </item>
  174. <item>
  175. <name>Id of the last migration installed</name>
  176. <key>yunohost.migrations.lastinstalled</key>
  177. <delay>1d;h10m55</delay>
  178. <applications>
  179. <application>
  180. <name>Yunohost : Migrations</name>
  181. </application>
  182. </applications>
  183. </item>
  184. </items>
  185. <discovery_rules>
  186. <discovery_rule>
  187. <name>Yunohost domains</name>
  188. <key>yunohost.domains.discover</key>
  189. <delay>1d;h10</delay>
  190. <item_prototypes>
  191. <item_prototype>
  192. <name>Certificate {#DOMAIN} expiration</name>
  193. <type>DEPENDENT</type>
  194. <key>yunohost.domain.cert.expiration[{#DOMAIN}]</key>
  195. <delay>0</delay>
  196. <history>180d</history>
  197. <units>d</units>
  198. <applications>
  199. <application>
  200. <name>Yunohost : Certificates</name>
  201. </application>
  202. <application>
  203. <name>Yunohost : Certificates : Expiration</name>
  204. </application>
  205. </applications>
  206. <preprocessing>
  207. <step>
  208. <type>REGEX</type>
  209. <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);
  210. \2</params>
  211. </step>
  212. </preprocessing>
  213. <master_item>
  214. <key>yunohost.domain.cert[{#DOMAIN}]</key>
  215. </master_item>
  216. <trigger_prototypes>
  217. <trigger_prototype>
  218. <expression>{last()}&lt; 1</expression>
  219. <name>Remaining days for certificate {#DOMAIN} &lt; 1</name>
  220. <opdata>{ITEM.LASTVALUE}</opdata>
  221. <priority>DISASTER</priority>
  222. </trigger_prototype>
  223. <trigger_prototype>
  224. <expression>{last()}&lt;7</expression>
  225. <name>Remaining days for certificate {#DOMAIN} &lt; 7</name>
  226. <opdata>{ITEM.LASTVALUE}</opdata>
  227. <priority>HIGH</priority>
  228. <dependencies>
  229. <dependency>
  230. <name>Remaining days for certificate {#DOMAIN} &lt; 1</name>
  231. <expression>{Template Yunohost:yunohost.domain.cert.expiration[{#DOMAIN}].last()}&lt; 1</expression>
  232. </dependency>
  233. </dependencies>
  234. </trigger_prototype>
  235. <trigger_prototype>
  236. <expression>{last()}&lt;30</expression>
  237. <name>Remaining days for certificate {#DOMAIN} &lt; 30</name>
  238. <opdata>{ITEM.LASTVALUE}</opdata>
  239. <priority>AVERAGE</priority>
  240. <dependencies>
  241. <dependency>
  242. <name>Remaining days for certificate {#DOMAIN} &lt; 1</name>
  243. <expression>{Template Yunohost:yunohost.domain.cert.expiration[{#DOMAIN}].last()}&lt; 1</expression>
  244. </dependency>
  245. <dependency>
  246. <name>Remaining days for certificate {#DOMAIN} &lt; 7</name>
  247. <expression>{Template Yunohost:yunohost.domain.cert.expiration[{#DOMAIN}].last()}&lt;7</expression>
  248. </dependency>
  249. </dependencies>
  250. </trigger_prototype>
  251. </trigger_prototypes>
  252. </item_prototype>
  253. <item_prototype>
  254. <name>Certificate {#DOMAIN} state</name>
  255. <type>DEPENDENT</type>
  256. <key>yunohost.domain.cert.state[{#DOMAIN}]</key>
  257. <delay>0</delay>
  258. <history>180d</history>
  259. <trends>0</trends>
  260. <value_type>CHAR</value_type>
  261. <applications>
  262. <application>
  263. <name>Yunohost : Certificates</name>
  264. </application>
  265. <application>
  266. <name>Yunohost : Certificates : State</name>
  267. </application>
  268. </applications>
  269. <valuemap>
  270. <name>Yunohost : certificates</name>
  271. </valuemap>
  272. <preprocessing>
  273. <step>
  274. <type>REGEX</type>
  275. <params>(.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*);
  276. \3:unknown=0:critical=1:warning=2:attention=3:good=4;great=5</params>
  277. </step>
  278. <step>
  279. <type>REGEX</type>
  280. <params>^(unknown|critical|warning|attention|good|great):(?=.*\1=(\d))
  281. \2</params>
  282. </step>
  283. </preprocessing>
  284. <master_item>
  285. <key>yunohost.domain.cert[{#DOMAIN}]</key>
  286. </master_item>
  287. </item_prototype>
  288. <item_prototype>
  289. <name>Informations {#DOMAIN} full</name>
  290. <key>yunohost.domain.cert[{#DOMAIN}]</key>
  291. <delay>1d</delay>
  292. <history>180d</history>
  293. <trends>0</trends>
  294. <value_type>CHAR</value_type>
  295. <applications>
  296. <application>
  297. <name>Yunohost : Certificates</name>
  298. </application>
  299. </applications>
  300. </item_prototype>
  301. </item_prototypes>
  302. </discovery_rule>
  303. <discovery_rule>
  304. <name>TCP Ports opened</name>
  305. <key>yunohost.ports.tcp.discover</key>
  306. <delay>1d;h9m30</delay>
  307. <lifetime>7d</lifetime>
  308. <item_prototypes>
  309. <item_prototype>
  310. <name>Check TCP port {#PORT} responding</name>
  311. <key>net.tcp.service[tcp,127.0.0.1,{#PORT}]</key>
  312. <delay>900s</delay>
  313. <applications>
  314. <application>
  315. <name>Yunohost : Ports</name>
  316. </application>
  317. </applications>
  318. <valuemap>
  319. <name>Service state</name>
  320. </valuemap>
  321. <trigger_prototypes>
  322. <trigger_prototype>
  323. <expression>{last()}=0</expression>
  324. <name>TCP port {#PORT} not responding</name>
  325. <priority>HIGH</priority>
  326. <manual_close>YES</manual_close>
  327. </trigger_prototype>
  328. </trigger_prototypes>
  329. </item_prototype>
  330. </item_prototypes>
  331. </discovery_rule>
  332. <discovery_rule>
  333. <name>UDP Ports opened</name>
  334. <key>yunohost.ports.udp.discover</key>
  335. <delay>1d;h9m45</delay>
  336. <lifetime>0d</lifetime>
  337. <item_prototypes>
  338. <item_prototype>
  339. <name>Check UDP port {#PORT} listening</name>
  340. <key>net.udp.listen[{#PORT}]</key>
  341. <delay>900s</delay>
  342. <applications>
  343. <application>
  344. <name>Yunohost : Ports</name>
  345. </application>
  346. </applications>
  347. <valuemap>
  348. <name>Service state</name>
  349. </valuemap>
  350. <trigger_prototypes>
  351. <trigger_prototype>
  352. <expression>{last()}=0</expression>
  353. <name>UDP port {#PORT} not listening</name>
  354. <priority>HIGH</priority>
  355. <manual_close>YES</manual_close>
  356. </trigger_prototype>
  357. </trigger_prototypes>
  358. </item_prototype>
  359. </item_prototypes>
  360. </discovery_rule>
  361. <discovery_rule>
  362. <name>Yunohost services</name>
  363. <key>yunohost.services.discover</key>
  364. <delay>1d;h10m15</delay>
  365. <lifetime>7d</lifetime>
  366. <item_prototypes>
  367. <item_prototype>
  368. <name>Yunohost service {#SERVICE} status</name>
  369. <type>DEPENDENT</type>
  370. <key>yunohost.service.statusrunp[{#SERVICE}]</key>
  371. <delay>0</delay>
  372. <history>7d</history>
  373. <applications>
  374. <application>
  375. <name>Yunohost : Services</name>
  376. </application>
  377. <application>
  378. <name>Yunohost : Services : Status</name>
  379. </application>
  380. </applications>
  381. <valuemap>
  382. <name>Yunohost : services</name>
  383. </valuemap>
  384. <preprocessing>
  385. <step>
  386. <type>JSONPATH</type>
  387. <params>$.active</params>
  388. </step>
  389. <step>
  390. <type>REGEX</type>
  391. <params>(.*)
  392. \1:inactive=0:active=1:unknown=2;disabled=3</params>
  393. </step>
  394. <step>
  395. <type>REGEX</type>
  396. <params>^(inactive|active|unknown|disabled):(?=.*\1=(\d))
  397. \2</params>
  398. </step>
  399. </preprocessing>
  400. <master_item>
  401. <key>yunohost.service.status[{#SERVICE}]</key>
  402. </master_item>
  403. <trigger_prototypes>
  404. <trigger_prototype>
  405. <expression>{last()}=3</expression>
  406. <name>Service {#SERVICE} disabled</name>
  407. <priority>HIGH</priority>
  408. <manual_close>YES</manual_close>
  409. </trigger_prototype>
  410. <trigger_prototype>
  411. <expression>{last()}=0</expression>
  412. <name>Service {#SERVICE} state is inactive</name>
  413. <priority>HIGH</priority>
  414. <manual_close>YES</manual_close>
  415. </trigger_prototype>
  416. <trigger_prototype>
  417. <expression>{last()}=2</expression>
  418. <name>Service {#SERVICE} state is unknown</name>
  419. <priority>HIGH</priority>
  420. <manual_close>YES</manual_close>
  421. </trigger_prototype>
  422. </trigger_prototypes>
  423. </item_prototype>
  424. <item_prototype>
  425. <name>Yunohost service {#SERVICE} status (full)</name>
  426. <key>yunohost.service.status[{#SERVICE}]</key>
  427. <delay>15m</delay>
  428. <history>7d</history>
  429. <trends>0</trends>
  430. <value_type>CHAR</value_type>
  431. <applications>
  432. <application>
  433. <name>Yunohost : Services</name>
  434. </application>
  435. </applications>
  436. </item_prototype>
  437. </item_prototypes>
  438. </discovery_rule>
  439. <discovery_rule>
  440. <name>Yunohost users</name>
  441. <key>yunohost.users.discover</key>
  442. <delay>1d;h10m30</delay>
  443. <item_prototypes>
  444. <item_prototype>
  445. <name>Quota percent for user {#USERNAME}</name>
  446. <key>yunohost.user.quota[{#USERNAME}]</key>
  447. <delay>1h</delay>
  448. <history>30d</history>
  449. <units>%</units>
  450. <applications>
  451. <application>
  452. <name>Yunohost : Users</name>
  453. </application>
  454. </applications>
  455. <trigger_prototypes>
  456. <trigger_prototype>
  457. <expression>{last()}&gt;=80</expression>
  458. <name>User {#USERNAME} quota exceed 80%</name>
  459. <priority>AVERAGE</priority>
  460. <manual_close>YES</manual_close>
  461. </trigger_prototype>
  462. <trigger_prototype>
  463. <expression>{last()}&gt;=90</expression>
  464. <name>User {#USERNAME} quota exceed 90%</name>
  465. <priority>HIGH</priority>
  466. <manual_close>YES</manual_close>
  467. </trigger_prototype>
  468. </trigger_prototypes>
  469. </item_prototype>
  470. </item_prototypes>
  471. </discovery_rule>
  472. </discovery_rules>
  473. </template>
  474. </templates>
  475. <triggers>
  476. <trigger>
  477. <expression>{Template Yunohost:yunohost.migrations.lastavailable.last()}&lt;&gt;{Template Yunohost:yunohost.migrations.lastinstalled.last()}</expression>
  478. <name>Yunhost has migration in pending state</name>
  479. <priority>INFO</priority>
  480. <manual_close>YES</manual_close>
  481. </trigger>
  482. </triggers>
  483. <value_maps>
  484. <value_map>
  485. <name>Service state</name>
  486. <mappings>
  487. <mapping>
  488. <value>0</value>
  489. <newvalue>Down</newvalue>
  490. </mapping>
  491. <mapping>
  492. <value>1</value>
  493. <newvalue>Up</newvalue>
  494. </mapping>
  495. </mappings>
  496. </value_map>
  497. <value_map>
  498. <name>Yunohost : certificates</name>
  499. <mappings>
  500. <mapping>
  501. <value>0</value>
  502. <newvalue>unknown</newvalue>
  503. </mapping>
  504. <mapping>
  505. <value>1</value>
  506. <newvalue>critical</newvalue>
  507. </mapping>
  508. <mapping>
  509. <value>2</value>
  510. <newvalue>warning</newvalue>
  511. </mapping>
  512. <mapping>
  513. <value>3</value>
  514. <newvalue>attention</newvalue>
  515. </mapping>
  516. <mapping>
  517. <value>4</value>
  518. <newvalue>good</newvalue>
  519. </mapping>
  520. <mapping>
  521. <value>5</value>
  522. <newvalue>great</newvalue>
  523. </mapping>
  524. </mappings>
  525. </value_map>
  526. <value_map>
  527. <name>Yunohost : services</name>
  528. <mappings>
  529. <mapping>
  530. <value>0</value>
  531. <newvalue>inactive</newvalue>
  532. </mapping>
  533. <mapping>
  534. <value>1</value>
  535. <newvalue>active</newvalue>
  536. </mapping>
  537. <mapping>
  538. <value>2</value>
  539. <newvalue>unknow</newvalue>
  540. </mapping>
  541. <mapping>
  542. <value>3</value>
  543. <newvalue>disabled</newvalue>
  544. </mapping>
  545. </mappings>
  546. </value_map>
  547. </value_maps>
  548. </zabbix_export>