Check_oracle | NRPE issue
Posted: Fri Jul 14, 2017 11:15 am
Hello,
I am trying to monitor DB instances running on HP-UNIX server using check_oracle.sh plugin.
User nagios is part of dba group.
plugin is working perfectly when i execute it directly, but it doesn't run when called using check_nrpe.
I have tried running check_nrpe - from Nagios user/root user/ DB user but everytime i get same output.
NRPE.CFG
Kindly help!
I am trying to monitor DB instances running on HP-UNIX server using check_oracle.sh plugin.
User nagios is part of dba group.
plugin is working perfectly when i execute it directly, but it doesn't run when called using check_nrpe.
Code: Select all
# ./check_nrpe -H localhost -c check_oracle_db
opspb10p Database is DOWN
usplops1:<root>[/usr/local/nagios/libexec]
# ./check_ora.sh --db 'opspb10p'
opspb10p OK - 1 PMON process(es) running
NRPE.CFG
Code: Select all
TRIED:
command[check_oracle_db]=/usr/bin/env LD_LIBRARY_PATH=/app4p/oracle/product/10.2/lib /usr/local/nagios/libexec/check_ora.sh --db 'opspb10p'
command[check_oracle_db]=/usr/local/nagios/libexec/check_ora.sh --db 'opspb10p'
Output:
opspb10p Database is DOWN
command[check_oracle_db]=/usr/local/nagios/libexec/check_ora.sh --db 'opspb10p'
Output:Unable to read output