How to set Priority for Normal and Critical for Same OID

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

How to set Priority for Normal and Critical for Same OID

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How to set Priority for Normal and Critical for Same OID

Post by hsmith »

Can you see if reading this thread helps you out?

https://support.nagios.com/forum/viewto ... 66#p164472
Former Nagios Employee.
me.
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

Re: How to set Priority for Normal and Critical for Same OID

Post by anguri.sudhakar »

I am getting confusion ,Could please suggest me best link....
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to set Priority for Normal and Critical for Same OID

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to set Priority for Normal and Critical for Same OID

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

Re: How to set Priority for Normal and Critical for Same OID

Post 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 $*"
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to set Priority for Normal and Critical for Same OID

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

Re: How to set Priority for Normal and Critical for Same OID

Post by anguri.sudhakar »

I have attached MIB file,
That MIB file is Rhino alarm which belongs open-cloud .

Thanks,
Sudhakar anguri
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to set Priority for Normal and Critical for Same OID

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

Re: How to set Priority for Normal and Critical for Same OID

Post by anguri.sudhakar »

Soryy... for inconvenience,

Now you can find the attachment.
You do not have the required permissions to view the files attached to this post.
Locked