Page 1 of 1

How to submit a passive check from shell?

Posted: Tue Dec 08, 2020 5:24 am
by Hussk
Nagios Core

How would I create passive checks for hosts within Nagios for testing purposes?

I know how to submit passive checks from the interface. However, I have not found a way/info to execute it from the terminal/script from within Nagios.

Re: How to submit a passive check from shell?

Posted: Thu Dec 10, 2020 6:31 pm
by benjaminsmith
HI @Hussk,

Check the Nagios Core docs, the PROCESS_HOST_CHECK_RESULT and PROCESS_SERVICE_CHECK_RESULT will accomplish this.

https://assets.nagios.com/downloads/nag ... hecks.html

https://assets.nagios.com/downloads/nag ... and_id=115

Hope that helps!
Benjamin