Menu

Script Notification don't start

2005-11-30
2013-04-09
  • Nobody/Anonymous

    I'm only installed the CheckEvent-Plugin and enabled the notification "E-Mail" and "Script".
    Email notification works fine but HealthMonitor never start the script at a notification.
    I reduce the script test.bat to:
    echo %1 %2 >> C:\1.txt
    and use the arguments "%S %M".
    I successful tested the Button "Test Script Notification".

     
    • Vittorio Pavesi

      Vittorio Pavesi - 2005-11-30

      Maybe it doesn't work due to CRLF characters, can you test the script running:
      test.bat value1 value2

      Vittorio

       
    • Nobody/Anonymous

      Correct, the simple script doesn't work due to CRLF characters :-(
      If I run test.bat value1 value2 then I get the correct value in 1.txt: "value1 value2" 

      the background:
      I'm looking for a simple way to change the layout of the Email notification with the good old command line SMTP mail client for Windows "blat.exe".
      I need the message with the error in the subject line of the email.

      blat_smtp.bat
      ----------------------------
      set to= -to MyName@home.de
      set f= -f administrator@home.de
      set server= -server SMTP_Server

      set subject=-subject %1%
      set body=-body %2%
      IF "%2" == "" set body=-body "send by blat"
      set debug=-q

      : BLAT_SEND
      C:\blat.exe - %to% %f% %subject% %body% %server% %debug%
      -----------------------

      Tomas

       
    • Vittorio Pavesi

      Vittorio Pavesi - 2005-11-30

      There is already a Feature Request on http://sourceforge.net/tracker/index.php?func=detail&aid=1329078&group_id=88973&atid=588611
      I tested it on version 3.1, keep your eyes on HealthMonitor News...

       
    • Nobody/Anonymous

      With the version 3.1 I have the same problem with somes servers. Script notification doesn't start.
      Is it possible to have a debug mode to get an explanation about the error.
      The script works correctly if manually launch.

       
      • Vittorio Pavesi

        Vittorio Pavesi - 2006-03-19

        Do you experienced this problem with version 3.0 also ?
        Is the problem related to a specific script ? (you can verify it using one of the examples in the healthmonitor installation folder).

         
    • Nobody/Anonymous

      Yes there is the same problem with 3.0. Some tests scripts works on all my servers but the one I want to use isn't working on few and I don't know why, there is no explicit error message.

       
      • Vittorio Pavesi

        Vittorio Pavesi - 2006-03-19

        Please, post here the script so we can help you with your specific issue.

         
    • Nobody/Anonymous

      My perl script is consequent and I can't post it. I've take a look to you code and I think that the script failed because you kill the associate process after 1000 milliseconds.

       
      • Vittorio Pavesi

        Vittorio Pavesi - 2006-03-20

        OK, thanks for your feedback !
        If you would like a customization, just post a new item on Feature Request.

         

Log in to post a comment.