Page 1 of 2
How to set Priority for Normal and Critical for Same OID
Posted: Tue Mar 01, 2016 6:57 am
by anguri.sudhakar
Hi ,
I have OID .1.3.6.1.4.1.19808.2.101.5 and i am receiving alarms up and down , But in Web Page it is showing Normal status OK.
please find the below syntax.
EVENT traceNotification .1.3.6.1.4.1.19808.2.101.5 "Status Events" Normal
FORMAT This notification is sent for trace notifications $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SnmpTrap" "$s" "$@" "$-*" "This notification is sent for trace notifications $*"
How do clear the Alarm change status to Critical..?
Please suggest me.
Thanks,
Sudhakar Anguri
Re: How to set Priority for Normal and Critical for Same OID
Posted: Tue Mar 01, 2016 5:28 pm
by hsmith
Re: How to set Priority for Normal and Critical for Same OID
Posted: Fri Mar 04, 2016 3:59 am
by anguri.sudhakar
I am getting confusion ,Could please suggest me best link....
Re: How to set Priority for Normal and Critical for Same OID
Posted: Fri Mar 04, 2016 1:51 pm
by ssax
You need to change it to:
Code: Select all
EVENT traceNotification .1.3.6.1.4.1.19808.2.101.5 "Status Events" Critical
FORMAT This notification is sent for trace notifications $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SnmpTrap" "$s" "$@" "$-*" "This notification is sent for trace notifications $*"
Are you asking how you can have one trap do both Ok and Critical by parsing the traps?
Re: How to set Priority for Normal and Critical for Same OID
Posted: Sun Mar 06, 2016 8:20 pm
by Box293
This tutorial goes into detail as to how the traps actually work from when they enter the server through to the Nagios services.
https://support.nagios.com/kb/article.php?id=77
There is a section that gets into the MATCH statement, which allows you to match an incoming value and based on that the state sent to nagios can be Normal or Critcal.
This allows multiple entries in
snmptt.conf for the same OID.
Re: How to set Priority for Normal and Critical for Same OID
Posted: Tue Mar 08, 2016 5:15 am
by anguri.sudhakar
Are you asking how you can have one trap do both Ok and Critical by parsing the traps?
You mention above question,Yes exactly i am looking for the above solution.Could you please suggest me.
below OID:
EVENT traceNotification .1.3.6.1.4.1.19808.2.101.5 "Status Events" Critical
FORMAT This notification is sent for trace notifications $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SnmpTrap" "$s" "$@" "$-*" "This notification is sent for trace notifications $*"
Re: How to set Priority for Normal and Critical for Same OID
Posted: Tue Mar 08, 2016 2:37 pm
by tgriep
Can you post what make and model of the device that is sending the SNMP Trap?
Can you post the MIB file that the OID in your example came from so we can view it?
Re: How to set Priority for Normal and Critical for Same OID
Posted: Thu Mar 10, 2016 4:59 am
by anguri.sudhakar
I have attached MIB file,
That MIB file is Rhino alarm which belongs open-cloud .
Thanks,
Sudhakar anguri
Re: How to set Priority for Normal and Critical for Same OID
Posted: Thu Mar 10, 2016 12:10 pm
by tgriep
The MIB file didn't upload to this post, can you try to upload the file again?
Or can you provide a link to where you found the file?
Re: How to set Priority for Normal and Critical for Same OID
Posted: Fri Mar 11, 2016 2:53 am
by anguri.sudhakar
Soryy... for inconvenience,
Now you can find the attachment.