Unknown command(s): check_logfiles

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unknown command(s): check_logfiles

Post by rkennedy »

What is the result when you run the following command?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxxxxx
Just to verify, did you restart NSClient after running those commands @Box293 mentioned?
Former Nagios Employee
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Re: Unknown command(s): check_logfiles

Post by murawweh.daher »

Hi,

i restarted the services each time modify the ns file.

result of the below command.


I (0.4.4.15 2015-11-25) seem to be doing fine...
You have new mail in /var/spool/mail/root
Regards,
Murawweh Daher
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unknown command(s): check_logfiles

Post by rkennedy »

lmiltchev wrote:Did you get the plugin from the website listed below?

https://labs.consol.de/nagios/check_logfiles/

According to the instructions on this page, if you use NSClient++ under Windows, you should define "check_logfiles" in NSC.ini (or nsclient.ini) as such:

Code: Select all

check_logfiles=C:\Perl\bin\perl C:\libexec\check_logfiles --config $ARG1$
Currently, you have:

Code: Select all

alias_check_logfiles = check_logfiles
Looking at your configuration file, this still seems to be the case. Can you update it, restart your NSClient++ service, and try again?
Former Nagios Employee
murawweh.daher
Posts: 66
Joined: Wed Sep 02, 2015 2:02 pm
Location: Ramallah - West Bank
Contact:

Re: Unknown command(s): check_logfiles

Post by murawweh.daher »

Hi,

i tried with without insert alias, and same issue.
i will remove the agent and install 0.3.9.
Regards,
Murawweh Daher
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unknown command(s): check_logfiles

Post by lmiltchev »

Let us know if installing NSClient++ 0.3.9 fixed your issue.

FYI, the use of NSClient++ or the NagEventLog falls a bit short in regards to log monitoring. I would recommend using the Nagios Log Server, which is a much better solution.

https://www.nagios.com/products/nagios-log-server/
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Unknown command(s): check_logfiles

Post by hsmith »

I would take a look at this tutorial as well, it was wrote by one of our very helpful community members.

https://outsideit.net/real-time-eventlog-monitoring/
Former Nagios Employee.
me.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unknown command(s): check_logfiles

Post by tgriep »

You shouldn't have to go back to the old version, when you ran this command

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxxxxx
and you received this message

Code: Select all

I (0.4.4.15 2015-11-25) seem to be doing fine...
that tells you that you can connect to the remote host just fine.

All that needs to be done it do define the command in the nsclient.ini file.
If you can provide a link to where you downloaded the check_logfiles.exe program, we could help out on that.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked