Menu

Error Code not returned correctly (RUNSCRIPT)

Help
2007-08-07
2013-04-25
  • Shaun Wilders

    Shaun Wilders - 2007-08-07

    I think NC_NET works brilliantly but I am having just 1 problem.

    I use the program passively and when using RUNSCRIPT the error code isn't put into the passive.log correctly, it returns the following instead:

      :RITML4.REMOTEITMANAGEMENT.LOCAL: :Test Service: :0: :2&Script finish with Critical

    For this to work correctly it should be:

      :RITML4.REMOTEITMANAGEMENT.LOCAL: :Test Service: :2: :Script finish with Critical

    I get the same result with both the .bat and .exe files that are included in the script directory.  Can anyone help?

     
    • tony

      tony - 2007-08-07

      Thank you for notifying me on this.

      Yes it is a problem with the code for the Passive checks.

      to elaborate on the problem.
      THe primary code of the passive checks did not originally do RUNSCRIPTS, Runscrips and some other passive check commands are/were being handled by the fall through function in the passive check code, were it was basically just redirecting the command to the Active check function and pushing the result directly to the output stream.  this needs to be fixed by explicitly handling the RUNSCRIPT command and parsing out the return code from the output.

      THis will be corrected in the next release of NC_NET. If there is an urgent need for this: please feel free to contact me via tony@montitech.com for setting up consulting.

      TOny

       
    • veedz

      veedz - 2007-12-17

      So just to confirm; at this time (as of NC_NET 4.1a) there is not a way to use RUNSCRIPT with a passive check.  Is this still accurate?

      Thanks,
      -Nate

       
      • tony

        tony - 2007-12-18

        Hi Nate,

        THe updat e for RUNSCRIPTS To process the Return Code corretly has not yet been implemeded into the PASSIVE CHECks,

        HOWEVER I just finished a Large project last weekend that was consuming much of my free time over the last 6 months, so I should have a window within the next week or two to get that implamented.

        Thanks for the reminder,
        TOny

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.