LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2016, 08:39 PM   #1
johnjones
LQ Newbie
 
Registered: May 2016
Posts: 5

Rep: Reputation: Disabled
SNMP Traps notifications stopped in nagios xi


I have a Problem with SNMP Traps notification in Nagios xi. First when I used the below configuration in snmptt.conf file I used to get notifications but those notifications were created on some other host instead of the actual host

Quote:
EVENT NotificationServiceAlert .x.x.x.x.xxxxx.xxxxx.xxxx.xx. "Status Events" CRITICAL
FORMAT The Notification Service generated an Alert Notification Message. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Notification Service Alert message=$10 "
SDESC
The Notification Service generated an Alert Notification Message
Variables:
1: AlertDate
2: AlertTime
3: AlertTagField
4: FacilityName
5: HostName
6: ProcessName
7: AlertID
8: AlertName
9: AlertPriority
10:lertMessage
EDESC
Then I changed the snmptt.conf to this configuration but I stopped getting alerts in Nagios completely

Quote:
MIB: NOTIFICATION-SERVICE-ALERT-MIB converted using snmpttconvertmib v1.3
#
#
EVENT NotificationServiceAlert .x.x.xxx.xxxx.xxx.xxx.xxx "Status Events" Normal
FORMAT The Notification Service generated an Alert Notification Message. $*
EXEC /usr/local/bin/snmptraphandling.py "$5" "SNMP Traps" "$8" "$@" " " "AlertDateTime: $1. ReportedTime: $2. FacilityName: $3. TollPointName: $4.
HostName: $5. ProcessName: $6. AlertName: $11. AlertMessage: $12"
SDESC
The Notification Service generated an Alert Notification Message.
1. AlertDateTime
2. AlertReportedTime
3. FacilityName
4. TollPointName
5. HostName
6. ProcessName
7. AlertID
8. AlertPriority
9. CommandRequest
10. CommandResponse
11. AlertName
12. AlertMessage
13. AlertTagField
Variables:
1: ServiceAlertDateTime
2: AlertReportedTime
3: FacilityName
4: TollPointName
5: HostName
6: ProcessName
7: AlertID
8: AlertPriority
9. CommandRequest
10. CommandResponse
11. AlertName
12. AlertMessage
13. AlertTagField
EDESC

Last edited by johnjones; 05-09-2016 at 10:49 AM.
 
Old 05-06-2016, 09:50 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If you had an issue and resolved it as suggested by having marked this "Solved" can you re-edit your original post to show the issue then post your solution? That will help others in future who may have the same issue solve it more quickly.
 
Old 05-09-2016, 10:51 AM   #3
johnjones
LQ Newbie
 
Registered: May 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
That is because I changed this:

EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Notification Service Alert message=$10 "
The hostname in Xi is not matching the hostname I am giving as an input to the snmptraphandling.py. Hostname in Xi is case sensitive
 
1 members found this post helpful.
Old 05-09-2016, 11:33 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Hey there.
I'm John Jones also and I believe there's one more around here as well.

Are you pondering what I'm pondering?

Just saying "hey".
 
Old 05-10-2016, 09:48 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Thanks for updating.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring SNMP Traps in Nagios Core Siddharth Sharma Linux - Server 5 02-24-2015 05:34 AM
Sending SNMP traps eantoranz Linux - Server 4 12-13-2010 03:35 PM
Using SNMP Traps jiml8 Linux - Server 4 04-15-2009 11:29 AM
Snmp Traps magin Linux - Networking 0 07-13-2007 05:13 AM
SNMP traps/notifications for fan failure etc. eloeste Linux - Hardware 0 06-27-2006 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration