diff --git a/sources/extra_files/app/Template_Yunohost.xml b/sources/extra_files/app/Template_Yunohost.xml index ddd4f30..6094add 100644 --- a/sources/extra_files/app/Template_Yunohost.xml +++ b/sources/extra_files/app/Template_Yunohost.xml @@ -1,7 +1,7 @@ - 4.0 - 2019-03-07T14:08:51Z + 4.4 + 2020-01-13T12:25:26Z Templates/Applications @@ -126,304 +126,75 @@ fi Age of the last backup - 0 - - yunohost.backups.ageoflastbackup 1d;h10m45 - 90d - 365d - 0 - 3 - days - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Backups - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - + + + {last()}>=7 + Yunhost hasn't backup since 7 days + HIGH + YES + + Number of Yunohost backups - 0 - - yunohost.backups.number 1d;h11 - 90d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Backups - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - + + + {last()}=0 + Yunhost hasn't backup yet + HIGH + YES + + Id of the last migration available - 0 - - yunohost.migrations.lastavailable 1d;h10m50 - 90d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Migrations - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - Id of the last migration installed - 0 - - yunohost.migrations.lastinstalled 1d;h10m55 - 90d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Migrations - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - Yunohost domains - 0 - - yunohost.domains.discover 1d;h10 - 0 - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 - - - - 30d - Certificate {#DOMAIN} expiration - 18 - - + DEPENDENT yunohost.domain.cert.expiration[{#DOMAIN}] 0 180d - 365d - 0 - 3 - d - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Certificates @@ -432,69 +203,61 @@ fi Yunohost : Certificates : Expiration - - - 5 + REGEX (.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*); \2 - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - yunohost.domain.cert[{#DOMAIN}] + + + {last()}< 1 + Remaining days for certificate {#DOMAIN} < 1 + {ITEM.LASTVALUE} + DISASTER + + + {last()}<7 + Remaining days for certificate {#DOMAIN} < 7 + {ITEM.LASTVALUE} + HIGH + + + Remaining days for certificate {#DOMAIN} < 1 + {Template Yunohost:yunohost.domain.cert.expiration[{#DOMAIN}].last()}< 1 + + + + + {last()}<30 + Remaining days for certificate {#DOMAIN} < 30 + {ITEM.LASTVALUE} + AVERAGE + + + Remaining days for certificate {#DOMAIN} < 1 + {Template Yunohost:yunohost.domain.cert.expiration[{#DOMAIN}].last()}< 1 + + + Remaining days for certificate {#DOMAIN} < 7 + {Template Yunohost:yunohost.domain.cert.expiration[{#DOMAIN}].last()}<7 + + + + Certificate {#DOMAIN} state - 18 - - + DEPENDENT yunohost.domain.cert.state[{#DOMAIN}] 0 180d 0 - 0 - 1 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 + CHAR Yunohost : Certificates @@ -506,188 +269,47 @@ fi Yunohost : certificates - - 5 + REGEX (.*);(.*);(.*);(.*);(.*);(.*);(.*);(.*); \3:unknown=0:critical=1:warning=2:attention=3:good=4;great=5 - 5 + REGEX ^(unknown|critical|warning|attention|good|great):(?=.*\1=(\d)) \2 - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - yunohost.domain.cert[{#DOMAIN}] Informations {#DOMAIN} full - 0 - - yunohost.domain.cert[{#DOMAIN}] 1d 180d 0 - 0 - 1 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 + CHAR Yunohost : Certificates - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - - - - 0 - 0 TCP Ports opened - 0 - - yunohost.ports.tcp.discover 1d;h9m30 - 0 - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 - - - 7d - Check TCP port {#PORT} responding - 0 - - net.tcp.service[tcp,127.0.0.1,{#PORT}] 900s - 90d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Ports @@ -696,132 +318,27 @@ fi Service state - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - + + + {last()}=0 + TCP port {#PORT} not responding + HIGH + YES + + - - - {Template Yunohost:net.tcp.service[tcp,127.0.0.1,{#PORT}].last()}=0 - 0 - - TCP port {#PORT} not responding - 0 - - - 0 - 4 - - 0 - 1 - - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - - - - 0 - 0 UDP Ports opened - 0 - - yunohost.ports.udp.discover 1d;h9m45 - 0 - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 - - - 0d - Check UDP port {#PORT} listening - 0 - - net.udp.listen[{#PORT}] 900s - 90d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Ports @@ -830,132 +347,29 @@ fi Service state - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - + + + {last()}=0 + UDP port {#PORT} not listening + HIGH + YES + + - - - {Template Yunohost:net.udp.listen[{#PORT}].last()}=0 - 0 - - UDP port {#PORT} not listening - 0 - - - 0 - 4 - - 0 - 1 - - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - - - - 0 - 0 Yunohost services - 0 - - yunohost.services.discover 1d;h10m15 - 0 - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 - - - 7d - Yunohost service {#SERVICE} status - 18 - - + DEPENDENT yunohost.service.statusrunp[{#SERVICE}] 0 7d - 365d - 0 - 3 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Services @@ -967,382 +381,103 @@ fi Yunohost : services - - 12 + JSONPATH $.active - 5 + REGEX (.*) \1:inactive=0:active=1:unknown=2;disabled=3 - 5 + REGEX ^(inactive|active|unknown|disabled):(?=.*\1=(\d)) \2 - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - yunohost.service.status[{#SERVICE}] + + + {last()}=3 + Service {#SERVICE} disabled + HIGH + YES + + + {last()}=0 + Service {#SERVICE} state is inactive + HIGH + YES + + + {last()}=2 + Service {#SERVICE} state is unknown + HIGH + YES + + Yunohost service {#SERVICE} status (full) - 0 - - yunohost.service.status[{#SERVICE}] 15m 7d 0 - 0 - 1 - - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 + CHAR Yunohost : Services - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - - - - {Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=3 - 0 - - Service {#SERVICE} disabled - 0 - - - 0 - 4 - - 0 - 1 - - - - - {Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=0 - 0 - - Service {#SERVICE} state is inactive - 0 - - - 0 - 4 - - 0 - 1 - - - - - {Template Yunohost:yunohost.service.statusrunp[{#SERVICE}].last()}=2 - 0 - - Service {#SERVICE} state is unknown - 0 - - - 0 - 4 - - 0 - 1 - - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - - - - 0 - 0 Yunohost users - 0 - - yunohost.users.discover 1d;h10m30 - 0 - - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 - - - - 30d - Quota percent for user {#USERNAME} - 0 - - yunohost.user.quota[{#USERNAME}] 1h 30d - 365d - 0 - 3 - % - - - 0 - 0 - - 0 - - - - 0 - - - - - - - 0 Yunohost : Users - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - 0 - - - - 0 - 0 - - + + + {last()}>=80 + User {#USERNAME} quota exceed 80% + AVERAGE + YES + + + {last()}>=90 + User {#USERNAME} quota exceed 90% + HIGH + YES + + - - - {Template Yunohost:yunohost.user.quota[{#USERNAME}].last()}>=80 - 0 - - User {#USERNAME} quota exceed 80% - 0 - - - 0 - 3 - - 0 - 1 - - - - - {Template Yunohost:yunohost.user.quota[{#USERNAME}].last()}>=90 - 0 - - User {#USERNAME} quota exceed 90% - 0 - - - 0 - 4 - - 0 - 1 - - - - - - - - 3s - - - - 200 - 1 - 0 - - - 0 - 0 - 0 - - - - 0 - 0 - - - - {Template Yunohost:yunohost.migrations.lastavailable.last()}<>{Template Yunohost:yunohost.migrations.lastinstalled.last()} - 0 - Yunhost has migration in pending state - 0 - - - 0 - 1 - - 0 - 1 - - - - - {Template Yunohost:yunohost.backups.ageoflastbackup.last()}>=7 - 0 - - Yunhost hasn't backup since 7 days - 0 - - - 0 - 4 - - 0 - 1 - - - - - {Template Yunohost:yunohost.backups.number.last()}=0 - 0 - - Yunhost hasn't backup yet - 0 - - - 0 - 4 - - 0 - 1 - - + INFO + YES