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,
Just to confirm this is the script that I have cut down to for the perl radius monitor. Essentially when I run that script from CMD it is successful and I am able to confirm on the radius logs. From the radius logs I cannot see any attempt from APM to run the script. Do you think I am just not invoking it correctly from APM?
Has anyone actually got a functioning perl script correctly invoking with APM.
Even if I use a simple print it does not change the status.
I am assuming that anyone has would have this answer is probably on holiday.
i have same problem. State not changed, no matter exit code value. Try 0,1,2,3,4 exit code state of application not changed it always up. I use Windows script monitor with perl script. I need immediately solve this problem. This very bad for me.
Please help. I need to solve this problem immediately...
Script run. Because value Statistic returned.
g,
is your script referencing any other modules. does it look similar to mine above? mine doesnt run at all so cant say that a statistic is being returned.
miron