SNMP trap - nagiosLS integration with Microfocus

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

SNMP trap - nagiosLS integration with Microfocus

Post by Techmnagioslsuser »

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
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: SNMP trap - nagiosLS integration with Microfocus

Post by Techmnagioslsuser »

++ updates

NagiosLS has to send atleast IP address of the application log source and the event in the SNMP trap to receiver.

Thanks
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: SNMP trap - nagiosLS integration with Microfocus

Post by Techmnagioslsuser »

Hello NagiosLS Team,

Please help with the above query. We are looking this option for production integration.


Thanks
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: SNMP trap - nagiosLS integration with Microfocus

Post by Techmnagioslsuser »

Hello Team,

Please update on above request.

Thanks
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: SNMP trap - nagiosLS integration with Microfocus

Post by mbellerue »

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.
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!
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: SNMP trap - nagiosLS integration with Microfocus

Post by Techmnagioslsuser »

Thanks for the update.

Could you please share the API list or documentation that would be useful to achieve this requirement.

Thanks
Techmnagioslsuser
Posts: 39
Joined: Fri Apr 02, 2021 1:17 am

Re: SNMP trap - nagiosLS integration with Microfocus

Post by Techmnagioslsuser »

Hello Team,

Please help with any documentation or API list for the above request.

Thanks
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: SNMP trap - nagiosLS integration with Microfocus

Post by pbroste »

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&notification_interval=5&notification_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&notification_interval=5&notification_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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: SNMP trap - nagiosLS integration with Microfocus

Post by pbroste »

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.
Locked