Send Alarm to NagiosXI using send_nrp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Anto
Posts: 16
Joined: Tue Aug 11, 2020 12:06 pm

Send Alarm to NagiosXI using send_nrp

Post by Anto »

Hello

We are sending alarms to Nagios using send_nrp command like this inside a script, to integrate an alredy existing monitoring script with nagios:

/usr/local/nrdp/clients/send_nrdp.sh -u "http://xxx/nrdp/" -t "xxxx" -H "xxx" -s "service test" -S 0/1/2/3 -o "Message/Alarm text"

The service is passive.

I see that when sending in sequence, more than one message with state 0 (OK) , these kind of messages are not all reported in service history, instead for state level 1,2,3, service history report all the messages sent from send_nrp.

Is it possible to configure nagios service, to have also for State OK messages all the occurence sent from send_nrp?

Thanks and Regards
Antonello
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Send Alarm to NagiosXI using send_nrp

Post by cdienger »

Edit /usr/local/nagios/etc/nagios.cfg and change this line:

Code: Select all

	log_passive_checks=0
to:

Code: Select all

	log_passive_checks=1
and restart the nagios service:

Code: Select all

systemctl restart nagios
That should do it. Let us know your results.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Anto
Posts: 16
Joined: Tue Aug 11, 2020 12:06 pm

Re: Send Alarm to NagiosXI using send_nrp

Post by Anto »

Hi

Thanks for suggestion.
ASAP I will try this setting and let you know.

My other question is whether exist a configuration like this but at a service level (not global).

Thank you.

Antonello
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Send Alarm to NagiosXI using send_nrp

Post by cdienger »

No, this is only a global option.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked