Hello Team,
We are using Microfocus as MOM in our production. We are trying to integrate NagiosLS with MF using SNMP trap , to send the alert to MF.
Nagios LS needs to send the hostname of the application alert event.
Is that possible with SNMP trap to send hostname & the event to the receiver.
Thanks
SNMP trap - nagiosLS integration with Microfocus
-
- Posts: 39
- Joined: Fri Apr 02, 2021 1:17 am
-
- Posts: 39
- Joined: Fri Apr 02, 2021 1:17 am
Re: SNMP trap - nagiosLS integration with Microfocus
++ updates
NagiosLS has to send atleast IP address of the application log source and the event in the SNMP trap to receiver.
Thanks
NagiosLS has to send atleast IP address of the application log source and the event in the SNMP trap to receiver.
Thanks
-
- Posts: 39
- Joined: Fri Apr 02, 2021 1:17 am
Re: SNMP trap - nagiosLS integration with Microfocus
Hello NagiosLS Team,
Please help with the above query. We are looking this option for production integration.
Thanks
Please help with the above query. We are looking this option for production integration.
Thanks
-
- Posts: 39
- Joined: Fri Apr 02, 2021 1:17 am
Re: SNMP trap - nagiosLS integration with Microfocus
Hello Team,
Please update on above request.
Thanks
Please update on above request.
Thanks
Re: SNMP trap - nagiosLS integration with Microfocus
Hello,
Apologies on the delay. One way to do this, though it's not a way that scales very well, would be to build a query for the application errors you're looking for, as well as a specific host that has this application running. You would create a query per host, and thus, an alert per host. The alert would be named based on the hostname or IP address in the query. But this doesn't scale much past a handful of devices.
If you need something that scales better, it may be better, for now, to create a script that can basically execute the query via the API to retrieve the hostname/IP address, and send the SNMP trap. This custom script could be executed by an alert running that same query to make certain that you're getting the right trap, at the right time, with the right information.
Apologies on the delay. One way to do this, though it's not a way that scales very well, would be to build a query for the application errors you're looking for, as well as a specific host that has this application running. You would create a query per host, and thus, an alert per host. The alert would be named based on the hostname or IP address in the query. But this doesn't scale much past a handful of devices.
If you need something that scales better, it may be better, for now, to create a script that can basically execute the query via the API to retrieve the hostname/IP address, and send the SNMP trap. This custom script could be executed by an alert running that same query to make certain that you're getting the right trap, at the right time, with the right information.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 39
- Joined: Fri Apr 02, 2021 1:17 am
Re: SNMP trap - nagiosLS integration with Microfocus
Thanks for the update.
Could you please share the API list or documentation that would be useful to achieve this requirement.
Thanks
Could you please share the API list or documentation that would be useful to achieve this requirement.
Thanks
-
- Posts: 39
- Joined: Fri Apr 02, 2021 1:17 am
Re: SNMP trap - nagiosLS integration with Microfocus
Hello Team,
Please help with any documentation or API list for the above request.
Thanks
Please help with any documentation or API list for the above request.
Thanks
Re: SNMP trap - nagiosLS integration with Microfocus
Hello @Techmnagioslsuser
Pulled the following from a related query, the following API. Help > REST API Docs > Config Reference show an example on adding a host and service via the api.
Here are example two commands:
curl -XPOST "http://yourapihostaddresshere/nagiosxi/ ... F&pretty=1" -d "host_name=testapihostapply&address=127.0.0.1&check_command=check_ping\!3000,80%\!5000,100%&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
curl -XPOST "http://yourapihostaddresshere/nagiosxi/ ... F&pretty=1" -d "host_name=testapihostapply&service_description=SNMPTRAP&check_command=check_dummy\!0\!\"TRAP RESET\",100%&check_interval=5&retry_interval=5&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
The first creates the host and the second creates a service to listen for snmp traps from that host.
https://assets.nagios.com/downloads/nag ... ios_XI.pdf; covers installing and configuring Nagios to accept traps. Step through this first in case you haven't already.
Thanks,
Perry
Pulled the following from a related query, the following API. Help > REST API Docs > Config Reference show an example on adding a host and service via the api.
Here are example two commands:
curl -XPOST "http://yourapihostaddresshere/nagiosxi/ ... F&pretty=1" -d "host_name=testapihostapply&address=127.0.0.1&check_command=check_ping\!3000,80%\!5000,100%&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
curl -XPOST "http://yourapihostaddresshere/nagiosxi/ ... F&pretty=1" -d "host_name=testapihostapply&service_description=SNMPTRAP&check_command=check_dummy\!0\!\"TRAP RESET\",100%&check_interval=5&retry_interval=5&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
The first creates the host and the second creates a service to listen for snmp traps from that host.
https://assets.nagios.com/downloads/nag ... ios_XI.pdf; covers installing and configuring Nagios to accept traps. Step through this first in case you haven't already.
Thanks,
Perry
Re: SNMP trap - nagiosLS integration with Microfocus
We're moving to a new support system!
The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.
Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users
After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.