check_log3 plugin not working on Linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: check_log3 plugin not working on Linux

Post 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'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_log3 plugin not working on Linux

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: check_log3 plugin not working on Linux

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_log3 plugin not working on Linux

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_log3 plugin not working on Linux

Post by tmcdonald »

We have received your email, so I will be closing this thread now.
Former Nagios employee
Locked