Hi
I was wondering whether somebody could help me configure the snmptrap.sh file. I have read the manual but still not clear about a few things...here's what I have done so far:
1. Installed snmptrapd (part of net-snmp or ucd-snmp)
2. Edited snmptrapd.conf, added the line:-
traphandle default /bin/bash
/home/zabbix/bin/snmptrap.sh
having a traphandle of default will catch all traps won't it? - i.e traps from any OID
4. Copyied misc/snmptrap/snmptrap.sh to ~zabbix/bin
************************************************** ***
5. NOT SURE HOW TO "edit snmptrap.sh to configure some basic parameters:- WHAT DOES THIS MEAN? - IS THIS THE PARAMTERS I WANT TO RECIEVE TRAPS FOR? do i need to enter a word/description/oid here?
In the snmptrap.sh file, do i just have to edit the lines between
# CONFIGURATION
ZABBIX_SERVER="zabbix";
ZABBIX_PORT="10001";
ZABBIX_SENDER="~zabbix/bin/zabbix_sender";
KEY="snmptraps";
HOST="snmptraps";
# END OF CONFIGURATION
6. Add special host and trapper (type "string") item to ZABBIX. See snmptrap.sh for the item's key. WHAT does this mean? Do i just add an item to a host with type "Zabbix Trapper" What is the KEY meant to be? I assume the HOST is the host from which the trap is expected to come from.
************************************************** ******
7. Run snmptrapd:- I know how to do this...but need to understand the above first.
For example I want to recieve a trap when a power supply goes down.
How/where would I configure snmptrap.sh to handle this? Where would i add the host from which the trap might come trap. Do i have to specifiy the OID of the trap i want to recieve info for i.e the OID of the power supply. Surely ill have to enter the community name somewhere and also change the port to 162.
I was wondering whether somebody could help me configure the snmptrap.sh file. I have read the manual but still not clear about a few things...here's what I have done so far:
1. Installed snmptrapd (part of net-snmp or ucd-snmp)
2. Edited snmptrapd.conf, added the line:-
traphandle default /bin/bash
/home/zabbix/bin/snmptrap.sh
having a traphandle of default will catch all traps won't it? - i.e traps from any OID
4. Copyied misc/snmptrap/snmptrap.sh to ~zabbix/bin
************************************************** ***
5. NOT SURE HOW TO "edit snmptrap.sh to configure some basic parameters:- WHAT DOES THIS MEAN? - IS THIS THE PARAMTERS I WANT TO RECIEVE TRAPS FOR? do i need to enter a word/description/oid here?
In the snmptrap.sh file, do i just have to edit the lines between
# CONFIGURATION
ZABBIX_SERVER="zabbix";
ZABBIX_PORT="10001";
ZABBIX_SENDER="~zabbix/bin/zabbix_sender";
KEY="snmptraps";
HOST="snmptraps";
# END OF CONFIGURATION
6. Add special host and trapper (type "string") item to ZABBIX. See snmptrap.sh for the item's key. WHAT does this mean? Do i just add an item to a host with type "Zabbix Trapper" What is the KEY meant to be? I assume the HOST is the host from which the trap is expected to come from.
************************************************** ******
7. Run snmptrapd:- I know how to do this...but need to understand the above first.
For example I want to recieve a trap when a power supply goes down.
How/where would I configure snmptrap.sh to handle this? Where would i add the host from which the trap might come trap. Do i have to specifiy the OID of the trap i want to recieve info for i.e the OID of the power supply. Surely ill have to enter the community name somewhere and also change the port to 162.
Comment