need help in configuring check_logfiles plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
logan428
Posts: 7
Joined: Wed Jul 24, 2013 6:49 pm

need help in configuring check_logfiles plugin

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: need help in configuring check_logfiles plugin

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
logan428
Posts: 7
Joined: Wed Jul 24, 2013 6:49 pm

Re: need help in configuring check_logfiles plugin

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

Re: need help in configuring check_logfiles plugin

Post by lmiltchev »

Just out of curiosity - have you tried using a different browser? Do you see the same issue in all browsers?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked