Uptime of 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
UnOa
Posts: 13
Joined: Thu Dec 01, 2005 8:01 am

Uptime of service?

Post by UnOa »

I need to monitor the total uptime of a service in %. I want to check a remote server using the RMA (3.35), via an internet connection.
However, this test cannot be made dependent on the internet connection or AHM not being able to connect..... I need the ACTUAL uptime.

I searched the forum and found some topics about this, but not quite what I need.

Can someone help me achieve this?
iis5_rulez
Posts: 32
Joined: Tue Dec 17, 2002 6:00 pm

Post by iis5_rulez »

this will always be difficult, since tests are dependant of the network.

We've setup a master test "ping" and other tests wont be performed when this fails and therefor the downtime isn't calculated in a service test (but is in the ping test). of course this not the real uptime %, but at least network problems do not effect my values (better results when the server is really down, but hey my customers buy it :))

If u just need this for one server 1 time i'd recommend to check the eventlogs, in win2k3 (and xp) an event is logged whenever a service is stopped or started. This would be the most reliable data u can have probably.
UnOa
Posts: 13
Joined: Thu Dec 01, 2005 8:01 am

Post by UnOa »

"Unfortunately" I have to check a lot of servers, at many different locations. I found the events from the Windows eventlog: Eventlog 6006 for shutdown and Eventlog 6009 for startup. But how can I use these within AHM? Or how do I script this?

Is there a script that is run by RMA, which can be sent to or read by AHM?

BTW: AHM 6.10, RMA 3.35, all Windows platforms
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

UnOa wrote:"Unfortunately" I have to check a lot of servers, at many different locations. I found the events from the Windows eventlog: Eventlog 6006 for shutdown and Eventlog 6009 for startup. But how can I use these within AHM? Or how do I script this?
Is there a script that is run by RMA, which can be sent to or read by AHM?
As I understand, you want to setup test, that should be performed by RMA, and shows following info:
Status = Ok and time between logged event 6009 and now, if event 6009 is the last, else Status = Bad and time between logged event 6006 and now, right?

Regards,
Max
UnOa
Posts: 13
Joined: Thu Dec 01, 2005 8:01 am

Post by UnOa »

Max, that sounds about right. And then I want to have the percentage of uptime calculated. This would be the actual uptime, right?

How do I do this?

AND: I need a similar method of checking for Windows Services (i.e. Exchange, SQL, etc.)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

UnOa wrote:Max, that sounds about right. And then I want to have the percentage of uptime calculated. This would be the actual uptime, right?
How do I do this?
To obtain system uptime you may use WMI test method and query like this: "select SystemUptime from Win32_PerfFormattedData_PerfOS_System"
Such query returns you result in seconds.

But I have no idea how to calculate percantage in such case...
UnOa wrote:AND: I need a similar method of checking for Windows Services (i.e. Exchange, SQL, etc.)
Hm. I think, you may use ActiveScript or ShellScript test method and also you should prepare script similar to following:
http://jdhitsolutions.blogspot.com/2006 ... chive.html
Of course, you shoud adjust script according to HostMonitor script requirements. http://www.ks-soft.net/hostmon.eng/mfra ... htm#script

Regards,
Max
Post Reply