Page 1 of 1

Send Alarm to NagiosXI using send_nrp

Posted: Wed Feb 03, 2021 9:45 am
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

Re: Send Alarm to NagiosXI using send_nrp

Posted: Thu Feb 04, 2021 12:51 pm
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.

Re: Send Alarm to NagiosXI using send_nrp

Posted: Fri Feb 12, 2021 9:44 am
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

Re: Send Alarm to NagiosXI using send_nrp

Posted: Mon Feb 15, 2021 10:12 am
by cdienger
No, this is only a global option.