Page 2 of 2

Re: check_log3 plugin not working on Linux

Posted: Thu Mar 24, 2016 7:02 am
by jyoti22
Hi,
Now nrpe user has permissions and I get this output from client server
[root@AUSVADNODB01 ~]# su nrpe
bash-3.2$ cd /oracle/app/oracle/diag/rdbms/ndb2/ndb2/trace
bash-3.2$ cd /usr/lib64/nagios/plugins/
bash-3.2$ ./check_log3.pl -l /oracle/app/oracle/diag/rdbms/ndb2/ndb2/trace/alert_ndb2.log -p ORA-00060
OK: Found 0 lines (limit=1/0): No matches found.|lines=0
bash-3.2$

However, On Management server I still have same issue

COMMAND: /usr/local/nagios/libexec/check_nrpe -H AUSVADNODB01-c check_log3 -a '-l /oracle/app/oracle/diag/rdbms/ndb2/ndb2/trace/alert_ndb2.log -p ORA-00060'
OUTPUT: Cannot read '/oracle/app/oracle/diag/rdbms/ndb2/ndb2/trace/alert_ndb2.log'

Re: check_log3 plugin not working on Linux

Posted: Thu Mar 24, 2016 10:41 am
by lmiltchev
Does it help if you add "sudo" to the command on the remote machine? Try changing this:

Code: Select all

[check_log3]=/usr/lib64/nagios/plugins/check_log3.pl $ARG1$
to this:

Code: Select all

[check_log3]=sudo /usr/lib64/nagios/plugins/check_log3.pl $ARG1$
Restart NRPE (or xinetd), and try your check again.

Re: check_log3 plugin not working on Linux

Posted: Thu Mar 24, 2016 3:07 pm
by jyoti22
Made below change in nrpe.cfg
[check_log3]=sudo /usr/lib64/nagios/plugins/check_log3.pl $ARG1$

But still on XI, I get Unable to read output

COMMAND: /usr/local/nagios/libexec/check_nrpe -H AUSVADNODB01 -t 30 -c check_log3 -a '-l /oracle/app/oracle/diag/rdbms/ndb2/ndb2/trace/alert_ndb2.log -p ORA-00060'
OUTPUT: NRPE: Unable to read output

Re: check_log3 plugin not working on Linux

Posted: Thu Mar 24, 2016 4:47 pm
by lmiltchev
Try running the command from the command line. Don't test it from the GUI (within the CCM).

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H AUSVADNODB01-c check_log3 -a '-l /oracle/app/oracle/diag/rdbms/ndb2/ndb2/trace/alert_ndb2.log -p ORA-00060'
If this is still failing, we may need to schedule a remote session to further troubleshoot the issue. Is opening an email support ticket an option for you?

Re: check_log3 plugin not working on Linux

Posted: Mon Mar 28, 2016 9:14 am
by tmcdonald
We have received your email, so I will be closing this thread now.