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
0
votes
2 answers

Bot Uptime Discord.JS

I'm trying to get the uptime of my bot. Every time I run it whether on my desktop or on Heroku, all it gives me is "0" for all time formats. const Discord = require('discord.js'); const moment = require("moment"); const bot = new…
RiiZu
  • 11
  • 1
  • 4
0
votes
1 answer

OSX Activity Monitor vs Avg Load

I know that Avg Load (obtained using "uptime" command on terminal) gives the average of amount of process that are in waiting or ready state. I can see that avg load of my mac is around 2-3. But, when I open activity monitor at the same time, it…
0
votes
2 answers

How can I manipulate a specific output in Bash (uptime)?

So I've been experimenting with Bash not too long ago, and I want to manipulate the output from the "uptime" command. I managed to change the output of up x minutes to 0:05 for example if the up time is 5 minutes, but the rest of the things…
user11637120
0
votes
0 answers

Uptime of Windows VM in specific period of time

I want to be able to remotely fetch information about the Windows VM uptime in specific period of time. This is the script I found: function Get-SystemUpTime { [CmdletBinding()] Param( [Parameter(Position = 0, Mandatory = $false,…
lubierzca
  • 160
  • 2
  • 14
0
votes
2 answers

Modifying value of a variable until computer shuts down?

I'm writing a program in python which has three modules: 1. settings.py 2. init.py 3. main.py settings.py just has one Boolean variable, the goal is to use it as a global variable(let's call it var, initialised as False ) across modules init.py…
Breakpoint
  • 428
  • 6
  • 19
0
votes
0 answers

Get sysuptime snmp to format "days,hours,minutes"

Through using SNMP protocol i can get the sysuptime of a device for example 1714656039 How can i convert this into x days y minutes z seconds? A reference of what type of data is the 1714656039 can be found here. It is actually The time (in…
Antonios Tsimourtos
  • 1,676
  • 1
  • 14
  • 37
0
votes
2 answers

Server uptime script

I'm trying to do something for my website, to be specific, I'm trying to do a script for uptime. I have the reader, a script which read the percents from a table.
Adrian Zamfir
  • 129
  • 4
  • 9
0
votes
1 answer

Stackdriver scheduled uptime check

I would like to run uptime checks using Stackdriver only when my google cloud instance is running (it is service that only runs a few hours every day). Is that possible?
0
votes
1 answer

Checking if a float as a string is greater than another

I am attempting to write a bash script that parses out the load on a server, and that checks that value against a predefined numerical value. If the Load value on the server is higher than the predetermined value, an error is reported. For some…
Xenology
  • 2,357
  • 2
  • 21
  • 39
0
votes
1 answer

How to get my application's uptime?

I am working on an application for which i want to track how much time my app is up (foreground + background). I found some threads, but i can't find any solution from them SO can anyone please let me know if this is possible and if yes how to…
madhu makwana
  • 49
  • 1
  • 7
0
votes
4 answers

A backup persistence store. What are my options?

I have a service that accepts callbacks from a provider. Motivation: I do not want to EVER lose any callbacks (unless of course my network becomes unreachable). Let's suppose the impossible happens and my mysql server becomes unreachable for some…
ashitaka
  • 3,928
  • 7
  • 38
  • 43
0
votes
1 answer

Best way to deal with monitor alert overload and desensitization?

We're in the process of adding monitoring to various servers and processes on our network, and currently, the various monitors will email my development group if something seems amiss - no customer payments on the website in X minutes, web services…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
0
votes
1 answer

How to find host uptime in vmware from ansible

How to find the machine uptime in vmware from ansible. I want to find the host uptime without connecting to the machine. using ansible ansible_vm_facts I could able to get some details like os, machine_name but I did not get the uptime. I…
monu
  • 23
  • 1
  • 8
0
votes
2 answers

How can I get an equivalent of Python threading.Timer that uses system uptime?

TL;DR threading.Timer uses system time but the time changes while I'm using it, how can I get it to use system uptime? I have a Python script that does a bunch of stuff one of which is set the system time. When this script starts up the time is…
Ross MacArthur
  • 4,735
  • 1
  • 24
  • 36
0
votes
2 answers

May I use CDN for whole website (PHP, Apache, MySQL) or just for images and CSS, JS files?

May I use CDN for whole website (PHP, Apache, MySQL) or just for images and CSS, JS files? What's the best choice > cloud-hosting or dedicated-hosting? Does CDN has that support? Witch hosting you suggest me the best - the fastest, stablest 100%…
Binyamin
  • 7,493
  • 10
  • 60
  • 82