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".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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".
Maybe it doesn't work due to CRLF characters, can you test the script running:
test.bat value1 value2
Vittorio
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
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...
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.
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).
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.
Please, post here the script so we can help you with your specific issue.
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.
OK, thanks for your feedback !
If you would like a customization, just post a new item on Feature Request.