Hello Team,
Thank you for the continuous support.
The request for logs monitoring is urgent and we have a huge number of servers for the same.
We will have to take approval if we want to upgrade the NSC++ on those servers.
I request you to please help me out to resolve the error that we are getting, that is, "UNKNOWN: No handler for that command".
Please let me know if we can raise a support ticket and solve this request using a remote session.
Logs Monitoring using Nagios
Re: Logs Monitoring using Nagios
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Logs Monitoring using Nagios
If the script you are trying to run on the Windows System is a Perl script and it need a Perl environment installed in the Windows system to run the script.
The following links are for some Windows Perl environments that you can use.
http://strawberryperl.com/
https://learn.perl.org/installing/windows.html
If you use Strawberry Perl, you would define the command like this example
If you want to use the check_log3.exe, you would define the command like this.
You may have to adjust the paths to the commands and may have to add escaping for the back slashes.
Try them out and if you have any issues, check the nsclient.log file for the errors and adjust the commands if needed.
The following links are for some Windows Perl environments that you can use.
http://strawberryperl.com/
https://learn.perl.org/installing/windows.html
If you use Strawberry Perl, you would define the command like this example
Code: Select all
[External Scripts]
check_log3 = c:\strawberry\perl\bin\perl.exe "C:\Users\TEMP.SHAREDEV.011\Downloadscheck_logs3.pl" -l "$ARG1$" -p "$ARG2$" -w $ARG3$ -c $ARG4$
Code: Select all
[External Scripts]
check_log3=scripts\check_log3.exe -l "C:\Users\TEMP.SHAREDEV.011\Downloads\test.log" -p "failed"
Try them out and if you have any issues, check the nsclient.log file for the errors and adjust the commands if needed.
Be sure to check out our Knowledgebase for helpful articles and solutions!