Page 2 of 2

Re: Log monitoring in Remote: check_file_content.pl

Posted: Thu Jul 18, 2019 8:57 am
by FrancisNagios
Hi,

We have reinstalled the agent by dialing the nrpe check and communications on port 5666 are already working
But we have this mistakebut we have this error

Code: Select all

[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.16.70.115 -c check_ntp_time
Unknown command(s): check_ntp_time
Is this definition wrong?

Code: Select all

check_ntp_time=cscript.exe //T:30 //NoLogo scripts\\check_time.vbs 10.16.70.237 20 240
Could it be that the definition is like that? And we copy the check_ntp_time plugin to the nsclient script path

Code: Select all

check_ntp_time=cscript.exe //T:30 //NoLogo scripts\\check_ntp_time -H 10.16.71.113 -w 1 -c 45

Thanks and regards

Re: Log monitoring in Remote: check_file_content.pl

Posted: Thu Jul 18, 2019 4:52 pm
by cdienger
https://exchange.nagios.org/directory/U ... s)/details shows an example:

Code: Select all

 check_ntp_time=cscript.exe //T:30 //NoLogo scriptscheck_time.vbs server1,server2,server3 20 240
It may not be added in the correct location. Check out and try setting up the example in https://support.nagios.com/kb/article.php?id=528 to test a vbs script.

Re: Log monitoring in Remote: check_file_content.pl

Posted: Wed Jul 24, 2019 1:33 am
by FrancisNagios
We have already solved the problem thanks to the examples of your previous comment.

You can close the post.
Thank you very much

Re: Log monitoring in Remote: check_file_content.pl

Posted: Wed Jul 24, 2019 6:32 am
by scottwilkerson
FrancisNagios wrote:We have already solved the problem thanks to the examples of your previous comment.

You can close the post.
Thank you very much
Great!

Locking