From 02cec2e7e8b67d28f74654d561530241284b73d0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 19 Jun 2021 14:22:10 +0200 Subject: [PATCH] Update and provide more templates --- zabbix_templates/Template_App_BackupPC.xml | 2 +- zabbix_templates/Template_App_DRBD.xml | 284 +-- zabbix_templates/Template_App_GlusterFS.xml | 411 +--- zabbix_templates/Template_App_HSQL.xml | 97 + zabbix_templates/Template_App_Multipath.xml | 2 +- zabbix_templates/Template_App_MySQL.xml | 2 +- zabbix_templates/Template_App_MySQL_Legacy.xml | 78 + zabbix_templates/Template_App_PMG.xml | 1822 ++---------------- zabbix_templates/Template_App_PVE_Cluster.xml | 2 +- zabbix_templates/Template_App_Qmail.xml | 73 + zabbix_templates/Template_App_SOGo.xml | 66 + zabbix_templates/Template_App_SSLExpire.xml | 51 + zabbix_templates/Template_App_Samba.xml | 124 ++ zabbix_templates/Template_App_Samba_DC.xml | 165 +- .../Template_App_Samba_DC_Aggregate.xml | 177 ++ zabbix_templates/Template_App_Squid.xml | 31 +- zabbix_templates/Template_App_Squid_Legacy.xml | 160 ++ zabbix_templates/Template_App_Unifi.xml | 27 +- zabbix_templates/Template_App_ZFS.xml | 11 +- zabbix_templates/Template_App_Zabbix_Server.xml | 937 +++++++++ zabbix_templates/Template_Dell_Equallogic.xml | 1760 +++++++++++++++++ zabbix_templates/Template_Netgear_ReadyNAS.xml | 603 ++++++ zabbix_templates/Template_OS_Fortigate.xml | 195 ++ zabbix_templates/Template_OS_Linux_Minimal.xml | 1983 ++++++++++++++++++++ zabbix_templates/Template_OS_Linux_Server.xml | 1168 ++++++++++++ zabbix_templates/Template_OS_PfSense2.xml | 626 +++++- zabbix_templates/Template_OS_Windows_Minimal.xml | 806 ++++++++ zabbix_templates/Template_OS_Windows_Server.xml | 339 ++++ zabbix_templates/Template_OS_iPasserelle.xml | 980 ++++++++++ zabbix_templates/Template_Ping.xml | 43 +- zabbix_templates/Template_PublicService_HTTP.xml | 134 ++ zabbix_templates/Template_QNAP_NAS.xml | 723 +++++++ zabbix_templates/Template_Switch_Cisco.xml | 63 + .../Template_Switch_Dell_PowerConnect.xml | 429 +++++ .../Template_Switch_Netgear_ProSafe.xml | 145 ++ zabbix_templates/Template_Switch_Unifi.xml | 26 + zabbix_templates/Template_UPS_APC_SNMP.xml | 183 ++ zabbix_templates/Temùplate_Switch_ZyXel_GS.xml | 26 + 38 files changed, 12211 insertions(+), 2543 deletions(-) create mode 100644 zabbix_templates/Template_App_HSQL.xml create mode 100644 zabbix_templates/Template_App_MySQL_Legacy.xml create mode 100644 zabbix_templates/Template_App_Qmail.xml create mode 100644 zabbix_templates/Template_App_SOGo.xml create mode 100644 zabbix_templates/Template_App_SSLExpire.xml create mode 100644 zabbix_templates/Template_App_Samba.xml create mode 100644 zabbix_templates/Template_App_Samba_DC_Aggregate.xml create mode 100644 zabbix_templates/Template_App_Squid_Legacy.xml create mode 100644 zabbix_templates/Template_App_Zabbix_Server.xml create mode 100644 zabbix_templates/Template_Dell_Equallogic.xml create mode 100644 zabbix_templates/Template_Netgear_ReadyNAS.xml create mode 100644 zabbix_templates/Template_OS_Fortigate.xml create mode 100644 zabbix_templates/Template_OS_Linux_Minimal.xml create mode 100644 zabbix_templates/Template_OS_Linux_Server.xml create mode 100644 zabbix_templates/Template_OS_Windows_Minimal.xml create mode 100644 zabbix_templates/Template_OS_Windows_Server.xml create mode 100644 zabbix_templates/Template_OS_iPasserelle.xml create mode 100644 zabbix_templates/Template_PublicService_HTTP.xml create mode 100644 zabbix_templates/Template_QNAP_NAS.xml create mode 100644 zabbix_templates/Template_Switch_Cisco.xml create mode 100644 zabbix_templates/Template_Switch_Dell_PowerConnect.xml create mode 100644 zabbix_templates/Template_Switch_Netgear_ProSafe.xml create mode 100644 zabbix_templates/Template_Switch_Unifi.xml create mode 100644 zabbix_templates/Template_UPS_APC_SNMP.xml create mode 100644 zabbix_templates/Temùplate_Switch_ZyXel_GS.xml diff --git a/zabbix_templates/Template_App_BackupPC.xml b/zabbix_templates/Template_App_BackupPC.xml index 8311828..194bcf3 100644 --- a/zabbix_templates/Template_App_BackupPC.xml +++ b/zabbix_templates/Template_App_BackupPC.xml @@ -1,7 +1,7 @@ 5.0 - 2021-01-13T18:30:36Z + 2021-06-19T12:07:27Z Templates diff --git a/zabbix_templates/Template_App_DRBD.xml b/zabbix_templates/Template_App_DRBD.xml index ef59402..78f164e 100644 --- a/zabbix_templates/Template_App_DRBD.xml +++ b/zabbix_templates/Template_App_DRBD.xml @@ -1,7 +1,7 @@ - 4.2 - 2019-10-11T16:40:31Z + 5.0 + 2021-06-19T12:07:47Z Templates @@ -11,7 +11,6 @@ diff --git a/zabbix_templates/Template_App_GlusterFS.xml b/zabbix_templates/Template_App_GlusterFS.xml index e9354ac..f7336cb 100644 --- a/zabbix_templates/Template_App_GlusterFS.xml +++ b/zabbix_templates/Template_App_GlusterFS.xml @@ -1,7 +1,7 @@ - 4.2 - 2019-10-11T16:47:18Z + 5.0 + 2021-06-19T12:08:07Z Templates @@ -11,7 +11,6 @@ - - - {Template_App_GlusterFS:proc.num[glusterfs].last()}<1 - 0 - - GlusterFS: No gluster process runing - 0 - - - 0 - 4 - - 0 - 0 - - - - diff --git a/zabbix_templates/Template_App_HSQL.xml b/zabbix_templates/Template_App_HSQL.xml new file mode 100644 index 0000000..75499c2 --- /dev/null +++ b/zabbix_templates/Template_App_HSQL.xml @@ -0,0 +1,97 @@ + + + 5.0 + 2021-06-19T12:08:22Z + + + Templates + + + + + + diff --git a/zabbix_templates/Template_App_Multipath.xml b/zabbix_templates/Template_App_Multipath.xml index ee0fbfa..46ede59 100644 --- a/zabbix_templates/Template_App_Multipath.xml +++ b/zabbix_templates/Template_App_Multipath.xml @@ -1,7 +1,7 @@ 5.0 - 2020-10-20T16:43:35Z + 2021-06-19T12:08:45Z Templates diff --git a/zabbix_templates/Template_App_MySQL.xml b/zabbix_templates/Template_App_MySQL.xml index 0f74915..330933d 100644 --- a/zabbix_templates/Template_App_MySQL.xml +++ b/zabbix_templates/Template_App_MySQL.xml @@ -1,7 +1,7 @@ 5.0 - 2020-12-17T15:29:59Z + 2021-06-19T12:09:04Z Templates diff --git a/zabbix_templates/Template_App_MySQL_Legacy.xml b/zabbix_templates/Template_App_MySQL_Legacy.xml new file mode 100644 index 0000000..a341249 --- /dev/null +++ b/zabbix_templates/Template_App_MySQL_Legacy.xml @@ -0,0 +1,78 @@ + + + 5.0 + 2021-06-19T12:09:19Z + + + Modèles + + + Templates + + + + + + diff --git a/zabbix_templates/Template_App_PMG.xml b/zabbix_templates/Template_App_PMG.xml index bc2ed5f..9e05828 100644 --- a/zabbix_templates/Template_App_PMG.xml +++ b/zabbix_templates/Template_App_PMG.xml @@ -1,7 +1,7 @@ - 4.2 - 2019-10-11T16:36:21Z + 5.0 + 2021-06-19T12:09:38Z Templates @@ -11,7 +11,6 @@ - - - {Template_App_PMG:pmg.check[global,spam_out].max(1h)}>0 - 0 - - PMG: Outbound spam detected - 0 - - - 0 - 2 - - 0 - 1 - - - - - {Template_App_PMG:pmg.check[global,virus_out].max(1h)}>0 - 0 - - PMG: Outbound viruses detected - 0 - - - 0 - 3 - - 0 - 1 - - - - - {Template_App_PMG:pmg.check[global,queue_hold].last()}>0 - 0 - - Quarantined emails - 0 - - - 0 - 2 - Check hold queue with the mailq command then either release with postsuper -H <ID> or drop with postsuper -d <ID> - 0 - 0 - - - - PMG: Global email flows - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 1 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 + STACKED - 0 - 0 FF6F00 - 0 - 2 - 0 Template_App_PMG pmg.check[global,virus_out] @@ -2293,11 +860,7 @@ 1 - 0 CE93D8 - 0 - 2 - 0 Template_App_PMG pmg.check[global,spam_out] @@ -2305,11 +868,7 @@ 2 - 0 6A1B9A - 0 - 2 - 0 Template_App_PMG pmg.check[global,count_out] @@ -2317,11 +876,7 @@ 3 - 0 1A7C11 - 0 - 2 - 0 Template_App_PMG pmg.check[global,count_in] @@ -2329,11 +884,7 @@ 4 - 0 80FF00 - 0 - 2 - 0 Template_App_PMG pmg.check[global,spam_in] @@ -2341,11 +892,7 @@ 5 - 0 B71C1C - 0 - 2 - 0 Template_App_PMG pmg.check[global,virus_in] @@ -2353,11 +900,7 @@ 6 - 0 0040FF - 0 - 2 - 0 Template_App_PMG pmg.check[global,rbl] @@ -2365,11 +908,7 @@ 7 - 0 90A4AE - 0 - 2 - 0 Template_App_PMG pmg.check[global,pregreet] @@ -2379,29 +918,10 @@ PMG: Global email trafic and processing time - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - 0 - 5 + GRADIENT_LINE 00DD00 - 0 - 2 - 0 Template_App_PMG pmg.check[global,bytes_in] @@ -2409,11 +929,8 @@ 1 - 5 + GRADIENT_LINE FF9999 - 0 - 2 - 0 Template_App_PMG pmg.check[global,bytes_out] @@ -2421,11 +938,9 @@ 2 - 2 + BOLD_LINE 0000DD - 1 - 2 - 0 + RIGHT Template_App_PMG pmg.check[global,ptime_in] @@ -2433,11 +948,9 @@ 3 - 2 + BOLD_LINE DD0000 - 1 - 2 - 0 + RIGHT Template_App_PMG pmg.check[global,ptime_out] @@ -2447,29 +960,10 @@ PMG: Global queues - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 1 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 + STACKED - 0 - 0 81C784 - 0 - 2 - 0 Template_App_PMG pmg.check[global,queue_active] @@ -2477,11 +971,7 @@ 1 - 0 8E24AA - 0 - 2 - 0 Template_App_PMG pmg.check[global,queue_hold] @@ -2489,11 +979,7 @@ 2 - 0 EC407A - 0 - 2 - 0 Template_App_PMG pmg.check[global,queue_deferred] diff --git a/zabbix_templates/Template_App_PVE_Cluster.xml b/zabbix_templates/Template_App_PVE_Cluster.xml index 209a8b2..afc06d6 100644 --- a/zabbix_templates/Template_App_PVE_Cluster.xml +++ b/zabbix_templates/Template_App_PVE_Cluster.xml @@ -1,7 +1,7 @@ 5.0 - 2021-01-08T12:03:11Z + 2021-06-19T12:09:52Z Templates diff --git a/zabbix_templates/Template_App_Qmail.xml b/zabbix_templates/Template_App_Qmail.xml new file mode 100644 index 0000000..ea0d069 --- /dev/null +++ b/zabbix_templates/Template_App_Qmail.xml @@ -0,0 +1,73 @@ + + + 5.0 + 2021-06-19T12:10:10Z + + + Modèles + + + Templates + + + + + + diff --git a/zabbix_templates/Template_App_SOGo.xml b/zabbix_templates/Template_App_SOGo.xml new file mode 100644 index 0000000..3b5884a --- /dev/null +++ b/zabbix_templates/Template_App_SOGo.xml @@ -0,0 +1,66 @@ + + + 5.0 + 2021-06-19T12:11:20Z + + + Modèles + + + + + + diff --git a/zabbix_templates/Template_App_SSLExpire.xml b/zabbix_templates/Template_App_SSLExpire.xml new file mode 100644 index 0000000..e35f94f --- /dev/null +++ b/zabbix_templates/Template_App_SSLExpire.xml @@ -0,0 +1,51 @@ + + + 5.0 + 2021-06-19T12:12:08Z + + + Modèles + + + Templates + + + + + + diff --git a/zabbix_templates/Template_App_Samba.xml b/zabbix_templates/Template_App_Samba.xml new file mode 100644 index 0000000..34a7ccc --- /dev/null +++ b/zabbix_templates/Template_App_Samba.xml @@ -0,0 +1,124 @@ + + + 5.0 + 2021-06-19T12:10:27Z + + + Modèles + + + Templates + + + + + + + + {Template_App_Samba:proc.num[nmbd].last()}<1 or {Template_App_Samba:samba.nmbd.status.sum(#2)}<1 + le démon nmbd ne fonctionne pas + DISABLED + AVERAGE + + + {Template_App_Samba:proc.num[smbd].last()}<1 or {Template_App_Samba:net.tcp.port[,139].last()}<>1 + le démon smbd n'est pas en fonctionnement + DISABLED + AVERAGE + + + diff --git a/zabbix_templates/Template_App_Samba_DC.xml b/zabbix_templates/Template_App_Samba_DC.xml index 2144a4f..da80486 100644 --- a/zabbix_templates/Template_App_Samba_DC.xml +++ b/zabbix_templates/Template_App_Samba_DC.xml @@ -1,7 +1,7 @@ 5.0 - 2021-01-14T18:29:20Z + 2021-06-19T12:10:45Z Templates @@ -666,172 +666,9 @@ - - Samba: Aggregated Authentications & Authorizations - STACKED - - - 1 - EF9A9A - - Template_App_Samba_DC_Aggregate - grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authorizations.computers]",last] - - - - 2 - CE93D8 - - Template_App_Samba_DC_Aggregate - grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.computers.success]",last] - - - - 3 - 9FA8DA - - Template_App_Samba_DC_Aggregate - grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.computers.failure]",last] - - - - 4 - 81D4FA - - Template_App_Samba_DC_Aggregate - grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authorizations.users]",last] - - - - 5 - B2DFDB - - Template_App_Samba_DC_Aggregate - grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.users.success]",last] - - - - 6 - FFF59D - - Template_App_Samba_DC_Aggregate - grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.users.failure]",last] - - - - - Samba: Authentications & Authorizations NO NO diff --git a/zabbix_templates/Template_App_Samba_DC_Aggregate.xml b/zabbix_templates/Template_App_Samba_DC_Aggregate.xml new file mode 100644 index 0000000..568dd8b --- /dev/null +++ b/zabbix_templates/Template_App_Samba_DC_Aggregate.xml @@ -0,0 +1,177 @@ + + + 5.0 + 2021-06-19T12:11:01Z + + + Templates + + + + + + + + Samba: Aggregated Authentications & Authorizations + STACKED + + + 1 + EF9A9A + + Template_App_Samba_DC_Aggregate + grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authorizations.computers]",last] + + + + 2 + CE93D8 + + Template_App_Samba_DC_Aggregate + grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.computers.success]",last] + + + + 3 + 9FA8DA + + Template_App_Samba_DC_Aggregate + grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.computers.failure]",last] + + + + 4 + 81D4FA + + Template_App_Samba_DC_Aggregate + grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authorizations.users]",last] + + + + 5 + B2DFDB + + Template_App_Samba_DC_Aggregate + grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.users.success]",last] + + + + 6 + FFF59D + + Template_App_Samba_DC_Aggregate + grpsum["{$SAMBA_AGGREGATE_GROUP}","samba_dc.info[activity.authentications.users.failure]",last] + + + + + + diff --git a/zabbix_templates/Template_App_Squid.xml b/zabbix_templates/Template_App_Squid.xml index c3ef0c0..b9b181e 100644 --- a/zabbix_templates/Template_App_Squid.xml +++ b/zabbix_templates/Template_App_Squid.xml @@ -1,7 +1,7 @@ - 4.4 - 2020-01-16T17:32:11Z + 5.0 + 2021-06-19T12:11:35Z Templates @@ -28,8 +28,8 @@ Squid: Used memory proc.mem[squid] - 5m - 1825d + 10m + 730d B @@ -44,7 +44,8 @@ Squid: Number of processes proc.num[squid] 5m - 1825d + 30d + 0 !process @@ -65,7 +66,7 @@ Squid: Info squid.check[all] - 300s + 10m 0 0 TEXT @@ -83,7 +84,7 @@ DEPENDENT squid.check[clients_num] 0 - 1825d + 730d !client(s) @@ -108,7 +109,7 @@ DEPENDENT squid.check[cpu_usage_avg_5min] 0 - 1825d + 730d FLOAT % @@ -134,7 +135,7 @@ DEPENDENT squid.check[disk_hits_req_percent] 0 - 1825d + 730d FLOAT % @@ -160,7 +161,7 @@ DEPENDENT squid.check[fd_used_percent] 0 - 1825d + 730d FLOAT % @@ -193,7 +194,7 @@ DEPENDENT squid.check[hits_req_percent] 0 - 1825d + 730d FLOAT % @@ -219,7 +220,7 @@ DEPENDENT squid.check[mean_object_size] 0 - 1825d + 730d B @@ -244,7 +245,7 @@ DEPENDENT squid.check[mem_hits_req_percent] 0 - 1825d + 730d FLOAT % @@ -270,7 +271,7 @@ DEPENDENT squid.check[requests] 0 - 1825d + 730d FLOAT req/s @@ -300,7 +301,7 @@ DEPENDENT squid.check[stor_swap_used_percent] 0 - 1825d + 730d FLOAT % diff --git a/zabbix_templates/Template_App_Squid_Legacy.xml b/zabbix_templates/Template_App_Squid_Legacy.xml new file mode 100644 index 0000000..3cba43b --- /dev/null +++ b/zabbix_templates/Template_App_Squid_Legacy.xml @@ -0,0 +1,160 @@ + + + 5.0 + 2021-06-19T12:11:50Z + + + Modèles + + + Templates + + + + + + + + ({Template_App_Squid_legacy:squid.available_fd.last(0)} - {Template_App_Squid_legacy:squid.reserved_fd.last(0)})*100/{Template_App_Squid_legacy:squid.max_fd.last(0)}<{$SQUID_MIN_FREE_FD} + Moins de {$SQUID_MIN_FREE_FD} % de descripteurs de fichiers disponibles pour Squid + AVERAGE + Plus que {ITEM.LASTVALUE1} descripteurs de fichiers disponibles pour Squid. + + + + + Réseau: Statistiques Squid + FIXED + + + BOLD_LINE + 009900 + + Template_App_Squid_legacy + squid.byte_hit_ratio + + + + 1 + BOLD_LINE + DD0000 + + Template_App_Squid_legacy + squid.request_hit_ratio + + + + 2 + BOLD_LINE + 0000DD + RIGHT + + Template_App_Squid_legacy + squid.avg_http_req_per_min + + + + + + diff --git a/zabbix_templates/Template_App_Unifi.xml b/zabbix_templates/Template_App_Unifi.xml index f7ccec4..3294074 100644 --- a/zabbix_templates/Template_App_Unifi.xml +++ b/zabbix_templates/Template_App_Unifi.xml @@ -1,7 +1,7 @@ - 4.4 - 2020-03-02T14:24:14Z + 5.0 + 2021-06-19T12:12:25Z Templates @@ -347,6 +347,7 @@ {str(true)}=0 AP {#UNIFI_DEV_NAME} is waiting adoption WARNING + YES @@ -914,7 +915,7 @@ DISCARD_UNCHANGED_HEARTBEAT - 1d + 1h @@ -926,6 +927,7 @@ {diff()}=1 AP {#UNIFI_DEV_NAME} received a new config INFO + YES @@ -1158,6 +1160,7 @@ {diff()}=1 AP {#UNIFI_AP_NAME} changed its inform URL ({ITEM.LASTVALUE1}) AVERAGE + YES @@ -1189,6 +1192,7 @@ {last()}>{$UNIFI_LAST_SEEN_WARN} No contact with AP {#UNIFI_DEV_NAME} since {ITEM.LASTVALUE1} AVERAGE + YES @@ -1296,6 +1300,7 @@ {str(false)}=0 AP {#UNIFI_DEV_NAME} location is enabled WARNING + YES @@ -1875,6 +1880,7 @@ {last()}<2h AP {#UNIFI_DEV_NAME} rebooted INFO + YES @@ -2060,7 +2066,7 @@ DISCARD_UNCHANGED_HEARTBEAT - 1d + 1h @@ -2072,6 +2078,7 @@ {diff()}=1 AP {#UNIFI_DEV_NAME} changed firmware version ({ITEM.LASTVALUE1}) WARNING + YES @@ -2398,6 +2405,7 @@ {str(true)}=0 Switch {#UNIFI_DEV_NAME} is waiting adoption WARNING + YES @@ -2421,7 +2429,7 @@ DISCARD_UNCHANGED_HEARTBEAT - 1d + 1h @@ -2433,6 +2441,7 @@ {diff()}=1 Switch {#UNIFI_DEV_NAME} received a new configuration INFO + YES @@ -2531,6 +2540,7 @@ {last()}>{$UNIFI_LAST_SEEN_WARN} No contact with switch {#UNIFI_DEV_NAME} since {ITEM.LASTVALUE1} WARNING + YES @@ -2638,6 +2648,7 @@ {str(false)}=0 Switch {#UNIFI_DEV_NAME} has location enabed WARNING + YES @@ -2992,6 +3003,7 @@ {last()}<2h Switch {#UNIFI_DEV_NAME} rebooted INFO + YES @@ -3015,7 +3027,7 @@ DISCARD_UNCHANGED_HEARTBEAT - 1d + 1h @@ -3027,6 +3039,7 @@ {diff()}=1 Firmware version of switch {#UNIFI_DEV_NAME} changed ({ITEM.LASTVALUE1}) WARNING + YES @@ -4917,7 +4930,7 @@ {$UNIFI_NOISE_WARN} - -85 + -82 {$UNIFI_PASS} diff --git a/zabbix_templates/Template_App_ZFS.xml b/zabbix_templates/Template_App_ZFS.xml index f4ca38e..71db787 100644 --- a/zabbix_templates/Template_App_ZFS.xml +++ b/zabbix_templates/Template_App_ZFS.xml @@ -1,7 +1,7 @@ 5.0 - 2020-12-17T15:28:00Z + 2021-06-19T12:12:56Z Templates @@ -1110,8 +1110,8 @@ return (diff < 0 ? 0 : diff); JAVASCRIPT json = JSON.parse(value); -logicalused = json.logicalused; -used = json.used; +logicalused = new Number(json.logicalused); +used = new Number(json.used); return (logicalused > used ? logicalused - used : 0); @@ -1870,6 +1870,11 @@ return (logicalused > used ? logicalused - used : 0); + {Template_App_ZFS:vfs.zfs.zpool[{#ZPOOL},status].nodata(2d)}=1 or {Template_App_ZFS:vfs.zfs.zpool[{#ZPOOL},allocated].nodata(2h)}=1 + ZFS: pool {#ZPOOL} has a monitoring issue + WARNING + + {Template_App_ZFS:vfs.zfs.zpool[{#ZPOOL},write_errors].last()}<>0 or {Template_App_ZFS:vfs.zfs.zpool[{#ZPOOL},read_errors].last()}<>0 or {Template_App_ZFS:vfs.zfs.zpool[{#ZPOOL},cksum_errors].last()}<>0 ZFS: Pool {#ZPOOL} has errors AVERAGE diff --git a/zabbix_templates/Template_App_Zabbix_Server.xml b/zabbix_templates/Template_App_Zabbix_Server.xml new file mode 100644 index 0000000..0dbd2be --- /dev/null +++ b/zabbix_templates/Template_App_Zabbix_Server.xml @@ -0,0 +1,937 @@ + + + 5.0 + 2021-06-19T12:12:41Z + + + Modèles + + + Templates + + + + + + + + Zabbix: Performance du serveur + + + GRADIENT_LINE + 00C800 + + Template_App_Zabbix_Server + zabbix[wcache,values] + + + + 1 + GRADIENT_LINE + 0000C8 + + Template_App_Zabbix_Server + zabbix[queue,10m] + + + + 2 + GRADIENT_LINE + C80000 + RIGHT + + Template_App_Zabbix_Server + zabbix[queue] + + + + + + Zabbix: Processus d'acquisition de données + FIXED + FIXED + + + 990099 + + Template_App_Zabbix_Server + zabbix[process,trapper,avg,busy] + + + + 1 + 990000 + + Template_App_Zabbix_Server + zabbix[process,poller,avg,busy] + + + + 2 + 0000EE + + Template_App_Zabbix_Server + zabbix[process,ipmi poller,avg,busy] + + + + 3 + FF33FF + + Template_App_Zabbix_Server + zabbix[process,discoverer,avg,busy] + + + + 4 + 00EE00 + + Template_App_Zabbix_Server + zabbix[process,icmp pinger,avg,busy] + + + + 5 + 003300 + + Template_App_Zabbix_Server + zabbix[process,http poller,avg,busy] + + + + 6 + CCCC00 + + Template_App_Zabbix_Server + zabbix[process,proxy poller,avg,busy] + + + + 7 + 33FFFF + + Template_App_Zabbix_Server + zabbix[process,unreachable poller,avg,busy] + + + + 8 + DD0000 + + Template_App_Zabbix_Server + zabbix[process,java poller,avg,busy] + + + + 9 + 000099 + ALL + + Template_App_Zabbix_Server + zabbix[process,snmp trapper,avg,busy] + + + + + + Zabbix: Processus internes + FIXED + FIXED + + + 00EE00 + + Template_App_Zabbix_Server + zabbix[process,timer,avg,busy] + + + + 1 + 007777 + + Template_App_Zabbix_Server + zabbix[process,node watcher,avg,busy] + + + + 2 + 0000EE + + Template_App_Zabbix_Server + zabbix[process,escalator,avg,busy] + + + + 3 + FFAA00 + + Template_App_Zabbix_Server + zabbix[process,housekeeper,avg,busy] + + + + 4 + 00EEEE + + Template_App_Zabbix_Server + zabbix[process,alerter,avg,busy] + + + + 5 + 990099 + + Template_App_Zabbix_Server + zabbix[process,configuration syncer,avg,busy] + + + + 6 + 666600 + + Template_App_Zabbix_Server + zabbix[process,db watchdog,avg,busy] + + + + 7 + EE0000 + + Template_App_Zabbix_Server + zabbix[process,history syncer,avg,busy] + + + + 8 + FF66FF + + Template_App_Zabbix_Server + zabbix[process,self-monitoring,avg,busy] + + + + + + Zabbix: Utilisation du cache (% libre) + FIXED + FIXED + + + 009900 + + Template_App_Zabbix_Server + zabbix[wcache,trend,pfree] + + + + 1 + DD0000 + + Template_App_Zabbix_Server + zabbix[rcache,buffer,pfree] + + + + 2 + 00DDDD + + Template_App_Zabbix_Server + zabbix[wcache,text,pfree] + + + + 3 + 3333FF + + Template_App_Zabbix_Server + zabbix[wcache,history,pfree] + + + + + + diff --git a/zabbix_templates/Template_Dell_Equallogic.xml b/zabbix_templates/Template_Dell_Equallogic.xml new file mode 100644 index 0000000..04b3cda --- /dev/null +++ b/zabbix_templates/Template_Dell_Equallogic.xml @@ -0,0 +1,1760 @@ + + + 5.0 + 2021-06-19T12:05:32Z + + + Templates + + + + + + + + Global SAN I/O (iops) + + + GRADIENT_LINE + 3333FF + + Template Dell Equallogic + eqlMemberReadOpCount + + + + 1 + GRADIENT_LINE + EE0000 + + Template Dell Equallogic + eqlMemberWriteOpCount + + + + + + + + eqlControllerBatteryStatus + + + 1 + ok + + + 2 + failed + + + 3 + good-battery-is-charging + + + 4 + low-voltage-status + + + 5 + low-voltage-is-charging + + + 6 + missing-battery + + + + + eqlDiskStatus + + + 1 + on-line + + + 2 + spare + + + 3 + failed + + + 4 + off-line + + + 5 + alt-sig + + + 6 + too-small + + + 7 + history-of-failures + + + 8 + unsupported-version + + + 9 + unhealthy + + + 10 + replacement + + + 11 + encrypted + + + 12 + notApproved + + + 13 + preempt-failed + + + + + eqliscsiVolumeAdminStatus + + + 1 + online + + + 2 + offline + + + 3 + online-lost-cached-blocks + + + 4 + online-control + + + 5 + offline-control + + + + + eqlMemberHealthDetailsFanCurrentState + + + 1 + unknown + + + 2 + normal + + + 3 + warning + + + 4 + critical + + + + + eqlMemberHealthDetailsPowerSupplyCurrentState + + + 1 + on-and-operating + + + 2 + no-ac-power + + + 3 + failed-or-no-data + + + + + eqlMemberHealthDetailsTemperatureCurrentState + + + 0 + unknown + + + 1 + normal + + + 2 + warning + + + 3 + critical + + + + + eqlMemberHealthStatus + + + 0 + Unknown + + + 1 + Normal + + + 2 + Warning + + + 3 + Critical + + + + + eqlMemberRaidStatus + + + 1 + ok + + + 2 + degraded + + + 3 + verifying + + + 4 + reconstructing + + + 5 + failed + + + 6 + catastrophicLoss + + + 7 + expanding + + + 8 + mirroring + + + + + diff --git a/zabbix_templates/Template_Netgear_ReadyNAS.xml b/zabbix_templates/Template_Netgear_ReadyNAS.xml new file mode 100644 index 0000000..aa19b4f --- /dev/null +++ b/zabbix_templates/Template_Netgear_ReadyNAS.xml @@ -0,0 +1,603 @@ + + + 5.0 + 2021-06-19T12:14:06Z + + + Templates + + + + + + diff --git a/zabbix_templates/Template_OS_Fortigate.xml b/zabbix_templates/Template_OS_Fortigate.xml new file mode 100644 index 0000000..9cdd4d2 --- /dev/null +++ b/zabbix_templates/Template_OS_Fortigate.xml @@ -0,0 +1,195 @@ + + + 5.0 + 2021-06-19T12:16:26Z + + + Modèles + + + + + + + + Nombre de connexions + + + GRADIENT_LINE + 00BFFF + + Template_OS_Fortigate + fortigate.conn.num + + + + + + Occupation CPU + + + GRADIENT_LINE + 1A7C11 + + Template_OS_Fortigate + fortigate.cpu.usage + + + + + + Occupation Mémoire + FIXED + + + GRADIENT_LINE + FF0000 + + Template_OS_Fortigate + fortigate.mem.usage + + + + + + diff --git a/zabbix_templates/Template_OS_Linux_Minimal.xml b/zabbix_templates/Template_OS_Linux_Minimal.xml new file mode 100644 index 0000000..6676ad6 --- /dev/null +++ b/zabbix_templates/Template_OS_Linux_Minimal.xml @@ -0,0 +1,1983 @@ + + + 5.0 + 2021-06-19T12:16:52Z + + + Modèles + + + + + + + + ({Template_OS_Linux_minimal:system.cpu.load[,avg1].avg(900)}>({Template_OS_Linux_minimal:system.cpu.num[].last(0)}*3*{$LOAD_COEF})) or ({Template_OS_Linux_minimal:system.cpu.load[,avg5].avg(1800)}>({Template_OS_Linux_minimal:system.cpu.num[].last(0)}*2.5*{$LOAD_COEF})) or ({Template_OS_Linux_minimal:system.cpu.load[,avg15].avg(7200)}>({Template_OS_Linux_minimal:system.cpu.num[].last(0)}*1.2*{$LOAD_COEF})) + High CPU load + INFO + + + {Template_OS_Linux_minimal:kernel.openedfiles.last()}*100/{Template_OS_Linux_minimal:kernel.maxfiles.last()}>{$MAX_USED_FD_PCT} + Opened files is near its limit ({ITEM.LASTVALUE1}/{ITEM.LASTVALUE2}) + WARNING + + + {Template_OS_Linux_minimal:vm.memory.size.pused.last(0)}>90 and {Template_OS_Linux_minimal:system.swap.size[,pused].avg(600)}>{$SWAP_WARN} + Swap usage + WARNING + + + Very high swap usage + {Template_OS_Linux_minimal:system.swap.size[,pused].last(0)}>{$SWAP_CRITICAL} and {Template_OS_Linux_minimal:vm.memory.size.pused.last(0)}>90 + + + + + {Template_OS_Linux_minimal:system.swap.size[,pused].last(0)}>{$SWAP_CRITICAL} and {Template_OS_Linux_minimal:vm.memory.size.pused.last(0)}>90 + Very high swap usage + HIGH + + + + + System: CPU Load + + + FF0000 + + Template_OS_Linux_minimal + system.cpu.load[,avg15] + + + + 1 + FFFF33 + + Template_OS_Linux_minimal + system.cpu.load[,avg5] + + + + 2 + 009900 + + Template_OS_Linux_minimal + system.cpu.load[,avg1] + + + + 3 + 0000DD + RIGHT + + Template_OS_Linux_minimal + system.cpu.switches + + + + + + System: CPU Usage + STACKED + FIXED + FIXED + + + FILLED_REGION + FF33FF + + Template_OS_Linux_minimal + system.cpu.util[,interrupt,avg1] + + + + 1 + FILLED_REGION + FF0000 + + Template_OS_Linux_minimal + system.cpu.util[,system,avg1] + + + + 2 + FILLED_REGION + CCFFFF + + Template_OS_Linux_minimal + system.cpu.util[,iowait,avg1] + + + + 3 + FILLED_REGION + 66FF66 + + Template_OS_Linux_minimal + system.cpu.util[,softirq,avg1] + + + + 4 + FFFF00 + + Template_OS_Linux_minimal + system.cpu.util[,user,avg1] + + + + 5 + 0000EE + + Template_OS_Linux_minimal + system.cpu.util[,nice,avg1] + + + + + + System: Memory + STACKED + FIXED + + + 0000CC + + Template_OS_Linux_minimal + vm.memory.size.used + + + + 1 + 9999FF + + Template_OS_Linux_minimal + vm.memory.size[buffers] + + + + 2 + 009900 + + Template_OS_Linux_minimal + vm.memory.size[cached] + + + + 3 + CCFFFF + + Template_OS_Linux_minimal + vm.memory.size[free] + + + + + + System: Processes + FIXED + + + FILLED_REGION + FFFF33 + + Template_OS_Linux_minimal + proc.num[] + + + + 1 + FILLED_REGION + EE0000 + RIGHT + + Template_OS_Linux_minimal + proc.num[,,run] + + + + + + System: Swap + FIXED + + + GRADIENT_LINE + 0000DD + + Template_OS_Linux_minimal + system.swap.size[,used] + + + + 1 + 000000 + + Template_OS_Linux_minimal + system.swap.size[,total] + + + + 2 + EE0000 + RIGHT + + Template_OS_Linux_minimal + system.swap.out[,pages] + + + + 3 + 00EE00 + RIGHT + + Template_OS_Linux_minimal + system.swap.in[,pages] + + + + + + System: Uptime + + + FILLED_REGION + FF0000 + + Template_OS_Linux_minimal + system.uptime + + + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/zabbix_templates/Template_OS_Linux_Server.xml b/zabbix_templates/Template_OS_Linux_Server.xml new file mode 100644 index 0000000..aa65dee --- /dev/null +++ b/zabbix_templates/Template_OS_Linux_Server.xml @@ -0,0 +1,1168 @@ + + + 5.0 + 2021-06-19T12:17:09Z + + + Modèles + + + Templates + + + + + + + + ({Template_OS_Linux_Server:system.uptime.last(0)}<{$REBOOT_WARN_DAY} and ({Template_OS_Linux_Server:system.uptime.time(0)}>090000 and {Template_OS_Linux_Server:system.uptime.time(0)}<230000)) or ({Template_OS_Linux_Server:system.uptime.last(0)}<{$REBOOT_WARN_NIGHT} and ({Template_OS_Linux_Server:system.uptime.time(0)}>230000 or {Template_OS_Linux_Server:system.uptime.time(0)}<090000)) + System has just rebooted + INFO + YES + + + {Template_OS_Linux_Server:agent.ping.nodata({$ZBX_UNREACHABLE_TIMEOUT})}=1 and {Template_OS_Linux_Server:icmpping[,2,,,2000].nodata(120,strict)} = 0 and {Template_OS_Linux_Server:icmpping[,2,,,2000].sum(120)}>0 + Unreachable Zabbix agent + DISASTER + + + No ping information received in last 3 minutes + {Template_OS_Linux_Server:icmpping[,2,,,2000].nodata(180,strict)}=1 + + + No ping response from {HOST.IP1} + {Template_OS_Linux_Server:icmpping[,2,,,2000].nodata(180,strict)}=0 and {Template_OS_Linux_Server:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_OS_Linux_Server:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_OS_Linux_Server:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_OS_Linux_Server:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_OS_Linux_Server:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} + {Template_OS_Linux_Server:icmpping[,2,,,2000].sum(180)}>3 + + + + + diff --git a/zabbix_templates/Template_OS_PfSense2.xml b/zabbix_templates/Template_OS_PfSense2.xml index 0a6df1a..c0c149f 100644 --- a/zabbix_templates/Template_OS_PfSense2.xml +++ b/zabbix_templates/Template_OS_PfSense2.xml @@ -1,7 +1,7 @@ - 4.4 - 2020-03-02T14:08:55Z + 5.0 + 2021-06-19T12:17:25Z Modèles @@ -46,12 +46,16 @@ Processus + + System + TCP ping of the agent agent.ping 5m + 60d 1825d @@ -70,7 +74,7 @@ No ping response from {HOST.IP1} - {Template_OS_PfSense2:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_OS_PfSense2:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_OS_PfSense2:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_OS_PfSense2:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_OS_PfSense2:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} + {Template_OS_PfSense2:icmpping[,2,,,2000].nodata(180,strict)}=0 and {Template_OS_PfSense2:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_OS_PfSense2:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_OS_PfSense2:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_OS_PfSense2:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_OS_PfSense2:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} {Template_OS_PfSense2:icmpping[,2,,,2000].sum(180)}>3 @@ -80,21 +84,34 @@ Maximum number of opened files kernel.maxfiles - 1h - 30d - 0 - fichiers + 2h + 60d + 1825d + It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf. - Processus + System + + + + + Maximum number of processes + kernel.maxproc + 2h + 60d + 1825d + It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf. + + + System - POST DNS Resolution response for $2 net.dns.record[127.0.0.1,{$DNS_NAME_CHECK},A,,] - 30d + 5m + 15d 0 TEXT @@ -108,7 +125,7 @@ DNS resolution for $2 is working net.dns[127.0.0.1,{$DNS_NAME_CHECK},A,,] 5m - 30d + 15d 0 @@ -125,22 +142,178 @@ - Opened files - openfiles.num + MBUF Cache + pfsense.mbuf.cache 5m + 60d 1825d - fichiers - Processus + Memory + + + Network + + + + + MBUF Current + pfsense.mbuf.current + 5m + 60d + 1825d + + + Memory + + + Network - POST + + + MBUF Max + pfsense.mbuf.max + 1h + 60d + 1825d + + + Memory + + + Network + + + + + MBUF Total Used (percent) + CALCULATED + pfsense.mbuf.ptotal + 5m + 60d + 1825d + ((last(pfsense.mbuf.current) + last(pfsense.mbuf.cache)) * 100) / last(pfsense.mbuf.max) + + + Memory + + + Network + + + + + {last()}>80 + RECOVERY_EXPRESSION + {last()}<75 + MBUF used at {ITEM.LASTVALUE1} + WARNING + + + MBUF used at {ITEM.LASTVALUE1} + {Template_OS_PfSense2:pfsense.mbuf.ptotal.last()}>90 + {Template_OS_PfSense2:pfsense.mbuf.ptotal.last()}<85 + + + + + {last()}>90 + RECOVERY_EXPRESSION + {last()}<85 + MBUF used at {ITEM.LASTVALUE1} + HIGH + + + + + States Table Current + pfsense.states.current + 2m + 60d + 1825d + + + Memory + + + + + States Table Max + pfsense.states.max + 10m + 60d + 1825d + + + Memory + + + + + DISCARD_UNCHANGED_HEARTBEAT + 2h + + + + + States Table Current (percent) + CALCULATED + pfsense.states.pused + 2m + 60d + 1825d + FLOAT + % + (last(pfsense.states.current) * 100) / last(pfsense.states.max) + + + Memory + + + + + {last()}>80 + RECOVERY_EXPRESSION + {last()}<75 + States table used at {ITEM.LASTVALUE1} + WARNING + + + States table used at {ITEM.LASTVALUE1} + {Template_OS_PfSense2:pfsense.states.pused.last()}>90 + {Template_OS_PfSense2:pfsense.states.pused.last()}<85 + + + + + {last()}>90 + RECOVERY_EXPRESSION + {last()}<85 + States table used at {ITEM.LASTVALUE1} + HIGH + + + + + pfSense Installed Version + pfsense.value[system,installed_version] + 1h + 60d + 0 + TEXT + + + DISCARD_UNCHANGED_HEARTBEAT + 1d + + Number of active processes proc.num[,,run] 2m + 60d 1825d processus @@ -161,7 +334,7 @@ Number of sshd processes proc.num[sshd] 5m - 30d + 60d 0 @@ -181,6 +354,7 @@ Number of processes proc.num[] 5m + 60d 1825d processus POST @@ -195,6 +369,7 @@ CPU Load system.cpu.load[,avg1] + 60d 1825d FLOAT @@ -208,6 +383,7 @@ CPU Load (5min) system.cpu.load[,avg5] 5m + 60d 1825d FLOAT @@ -221,6 +397,7 @@ CPU Load (15min) system.cpu.load[,avg15] 15m + 60d 1825d FLOAT @@ -231,9 +408,29 @@ POST + Context switches per second + system.cpu.switches + 60 + 60d + 1825d + sps + + + Processor + + + + + CHANGE_PER_SECOND + + + + + CPU usage: $2 system.cpu.util[,interrupt,avg1] 45s + 60d 1825d FLOAT % @@ -248,6 +445,7 @@ CPU usage: $2 system.cpu.util[,nice,avg1] 45s + 60d 1825d FLOAT % @@ -262,6 +460,7 @@ CPU usage: $2 system.cpu.util[,system,avg1] 45s + 60d 1825d FLOAT % @@ -276,6 +475,7 @@ CPU usage: $2 system.cpu.util[,user,avg1] 45s + 60d 1825d FLOAT % @@ -291,6 +491,7 @@ CALCULATED system.swap.size.used 10m + 60d 1825d B last("system.swap.size[,total]")-last("system.swap.size[,free]") @@ -305,6 +506,7 @@ Swap: $2 system.swap.size[,free] 10m + 60d 1825d B @@ -316,10 +518,10 @@ Free swap space in % - public interfaces.ifTable.ifEntry.ifInOctets.1 system.swap.size[,pfree] 5m + 60d 1825d FLOAT % @@ -329,6 +531,7 @@ Swap: $2 system.swap.size[,pused] 10m + 60d 1825d FLOAT % @@ -350,6 +553,7 @@ Swap: $2 system.swap.size[,total] 1h + 60d 1825d B @@ -363,13 +567,14 @@ Uptime system.uptime 10m + 60d 1825d s POST - ({last(0)}<{$REBOOT_WARN_DAY} and ({last(0)}>090000 and {last(0)}<230000)) or ({last(0)}<{$REBOOT_WARN_NIGHT} and ({last(0)}>230000 or {last(0)}<090000)) - {HOSTNAME} rebooted {ITEM.LASTVALUE1} ago + ({last(0)}<{$REBOOT_WARN_DAY} and ({time(0)}>090000 and {time(0)}<230000)) or ({last(0)}<{$REBOOT_WARN_NIGHT} and ({time(0)}>230000 or {time(0)}<090000)) + System has rebooted INFO @@ -378,7 +583,13 @@ Connected users system.users.num 5m + 60d 1825d + + + System + + POST @@ -440,6 +651,7 @@ Memory: $1 vm.memory.size[active] + 60d 1825d B @@ -452,6 +664,7 @@ Memory: $1 vm.memory.size[buffers] + 60d 1825d B @@ -464,6 +677,7 @@ Memory: $1 vm.memory.size[cached] + 60d 1825d B @@ -476,6 +690,7 @@ Memory: $1 vm.memory.size[free] + 60d 1825d B @@ -488,6 +703,7 @@ Memory: $1 vm.memory.size[inactive] + 60d 1825d B @@ -501,6 +717,7 @@ Memory: $1 CALCULATED vm.memory.size[pfree] + 60d 1825d % 100*last("vm.memory.size[free]")/last("vm.memory.size[total]") @@ -515,6 +732,7 @@ Memory: $1 CALCULATED vm.memory.size[pused] + 60d 1825d % 100*last("vm.memory.size[used]")/last("vm.memory.size[total]") @@ -523,6 +741,7 @@ Memory: $1 vm.memory.size[shared] + 60d 1825d B @@ -536,6 +755,7 @@ Memory: $1 vm.memory.size[total] 1h + 60d 1825d B @@ -548,6 +768,7 @@ Memory: $1 vm.memory.size[used] + 60d 1825d B @@ -560,6 +781,7 @@ Memory: $1 vm.memory.size[wired] + 60d 1825d B @@ -572,8 +794,116 @@ + Gateway discovery + pfsense.discovery[gw] + 1h + 1d + + + Gateway $2 RTT + pfsense.value[gw_value,{#GATEWAY},delay] + 3m + 30d + 1825d + FLOAT + s + + + Network + + + + + RTRIM + ms + + + MULTIPLIER + 0.001 + + + + + Gateway $2 Packet Loss + pfsense.value[gw_value,{#GATEWAY},loss] + 3m + 60d + 1825d + FLOAT + % + + + Network + + + + + RTRIM + % + + + + + Gateway $2 Status + pfsense.value[gw_value,{#GATEWAY},status] + 3m + 30d + 1825d + + + Network + + + + + {$PFS_MONITOR_GW}=1 and {last()}=5 and {last(#2)}=5 + Gateway {#GATEWAY} is down + HIGH + YES + + + {$PFS_MONITOR_GW}=1 and {last()}=2 and {last(#2)}=2 + High Delay on gateway {#GATEWAY} + WARNING + YES + + + {$PFS_MONITOR_GW}=1 and {last()}=3 and {last(#2)}=3 + High packet loss on {#GATEWAY} + WARNING + YES + + + + + Gateway $2 RTT Std Deviation + pfsense.value[gw_value,{#GATEWAY},stddev] + 3m + 30d + 1825d + FLOAT + s + + + Network + + + + + RTRIM + ms + + + MULTIPLIER + 0.001 + + + + + + Network interface discovery - net.if.discovery + pfsense.discovery[interfaces] 1h @@ -587,7 +917,7 @@ 10d - Inbound trafic on {#IFNAME} + Inbound trafic on {#IFDESCR} ({#IFNAME}) net.if.in[{#IFNAME},bytes] 45s 1825d @@ -611,7 +941,7 @@ POST - Errors on inbound trafic for {#IFNAME} + Errors on inbound trafic for {#IFDESCR} ({#IFNAME}) net.if.in[{#IFNAME},errors] 15m 1825d @@ -631,7 +961,7 @@ POST - Outbound trafic on {#IFNAME} + Outbound trafic on {#IFDESCR} ({#IFNAME}) net.if.out[{#IFNAME},bytes] 45s 1825d @@ -655,7 +985,7 @@ POST - Errors on outbound trafic for {#IFNAME} + Errors on outbound trafic for {#IFDESCR} ({#IFNAME}) net.if.out[{#IFNAME},errors] 15m 1825d @@ -677,9 +1007,10 @@ - Network: trafic: {#IFNAME} + Network: trafic: {#IFDESCR} ({#IFNAME}) + 1 FILLED_REGION 009900 @@ -688,7 +1019,7 @@ - 1 + 2 FILLED_REGION FF6666 @@ -697,7 +1028,7 @@ - 2 + 3 BOLD_LINE EE00EE RIGHT @@ -707,7 +1038,7 @@ - 3 + 4 BOLD_LINE EE00EE RIGHT @@ -722,6 +1053,172 @@ POST + IPsec Phase 1 Discovery + pfsense.discovery[ipsec_ph1] + 2h + + + IPsec Tunnel {#IKEID} {#NAME} Tunnel Disabled + pfsense.value[ipsec_ph1,{#IKEID},disabled] + 1h + 60d + 1825d + + + Network + + + + + IPsec Tunnel {#IKEID} {#NAME} Phase 1 Status + pfsense.value[ipsec_ph1,{#IKEID},status] + 3m + 30d + 1825d + + + Network + + + + + + + {Template_OS_PfSense2:pfsense.value[ipsec_ph1,{#IKEID},disabled].last()}<>1 and {Template_OS_PfSense2:pfsense.value[ipsec_ph1,{#IKEID},status].last()}<>1 and {Template_OS_PfSense2:pfsense.value[ipsec_ph1,{#IKEID},status].last(#2)}<>1 + IPsec Tunnel {#IKEID} ({#NAME}) Not Connected + WARNING + YES + + + + + OpenVPN Client Discovery + pfsense.discovery[openvpn_client] + 1h + + + OpenVPN Client {#NAME} Tunnel Status + pfsense.value[openvpn_clientvalue,{#CLIENT},status] + 3m + 30d + 1825d + + + Network + + + + + {last()}=0 and {last(#2)}=0 + OpenVPN Client {#NAME} Tunnel is Down + WARNING + YES + + + + + + + OpenVPN Server Discovery + pfsense.discovery[openvpn_server] + 1h + + + OpenVPN Server {#NAME} Clients Connected + pfsense.value[openvpn_servervalue,{#SERVER},conns] + 3m + 60d + 1825d + + + Network + + + + + OpenVPN Server {#NAME} Tunnel Status + pfsense.value[openvpn_servervalue,{#SERVER},status] + 3m + 30d + 1825d + + + Network + + + + + {last()}=0 and {last(#2)}=0 + OpenVPN Server {#NAME} is Down + WARNING + YES + + + + + + + Network: OpenVPN {#NAME} connections + + + 1 + GRADIENT_LINE + FFD54F + + Template_OS_PfSense2 + pfsense.value[openvpn_servervalue,{#SERVER},conns] + + + + + + + + Services Discovery + pfsense.discovery[services] + 1h + + + + {#SERVICE} + ^openvpn + NOT_MATCHES_REGEX + A + + + {#SERVICE} + ^iperf + NOT_MATCHES_REGEX + B + + + + + + Service {#DESCRIPTION} Status + pfsense.value[service_value,{#SERVICE},status] + 5m + 30d + 0 + + + Processus + + + System + + + + + {last()}=0 + Service {#DESCRIPTION} is not running + AVERAGE + + + + + + Filesystem discovery vfs.fs.discovery 2h @@ -833,6 +1330,10 @@ 5 + {$PFS_MONITOR_GW} + 1 + + {$REBOOT_WARN_DAY} 7200 @@ -847,18 +1348,31 @@ - - - {Template_OS_PfSense2:openfiles.num.last(0)}>({Template_OS_PfSense2:kernel.maxfiles.last(0)}-2000) - Lots of opened files - AVERAGE - - + Network: Connection states + ITEM + + Template_OS_PfSense2 + pfsense.states.max + + + + 1 + GRADIENT_LINE + B39DDB + + Template_OS_PfSense2 + pfsense.states.current + + + + + System: CPU: Load + 1 009900 Template_OS_PfSense2 @@ -866,7 +1380,7 @@ - 1 + 2 FF0000 Template_OS_PfSense2 @@ -874,13 +1388,22 @@ - 2 + 3 CCCC00 Template_OS_PfSense2 system.cpu.load[,avg5] + + 4 + 0040FF + RIGHT + + Template_OS_PfSense2 + system.cpu.switches + + @@ -927,6 +1450,33 @@ + System: Mbuf usage + STACKED + ITEM + + Template_OS_PfSense2 + pfsense.mbuf.max + + + + 1 + 81C784 + + Template_OS_PfSense2 + pfsense.mbuf.current + + + + 2 + 7986CB + + Template_OS_PfSense2 + pfsense.mbuf.cache + + + + + System: Memory NO NO diff --git a/zabbix_templates/Template_OS_Windows_Minimal.xml b/zabbix_templates/Template_OS_Windows_Minimal.xml new file mode 100644 index 0000000..eb8a827 --- /dev/null +++ b/zabbix_templates/Template_OS_Windows_Minimal.xml @@ -0,0 +1,806 @@ + + + 5.0 + 2021-06-19T12:17:39Z + + + Templates + + + + + + + + System: CPU: Load + + + FF0000 + + Template_OS_Windows_Minimal + system.cpu.load[,avg15] + + + + 1 + FFFF33 + + Template_OS_Windows_Minimal + system.cpu.load[,avg5] + + + + 2 + 009900 + + Template_OS_Windows_Minimal + system.cpu.load[,avg1] + + + + + + System: CPU: Usage + STACKED + FIXED + FIXED + + + FF0000 + + Template_OS_Windows_Minimal + perf_counter["\238(_Total)\144",45] + + + + 1 + FFFF00 + + Template_OS_Windows_Minimal + perf_counter["\238(_Total)\142",45] + + + + + + System: Memory + STACKED + FIXED + ITEM + + Template_OS_Windows_Minimal + vm.memory.size[total] + + + + 0000CC + + Template_OS_Windows_Minimal + vm.memory.size.used + + + + 1 + CCFFFF + + Template_OS_Windows_Minimal + vm.memory.size[free] + + + + + + System: Processes + FIXED + + + FILLED_REGION + FFFF33 + + Template_OS_Windows_Minimal + proc.num[] + + + + + + System: Swap + STACKED + FIXED + ITEM + + Template_OS_Windows_Minimal + system.swap.size[,total] + + + + FF0000 + + Template_OS_Windows_Minimal + system.swap.size.used + + + + 1 + FFFFCC + + Template_OS_Windows_Minimal + system.swap.size[,free] + + + + + + System: Uptime + + + FILLED_REGION + FF0000 + + Template_OS_Windows_Minimal + system.uptime + + + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/zabbix_templates/Template_OS_Windows_Server.xml b/zabbix_templates/Template_OS_Windows_Server.xml new file mode 100644 index 0000000..4692760 --- /dev/null +++ b/zabbix_templates/Template_OS_Windows_Server.xml @@ -0,0 +1,339 @@ + + + 5.0 + 2021-06-19T12:17:53Z + + + Templates + + + + + + + + ({Template_OS_Windows_Serveur:system.cpu.load[,avg1].avg(900)}>({Template_OS_Windows_Serveur:system.cpu.num[].last(0)}*3*{$LOAD_COEF})) or ({Template_OS_Windows_Serveur:system.cpu.load[,avg1].avg(1800)}>({Template_OS_Windows_Serveur:system.cpu.num[].last(0)}*2.5*{$LOAD_COEF})) or ({Template_OS_Windows_Serveur:system.cpu.load[,avg1].avg(7200)}>({Template_OS_Windows_Serveur:system.cpu.num[].last(0)}*1.2*{$LOAD_COEF})) + High CPU load + INFO + + + {Template_OS_Windows_Serveur:proc.num[].last(0)}>{$MAX_PROCESSES} + Too many processes + AVERAGE + + + {Template_OS_Windows_Serveur:agent.ping.nodata({$ZBX_UNREACHABLE_TIMEOUT})}=1 + Zabbix agent unavailable + DISASTER + + + No ping response from {HOST.IP1} + {Template_OS_Windows_Serveur:icmpping[,2,,,2000].nodata(180,strict)}=0 and {Template_OS_Windows_Serveur:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_OS_Windows_Serveur:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_OS_Windows_Serveur:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_OS_Windows_Serveur:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_OS_Windows_Serveur:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} + {Template_OS_Windows_Serveur:icmpping[,2,,,2000].sum(180)}>3 + + + + + {Template_OS_Windows_Serveur:system.uptime.last(0)}<{$REBOOT_WARN} + {HOSTNAME} rebooted {ITEM.LASTVALUE1} ago + INFO + + + diff --git a/zabbix_templates/Template_OS_iPasserelle.xml b/zabbix_templates/Template_OS_iPasserelle.xml new file mode 100644 index 0000000..020fd9f --- /dev/null +++ b/zabbix_templates/Template_OS_iPasserelle.xml @@ -0,0 +1,980 @@ + + + 5.0 + 2021-06-19T12:18:52Z + + + Modèles + + + Templates + + + + + + + + {Template_OS_iPasserelle:mail.in[clamav].avg(7200)}>{Template_OS_iPasserelle:mail.in[total].avg(7200)}/3 + Trop de mails contenant des virus + DISABLED + WARNING + Plus d'un tiers des mails entrants sont détectés comme virus + + + + + Réseau: Email: Connexions concurentes + NO + + + FILLED_REGION + 009900 + + Template_OS_iPasserelle + proc.num[,,,qpsmtpd-forkserver] + + + + 1 + FILLED_REGION + FF6666 + RIGHT + + Template_OS_iPasserelle + proc.num[,,,qmail-remote] + + + + + + Réseau: Email: Entrant + STACKED + + + FILLED_REGION + 00CC00 + + Template_OS_iPasserelle + mail.in[queued] + + + + 1 + FILLED_REGION + 99FF99 + + Template_OS_iPasserelle + mail.in[spam_queued] + + + + 2 + FILLED_REGION + 990000 + + Template_OS_iPasserelle + mail.in[clamav] + + + + 3 + FILLED_REGION + FF0000 + + Template_OS_iPasserelle + mail.in[spam_denied] + + + + 4 + FILLED_REGION + 0000CC + + Template_OS_iPasserelle + mail.in[dnsbl] + + + + 5 + FILLED_REGION + 9999FF + + Template_OS_iPasserelle + mail.in[rhsbl] + + + + 6 + 8048B4 + + Template_OS_iPasserelle + mail.in[uribl] + + + + 7 + FILLED_REGION + 99FFFF + + Template_OS_iPasserelle + mail.in[check_goodrcptto] + + + + 8 + FILLED_REGION + FF00FF + + Template_OS_iPasserelle + mail.in[check_basicheaders] + + + + 9 + FILLED_REGION + FFFF00 + + Template_OS_iPasserelle + mail.in[karma] + + + + 10 + FFCCFF + + Template_OS_iPasserelle + mail.in[resolvable_fromhost] + + + + 11 + 274482 + + Template_OS_iPasserelle + mail.in[spf] + + + + 12 + 2B5429 + + Template_OS_iPasserelle + mail.in[tls_failed] + + + + 13 + FILLED_REGION + AAAAAA + + Template_OS_iPasserelle + mail.in[other_denied] + + + + 14 + 00AAAA + + Template_OS_iPasserelle + mail.in[check_spamhelo] + + + + + + Réseau: Email: Sortant + STACKED + + + FILLED_REGION + 009900 + + Template_OS_iPasserelle + mail.out[success] + + + + 1 + FILLED_REGION + FFFF00 + + Template_OS_iPasserelle + mail.out[deferral] + + + + 2 + FILLED_REGION + FF0000 + + Template_OS_iPasserelle + mail.out[failure] + + + + + + diff --git a/zabbix_templates/Template_Ping.xml b/zabbix_templates/Template_Ping.xml index 3c1a6ee..ee8727d 100644 --- a/zabbix_templates/Template_Ping.xml +++ b/zabbix_templates/Template_Ping.xml @@ -1,7 +1,7 @@ - 4.4 - 2020-03-02T14:07:54Z + 5.0 + 2021-06-19T12:18:12Z Modèles @@ -38,6 +38,7 @@ Packet loss SIMPLE icmppingloss[,6,500,,1500] + {$PING_FREQ} 1825d FLOAT % @@ -55,12 +56,12 @@ No ping response from {HOST.IP1} - {$PING_INFO}=1 and {Template_Ping:icmpping[,2,,,2000].sum({$DOWN_WARN})}=0 + {Template_Ping:icmpping[,2,,,2000].nodata(180,strict)}=0 and {Template_Ping:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_Ping:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_Ping:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} {Template_Ping:icmpping[,2,,,2000].sum(180)}>3 No ping response from {HOST.IP1} - {Template_Ping:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_Ping:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_Ping:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} + {Template_Ping:icmpping[,2,,,2000].sum({$DOWN_WARN})}=0 {Template_Ping:icmpping[,2,,,2000].sum(180)}>3 @@ -71,6 +72,7 @@ Latency SIMPLE icmppingsec + {$PING_FREQ} 1825d FLOAT s @@ -94,7 +96,7 @@ Ping response SIMPLE icmpping[,2,,,2000] - 30s + {$PING_FREQ} 1825d @@ -104,7 +106,20 @@ POST - {$PING_INFO}=1 and {sum({$DOWN_WARN})}=0 + {nodata(180,strict)}=1 + No ping information received in last 3 minutes + INFO + + + {nodata(180,strict)}=0 and {sum({$DOWN_CRITICAL})}=0 and {dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {dayofweek(0)}<={$PING_ALERT_TO_DAY} and {time(0)}>={$PING_ALERT_FROM_HOUR} and {time(0)}<={$PING_ALERT_TO_HOUR} + RECOVERY_EXPRESSION + {sum(180)}>3 + No ping response from {HOST.IP1} + DISASTER + YES + + + {sum({$DOWN_WARN})}=0 RECOVERY_EXPRESSION {sum(180)}>3 No ping response from {HOST.IP1} @@ -113,19 +128,11 @@ No ping response from {HOST.IP1} - {Template_Ping:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_Ping:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_Ping:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} + {Template_Ping:icmpping[,2,,,2000].nodata(180,strict)}=0 and {Template_Ping:icmpping[,2,,,2000].sum({$DOWN_CRITICAL})}=0 and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {Template_Ping:icmpping[,2,,,2000].dayofweek(0)}<={$PING_ALERT_TO_DAY} and {Template_Ping:icmpping[,2,,,2000].time(0)}>={$PING_ALERT_FROM_HOUR} and {Template_Ping:icmpping[,2,,,2000].time(0)}<={$PING_ALERT_TO_HOUR} {Template_Ping:icmpping[,2,,,2000].sum(180)}>3 - - {sum({$DOWN_CRITICAL})}=0 and {dayofweek(0)}>={$PING_ALERT_FROM_DAY} and {dayofweek(0)}<={$PING_ALERT_TO_DAY} and {time(0)}>={$PING_ALERT_FROM_HOUR} and {time(0)}<={$PING_ALERT_TO_HOUR} - RECOVERY_EXPRESSION - {sum(180)}>3 - No ping response from {HOST.IP1} - DISASTER - YES - @@ -167,9 +174,9 @@ 235959 - {$PING_INFO} - 1 - Info alert if no response, before critical alert + {$PING_FREQ} + 30s + Ping frequency diff --git a/zabbix_templates/Template_PublicService_HTTP.xml b/zabbix_templates/Template_PublicService_HTTP.xml new file mode 100644 index 0000000..49b35ae --- /dev/null +++ b/zabbix_templates/Template_PublicService_HTTP.xml @@ -0,0 +1,134 @@ + + + 5.0 + 2021-06-19T12:18:27Z + + + Modèles + + + Templates + + + + + + + + + Services: HTTPS (extérieur) + + + GRADIENT_LINE + C80000 + + Template_PublicService_HTTPS + net.tcp.service.perf[https] + + + + + + + + Service state + + + 0 + Down + + + 1 + Up + + + + + diff --git a/zabbix_templates/Template_QNAP_NAS.xml b/zabbix_templates/Template_QNAP_NAS.xml new file mode 100644 index 0000000..67414ad --- /dev/null +++ b/zabbix_templates/Template_QNAP_NAS.xml @@ -0,0 +1,723 @@ + + + 5.0 + 2021-06-19T12:07:00Z + + + Templates + + + + + + + + CPU utilization + FIXED + + + GRADIENT_LINE + FF0000 + + Template SNMP QNAP NAS + SystemCPU-UsageEX + + + + + + Device temperature + FIXED + + + BB0000 + + Template SNMP QNAP NAS + CPU-TemperatureEX + + + + 1 + 0000BB + + Template SNMP QNAP NAS + SystemTemperatureEX + + + + + + Memory usage + FIXED + + + GRADIENT_LINE + B2EBF2 + MAX + + Template SNMP QNAP NAS + SystemTotalMemEX + + + + 1 + FILLED_REGION + 66BB6A + + Template SNMP QNAP NAS + SystemUsedMemEX + + + + + + diff --git a/zabbix_templates/Template_Switch_Cisco.xml b/zabbix_templates/Template_Switch_Cisco.xml new file mode 100644 index 0000000..84b9a08 --- /dev/null +++ b/zabbix_templates/Template_Switch_Cisco.xml @@ -0,0 +1,63 @@ + + + 5.0 + 2021-06-19T12:19:20Z + + + Templates + + + + + + diff --git a/zabbix_templates/Template_Switch_Dell_PowerConnect.xml b/zabbix_templates/Template_Switch_Dell_PowerConnect.xml new file mode 100644 index 0000000..97a2b7d --- /dev/null +++ b/zabbix_templates/Template_Switch_Dell_PowerConnect.xml @@ -0,0 +1,429 @@ + + + 5.0 + 2021-06-19T12:19:32Z + + + Modèles + + + + + + + + ({Template_Switch_Dell_PowerConnect:agentSwitchCpuProcessMemAvailable.last(0)}-{Template_Switch_Dell_PowerConnect:agentSwitchCpuProcessMemFree.last(0)})>0.8*{Template_Switch_Dell_PowerConnect:agentSwitchCpuProcessMemAvailable.last(0)} + Memory usage exceeded 80% + DISABLED + HIGH + + + + + Memory usage + + + BOLD_LINE + EACC00 + + Template_Switch_Dell_PowerConnect + agentSwitchCpuProcessMemAvailable + + + + 1 + FILLED_REGION + FF0000 + + Template_Switch_Dell_PowerConnect + agentSwitchCpuProcessMemFree + + + + + + + + dellEnvMonState + + + 1 + normal + + + 2 + warning + + + 3 + critical + + + 4 + notPresent + + + 5 + notFunctioning + + + + + diff --git a/zabbix_templates/Template_Switch_Netgear_ProSafe.xml b/zabbix_templates/Template_Switch_Netgear_ProSafe.xml new file mode 100644 index 0000000..eca8091 --- /dev/null +++ b/zabbix_templates/Template_Switch_Netgear_ProSafe.xml @@ -0,0 +1,145 @@ + + + 5.0 + 2021-06-19T12:19:47Z + + + Modèles + + + + + + diff --git a/zabbix_templates/Template_Switch_Unifi.xml b/zabbix_templates/Template_Switch_Unifi.xml new file mode 100644 index 0000000..e58bb62 --- /dev/null +++ b/zabbix_templates/Template_Switch_Unifi.xml @@ -0,0 +1,26 @@ + + + 5.0 + 2021-06-19T12:19:59Z + + + Modèles + + + + + + diff --git a/zabbix_templates/Template_UPS_APC_SNMP.xml b/zabbix_templates/Template_UPS_APC_SNMP.xml new file mode 100644 index 0000000..ee374da --- /dev/null +++ b/zabbix_templates/Template_UPS_APC_SNMP.xml @@ -0,0 +1,183 @@ + + + 5.0 + 2021-06-19T12:20:39Z + + + Modèles + + + Templates + + + + + + + + APC Battery Replacement Status + + + APC Battery Status + + + diff --git a/zabbix_templates/Temùplate_Switch_ZyXel_GS.xml b/zabbix_templates/Temùplate_Switch_ZyXel_GS.xml new file mode 100644 index 0000000..576b720 --- /dev/null +++ b/zabbix_templates/Temùplate_Switch_ZyXel_GS.xml @@ -0,0 +1,26 @@ + + + 5.0 + 2021-06-19T12:20:10Z + + + Modèles + + + + + +