Email not sending when running as only a service..

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
LordJezo
Posts: 28
Joined: Mon Aug 09, 2004 9:55 am

Email not sending when running as only a service..

Post by LordJezo »

Odd..

When the program is running in the background as a service none of the warning emails are sent out.

When I bring the service down and start the program as a normal program all of the tests immediatly refresh and emails are sent out if any of the tests fail, just as I would expect.

Is there a special setting I need to make (running on a windows 2003 server) in order to get HostMonitor to send out emails when run as a service or should I just leave the program running as a normal program on the console system?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Could you please check log files? If HostMonitor cannot perform some action, it records message with explanation (system log file specified on Advanced Logs page in the Options dialog).
Also, have you changed status of the tests? Probably HostMonitor cannot perform tests? Just click on HostMonitor's icon (system tray icon, not icon on desktop!) and check what is going on.

Regards
Alex
LordJezo
Posts: 28
Joined: Mon Aug 09, 2004 9:55 am

Post by LordJezo »

According to that log it seems that the program was never even running.

The service is always "started" but I usually never see an icon in the task manager.

Am I doing something completely wrong perhaps? When the system comes up and it says in the service menu that it is running I always assumed that it was indeed running in the background. I started the program on the console and it seems as though it hasnt been doing a thing since the last time it was started, the tests were as I left them a few days ago, only 1 run each.

I have had it up and running on the console system itself for a few hours now and everything seems to be updating. There is also an icon in the task manager as well.

Maybe I have been doing something wrong..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

The service is always "started" but I usually never see an icon in the task manager.
You are running HostMonitor on local system? Or you have started HostMonitor on remote server and check it using Terminal Service?

Regards
Alex
LordJezo
Posts: 28
Joined: Mon Aug 09, 2004 9:55 am

Post by LordJezo »

KS-Soft wrote:
The service is always "started" but I usually never see an icon in the task manager.
You are running HostMonitor on local system? Or you have started HostMonitor on remote server and check it using Terminal Service?

Regards
Alex
It is running on a remote server. I use Windows Remote Desktop Connection to connect to the server and would check it by bringing down the service, loading up the client, and then loading back up the service once I closed out the client.

What I think was wrong was that I was doing it on the remote connection so I was on a different session then the one that was logged in at the console. I think I will need to make the changes from the console instead of doing it from a remote host.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, service cannot display information on remote desktop
(it does not have appropriate handle).
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=1100

Solutions:
- if its possible, log to system locally
- otherwise you should check log files and/or reports to see what is going on.

BTW: Have you specified appropriate account on Service page in the Options dialog (HostMonitor's Options dialog)?
http://www.ks-soft.net/hostmon.eng/mfra ... tm#Service

Regards
Alex
sysdeath
Posts: 12
Joined: Thu Jul 15, 2004 12:27 pm

Same Problem

Post by sysdeath »

I have the same problem. When HM notices a problem, it doesn't send the notification that there is a problem. The logs show nothing. When the problem has been resolved, it always send a message saying the problem has been resolved.

I too am running it as a service.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I have the same problem. When HM notices a problem, it doesn't send the notification that there is a problem. The logs show nothing. When the problem has been resolved, it always send a message saying the problem has been resolved.
Looks like alert profile configured improperly.
If you send alerts.lst file to support@ks-soft.net, I can check your settings.

Regards
Alex
sysdeath
Posts: 12
Joined: Thu Jul 15, 2004 12:27 pm

Post by sysdeath »

This might be half the problem. I don't have a alerts.lst file.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, my mistake. I mean "actions.lst"

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So, you are receiving more "good" notifications than "bad"?

Its easy to explain.
Quote from the manual
Action depends on "bad" one
This optional parameter is available for "Good" actions only. You can set "Good" action dependable on a "Bad" action. Why do you need it? For example you defined "Bad" action to send an e-mail notification to the network administrator when test fails 3 times consecutively (start when 3 consecutive "Bad" results occur), also you defined «Good» action to send a notification when the test status changes to "Good". What will happen if test fails 1 or 2 times and after this it restores "Good" status? HostMonitor will not send a notification about failure (because test did not fail 3 times) but the program will send notification about restoring "Good" status. To avoid unnecessary "Good" action execution you can mark "Action depends on "bad" one" option and select "Bad" action. In this case HostMonitor will start "Good" action only if corresponding "Bad" action was executed.
So, to resolve problem, use "Action depends on bad one" option.

Also, you don't need to use 5 actions with the same settings. Use single "send e-mail" action providing list of recipients separated with a semicolon ( ; )

Regards
Alex
Post Reply