Logs Monitoring using Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Logs Monitoring using Nagios

Post by RIDS_I2MP »

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.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Logs Monitoring using Nagios

Post by tgriep »

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

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$
If you want to use the check_log3.exe, you would define the command like this.

Code: Select all

[External Scripts]
check_log3=scripts\check_log3.exe -l "C:\Users\TEMP.SHAREDEV.011\Downloads\test.log" -p "failed"
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked