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?
Uptime of service?
-
- Posts: 32
- Joined: Tue Dec 17, 2002 6:00 pm
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.
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.
"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
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
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
As I understand, you want to setup test, that should be performed by RMA, and shows following info: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?
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
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
To obtain system uptime you may use WMI test method and query like this: "select SystemUptime from Win32_PerfFormattedData_PerfOS_System"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?
Such query returns you result in seconds.
But I have no idea how to calculate percantage in such case...
Hm. I think, you may use ActiveScript or ShellScript test method and also you should prepare script similar to following:UnOa wrote:AND: I need a similar method of checking for Windows Services (i.e. Exchange, SQL, etc.)
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