Hi, define a user parameter by bash script like below:
and add it to my zabbix.agentd.conf and I add it as an item to my host with these values:
and I test it in zabbix and i get this value
but I dont now how can I set a triger on it to if change set an alert to me!
I do some way with regular expersion but it doesnt help me and I get
Code:
cat event_log.sh
#!/bin/bash
SNMP_HOST="192.168.60.33"
SNMP_COMMUNITY="xxxxxxxxxxxx"
BASE_OID="iso.3.6.1.4.1.232.9.2.3.2.1.4"
OUTPUT=$(snmpwalk -v 2c -c $SNMP_COMMUNITY $SNMP_HOST $BASE_OID | tail -n 1 | awk -F' = ' '{print $2}')
echo $OUTPUT
name :iLO Event Logs
type: zabbix agent
key: ilo.events
type: text
update interval: 10s
type: zabbix agent
key: ilo.events
type: text
update interval: 10s
STRING: "Browser logout: System Administrator - 127.0.0.1(localhost)."
I do some way with regular expersion but it doesnt help me and I get
Invalid parameter "/1/expression": incorrect expression starting from...
Comment