Search 85,945 posts and 653 resources contributed by 43,552 members or post a topic.

Already Joined? Sign in
Perl Monitors

Page 1 of 6 (76 items) 1 2 3 4 5 Next > ... Last » | RSS

rated by 0 users
Not Answered This post has 0 verified answers | 75 Replies | 8 Followers | 103,632 Views


263 Posts
Points 739
Miron posted on Fri, Dec 5 2008 7:49 AM
rated by 0 users

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

  • Filed under: ,
  • | Post Points: 3

All Replies


608 Posts
Points 16,213
SolarWinds Employee
josh.clark replied on Fri, Dec 5 2008 8:17 AM
rated by 0 users

 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 Clark
SolarWinds Development Team

  • | Post Points: 3

263 Posts
Points 739
Miron replied on Fri, Dec 5 2008 8:24 AM
rated by 0 users

 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:-)

 

Regards

 

Miron

  • | Post Points: 1

263 Posts
Points 739
Miron replied on Sun, Dec 7 2008 3:23 PM
rated by 0 users

Josh,

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

Miron

  • | Post Points: 3

263 Posts
Points 739
Miron replied on Tue, Dec 9 2008 10:10 AM
rated by 0 users

Roger,

 

I have altered the script that when run from the command line it outputs either:

 

Message: Success

Statistic: 0

 

or

 

Message: Success

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.

 

Regards

 

Miron

  • | Post Points: 3

263 Posts
Points 739
Miron replied on Tue, Dec 9 2008 10:14 AM
rated by 0 users

Roger,

 

 

Message: Success

Statistic: 0

 

or

 

Message: Failure

Statistic: 1

 

Also these are only the last two lines returned by the script.

  • | Post Points: 5

279 Posts
Points 1,559
SolarWinds Employee
Roger Wong replied on Tue, Dec 9 2008 11:06 AM
rated by 0 users

Miron,

Try making those two lines the only string output. I think extra strings break the parser.

Roger Wong, Lead Information Developer, SolarWinds, Inc.

  • | Post Points: 1

279 Posts
Points 1,559
SolarWinds Employee
Roger Wong replied on Tue, Dec 9 2008 11:13 AM
rated by 0 users

Also, be sure to exit the perl script with an "exit 0;" because that is the exit code that tells Orion APM the Perl script was executed successfully.

Roger Wong, Lead Information Developer, SolarWinds, Inc.

  • | Post Points: 1

608 Posts
Points 16,213
SolarWinds Employee
josh.clark replied on Tue, Dec 9 2008 11:32 AM
rated by 0 users

What is the error message it is failing with?

Josh Clark
SolarWinds Development Team

  • | Post Points: 3

263 Posts
Points 739
Miron replied on Wed, Dec 10 2008 1:34 AM
rated by 0 users

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,

 

Regards

 

Miron

 

 

 

 

  • | Post Points: 1

263 Posts
Points 739
Miron replied on Wed, Dec 10 2008 2:37 AM
rated by 0 users

Josh/Roger,

 

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?

 

Regards

 

Miron


  • | Post Points: 1

263 Posts
Points 739
Miron replied on Thu, Dec 11 2008 4:53 AM
rated by 0 users

Hi,

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.


Regards

 

Miron

  • | Post Points: 1

263 Posts
Points 739
Miron replied on Fri, Dec 12 2008 8:40 AM
rated by 0 users

Hi,

I am assuming that anyone has would have this answer is probably on holiday.

Miron

  • | Post Points: 3

32 Posts
Points 70
ghjkl replied on Sat, Dec 13 2008 7:20 AM
rated by 0 users

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.

  • | Post Points: 3
Page 1 of 6 (76 items) 1 2 3 4 5 Next > ... Last » | RSS

© 2003 - 2010 SolarWinds, Inc. All Rights Reserved.

Who is SolarWinds?

SolarWinds is rewriting the rules for how companies manage their networks. Guided by a global community of network engineers, SolarWinds develops simple and powerful network management software and network monitoring software for networks of all sizes. SolarWinds also offers a network certification program to become a SolarWinds Certified Professional (SCP).

What is thwack?

thwack, SolarWinds online community site, was designed by network engineers, for network engineers. thwack is a vibrant, growing community of more than 30,000 IT pros who share a passion for technology.

Explore Resources, Answers, Templates, and Advice

Download Free Networking Tools


Learn More About SolarWinds Products