- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to measure downtime
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2008 10:58 PM
11-12-2008 10:58 PM
script to measure downtime
We need to report on a monthly basis the 'unplanned downtime' in a certain time-window. We have a combination of HPUX and Linux machines.
Uptime gives me the uptime, but not the downtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2008 11:02 PM
11-12-2008 11:02 PM
Re: script to measure downtime
IMHO it is a good solution to measure this not on the server directly, but from another (management) system.
For example the HP SIM has the possibility to measure such things, e.g. the Unreachable Device Notification (UDN) can do this.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2008 11:09 PM
11-12-2008 11:09 PM
Re: script to measure downtime
You can scan the output of last(1) and look for entries for "reboot system boot".
It seems these entries say how long the system was up. I'm not sure if it would be valid if it crashed. It seems for a regular reboot, the time seems to go to when it restarts. Which kind of indicates the system never goes down.
You might be able to look at /etc/shutdownlog to get the halt/reboot start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 01:47 AM
11-13-2008 01:47 AM
Re: script to measure downtime
The pseudo-user reboot logs each time the system reboots. Thus, last
reboot is a useful command for evaluating the relative time between
system reboots.
I just check a system that crashed a couple times in the last month or so and unfortunately 'reboot' is not shown in the list.
Also not after a clean boot.
So it looks that something needs investigating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 03:34 AM
11-13-2008 03:34 AM
Re: script to measure downtime
http://freshmeat.net/projects/uptimed/
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 04:11 AM
11-13-2008 04:11 AM
Re: script to measure downtime
#!/bin/bash
ping -c1 -W2 $host &>/dev/null
if [ $? -ne 0 ]; then
echo "[`date +%Y%m%d %H%M%S`] Stopped responding." >> $logfile
fi
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 04:18 AM
11-13-2008 04:18 AM
Re: script to measure downtime
We use cacti on a small linux box. You can get nice stats, one of them being downtime.
It's open source.
http://www.cacti.net/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 05:22 AM
11-13-2008 05:22 AM
Re: script to measure downtime
Ehealth
http://www.ca.com/us/content/campaign.aspx?cid=132286
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 05:32 AM
11-13-2008 05:32 AM
Re: script to measure downtime
I think there's something named OP5 also that does this. Thou this seens to be a pay-for-it software where as Cacti and Nagios is opensource.
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2008 06:15 AM
11-13-2008 06:15 AM