|
View previous topic :: View next topic |
Author |
Message |
Matth
Joined: 01 May 2004 Posts: 3
|
Posted: Thu May 20, 2004 7:30 am Post subject: Test a test |
|
|
Hi
Is there a possibility to test out a test.
How can I verify for example what HM is doing once it should alert? Can I somehow manually trigger the Alerts and sort of debug them?
I've setup a test to run a batch-file when an error message appears in the event log. This batch-file creates a text file (nbtlog -n >C:\file.txt). Using a second bad status action I want to mail this text-file.
The mail is sent, but the text file is always missing and is not created. How can I find out why it is not created?
Thanks
Matth |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu May 20, 2004 3:27 pm Post subject: |
|
|
Quote: | How can I verify for example what HM is doing once it should alert? |
You can check system log. Path to the log and logging options defined on "Advanced Logs" page in the Options dialog
Quote: | Can I somehow manually trigger the Alerts and sort of debug them? |
You need to change test status. E.g. you can set "Reverse alert" option for testing.
Quote: | I've setup a test to run a batch-file when an error message appears in the event log. This batch-file creates a text file (nbtlog -n >C:\file.txt). Using a second bad status action I want to mail this text-file.
The mail is sent, but the text file is always missing and is not created. How can I find out why it is not created? |
This happens because HostMonitor starts 2nd action (send e-mail) right after 1st action was started. But external application (nbtlog) needs some time to create file...
Solutions?
1) You may use "Run HMScript" action instead of "Execute external program" action. Write "ExecuteProgram <timetowait> <command line>" command in the script. "Send e-mail" action should be created AFTER "Run HMScript" action (if you already have this action, remove it and create later).
2) Or you may setup HostMonitor to start "send email" action after next test iteration. E.g. if you start "Execute external program" action after 1st failed probe. Start "send email" action after 2nd failed probe.
Regards
Alex |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|