Page 2 of 2

Re: Unknown command(s): check_logfiles

Posted: Wed Dec 16, 2015 10:20 am
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?

Re: Unknown command(s): check_logfiles

Posted: Sun Dec 20, 2015 1:33 am
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

Re: Unknown command(s): check_logfiles

Posted: Mon Dec 21, 2015 10:43 am
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?

Re: Unknown command(s): check_logfiles

Posted: Wed Dec 23, 2015 1:47 am
by murawweh.daher
Hi,

i tried with without insert alias, and same issue.
i will remove the agent and install 0.3.9.

Re: Unknown command(s): check_logfiles

Posted: Wed Dec 23, 2015 10:17 am
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/

Re: Unknown command(s): check_logfiles

Posted: Wed Dec 23, 2015 10:18 am
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/

Re: Unknown command(s): check_logfiles

Posted: Wed Dec 23, 2015 10:22 am
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.