[SOLVED] SNMP Traps notifications stopped in nagios xi
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.