Questions tagged [uptime]

uptime is a Unix command which tells how long the system has been running.

Note: Please use for questions relating to the remote monitoring tool Uptime.

173 questions
3
votes
2 answers

Architecture to create an uptime monitor in Node.js

What's the best solution for using Node.js and Redis to create an uptime monitoring system? Can I use Redis as a queue but is not the best way to save information, maybe MongoDB is? It seems pretty simple but needing to have more than 1 server to…
donald
  • 23,587
  • 42
  • 142
  • 223
3
votes
2 answers

Grammatically correct uptime in C#

I want to return a string, that is grammatically correct to display the current uptime. For example, 3 years, 7 months, 11 days, 1 hour, 16 minutes and zero seconds, meaning singular units should not be plural, and zero units should be plural,…
3
votes
1 answer

Whats the best way to determine availability or uptime of my systems

By this I mean, whats the best way show the uptime of systems? Idealy id like to show some sort of percentage figure, like what the webhosts do. ie 99.5% uptime. Is there a standard way to determine this?
Daniel
  • 33
  • 1
  • 3
3
votes
1 answer

How can I get system uptime programmatically on the chrome-os platform?

System uptime is available in chrome without enabling the developer mode via the crosh window and the command top. I'd like to be able to access this programmatically within my chrome app. I'm not seeing it jump out at me in the chrome apis…
davidpricedev
  • 2,107
  • 2
  • 20
  • 34
3
votes
3 answers

How often will uptimeMillis() reset and will it affect Handler.postAtTime

The description for the method uptimeMillis says: Returns milliseconds since boot, not counting time spent in deep sleep. Note: This value may get reset occasionally (before it would otherwise wrap around). How often might this happen…
michael
  • 3,250
  • 10
  • 43
  • 58
3
votes
6 answers

Get last five minutes load average using ksh with uptime

To an idea of CPU load average, I'm using uptime in a ksh script: uptime | awk '{print $11}' | sed '$s/.$//' | read CPU where I then use the variable CPU later. The $11 part is to isolate the last five minutes part. But, I noticed today that this…
2
votes
2 answers

Finding the Uptime of a server programatically

Does anyone know of a way to programatically find the uptime of a server running Windows 2000? We have a service running on the machine written in VB.NET, that reports back to our server via a webservice.
Brian
  • 4,001
  • 4
  • 22
  • 28
2
votes
1 answer

How to get the Uptime Percentage from Uptime check

I want to fetch the Uptime percentage from the above image to a third party application I am making. I have gone through various documentation but couldn't find anything! Can anyone guide me through?
2
votes
4 answers

Windows Last Boot Date & Time using Delphi

How to get the date & time of the last boot / reboot / restart on Windows 2008/2003 machine? I know from command prompt we can use "net statistics", but how to do it via Delphi? Thanks.
Kawaii-Hachii
  • 1,017
  • 7
  • 22
  • 36
2
votes
3 answers

Problems with infinite for loop

I am stater in java programming ... I am writing a scheduler. I am reading date and time values from a properties file. If there are any changes in the properties file then i have to reschedule the scheduler.. so for this i am writing an infinite…
krishna
  • 21
  • 1
2
votes
3 answers

Discord.py Uptime

Using discord.py, I'm attempting to make a uptime script, im not sure if it would be a f string ( like await ctx.send(f"client.uptime") or a something else, im seriously new to discord.py and have just started learning it, can somebody help?
iharvested
  • 35
  • 1
  • 1
  • 5
2
votes
0 answers

How to get system uptime on Linux using C++?

I know there are two ways sysinfo function call /proc/uptime I think sysinfo gets the uptime from the /proc/uptime. But the problem is if the user logouts and logs back in , the timer doesn't get reset. It keeps getting continued. In windows,…
2
votes
2 answers

Restart the computer when the power on time exceeds 30 minutes

I was currently controlling this through an uptime. The computer restarts if uptime is greater than 1h. But I do not know how to control if the computer is one day on or more, because currently I only control the hours. Is it possible to control…
2
votes
1 answer

Uptime / Downtime Production Batch Report via SSRS SQL Server 2012 Updated

I am working on another report using SSRS via Visual Studio 2010. I am a rookie with SQL but things are starting to make sense as the weeks go on. Purpose is to create a report that displays the Batch up time / downtime calculated from the…
2
votes
1 answer

Are reported load averages accurate on AWS EC2 instances?

When calling functions like uptime (bash) or sys_getloadavg (php) on EC2 instances, are the returned values correct for that specific instance, or are they for the entire bare-metal system that my instance resides on? I've been searching around for…
Phillip Elm
  • 2,094
  • 2
  • 16
  • 27
1 2
3
11 12