Miron

Comments

  • Hi, Since I cant get the WSH to correctly work with a perl script which calls external modules, was thinking it may be that I could modify the main script to write a status code to a file, then have a separate script which reads the value from the file which in turn APM will use to confirm status. Miron
  • Hi All, Though I would try and revive this a little and see if since I started this anyone has been able to successfully deploy perl monitors with APM. Regards Miron
  • Hi, Well I havent had much luck on any of the coding sites like PerlMonks and others no answers as yet. Anyways unless someone else has any ideas his is not going to work unless SW is able to run perl scripts without using WSH, I get an answer which fixes the problem or someone writes a test in VBScript Regards Miron
  • Hi, I tested by keepin the IF statement in but commenting out the calls to the Radius.pm which did not return the unwelcome error code. So the issue seems to be with the calls to sub objects and if I cant figure out a workaround it will be quite difficult to create a script with no external calls.(and extremely long). By…
  • Hey mate, What status code do you get when you test from the cmd line with %ERRORLEVEL% as an option. BTW I havent got this to work yet either. Miron
  • Hey mate, Yep I understand that and thanks for letting me know that echo %ERRORLEVEL% thing. You will see in my scripts posted that im not trying to use the Exit to set the status but rather the $WScript. I see when running the %ERRORLEVEL% after running a simplet print "hello"; $WScript->Quit(2); that i obtain the correct…
  • SW Guys, I created a file called radius.wsf and run it from the command line. The file contains the perl script embedded with a windows script file. Shown Below. <job> <runtime> </runtime> <script language="PerlScript"> use Authen::Radius; $r = new Authen::Radius(Host => "xxxx:1812", Secret => "xxxxxx"); $s =…
  • Hi, Possibly a little left field here, but would it be possible to wrap the perl script within a vbscript for example. Have a small amount of VBscript execute the perl script and then return a valid exit code based on the output from the perl script? Miron
  • G, If you read the previous posts you will see that I already said that. I assume that whether the script passes or fails it will always have an exit code of UP. Otherwise if you have it working on pass and fail then that will be great. Miron
  • I have tried to ask the question on some perl dev forums but so far im not having much luck. Probably asking in the wrong place:-) Miron
  • SW Guys, Sorry i also thought that since it is failing when being run from cmd with CScript that would imply that there is something wrong with the script and not with APM. If we can successfully get it to work with CScript I assume that would get us closer or it actually working with APM. Hope that makes sense Miron
  • Denny and team, I know you said a while ago on this topic that I was trying something new with trying to use a perl script. However I suppose what I would like to know that from your guys experience should the script supplied actually be working and is not in which case a support call would be necessary or that script will…
  • g, The only thing I can see at the moment is the following: script A: Doesnt include any WScript->Quit(x); script B: Does include WScript->Quit(x); Script A: run from CMD using CScript C:\>cscript //E:PerlScript c:\"Perl Scripts"\testA.pl Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation…
  • g, which script are you using? the one with or without the $WScript included. The one without the $WScript works in so far as it actually runs and returns info but not the info APM want, the one with the $WScript does not work and will give you the execution error. Miron
  • Denny, Thanks as always for the response. I suppose I was under the impression when I began this post that getting the exit code from perl was quite well known or that other solarwinds users/dev had done it before. Regards Miron
  • Hi, This is one of the reasons why as a non developer I hate having to write code in order to accomplish a simple task which was solved years ago. I still dont seem to be any closer to a solution for this. Is the code supplied wrong or do I have a component of ActivePerl missing. is there a reason why APM requires a…
  • Josh, The $WScript->Quit(x) beneath the individual if conditions just bring up a windows script execution error. Miron
  • Josh, Im sure its just me not being clear. Sorry to be a pain Essentially the following script is what im trying to execute. ************************************************************** use Authen::Radius; $r = new Authen::Radius(Host => "xxx.xxx.xxx.xxx:1812", Secret => "xxxx"); $s = $r->check_pwd("monitor", "xxxx"); if…
  • Josh mate, I know this sounds dim, but where to you put that in the script (as shown)( me not a good programmer) If it can pick up the Statistics value why doent it act on this number. Regards Miron
  • Josh, Thanks changing to perscript executed the script. Miron
  • Josh mate, Just checking for the script i posted earlier where is the wscipt-> x posted? Miron
  •  Denny, Thanks again for the response. Looking forward to any progress. Regards Miron
  •  Hey Denny, I see that many people are alightly annoyed by the change in icon colours. I also see that if a map contains objects that have missing interfaces the map object shows as blue instead of yellow. I agree with one of the earlier posts that it would be great to have the option of assigning weights to devices so…
  • Denny, Am I rigth in assuming that this would only be in release 10.0 or X whichever you decide to call it. I know you guys are very busy, but just reading this forum and not taking into consideration the number of times this had been requested over the years it seems that it has taken quite a while to be added into the…
  •  Cool mate, We have over 1000 Nodes for network devices only and once APM is capable would like to fully monitor our services all from the orion platform. It would be good to manage/unmanage groups of devices in bulk for instance when there is a power or generator test. I suppose that a nifty future feature for scheduling…
  • g mate, if your script is printing Statistic: 0 all the time then it should always be up if I am not mistaken. If you change the to print Statistic: 1 what happens? Regards Miron
  •  Go to Administrator Tools> Component Services Expand Component Services Expand Computers Expand My Computer Highlight COM+ Applications Right Click SolarWinds Orion NPM Select Identity Tab Select Radio button for Network Service under System Account: I think you only had to restart the IIS Webservice. You should the…
  • Hi, When I modify the script and add it to a Windows Script monitor i receive a Scheduler not responding in the info box and a status Unknown. I tested the script by running it from the command line which passed. Is there something I have missed. As i write the status in the More Info box says, Windows script execution…
  •  Brad, I think that is great and looks very professional. The only comment I would ask is whether you can select all objects within a specific group (ie location, floor etc) Regards Miron
  • Hi, Rerunning the configuration wizard will no return any views and pages to default unless presumably you have hacked the configuration manually. If you have a vanila build and have done work on maps and resources and views and run configuration wizard they will still exist once complete. Regards Miron