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'
check_log3 plugin not working on Linux
Re: check_log3 plugin not working on Linux
Does it help if you add "sudo" to the command on the remote machine? Try changing this:
to this:
Restart NRPE (or xinetd), and try your check again.
Code: Select all
[check_log3]=/usr/lib64/nagios/plugins/check_log3.pl $ARG1$Code: Select all
[check_log3]=sudo /usr/lib64/nagios/plugins/check_log3.pl $ARG1$Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_log3 plugin not working on Linux
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
[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
Try running the command from the command line. Don't test it from the GUI (within the CCM).
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?
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'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_log3 plugin not working on Linux
We have received your email, so I will be closing this thread now.
Former Nagios employee