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

SMTP not working

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



Joined: 09 Aug 2004
Posts: 28

PostPosted: Mon Aug 09, 2004 11:26 am    Post subject: SMTP not working Reply with quote

hello.

I have tried to set up the smtp mail messages on my Windows 2003 instance of the newest version of Hostmonitor and when the test executes and fails, as I want it to, the email is never sent out.

I also have it set to show the status window of the email being sent out but that never pops up either.

I have tried two different smtp servers and nothing is working. I can ping the mail servers fine but Hostmonitor does not seem to want to do anything with them.

What am I doing wrong?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Mon Aug 09, 2004 12:11 pm    Post subject: Reply with quote

Probably you are using wrong "launch" settings.

What are settings of the action
- Action type? Bad?
- Condition to start action? standard mode?
- Start when N consecutive Bad/Good results occur? 1?
- Repeat? 1 time?
With this settings HostMonitor will launch action when test status changes from "good" to "bad". If test already has "bad" status, action will not be launched.

To start actions for testing, you may use "Reverse alert" option of the test. Mark this option, "refresh" the test item - HostMonitor will change the status. Open Test Properties dialog again, unmark option, "refresh" the test item again - HostMonitor will change test status back to normal.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
LordJezo



Joined: 09 Aug 2004
Posts: 28

PostPosted: Mon Aug 09, 2004 12:32 pm    Post subject: Reply with quote

Ok, that seemed to work. Thanks, I had to do what you said and reverse the test back to ok and then switch it back.

Now, after the test executes and switches to the "bad" mode how do I switch it back after the problem is corrected, or, once the problem is corrected and the test resets itself back to "good" or "ok" mode, will the next time it runs and fails it will send an email and not get stuck like before? What I am looking for is a way to not have to manually reverse the test each time.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Mon Aug 09, 2004 1:11 pm    Post subject: Reply with quote

You do not need to switch it back, actually you do not need to use "Reverse alert" option (except of some special cases). HostMonitor performs checks at regular interval and set test status depending on result.
Back to top
View user's profile Send private message Visit poster's website
Igor Sterle



Joined: 12 Aug 2004
Posts: 4

PostPosted: Thu Aug 12, 2004 11:53 am    Post subject: Reply with quote

My problem seems to be somehow similar although I would say it's a general bug bypassed by "Reverse alert".

My environment: HM 4.52 on WinXP Pro as regular program (not service).

Problem started by trying to run external program as an alert action. Commands that properly worked in "Command prompt" did not even appear in HM. I didn’t believe such valuable feature couldn’t work, so I tried also trivial action like "Show message" - unsuccessfully. Confusion was complete until after long period of "try and miss" I found out that sometimes I got message after using "Reverse alert".

My conclusion: changes in "Action profiles" dialog are accepted only after performing this sequence:

- Do the alert action changes.
- Refresh the test (changes not accepted).
- Change "Reverse alert".
- Refresh the test (changes not accepted).
- Change "Reverse alert" back.
- Refresh the test (changes accepted).

This misbehaviour can easily be missed because reversing the alert is the natural testing method for alert actions.

Am I correct?

Regards.
Igor
Back to top
View user's profile Send private message
LordJezo



Joined: 09 Aug 2004
Posts: 28

PostPosted: Thu Aug 12, 2004 11:59 am    Post subject: Reply with quote

Well it dosen't work too well when I put it at a specific schedule.

I am using the "check if file exists" option, reverse it by saying that if the file is not there then it is okay, and then switching it back to sending out an alert if the file is not there. It goes back to out of schedule after the switch over.

It sits at "out of schedule" all day and when the test goes off at night the email is never sent. This is quite a problem and makes me sad that the product seems to have this simple bug.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Aug 12, 2004 1:30 pm    Post subject: Reply with quote

Quote:
- Do the alert action changes.
- Refresh the test (changes not accepted).


Changes ARE accepted. HostMonitor just do not start actions because there is no reason to start the action. Normally (if you are using default "Start when 1 consecutive bad result occurs" and "Repeat: 1 time" options) actions should be started when test status changes.
So, HostMonitor does not start actions until status changes!!!

Quote:
- Change "Reverse alert" back.
- Refresh the test (changes accepted).


Changes was accepted when you clicked "Ok" or "Apply" button in the Test Properties dialog. Now HostMonitor starts the action becase status of the test was changed.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Aug 12, 2004 1:35 pm    Post subject: Reply with quote

BTW:
"Reverse alert" can be used for testing but it was designed for different purpose.
Quote:
This can be useful in some situations. For example, CPU Usage test returns an "Ok" status if the processor load ratio is below a predefined value. With the "Reverse alert" option turned on, the test will work the other way around, so the administrator will be alerted when the processor load is below a predefined value.


Better way to test HostMonitor behavior - simulate "bad" situation. E.g. if you check some file availability - remove or rename the file; If you check content of web page - change the content; and so on...

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Aug 12, 2004 1:44 pm    Post subject: Reply with quote

Quote:
I am using the "check if file exists" option, reverse it by saying that if the file is not there then it is okay, and then switching it back to sending out an alert if the file is not there. It goes back to out of schedule after the switch over.

It sits at "out of schedule" all day and when the test goes off at night the email is never sent. This is quite a problem and makes me sad that the product seems to have this simple bug.


Not sure I understand everything correctly. Please, correct me when I wrong
1) file is absent?
2) you have created the test, set "reverse alert" option?
3) test was performed, "Ok" status was assigned?
4) you have unmarked "reverse alert" option and assigned some schedule?
5) status changed from "ok" to "out of schedule"?
6) test was executed at night?
7) file was alailable at that time? or not?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Igor Sterle



Joined: 12 Aug 2004
Posts: 4

PostPosted: Fri Aug 13, 2004 1:39 am    Post subject: Reply with quote

Quote:
Changes ARE accepted. HostMonitor just do not start actions because there is no reason to start the action. Normally (if you are using default "Start when 1 consecutive bad result occurs" and "Repeat: 1 time" options) actions should be started when test status changes.
So, HostMonitor does not start actions until status changes!!!


Sorry for wrong conclusion. It works as you wrote. I haven't realized that status change is the default trigger.


Regards
Igor
Back to top
View user's profile Send private message
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