Monitoring Hostmonitor running at remote site

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).
Colinl
Posts: 18
Joined: Thu Jul 14, 2005 3:46 pm

Monitoring Hostmonitor running at remote site

Post by Colinl »

I have hostmonitor running fine at our head office but from my home office I would like to be able to monitor that hostmonitor is still running. I would prefer not to have to VPN into head office so can you recommend what you would consider a "reliable way of checking HM is operational" at head office.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

would like to be able to monitor that hostmonitor is still running
You mean monitor HostMonitor by some program, e.g. using another instance of HostMonitor? In such case you may check RCI port (TCP port 1054 by default). If HostMonitor accepts connection, it works.

Or you want to check it by yourself? Then you may use Web Service:
http://www.ks-soft.net/hostmon.eng/webservice/index.htm

Or you may setup HostMonitor to send notification (e.g. e-mail) every 15 min...

Regards
Alex
Colinl
Posts: 18
Joined: Thu Jul 14, 2005 3:46 pm

Post by Colinl »

Good idea, what type of check is needed, http?, ping?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you want to monitor TCP port, use TCP test

Regards
Alex
Malevo
Posts: 9
Joined: Fri Apr 01, 2005 1:37 pm

Post by Malevo »

Alex, My Problem is that sometimes the operator, deactivates the alarms, is there any way I can check remotely (external script or anything like that) if hostmonitor is still running and has the alarms turned on ?

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

Post by KS-Soft »

1) You may remove right to disable alerts for that operator. Use menu User -> Oprators to setup accounts

2) You may setup action profile that will be executed every time alerts are disabled. Use menu Monitoring -> Pause

3) You may setup HostMonitor to send e-mail with status information on regular basis. Use Scheduler page in the Options dialog

Regards
Alex
Malevo
Posts: 9
Joined: Fri Apr 01, 2005 1:37 pm

Post by Malevo »

I created a test that writes a file every 10 minutes, and I created a test using a 2nd hostmonitor thru an RMA running in the machine where the 1st. hostmonitor is. The Test is the File Availability Test, but when it runs, I get "File not exists" error in the 2nd. hostmonitor, any ideas ?
1st Hostmonitor
HM 4.74 and RMA on Windows 2000 sp4
2nd Hostmonitor
HM 4.74 on Windows XP.

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

Post by KS-Soft »

Does file exist? May be RMA started under account that does not have rights to access that folder?

Regards
Alex
Malevo
Posts: 9
Joined: Fri Apr 01, 2005 1:37 pm

Post by Malevo »

The file exists, and I already change the startup account for the rma service.
The file is being updated every 10 minutes.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

May be you have chosen wrong option of the test? It provides 2 options:
- alert when file doesn't exist
- alert when file exists
Or may be you have marked "Reverse alert" option?

Could you export test into text file and post settings here?

Regards
Alex
Malevo
Posts: 9
Joined: Fri Apr 01, 2005 1:37 pm

Post by Malevo »

Sur, here it is.

;-----------------------------------------------------------------------------
;- HostMonitor`s export/import file -
;- Generated by HostMonitor at 12/10/2005 06:54:41 p.m. -
;- Source file: C:\Program Files\HostMonitor4\Examples\default.hml -
;- Generation mode: Selected_Tests -
;-----------------------------------------------------------------------------


; ------- Test #01 -------


Method = FileExists
;--- Common properties ---
;DestFolder = Root\
RMAgent = alarm1
Title = Alarma HostMonitor Miami
Comment = Alarma HostMonitor Miami
RelatedURL =
ScheduleMode= Regular
Schedule = 7 Days, 24 Hours
Interval = 600
Alerts = Alarma HostMonitor Miami
ReverseAlert= No
UnknownIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
File = c:\algo.htm
OkIfExists = No
UseMacros = Yes
MaxAge = 60

;-----------------------------------------------------------------------------
; Exported 1 tests
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you want to receive alert when file does not exist, why do you use "Alert when file exist" option?
Change it to "Alert when file DOES NOT exist"

Regards
Alex
Malevo
Posts: 9
Joined: Fri Apr 01, 2005 1:37 pm

Post by Malevo »

Sorry, perhaps I didn't explain myself right, The file will allways exists, I just want to receive an alert when it is 60 or more minutes old.

Thanks, Pablo
sherrera
Posts: 18
Joined: Sun Feb 20, 2005 3:10 pm

Post by sherrera »

You can change your alert to:

File doesnt exist OR older than 60 min

or

File exist AND older than 60 min
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I see. But if file will be removed (by operator mistake or some error in application), HostMonitor will set "Ok" status. Its not what you need, right?
So, I think its better to use "Alert when file does not exist OR older than 60 min" option.

Regarding problem - I have tested HM 4.74 and RMA 2.00, everything works fine. You are using RMA 2.00, right?
What status of the test do you see? Bad? Unknown? Any message in Reply field?

Regards
Alex
Post Reply