81 lines
2.3 KiB
JSON
81 lines
2.3 KiB
JSON
{
|
|
"zabbix_export": {
|
|
"version": "7.0",
|
|
"template_groups": [
|
|
{
|
|
"uuid": "7df96b18c230490a9a0a9e2307226338",
|
|
"name": "Templates"
|
|
},
|
|
{
|
|
"uuid": "57b7ae836ca64446ba2c296389c009b7",
|
|
"name": "Templates/Modules"
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"uuid": "82ebfffb1efb4f928a3d167af67249cd",
|
|
"template": "SMB Share",
|
|
"name": "Template Module SMB Share",
|
|
"description": "Check SMB share availability and rights",
|
|
"groups": [
|
|
{
|
|
"name": "Templates"
|
|
},
|
|
{
|
|
"name": "Templates/Modules"
|
|
}
|
|
],
|
|
"items": [
|
|
{
|
|
"uuid": "578d5ff1fa604b908e0c306417189bee",
|
|
"name": "Check SMB right",
|
|
"type": "EXTERNAL",
|
|
"key": "frogg_smb_check.sh[right,{HOST.CONN},{$SMBRIGHTS}]",
|
|
"delay": "30m",
|
|
"history": "7d",
|
|
"trends": "0",
|
|
"value_type": "TEXT",
|
|
"tags": [
|
|
{
|
|
"tag": "Application",
|
|
"value": "SMB"
|
|
}
|
|
],
|
|
"triggers": [
|
|
{
|
|
"uuid": "f92207cea23e4356b5f1ba58e0e7d001",
|
|
"expression": "length(last(/SMB Share/frogg_smb_check.sh[right,{HOST.CONN},{$SMBRIGHTS}]))>0",
|
|
"name": "SMB right incorrect {ITEM.VALUE} on {HOST.NAME}",
|
|
"priority": "WARNING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "972f42172bed452aa9d28e1ae5da29a9",
|
|
"name": "Check SMB share",
|
|
"type": "EXTERNAL",
|
|
"key": "frogg_smb_check.sh[share,{HOST.CONN},{$SMBSHARES}]",
|
|
"delay": "30s",
|
|
"history": "7d",
|
|
"trends": "0",
|
|
"value_type": "TEXT",
|
|
"tags": [
|
|
{
|
|
"tag": "Application",
|
|
"value": "SMB"
|
|
}
|
|
],
|
|
"triggers": [
|
|
{
|
|
"uuid": "7c09d18492da49e280157bbbc9125550",
|
|
"expression": "length(last(/SMB Share/frogg_smb_check.sh[share,{HOST.CONN},{$SMBSHARES}]))>0",
|
|
"name": "SMB share {ITEM.VALUE} unavailable on {HOST.NAME}",
|
|
"priority": "AVERAGE"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |