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
8
votes
4 answers

How do I know if a system has powered on?

I am writing a script that powers on a system via network. And then i need to run a few commands on the other host. How do I know whether the system has powered on? My programming language is Perl and the target host is RHEL5. Is there any kernel…
kingpin
  • 312
  • 1
  • 4
  • 14
7
votes
5 answers

Golang retrieve application uptime

I'm trying to retrieve the current uptime of my Go application. I've seen there's a package syscall which provides a type Sysinfo_t and a method Sysinfo(*Sysinfo_t) which apparently allows you to retrieve the Uptime (since it's a field of the…
fredmaggiowski
  • 2,232
  • 3
  • 25
  • 44
7
votes
9 answers

Getting the uptime of a SunOS UNIX box in seconds only

How do I determine the uptime on a SunOS UNIX box in seconds only? On Linux, I could simply cat /proc/uptime & take the first argument: cat /proc/uptime | awk '{print $1}' I'm trying to do the same on a SunOS UNIX box, but there is no…
JF.
  • 81
  • 1
  • 4
6
votes
2 answers

Retrieve the windows service uptime?

Is there is a way to get the start time of a windows service by code in C#? Is there is a way to get the number of re-starts of the windows service in last 72 hours?
ali
  • 61
  • 2
5
votes
10 answers

Showing only the uptime from uptime [unix]

I'd like to trim the output from uptime 20:10 up 23 days, 3:28, 3 users, load averages: 3.84 1.06 0.64 so that it just shows: 23 days I've tried using sed, but I'm not sure it's the right tool for the job, and don't have much experience using…
Rich Bradshaw
  • 71,795
  • 44
  • 182
  • 241
4
votes
1 answer

How to calculate application availability (SLA)

I have standard ASP.NET MVC project and I need to calculate application availability to find out our SLA level. So, I need to get something like this for our web application. Information from my hosting provider System Availability:…
4
votes
1 answer

Register multiple blackbox exporters in one job in prometheus

I have my probe job configured on prometheus side like this: - job_name: 'probe-job' params: module: - http_2xx scrape_interval: 2m scrape_timeout: 10s metrics_path: /probe scheme: http static_configs: - targets: ['xyz/api/serverping'] -…
Matej
  • 565
  • 2
  • 9
  • 21
4
votes
0 answers

how to get the load average of a container inside it which is based on cgroup such as docker?

How to get the load average of a container inside it which is based on cgroup such as docker? The command line uptime and top show the load average of the container host.
Dongfang Qu
  • 341
  • 1
  • 11
4
votes
2 answers

PHP server statistics script?

I'm not really sure where to put this question (it's not really webapps or superuser) but I'm sure something similar already exists. I'm looking for a php script that gives me detailed info about things such as: CPU load Network…
FLX
  • 4,634
  • 14
  • 47
  • 60
4
votes
2 answers

Determine runtime of Windows Server via ASP.Net

is there a built-in property in any of the ASP.net classes that determines what the uptime of the webserver, where the webapplication is running on, is? These are some of the possibilities that popped into my mind: global.asax and the…
citronas
  • 19,035
  • 27
  • 96
  • 164
4
votes
3 answers

how to display uptime on emacs status bar? I am looking for /usr/bin/uptime output to be displayed on status bar

I am looking for /usr/bin/uptime output to be displayed on emacs status bar? I am using GNU Emacs 23.1.1 on centos. Thanks
Jagadeesh N M
  • 625
  • 1
  • 5
  • 9
4
votes
3 answers

Uptime iOS Objective-C - millisecond precision

I'm trying to get uptime for iOS. I was using mach_absolute_time - but I found that it paused during sleep. I found this snippet: - (time_t)uptime { struct timeval boottime; int mib[2] = {CTL_KERN, KERN_BOOTTIME}; size_t size =…
objectiveccoder001
  • 2,981
  • 10
  • 48
  • 72
4
votes
3 answers

What's a good strategy to restart downed FastCGI processes automatically?

I've got a Perl based FastCGI app that rarely goes down. However, when it does go down, the restart is not automatic. Restarting Apache manually always does the trick but that does address improving the uptime of the app. I'm thinking of using a…
GeneQ
  • 7,485
  • 6
  • 37
  • 53
4
votes
2 answers

PHP non-persistent process design vs Python/Java

Currently I'm considering between these 3 languages for a project that will require a very high uptime (uptime is more important than performance). I've been a PHP developer for some time and wouldn't mind switching to a "better" language such as…
Martin Konecny
  • 57,827
  • 19
  • 139
  • 159
3
votes
3 answers

uptime VS. top CPU usage : What should I believe, why this difference?

I'm having some performance issue on my embedded device: # uptime 14:59:39 up 5:37, load average: 1.60, 1.50, 1.53 Very bad for a monocore system ... :-p! However if I check with the top utility, I always have an idle time around 80% ! Mem:…
morandg
  • 1,066
  • 3
  • 14
  • 30
1
2
3
11 12