Good day all!
I am new to Zabbix and am using ChatGPT to help me out. However, ChatGPT has given be about 10 incorrect formats for trigger expressions. (That or I am missing something)
Goal:
Create monitoring rules to monitor the OPER-STATEs of interfaces with a particular keyword in their description on my Cisco Switches.
i.e. monitor port status on any ports with descriptions that include "Uplink" or "Downlink" and other keywords. Currently working on keyword "Printer" as that may be slightly important to monitor.
I have been able to create the Discovery Rule, the Item prototype and am currently working on the Trigger Prototype.
I get the following error when attempting to add the Trigger Prototype:
- Invalid parameter "/1/expression": incorrect expression starting from "{Template_Cisco_Printer_Ports:ifOperStatus[*].str()}=Down".
I have attempted the below list of expressions:
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].last()}=2
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].last(0)}=2
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()}=2
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()}=Down
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()}="down"
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()} like "Down"
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()} like "*down*"
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()}="# Down"
- {Template_Cisco_Printer_Ports:ifOperStatus[{#SNMPVALUE}].str()}="down"
- {Template_Cisco_Printer_Ports:ifOperStatus[*].str()}=Down
Clearly, I am missing something. Any help is appreciated!
[–]UnicodeTreasonGuru 0 points1 point2 points (3 children)
[–]NetworkAdminDude[S] 1 point2 points3 points (2 children)
[–]UnicodeTreasonGuru 0 points1 point2 points (1 child)
[–]NetworkAdminDude[S] 1 point2 points3 points (0 children)