How to set Priority for Normal and Critical for Same OID
-
anguri.sudhakar
- Posts: 22
- Joined: Tue Dec 01, 2015 6:00 am
How to set Priority for Normal and Critical for Same OID
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
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
Can you see if reading this thread helps you out?
https://support.nagios.com/forum/viewto ... 66#p164472
https://support.nagios.com/forum/viewto ... 66#p164472
Former Nagios Employee.
me.
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
I am getting confusion ,Could please suggest me best link....
Re: How to set Priority for Normal and Critical for Same OID
You need to change it to:
Are you asking how you can have one trap do both Ok and Critical by parsing the traps?
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 $*"- 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
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.
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
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 $*"
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
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?
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
I have attached MIB file,
That MIB file is Rhino alarm which belongs open-cloud .
Thanks,
Sudhakar anguri
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
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?
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
Soryy... for inconvenience,
Now you can find the attachment.
Now you can find the attachment.
You do not have the required permissions to view the files attached to this post.