Log monitoring in Remote: check_file_content.pl

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: Log monitoring in Remote: check_file_content.pl

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Log monitoring in Remote: check_file_content.pl

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: Log monitoring in Remote: check_file_content.pl

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Log monitoring in Remote: check_file_content.pl

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked