I have created the bash script to check the oracle connectivity. However, script is running as expected on Linux oracle server but on nagios xi after configuring output is showing different.
Below is common.cfg data
Code: Select all
command[DBconnection_status]=/usr/local/nagios/libexec/check_dbconnection.shBelow o/p is from Linux oracle server
Code: Select all
[root@agasporap1855 nrpe]# /usr/local/nagios/libexec/check_dbconnection.sh
OK - Oracle DB connected Successfully
Code: Select all
[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H XX.XX.XX.XX -t 30 -c DBconnection_status
CRITICAL - Oracle DB Connection FailedCode: Select all
[root@agasporap1855 nrpe]# /usr/local/nagios/libexec/check_nrpe -V
NRPE Plugin for Nagios
Version: 3.2.1