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
1
vote
3 answers

Ruby: Detect times when Fedora machine is powered-on

feels like I visited stackoverflow 100 times before. Always found good solutions, but now I'm stuck. I want to monitor how long a computer runs every day. This is part of a program written in Ruby, running on a Fedora machine. Previously I did…
jayrock
  • 13
  • 3
1
vote
4 answers

How to return the amount of years passed?

My friend and I are working on a fairly basic uptime script for an IRC Bot. Here's our code: function Uptime() { global $uptimeStart; $currentTime = time(); $uptime = $currentTime - $uptimeStart; $this->sendIRC("PRIVMSG…
Rob
  • 7,980
  • 30
  • 75
  • 115
1
vote
4 answers

Is pinging to a site a good way of checking whether it's down or not?

I'm trying to write a small website monitoring program, that can check my web hosts to see whether they are down or not, and to calculate the uptime or warn me if it's down. It's going to be a standalone app. I wanted to know whether pinging is a…
Auxiliary
  • 2,687
  • 5
  • 37
  • 59
1
vote
1 answer

Zero downtime deployment Nodejs application

I have a Nodejs application that included clustering for being uptime and domain for error handling. Now for achieving zero downtime deployment, I have an instruction but I need help to convert this instruction to Nodejs code (I need an example for…
kazem 2073
  • 11
  • 3
1
vote
3 answers

Extract the uptime value from "w" command output

How can I get the value of up from below command on linux? # w 01:16:08 up 20:29, 1 user, load average: 0.50, 0.34, 0.30 USER TTY LOGIN@ IDLE JCPU PCPU WHAT root pts/0 00:57 0.00s 0.11s 0.02s w # w | grep up …
user5154816
1
vote
0 answers

Node JS Uptime Monitor async thread 100.000 web site check

I new learning node js i want 100.000 web site uptime check monitor get header response. I Use https://www.npmjs.com/package/ping-monitor class How i can faster check and threading work, I add log mongoDB database My Code var urls =…
Agit
  • 83
  • 1
  • 9
1
vote
0 answers

Is there a way to calculate a server's uptime with regards to hibernation?

I'm on an ubuntu server, and when I run uptime -p, I see the following: up 1 week, 5 days, 11 hours, 37 minutes This is not accurate though, because there was a period that the machine was in hibernation. How can I calculate the uptime starting…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
1
vote
1 answer

Linux: programmatically get system shutdown time?

I am getting Linux uptime from file /proc/uptime. From where to get last shutdown time of machine. how to read it from wtmp file in "c". I don't want parse output of last -x command. can i get using sysctl?
Ravi Bhushan
  • 253
  • 3
  • 17
1
vote
1 answer

Creating Code to read another Streams Uptime and saving timestamp for quick find

Hey guys I'm trying to figure out a code in mirc that will allow me to access the uptime command in the stream I mod for so I can save it to quickly find parts of stream for Highlights and gifs and whatnot. So far I have tried something like this,…
1
vote
2 answers

Intranet Uptime Monitoring Component

I have a MOSS 2007 test site, its not public facing, instead its on our intranet, I am looking for an uptime monitoring component thats free and easy to install, any suggestions? Update: I don't need graphs or anything fancy, I just need to make…
Michael L
  • 5,560
  • 7
  • 29
  • 32
1
vote
5 answers

Putting a value on the load of a windows system

I've written an image processing script in php which is run as a cron scheduled task (in OSX). To avoid overloading the system, the script checks the system load (using 'uptime') and only runs when load is below a predefined threshold. I've now…
Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
1
vote
0 answers

Installing agents on solaris remotely

In regard to Uptime. I want to install the agents on solaris machine remotely through putty. Now for that, I have established(logged in) a connection to that system successfully. following this, my next step would be to "Using a file transfer method…
prashantitis
  • 1,797
  • 3
  • 23
  • 52
1
vote
4 answers

What's the Best method of checking Site / Server Uptime Efficiently (PHP)

I am trying to build a system of monitoring site / server uptime in PHP, the system will be required to check thousands of domains / ips a minute. I have looked into cURL as this seems to be the best method. Edit: The system will be required to…
Lee
  • 39
  • 7
1
vote
1 answer

Speed up the NHibernate SessionFactory create process

I'm developing a website using Asp .Net MVC and NHibernate as ORM tool. I just implemented some patterns using some principles. These are IoC, Service-Repository and UoW. I'm using almost all features of NHibernate in terms of Caching like…
revolver
  • 95
  • 1
  • 8
1
vote
1 answer

How do I get the current process' start time, in useconds, in C?

I need to obtain the point in time (or difference from the epoch, and the epoch) in which the current process started. It has to be in high resolution - in micro-seconds (10^-6 seconds) at least. I'm basically interested in a Linux environment,…
einpoklum
  • 118,144
  • 57
  • 340
  • 684