UPTIME in Percent
Moderators: Developers, Moderators
UPTIME in Percent
Hi all,
Someone have an script to generate servers uptime in percent ?
Thank you,
Alvaro
Someone have an script to generate servers uptime in percent ?
Thank you,
Alvaro
As the numbers are already available in CACTI - maybe they could be made available in the next version? (See http://forums.cacti.net/viewtopic.php?t=5222)
If you need to monitor the uptime of M$ systems right now you could use their "uptime.exe".
The statistics look like:
I've written a script to extract "System Availability:" (has been a bit tricky). This value could be fed into CACTI.
HTH
If you need to monitor the uptime of M$ systems right now you could use their "uptime.exe".
The statistics look like:
Code: Select all
uptime.exe /s
Uptime Report for: \\xxxxxx
Current OS: Microsoft Windows XP, Service Pack 2, Uniprocessor Free.
Time Zone: Westeuropäische Normalzeit
System Events as of 30.03.2005 15:23:13:
Date: Time: Event: Comment:
---------- ----------- ------------------- -----------------------------------
30.03.2005 12:32:17 Shutdown
30.03.2005 12:34:49 Boot Prior downtime:0d 0h:2m:32s
Current System Uptime: 0 day(s), 2 hour(s), 48 minute(s), 55 second(s)
--------------------------------------------------------------------------------
Since 30.03.2005:
System Availability: 98.5179%
Total Uptime: 0d 2h:48m:24s
Total Downtime: 0d 0h:2m:32s
Total Reboots: 1
Mean Time Between Reboots: 0.12 days
Total Bluescreens: 0
HTH
Thomas Rupp
Tricky, how so? Just write a simple perl script that looks for "System Availability:", parse the numbers after it, and removes the %.Thomas wrote:I've written a script to extract "System Availability:" (has been a bit tricky). This value could be fed into CACTI.HTH
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Because sometimes you get more than one of this blocks:Tricky, how so?
Code: Select all
Since 30.03.2005:
System Availability: 98.5179%
Total Uptime: 0d 2h:48m:24s
Total Downtime: 0d 0h:2m:32s
Total Reboots: 1
Mean Time Between Reboots: 0.12 days
Total Bluescreens: 0
Thomas Rupp
Hi,
attached you'll find a ZIP file with all required programs, cmd- and text-files. Simply list all servers you would like to monitor in uptime_server.txt and run uptime.cmd. This will create a html-file for all servers.
uptime_server.cmd <servername> C:\temp\UT.log will query one server and save the results in a text file.
uptime /help will show detailed infos about the MS program. You have to be authorized to query other servers (administrator).
HTH
Thomas
attached you'll find a ZIP file with all required programs, cmd- and text-files. Simply list all servers you would like to monitor in uptime_server.txt and run uptime.cmd. This will create a html-file for all servers.
uptime_server.cmd <servername> C:\temp\UT.log will query one server and save the results in a text file.
uptime /help will show detailed infos about the MS program. You have to be authorized to query other servers (administrator).
HTH
Thomas
- Attachments
-
- Uptime.zip
- (208.55 KiB) Downloaded 1503 times
Thomas Rupp
Hello Thomas and others,Thomas wrote:Hi,
attached you'll find a ZIP file with all required programs, cmd- and text-files. Simply list all servers you would like to monitor in uptime_server.txt and run uptime.cmd. This will create a html-file for all servers.
uptime_server.cmd <servername> C:\temp\UT.log will query one server and save the results in a text file.
uptime /help will show detailed infos about the MS program. You have to be authorized to query other servers (administrator).
HTH
Thomas
Thank you for posting the files. I created a new topic http://forums.cacti.net/viewtopic.php?t=10514 that gives a complete solution based on the files Thomas sent. I hope it works.
Wietze Visscher
uptime graph
hi Thomas,
wow, great script, Thomas could you plz give this same coding for Linux server also.i am also wants implement this in my system
wow, great script, Thomas could you plz give this same coding for Linux server also.i am also wants implement this in my system
Re: UPTIME in Percent
Sorry I newbie, how make that file script to be executable?
Who is online
Users browsing this forum: No registered users and 0 guests