help for custom monitoring check on unix
Posted: Thu Feb 18, 2021 9:29 am
Good morning everyone,
We need to execute this remote custom command on a server to check if a service is alive: (this process not appears in the discovered services of this Linux and is not detected by Nagios) so we can't use the standard check_xi_service_snmp_linux_process! , the command we need to execute the remote server is:
(lsnrctl status | grep -A1 "owbservice" | grep READY) >/dev/nullĀ && echo OWB ACTIVE
This server had nrpe (unix) client installed ; and that if it returns a blank value it generates Critical alert and if it returns "OWB ACTIVE" it is OK and no alert.
how should this be implemented step by step? (for dummies) The nrpe client is already installed on the client machine, but I am not familiar with Nagios for this type of check.
Best Regards
We need to execute this remote custom command on a server to check if a service is alive: (this process not appears in the discovered services of this Linux and is not detected by Nagios) so we can't use the standard check_xi_service_snmp_linux_process! , the command we need to execute the remote server is:
(lsnrctl status | grep -A1 "owbservice" | grep READY) >/dev/nullĀ && echo OWB ACTIVE
This server had nrpe (unix) client installed ; and that if it returns a blank value it generates Critical alert and if it returns "OWB ACTIVE" it is OK and no alert.
how should this be implemented step by step? (for dummies) The nrpe client is already installed on the client machine, but I am not familiar with Nagios for this type of check.
Best Regards