Page 1 of 1

need help in configuring check_logfiles plugin

Posted: Thu Jul 25, 2013 1:52 pm
by logan428
I am new to Nagios and currently evaluating NagiosXI and would appreciate assistance in configuring check_logfiles plugin to work with XI.
I got this error on the Xi view console:
NRPE: Command 'check_logfiles' not defined

I have added to nrpe.local.cfg:
- command[check_logfiles]=/usr/local/nagios/libexec/check_logfiles --config /app/nagiosxi/config/logfiles/alerts/alerts1.cfg
- added NagiosXI hostname(fqdn) to allowed_hosts parameter

Defined a Service using XI gui:
define service {
host_name ntdfa1.dev.hji.com
service_description test1
use generic-service
check_command check_nrpe!check_logfiles!!!!!!!
check_period 24x7
notification_period 24x7
register 1
}

I installed check_logfiles plugin in usr/local/nagios/libexec and tested ok from command line.
I would like to be able to monitor certain logfiles on remote rhel hosts. I have configured a couple of remote linux server using the XI wizard and installed the agent. My Nagiosxi server is also running rhel.
Thanks

Re: need help in configuring check_logfiles plugin

Posted: Thu Jul 25, 2013 2:13 pm
by abrist
Have you added the command as per:
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
What version of XI are you running?
Looks like the quotes are interpreted as: '
Check your service check and command (if you have one) for the url encoding instead of the actual quotes symbol. It should be quotes, not the url encoding.

Re: need help in configuring check_logfiles plugin

Posted: Fri Jul 26, 2013 11:29 pm
by logan428
Thanks for replying. I am using Nagios XI 2012r2.2.
I am not clear on where to check the encoding but I am not using any quotes on my Service and Command definitions.

Re: need help in configuring check_logfiles plugin

Posted: Mon Jul 29, 2013 10:24 am
by lmiltchev
Just out of curiosity - have you tried using a different browser? Do you see the same issue in all browsers?