Hi,
im sure that this is an obvious question to most. But do we have to run a perl installation on the Solarwinds server for any Perl Scripts to work.
Regards
Miron
It depends on which Monitor Type you select. Windows Script Monitors run on the Orion Server. If you want to write your Windows Script Monitor scripts in perl then, yes, you'll have to install ActiveState's perl intepretter. (You can also write the script in VBScript or JScript, both of which are supported natively on Windows so there's nothing to install.
If you use a Linux Script Monitor, the script executes on the target node. You don't have to install perl on the Orion Server for these scripts. You just need the interpretter on the target node - your scripts can be in perl, PHP, Bash, whatever. As long as it is installed on the target Linux node.
Josh,
Thanks mate, I have found a Perl Radius Script which I want to test, otherwise Ill have to learn VBScript (and programming is not my strong suit:-)
Apologies again if this is a dim question, if i run the perl script from the cmd line on the solarwinds server the script successfully tests user authentication against a radius server and returns a code to the cmd line. I notice that the windows script template allows you to define the script but not the expected return.
How does solarwinds typically know what it should be receiving after each poll?
Kind Regards
Roger,
I have altered the script that when run from the command line it outputs either:
Message: Success
Statistic: 0
or
Statistic: 1
when building the monitor in APM I have copied the script into the script body and replaced vbscript with perl.
At the moment this is failing do you know if there is anything else I have missed.
What is the error message it is failing with?
Josh/Roger,
info box
The return code is different to what is expected. The script returned status code down.
When I get back in to work i will check that the radius server is actually receiving requests when orion is running the script in the first place.
I have changed the script to only return the last two lines as suggested and changed the exit to exit 0,