From d846d0fb62fe9af942fee01d5910d9030ce8f5ab Mon Sep 17 00:00:00 2001 From: Tikhon Uskov Date: Mon, 7 Sep 2020 09:46:57 +0300 Subject: .........T [ZBX-13384] fixed minor template issues to follow guidelines --- .../haproxy_agent/template_app_haproxy_agent.xml | 12 +-- .../app/haproxy_http/template_app_haproxy_http.xml | 10 +-- .../classic/template_app_apache_tomcat_jmx.xml | 6 +- templates/classic/template_os_aix.xml | 6 +- templates/classic/template_os_freebsd.xml | 12 +-- templates/classic/template_os_hp-ux.xml | 6 +- templates/classic/template_os_mac_os_x.xml | 10 +-- templates/classic/template_os_openbsd.xml | 12 +-- templates/classic/template_os_solaris.xml | 10 +-- .../classic/template_server_intel_sr1530_ipmi.xml | 44 +++++----- .../classic/template_server_intel_sr1630_ipmi.xml | 98 +++++++++++----------- .../net/arista_snmp/template_net_arista_snmp.xml | 2 +- .../template_net_brocade_fc_sw_snmp.xml | 2 +- .../net/cisco_snmp/template_net_cisco_snmp.xml | 10 +-- .../net/extreme_snmp/template_net_extreme_snmp.xml | 4 +- .../template_net_intel_qlogic_infiniband_snmp.xml | 6 +- .../mellanox_snmp/template_net_mellanox_snmp.xml | 2 +- .../net/netgear_snmp/template_net_netgear_snmp.xml | 6 +- .../template_server_dell_idrac_snmp.xml | 20 ++--- 19 files changed, 139 insertions(+), 139 deletions(-) (limited to 'templates') diff --git a/templates/app/haproxy_agent/template_app_haproxy_agent.xml b/templates/app/haproxy_agent/template_app_haproxy_agent.xml index cd80c4590e1..b6584588415 100644 --- a/templates/app/haproxy_agent/template_app_haproxy_agent.xml +++ b/templates/app/haproxy_agent/template_app_haproxy_agent.xml @@ -210,7 +210,7 @@ catch (error) { - TCP BACKEND discovery + TCP Backend discovery DEPENDENT haproxy.backend_tcp.discovery 0 @@ -553,7 +553,7 @@ catch (error) { - BACKEND discovery + Backend discovery DEPENDENT haproxy.backend.discovery 0 @@ -2517,22 +2517,22 @@ catch (error) { {$HAPROXY.BACK_ERESP.MAX.WARN} 10 - Maximum of responses with error on BACKEND for trigger expression. + Maximum of responses with error on Backend for trigger expression. {$HAPROXY.BACK_QCUR.MAX.WARN} 10 - Maximum number of requests on BACKEND unassigned in queue for trigger expression. + Maximum number of requests on Backend unassigned in queue for trigger expression. {$HAPROXY.BACK_QTIME.MAX.WARN} 10s - Maximum of average time spent in queue on BACKEND for trigger expression. + Maximum of average time spent in queue on Backend for trigger expression. {$HAPROXY.BACK_RTIME.MAX.WARN} 10s - Maximum of average BACKEND response time for trigger expression. + Maximum of average Backend response time for trigger expression. {$HAPROXY.FRONT_DREQ.MAX.WARN} diff --git a/templates/app/haproxy_http/template_app_haproxy_http.xml b/templates/app/haproxy_http/template_app_haproxy_http.xml index 8cdc96ed94b..e1cb745436e 100644 --- a/templates/app/haproxy_http/template_app_haproxy_http.xml +++ b/templates/app/haproxy_http/template_app_haproxy_http.xml @@ -223,7 +223,7 @@ catch (error) { - TCP BACKEND discovery + TCP Backend discovery DEPENDENT haproxy.backend_tcp.discovery 0 @@ -2530,22 +2530,22 @@ catch (error) { {$HAPROXY.BACK_ERESP.MAX.WARN} 10 - Maximum of responses with error on BACKEND for trigger expression. + Maximum of responses with error on Backend for trigger expression. {$HAPROXY.BACK_QCUR.MAX.WARN} 10 - Maximum number of requests on BACKEND unassigned in queue for trigger expression. + Maximum number of requests on Backend unassigned in queue for trigger expression. {$HAPROXY.BACK_QTIME.MAX.WARN} 10s - Maximum of average time spent in queue on BACKEND for trigger expression. + Maximum of average time spent in queue on Backend for trigger expression. {$HAPROXY.BACK_RTIME.MAX.WARN} 10s - Maximum of average BACKEND response time for trigger expression. + Maximum of average Backend response time for trigger expression. {$HAPROXY.FRONT_DREQ.MAX.WARN} diff --git a/templates/classic/template_app_apache_tomcat_jmx.xml b/templates/classic/template_app_apache_tomcat_jmx.xml index a1d962909ec..7614e378773 100644 --- a/templates/classic/template_app_apache_tomcat_jmx.xml +++ b/templates/classic/template_app_apache_tomcat_jmx.xml @@ -2026,7 +2026,7 @@ - {Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTP}\"",currentThreadsBusy].last(0)} > ({Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTP}\"",maxThreads].last(0)} * 0.7) + {Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTP}\"",currentThreadsBusy].last()} > ({Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTP}\"",maxThreads].last()} * 0.7) 0 70% http-8080 worker threads busy on {HOST.NAME} @@ -2042,7 +2042,7 @@ - {Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTPS}\"",currentThreadsBusy].last(0)} > ({Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTPS}\"",maxThreads].last(0)} * 0.7) + {Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTPS}\"",currentThreadsBusy].last()} > ({Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_HTTPS}\"",maxThreads].last()} * 0.7) 0 70% http-8443 worker threads busy on {HOST.NAME} @@ -2058,7 +2058,7 @@ - {Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_AJP}\"",currentThreadsBusy].last(0)} > ({Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_AJP}\"",maxThreads].last(0)} *0.7) + {Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_AJP}\"",currentThreadsBusy].last()} > ({Template App Apache Tomcat JMX:jmx["Catalina:type=ThreadPool,name=\"{$PROTOCOL_HANDLER_AJP}\"",maxThreads].last()} *0.7) 0 70% jk-8009 worker threads busy on {HOST.NAME} diff --git a/templates/classic/template_os_aix.xml b/templates/classic/template_os_aix.xml index bc7bb5d45ec..fdc300c268f 100644 --- a/templates/classic/template_os_aix.xml +++ b/templates/classic/template_os_aix.xml @@ -3040,7 +3040,7 @@ - {Template OS AIX:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 + {Template OS AIX:vfs.fs.size[{#FSNAME},pfree].last()}<20 0 Free disk space is less than 20% on volume {#FSNAME} @@ -3056,7 +3056,7 @@ - {Template OS AIX:vfs.fs.inode[{#FSNAME},pfree].last(0)}<20 + {Template OS AIX:vfs.fs.inode[{#FSNAME},pfree].last()}<20 0 Free inodes is less than 20% on volume {#FSNAME} @@ -3311,7 +3311,7 @@ - {Template OS AIX:vm.memory.size[available].last(0)}<20M + {Template OS AIX:vm.memory.size[available].last()}<20M 0 Lack of available memory on server {HOST.NAME} diff --git a/templates/classic/template_os_freebsd.xml b/templates/classic/template_os_freebsd.xml index 207102db209..2e0355edeba 100644 --- a/templates/classic/template_os_freebsd.xml +++ b/templates/classic/template_os_freebsd.xml @@ -2228,7 +2228,7 @@ - {Template OS FreeBSD:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 + {Template OS FreeBSD:vfs.fs.size[{#FSNAME},pfree].last()}<20 0 Free disk space is less than 20% on volume {#FSNAME} @@ -2244,7 +2244,7 @@ - {Template OS FreeBSD:vfs.fs.inode[{#FSNAME},pfree].last(0)}<20 + {Template OS FreeBSD:vfs.fs.inode[{#FSNAME},pfree].last()}<20 0 Free inodes is less than 20% on volume {#FSNAME} @@ -2451,7 +2451,7 @@ - {Template OS FreeBSD:kernel.maxfiles.last(0)}<1024 + {Template OS FreeBSD:kernel.maxfiles.last()}<1024 0 Configured max number of opened files is too low on {HOST.NAME} @@ -2467,7 +2467,7 @@ - {Template OS FreeBSD:kernel.maxproc.last(0)}<256 + {Template OS FreeBSD:kernel.maxproc.last()}<256 0 Configured max number of processes is too low on {HOST.NAME} @@ -2515,7 +2515,7 @@ - {Template OS FreeBSD:vm.memory.size[available].last(0)}<20M + {Template OS FreeBSD:vm.memory.size[available].last()}<20M 0 Lack of available memory on server {HOST.NAME} @@ -2531,7 +2531,7 @@ - {Template OS FreeBSD:system.swap.size[,pfree].last(0)}<50 + {Template OS FreeBSD:system.swap.size[,pfree].last()}<50 0 Lack of free swap space on {HOST.NAME} diff --git a/templates/classic/template_os_hp-ux.xml b/templates/classic/template_os_hp-ux.xml index 1a052305016..38175dba6b2 100644 --- a/templates/classic/template_os_hp-ux.xml +++ b/templates/classic/template_os_hp-ux.xml @@ -1495,7 +1495,7 @@ - {Template OS HP-UX:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 + {Template OS HP-UX:vfs.fs.size[{#FSNAME},pfree].last()}<20 0 Free disk space is less than 20% on volume {#FSNAME} @@ -1511,7 +1511,7 @@ - {Template OS HP-UX:vfs.fs.inode[{#FSNAME},pfree].last(0)}<20 + {Template OS HP-UX:vfs.fs.inode[{#FSNAME},pfree].last()}<20 0 Free inodes is less than 20% on volume {#FSNAME} @@ -1728,7 +1728,7 @@ - {Template OS HP-UX:vm.memory.size[available].last(0)}<20M + {Template OS HP-UX:vm.memory.size[available].last()}<20M 0 Lack of available memory on server {HOST.NAME} diff --git a/templates/classic/template_os_mac_os_x.xml b/templates/classic/template_os_mac_os_x.xml index 2ad8bcbe7be..cc6db19a1fc 100644 --- a/templates/classic/template_os_mac_os_x.xml +++ b/templates/classic/template_os_mac_os_x.xml @@ -1380,7 +1380,7 @@ - {Template OS Mac OS X:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 + {Template OS Mac OS X:vfs.fs.size[{#FSNAME},pfree].last()}<20 0 Free disk space is less than 20% on volume {#FSNAME} @@ -1396,7 +1396,7 @@ - {Template OS Mac OS X:vfs.fs.inode[{#FSNAME},pfree].last(0)}<20 + {Template OS Mac OS X:vfs.fs.inode[{#FSNAME},pfree].last()}<20 0 Free inodes is less than 20% on volume {#FSNAME} @@ -1559,7 +1559,7 @@ - {Template OS Mac OS X:kernel.maxfiles.last(0)}<1024 + {Template OS Mac OS X:kernel.maxfiles.last()}<1024 0 Configured max number of opened files is too low on {HOST.NAME} @@ -1575,7 +1575,7 @@ - {Template OS Mac OS X:kernel.maxproc.last(0)}<256 + {Template OS Mac OS X:kernel.maxproc.last()}<256 0 Configured max number of processes is too low on {HOST.NAME} @@ -1623,7 +1623,7 @@ - {Template OS Mac OS X:vm.memory.size[available].last(0)}<20M + {Template OS Mac OS X:vm.memory.size[available].last()}<20M 0 Lack of available memory on server {HOST.NAME} diff --git a/templates/classic/template_os_openbsd.xml b/templates/classic/template_os_openbsd.xml index 332a220d50c..d482eb607e3 100644 --- a/templates/classic/template_os_openbsd.xml +++ b/templates/classic/template_os_openbsd.xml @@ -2228,7 +2228,7 @@ - {Template OS OpenBSD:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 + {Template OS OpenBSD:vfs.fs.size[{#FSNAME},pfree].last()}<20 0 Free disk space is less than 20% on volume {#FSNAME} @@ -2244,7 +2244,7 @@ - {Template OS OpenBSD:vfs.fs.inode[{#FSNAME},pfree].last(0)}<20 + {Template OS OpenBSD:vfs.fs.inode[{#FSNAME},pfree].last()}<20 0 Free inodes is less than 20% on volume {#FSNAME} @@ -2495,7 +2495,7 @@ - {Template OS OpenBSD:kernel.maxfiles.last(0)}<1024 + {Template OS OpenBSD:kernel.maxfiles.last()}<1024 0 Configured max number of opened files is too low on {HOST.NAME} @@ -2511,7 +2511,7 @@ - {Template OS OpenBSD:kernel.maxproc.last(0)}<256 + {Template OS OpenBSD:kernel.maxproc.last()}<256 0 Configured max number of processes is too low on {HOST.NAME} @@ -2559,7 +2559,7 @@ - {Template OS OpenBSD:vm.memory.size[available].last(0)}<20M + {Template OS OpenBSD:vm.memory.size[available].last()}<20M 0 Lack of available memory on server {HOST.NAME} @@ -2575,7 +2575,7 @@ - {Template OS OpenBSD:system.swap.size[,pfree].last(0)}<50 + {Template OS OpenBSD:system.swap.size[,pfree].last()}<50 0 Lack of free swap space on {HOST.NAME} diff --git a/templates/classic/template_os_solaris.xml b/templates/classic/template_os_solaris.xml index 9f9b745f0e7..23cbc03fd49 100644 --- a/templates/classic/template_os_solaris.xml +++ b/templates/classic/template_os_solaris.xml @@ -2107,7 +2107,7 @@ - {Template OS Solaris:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 + {Template OS Solaris:vfs.fs.size[{#FSNAME},pfree].last()}<20 0 Free disk space is less than 20% on volume {#FSNAME} @@ -2123,7 +2123,7 @@ - {Template OS Solaris:vfs.fs.inode[{#FSNAME},pfree].last(0)}<20 + {Template OS Solaris:vfs.fs.inode[{#FSNAME},pfree].last()}<20 0 Free inodes is less than 20% on volume {#FSNAME} @@ -2374,7 +2374,7 @@ - {Template OS Solaris:kernel.maxproc.last(0)}<256 + {Template OS Solaris:kernel.maxproc.last()}<256 0 Configured max number of processes is too low on {HOST.NAME} @@ -2438,7 +2438,7 @@ - {Template OS Solaris:vm.memory.size[available].last(0)}<20M + {Template OS Solaris:vm.memory.size[available].last()}<20M 0 Lack of available memory on server {HOST.NAME} @@ -2454,7 +2454,7 @@ - {Template OS Solaris:system.swap.size[,pfree].last(0)}<50 + {Template OS Solaris:system.swap.size[,pfree].last()}<50 0 Lack of free swap space on {HOST.NAME} diff --git a/templates/classic/template_server_intel_sr1530_ipmi.xml b/templates/classic/template_server_intel_sr1530_ipmi.xml index e7293e403b2..f8df318968a 100644 --- a/templates/classic/template_server_intel_sr1530_ipmi.xml +++ b/templates/classic/template_server_intel_sr1530_ipmi.xml @@ -511,7 +511,7 @@ - {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last(0)}<1.597 or {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last(0)}>2.019 + {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last()}<1.597 or {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last()}>2.019 0 BB +1.8V SM Critical [{ITEM.VALUE}] @@ -526,14 +526,14 @@ Power - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 - {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last(0)}<1.646 or {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last(0)}>1.960 + {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last()}<1.646 or {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last()}>1.960 0 BB +1.8V SM Non-Critical [{ITEM.VALUE}] @@ -548,19 +548,19 @@ BB +1.8V SM Critical [{ITEM.VALUE}] - {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last(0)}<1.597 or {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last(0)}>2.019 + {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last()}<1.597 or {Template Server Intel SR1530 IPMI:bb_1.8v_sm.last()}>2.019 Power - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 - {Template Server Intel SR1530 IPMI:bb_3.3v.last(0)}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v.last(0)}>3.729 + {Template Server Intel SR1530 IPMI:bb_3.3v.last()}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v.last()}>3.729 0 BB +3.3V Critical [{ITEM.VALUE}] @@ -575,14 +575,14 @@ Power - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 - {Template Server Intel SR1530 IPMI:bb_3.3v.last(0)}<2.970 or {Template Server Intel SR1530 IPMI:bb_3.3v.last(0)}>3.618 + {Template Server Intel SR1530 IPMI:bb_3.3v.last()}<2.970 or {Template Server Intel SR1530 IPMI:bb_3.3v.last()}>3.618 0 BB +3.3V Non-Critical [{ITEM.VALUE}] @@ -597,19 +597,19 @@ BB +3.3V Critical [{ITEM.VALUE}] - {Template Server Intel SR1530 IPMI:bb_3.3v.last(0)}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v.last(0)}>3.729 + {Template Server Intel SR1530 IPMI:bb_3.3v.last()}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v.last()}>3.729 Power - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 - {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last(0)}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last(0)}>3.729 + {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last()}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last()}>3.729 0 BB +3.3V STBY Critical [{ITEM.VALUE}] @@ -625,7 +625,7 @@ - {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last(0)}<2.970 or {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last(0)}>3.618 + {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last()}<2.970 or {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last()}>3.618 0 BB +3.3V STBY Non-Critical [{ITEM.VALUE}] @@ -640,14 +640,14 @@ BB +3.3V STBY Critical [{ITEM.VALUE}] - {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last(0)}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last(0)}>3.729 + {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last()}<2.876 or {Template Server Intel SR1530 IPMI:bb_3.3v_stby.last()}>3.729 - {Template Server Intel SR1530 IPMI:bb_5.0v.last(0)}<4.362 or {Template Server Intel SR1530 IPMI:bb_5.0v.last(0)}>5.663 + {Template Server Intel SR1530 IPMI:bb_5.0v.last()}<4.362 or {Template Server Intel SR1530 IPMI:bb_5.0v.last()}>5.663 0 BB +5.0V Critical [{ITEM.VALUE}] @@ -662,14 +662,14 @@ Power - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 - {Template Server Intel SR1530 IPMI:bb_5.0v.last(0)}<4.483 or {Template Server Intel SR1530 IPMI:bb_5.0v.last(0)}>5.495 + {Template Server Intel SR1530 IPMI:bb_5.0v.last()}<4.483 or {Template Server Intel SR1530 IPMI:bb_5.0v.last()}>5.495 0 BB +5.0V Non-Critical [{ITEM.VALUE}] @@ -684,19 +684,19 @@ BB +5.0V Critical [{ITEM.VALUE}] - {Template Server Intel SR1530 IPMI:bb_5.0v.last(0)}<4.362 or {Template Server Intel SR1530 IPMI:bb_5.0v.last(0)}>5.663 + {Template Server Intel SR1530 IPMI:bb_5.0v.last()}<4.362 or {Template Server Intel SR1530 IPMI:bb_5.0v.last()}>5.663 Power - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 - {Template Server Intel SR1530 IPMI:bb_ambient_temp.last(0)}<5 or {Template Server Intel SR1530 IPMI:bb_ambient_temp.last(0)}>66 + {Template Server Intel SR1530 IPMI:bb_ambient_temp.last()}<5 or {Template Server Intel SR1530 IPMI:bb_ambient_temp.last()}>66 0 BB Ambient Temp Critical [{ITEM.VALUE}] @@ -712,7 +712,7 @@ - {Template Server Intel SR1530 IPMI:bb_ambient_temp.last(0)}<10 or {Template Server Intel SR1530 IPMI:bb_ambient_temp.last(0)}>61 + {Template Server Intel SR1530 IPMI:bb_ambient_temp.last()}<10 or {Template Server Intel SR1530 IPMI:bb_ambient_temp.last()}>61 0 BB Ambient Temp Non-Critical [{ITEM.VALUE}] @@ -727,14 +727,14 @@ BB Ambient Temp Critical [{ITEM.VALUE}] - {Template Server Intel SR1530 IPMI:bb_ambient_temp.last(0)}<5 or {Template Server Intel SR1530 IPMI:bb_ambient_temp.last(0)}>66 + {Template Server Intel SR1530 IPMI:bb_ambient_temp.last()}<5 or {Template Server Intel SR1530 IPMI:bb_ambient_temp.last()}>66 - {Template Server Intel SR1530 IPMI:power.last(0)}=0 + {Template Server Intel SR1530 IPMI:power.last()}=0 0 Power diff --git a/templates/classic/template_server_intel_sr1630_ipmi.xml b/templates/classic/template_server_intel_sr1630_ipmi.xml index 391c654846f..397ac5f3d6b 100644 --- a/templates/classic/template_server_intel_sr1630_ipmi.xml +++ b/templates/classic/template_server_intel_sr1630_ipmi.xml @@ -688,7 +688,7 @@ - {Template Server Intel SR1630 IPMI:baseboard_temp.last(0)}<5 or {Template Server Intel SR1630 IPMI:baseboard_temp.last(0)}>90 + {Template Server Intel SR1630 IPMI:baseboard_temp.last()}<5 or {Template Server Intel SR1630 IPMI:baseboard_temp.last()}>90 0 Baseboard Temp Critical [{ITEM.VALUE}] @@ -703,14 +703,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:baseboard_temp.last(0)}<10 or {Template Server Intel SR1630 IPMI:baseboard_temp.last(0)}>83 + {Template Server Intel SR1630 IPMI:baseboard_temp.last()}<10 or {Template Server Intel SR1630 IPMI:baseboard_temp.last()}>83 0 Baseboard Temp Non-Critical [{ITEM.VALUE}] @@ -725,19 +725,19 @@ Baseboard Temp Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:baseboard_temp.last(0)}<5 or {Template Server Intel SR1630 IPMI:baseboard_temp.last(0)}>90 + {Template Server Intel SR1630 IPMI:baseboard_temp.last()}<5 or {Template Server Intel SR1630 IPMI:baseboard_temp.last()}>90 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last(0)}<0.953 or {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last(0)}>1.149 + {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last()}<0.953 or {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last()}>1.149 0 BB +1.05V PCH Critical [{ITEM.VALUE}] @@ -752,14 +752,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last(0)}<0.985 or {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last(0)}>1.117 + {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last()}<0.985 or {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last()}>1.117 0 BB +1.05V PCH Non-Critical [{ITEM.VALUE}] @@ -774,19 +774,19 @@ BB +1.05V PCH Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last(0)}<0.953 or {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last(0)}>1.149 + {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last()}<0.953 or {Template Server Intel SR1630 IPMI:bb_1.05v_pch.last()}>1.149 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last(0)}<0.683 or {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last(0)}>1.543 + {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last()}<0.683 or {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last()}>1.543 0 BB +1.1V P1 Vccp Critical [{ITEM.VALUE}] @@ -801,14 +801,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last(0)}<0.708 or {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last(0)}>1.501 + {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last()}<0.708 or {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last()}>1.501 0 BB +1.1V P1 Vccp Non-Critical [{ITEM.VALUE}] @@ -823,19 +823,19 @@ BB +1.1V P1 Vccp Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last(0)}<0.683 or {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last(0)}>1.543 + {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last()}<0.683 or {Template Server Intel SR1630 IPMI:bb_1.1v_p1_vccp.last()}>1.543 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last(0)}<1.362 or {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last(0)}>1.635 + {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last()}<1.362 or {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last()}>1.635 0 BB +1.5V P1 DDR3 Critical [{ITEM.VALUE}] @@ -850,14 +850,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last(0)}<1.401 or {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last(0)}>1.589 + {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last()}<1.401 or {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last()}>1.589 0 BB +1.5V P1 DDR3 Non-Critical [{ITEM.VALUE}] @@ -872,19 +872,19 @@ BB +1.5V P1 DDR3 Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last(0)}<1.362 or {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last(0)}>1.635 + {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last()}<1.362 or {Template Server Intel SR1630 IPMI:bb_1.5v_p1_ddr3.last()}>1.635 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_3.3v.last(0)}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v.last(0)}>3.625 + {Template Server Intel SR1630 IPMI:bb_3.3v.last()}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v.last()}>3.625 0 BB +3.3V Critical [{ITEM.VALUE}] @@ -899,14 +899,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_3.3v.last(0)}<3.067 or {Template Server Intel SR1630 IPMI:bb_3.3v.last(0)}>3.525 + {Template Server Intel SR1630 IPMI:bb_3.3v.last()}<3.067 or {Template Server Intel SR1630 IPMI:bb_3.3v.last()}>3.525 0 BB +3.3V Non-Critical [{ITEM.VALUE}] @@ -921,19 +921,19 @@ BB +3.3V Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:bb_3.3v.last(0)}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v.last(0)}>3.625 + {Template Server Intel SR1630 IPMI:bb_3.3v.last()}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v.last()}>3.625 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last(0)}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last(0)}>3.625 + {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last()}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last()}>3.625 0 BB +3.3V STBY Critical [{ITEM.VALUE}] @@ -949,7 +949,7 @@ - {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last(0)}<3.067 or {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last(0)}>3.525 + {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last()}<3.067 or {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last()}>3.525 0 BB +3.3V STBY Non-Critical [{ITEM.VALUE}] @@ -964,14 +964,14 @@ BB +3.3V STBY Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last(0)}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last(0)}>3.625 + {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last()}<2.982 or {Template Server Intel SR1630 IPMI:bb_3.3v_stby.last()}>3.625 - {Template Server Intel SR1630 IPMI:bb_5.0v.last(0)}<4.471 or {Template Server Intel SR1630 IPMI:bb_5.0v.last(0)}>5.538 + {Template Server Intel SR1630 IPMI:bb_5.0v.last()}<4.471 or {Template Server Intel SR1630 IPMI:bb_5.0v.last()}>5.538 0 BB +5.0V Critical [{ITEM.VALUE}] @@ -986,14 +986,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:bb_5.0v.last(0)}<4.630 or {Template Server Intel SR1630 IPMI:bb_5.0v.last(0)}>5.380 + {Template Server Intel SR1630 IPMI:bb_5.0v.last()}<4.630 or {Template Server Intel SR1630 IPMI:bb_5.0v.last()}>5.380 0 BB +5.0V Non-Critical [{ITEM.VALUE}] @@ -1008,19 +1008,19 @@ BB +5.0V Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:bb_5.0v.last(0)}<4.471 or {Template Server Intel SR1630 IPMI:bb_5.0v.last(0)}>5.538 + {Template Server Intel SR1630 IPMI:bb_5.0v.last()}<4.471 or {Template Server Intel SR1630 IPMI:bb_5.0v.last()}>5.538 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:front_panel_temp.last(0)}<0 or {Template Server Intel SR1630 IPMI:front_panel_temp.last(0)}>48 + {Template Server Intel SR1630 IPMI:front_panel_temp.last()}<0 or {Template Server Intel SR1630 IPMI:front_panel_temp.last()}>48 0 Front Panel Temp Critical [{ITEM.VALUE}] @@ -1035,14 +1035,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:front_panel_temp.last(0)}<5 or {Template Server Intel SR1630 IPMI:front_panel_temp.last(0)}>44 + {Template Server Intel SR1630 IPMI:front_panel_temp.last()}<5 or {Template Server Intel SR1630 IPMI:front_panel_temp.last()}>44 0 Front Panel Temp Non-Critical [{ITEM.VALUE}] @@ -1057,19 +1057,19 @@ Front Panel Temp Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:front_panel_temp.last(0)}<0 or {Template Server Intel SR1630 IPMI:front_panel_temp.last(0)}>48 + {Template Server Intel SR1630 IPMI:front_panel_temp.last()}<0 or {Template Server Intel SR1630 IPMI:front_panel_temp.last()}>48 Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 0 Power @@ -1085,7 +1085,7 @@ - {Template Server Intel SR1630 IPMI:system_fan_2.last(0)}<324 + {Template Server Intel SR1630 IPMI:system_fan_2.last()}<324 0 System Fan 2 Critical [{ITEM.VALUE}] @@ -1100,14 +1100,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:system_fan_2.last(0)}<378 + {Template Server Intel SR1630 IPMI:system_fan_2.last()}<378 0 System Fan 2 Non-Critical [{ITEM.VALUE}] @@ -1122,19 +1122,19 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 System Fan 2 Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:system_fan_2.last(0)}<324 + {Template Server Intel SR1630 IPMI:system_fan_2.last()}<324 - {Template Server Intel SR1630 IPMI:system_fan_3.last(0)}<324 + {Template Server Intel SR1630 IPMI:system_fan_3.last()}<324 0 System Fan 3 Critical [{ITEM.VALUE}] @@ -1149,14 +1149,14 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 - {Template Server Intel SR1630 IPMI:system_fan_3.last(0)}<378 + {Template Server Intel SR1630 IPMI:system_fan_3.last()}<378 0 System Fan 3 Non-Critical [{ITEM.VALUE}] @@ -1171,12 +1171,12 @@ Power - {Template Server Intel SR1630 IPMI:power.last(0)}=0 + {Template Server Intel SR1630 IPMI:power.last()}=0 System Fan 3 Critical [{ITEM.VALUE}] - {Template Server Intel SR1630 IPMI:system_fan_3.last(0)}<324 + {Template Server Intel SR1630 IPMI:system_fan_3.last()}<324 diff --git a/templates/net/arista_snmp/template_net_arista_snmp.xml b/templates/net/arista_snmp/template_net_arista_snmp.xml index 05dffc03b5a..c22a0977fdf 100644 --- a/templates/net/arista_snmp/template_net_arista_snmp.xml +++ b/templates/net/arista_snmp/template_net_arista_snmp.xml @@ -325,7 +325,7 @@ entPhySensorScale, and entPhySensorPrecision objects must also be examined. {Template Net Arista SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Arista SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Net Arista SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Net Arista SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3 {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""} diff --git a/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml b/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml index ef43e026b7c..5eb35e38558 100644 --- a/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml +++ b/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml @@ -430,7 +430,7 @@ Temperature readings of testpoint: {#SENSOR_INFO} {Template Net Brocade FC SNMP:sensor.temp.value[swSensorValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Brocade FC SNMP:sensor.temp.status[swSensorStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Net Brocade FC SNMP:sensor.temp.status[swSensorStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Net Brocade FC SNMP:sensor.temp.value[swSensorValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3 {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""} diff --git a/templates/net/cisco_snmp/template_net_cisco_snmp.xml b/templates/net/cisco_snmp/template_net_cisco_snmp.xml index 5c1e37f9830..42a2a3dbbfa 100644 --- a/templates/net/cisco_snmp/template_net_cisco_snmp.xml +++ b/templates/net/cisco_snmp/template_net_cisco_snmp.xml @@ -196,9 +196,9 @@ The current measurement of the test point being instrumented. {Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"{#SNMPVALUE}"} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS} RECOVERY_EXPRESSION {Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"} @@ -209,7 +209,7 @@ or {Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:"{#SNMPVALUE}"} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:"{#SNMPVALUE}"}-3 {#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"} @@ -221,9 +221,9 @@ or {#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"} {Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"{#SNMPVALUE}"} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS} {Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"{#SNMPVALUE}"}-3 diff --git a/templates/net/extreme_snmp/template_net_extreme_snmp.xml b/templates/net/extreme_snmp/template_net_extreme_snmp.xml index 88d019fd4c9..57c15966675 100644 --- a/templates/net/extreme_snmp/template_net_extreme_snmp.xml +++ b/templates/net/extreme_snmp/template_net_extreme_snmp.xml @@ -105,7 +105,7 @@ Reference: https://gtacknowledge.extremenetworks.com/articles/Q_A/Does-EXOS-supp Device: Temperature is above critical threshold: >{$TEMP_CRIT:""} {Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last(0)}={$TEMP_CRIT_STATUS} +{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last()}={$TEMP_CRIT_STATUS} {Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].max(5m)}<{$TEMP_CRIT:""}-3 @@ -536,7 +536,7 @@ Status of the power supply {#SNMPVALUE} {Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last(0)}={$TEMP_CRIT_STATUS} +{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last()}={$TEMP_CRIT_STATUS} RECOVERY_EXPRESSION {Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].max(5m)}<{$TEMP_CRIT:""}-3 Device: Temperature is above critical threshold: >{$TEMP_CRIT:""} diff --git a/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml b/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml index 345f876a496..cc8f9e7af34 100644 --- a/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml +++ b/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml @@ -277,7 +277,7 @@ The current value read from the sensor. {Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} RECOVERY_EXPRESSION {Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3 {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""} @@ -288,7 +288,7 @@ or {Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3 {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""} @@ -300,7 +300,7 @@ or {#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""} {Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} {Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3 diff --git a/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml b/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml index 650f3024399..88287e28144 100644 --- a/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml +++ b/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml @@ -322,7 +322,7 @@ entPhySensorScale, and entPhySensorPrecision objects must also be examined. {Template Net Mellanox SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Mellanox SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Net Mellanox SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Net Mellanox SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3 {#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""} diff --git a/templates/net/netgear_snmp/template_net_netgear_snmp.xml b/templates/net/netgear_snmp/template_net_netgear_snmp.xml index c1f2875a232..5b7365cd682 100644 --- a/templates/net/netgear_snmp/template_net_netgear_snmp.xml +++ b/templates/net/netgear_snmp/template_net_netgear_snmp.xml @@ -363,7 +363,7 @@ The temperature value reported by sensor {Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} RECOVERY_EXPRESSION {Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3 #{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:""} @@ -374,7 +374,7 @@ or {Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3 #{#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:""} @@ -386,7 +386,7 @@ or #{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:""} {Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} {Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3 diff --git a/templates/server/dell_idrac_snmp/template_server_dell_idrac_snmp.xml b/templates/server/dell_idrac_snmp/template_server_dell_idrac_snmp.xml index f967ee68d28..c5772f5a9d8 100644 --- a/templates/server/dell_idrac_snmp/template_server_dell_idrac_snmp.xml +++ b/templates/server/dell_idrac_snmp/template_server_dell_idrac_snmp.xml @@ -805,9 +805,9 @@ Possible values: {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.Ambient.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"Ambient"} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS} RECOVERY_EXPRESSION {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.Ambient.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"Ambient"}-3 {#SENSOR_LOCALE}: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"} @@ -818,7 +818,7 @@ or {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.Ambient.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:"Ambient"} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.Ambient.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:"Ambient"}-3 {#SENSOR_LOCALE}: Temperature is above warning threshold: >{$TEMP_WARN:"Ambient"} @@ -830,9 +830,9 @@ or {#SENSOR_LOCALE}: Temperature is above critical threshold: >{$TEMP_CRIT:"Ambient"} {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.Ambient.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"Ambient"} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.Ambient.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS} {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.Ambient.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"Ambient"}-3 @@ -916,9 +916,9 @@ or {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.CPU.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"CPU"} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS} RECOVERY_EXPRESSION {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.CPU.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"CPU"}-3 {#SENSOR_LOCALE}: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"} @@ -929,7 +929,7 @@ or {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.CPU.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:"CPU"} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS} RECOVERY_EXPRESSION {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.CPU.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:"CPU"}-3 {#SENSOR_LOCALE}: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"} @@ -941,9 +941,9 @@ or {#SENSOR_LOCALE}: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"} {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.CPU.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"CPU"} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS} +{Template Server Dell iDRAC SNMP:sensor.temp.status[temperatureProbeStatus.CPU.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS} {Template Server Dell iDRAC SNMP:sensor.temp.value[temperatureProbeReading.CPU.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"CPU"}-3 -- cgit v1.2.3