System longer UP than 2 weeks ALERT

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
megasound

System longer UP than 2 weeks ALERT

Post by megasound »

hi,

is there a way to check if the windows server 2003 is longer up than 2 weeks.
So i am looking for a check that alerts me when this server is longer up than 2 weeks. I allready have a check that shows me the system boot time ...but i want to ALERT me that the system boot time is linger than 2 weeks .

i hope someone can help me
thanks in advace
m
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Actually, there are lots of approaches to check system uptime. For instance, you may use one of the following:

1. "WMI" test method with the following query: select SystemUpTime from Win32_PerfFormattedData_PerfOS_System
SystemUpTime counter shows the elapsed time (in seconds) that the computer has been running after it was last started.
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#wmi

2. "Performance Counter" test method with "System" performance object and "System Up Time" counter.
"System\System Up Time" counter tells you how many seconds it's been since your server last rebooted.
http://www.ks-soft.net/hostmon.eng/mfra ... erfcounter

Both foregoing methods shows you system uptime in seconds. So, two weeks = 14 days = 14 * 24 = 336 hours = 336 * 60 = 20160 minutes = 20160*60 = 1209600 seconds. So for this tests you may set "Alert when value > 1209600" option.

Also you may use "Tune up" reply option. To get system uptime in hours, you should [%SuggestedReply% div 3600] expression, in days - [%SuggestedReply% div 86400] With this option enabled, you should specify alert threshold in hours and days accordingly.

3. Also you may use "SNMP Get" test method and request 1.3.6.1.2.1.1.3.0 OID to retrieve system UpTime value in hundredths of a second. Of course, this method will work only if SNMP Service is running on the target system.
http://www.ks-soft.net/hostmon.eng/mfra ... tm#chkSNMP

4. You may write simple VBS or JS script, like you have for boot time check, and use "Active Script" test method.

Regards,
Max
megasound

YESSS great it works

Post by megasound »

YESSS great it works well

many many thanks !!!!
Post Reply