Page 1 of 1

SNMP trap - nagiosLS integration with Microfocus

Posted: Tue Mar 08, 2022 5:04 am
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

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Tue Mar 08, 2022 5:48 am
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

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Mon Mar 14, 2022 12:00 am
by Techmnagioslsuser
Hello NagiosLS Team,

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


Thanks

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Wed Mar 16, 2022 2:16 am
by Techmnagioslsuser
Hello Team,

Please update on above request.

Thanks

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Wed Mar 16, 2022 12:01 pm
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.

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Wed Mar 16, 2022 10:00 pm
by Techmnagioslsuser
Thanks for the update.

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

Thanks

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Tue Mar 22, 2022 3:23 am
by Techmnagioslsuser
Hello Team,

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

Thanks

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Tue Mar 22, 2022 3:41 pm
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

Re: SNMP trap - nagiosLS integration with Microfocus

Posted: Tue Mar 22, 2022 3:44 pm
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.