Correction du template pour la v7

This commit is contained in:
Frogg 2026-05-16 12:13:00 +02:00
parent 2dc144d356
commit a9c839a970
1 changed files with 22 additions and 10 deletions

View File

@ -16,7 +16,7 @@
"uuid": "f06ff2609709457a8b293b20673a2a38", "uuid": "f06ff2609709457a8b293b20673a2a38",
"template": "NFS Share", "template": "NFS Share",
"name": "Template Module NFS Share", "name": "Template Module NFS Share",
"description": "This template check NFS version and shares", "description": "This template check NFS version and shares via external script",
"groups": [ "groups": [
{ {
"name": "Templates" "name": "Templates"
@ -29,11 +29,12 @@
{ {
"uuid": "8d5b183b54ae4553b40e9ac5a97057bd", "uuid": "8d5b183b54ae4553b40e9ac5a97057bd",
"name": "NFS share", "name": "NFS share",
"key": "nfsshare.share[{HOST.CONN},{$NFSSHARES}]", "type": "EXTERNAL",
"key": "frogg_nfs_check.sh[\"share\",\"{HOST.CONN}\",\"{$NFSSHARES}\"]",
"delay": "2m", "delay": "2m",
"history": "7d", "history": "7d",
"trends": "0",
"value_type": "TEXT", "value_type": "TEXT",
"trends": "0",
"tags": [ "tags": [
{ {
"tag": "Application", "tag": "Application",
@ -43,7 +44,7 @@
"triggers": [ "triggers": [
{ {
"uuid": "ff189fd566634a8dba0c50629bc6b308", "uuid": "ff189fd566634a8dba0c50629bc6b308",
"expression": "length(last(/NFS Share/nfsshare.share[{HOST.CONN},{$NFSSHARES}]))>0", "expression": "length(last(/NFS Share/frogg_nfs_check.sh[\"share\",\"{HOST.CONN}\",\"{$NFSSHARES}\"]))>0",
"name": "NFS share {ITEM.VALUE} unavailable on {HOST.NAME}", "name": "NFS share {ITEM.VALUE} unavailable on {HOST.NAME}",
"priority": "AVERAGE" "priority": "AVERAGE"
} }
@ -52,11 +53,12 @@
{ {
"uuid": "131cded651f94bbaabe6dbd674cd91ef", "uuid": "131cded651f94bbaabe6dbd674cd91ef",
"name": "Check NFS version", "name": "Check NFS version",
"key": "nfsshare.version[{HOST.CONN}]", "type": "EXTERNAL",
"key": "frogg_nfs_check.sh[\"version\",\"{HOST.CONN}\"]",
"delay": "30m", "delay": "30m",
"history": "7d", "history": "7d",
"trends": "0",
"value_type": "FLOAT", "value_type": "FLOAT",
"trends": "0",
"tags": [ "tags": [
{ {
"tag": "Application", "tag": "Application",
@ -66,24 +68,34 @@
"triggers": [ "triggers": [
{ {
"uuid": "ee493a5919a041c5bc1d10fb7819ce8e", "uuid": "ee493a5919a041c5bc1d10fb7819ce8e",
"expression": "last(/NFS Share/nfsshare.version[{HOST.CONN}])=0", "expression": "last(/NFS Share/frogg_nfs_check.sh[\"version\",\"{HOST.CONN}\"])=0",
"name": "NFS service is down on {HOST.NAME}", "name": "NFS service is down on {HOST.NAME}",
"priority": "AVERAGE" "priority": "AVERAGE"
}, },
{ {
"uuid": "e883f03d35a54273a6513637f88bbf91", "uuid": "e883f03d35a54273a6513637f88bbf91",
"expression": "last(/NFS Share/nfsshare.version[{HOST.CONN}])<>{$NFSVERSION}", "expression": "last(/NFS Share/frogg_nfs_check.sh[\"version\",\"{HOST.CONN}\"])<>{$NFSVERSION}",
"name": "NFS version is {ITEM.VALUE} instead of {$NFSVERSION} on {HOST.NAME}", "name": "NFS version is {ITEM.VALUE} instead of {$NFSVERSION} on {HOST.NAME}",
"priority": "WARNING" "priority": "WARNING"
} }
] ]
} }
], ],
"tags": [
{
"tag": "Author",
"value": "Frogg"
},
{
"tag": "Network",
"value": "status"
}
],
"macros": [ "macros": [
{ {
"macro": "{$NFSSHARES}", "macro": "{$NFSSHARES}",
"value": "/nfsshare1,/nfsshare2", "value": "/bkPROXMOX",
"description": "List of shares separated by ," "description": "NFS share path to check"
}, },
{ {
"macro": "{$NFSVERSION}", "macro": "{$NFSVERSION}",