KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Test a test

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Matth



Joined: 01 May 2004
Posts: 3

PostPosted: Thu May 20, 2004 7:30 am    Post subject: Test a test Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Thu May 20, 2004 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index