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
1 answer

How to Configure Blackbox-exporter with Google Managed Prometheus?

I am migrating to Google Managed Prometheus. I've been using a helm deployed version of Prometheus to monitor my kubernetes cluster. The helm deployed Prometheus has a variety of selectors, including Pod Monitors, Service Monitors, and Probe…
0
votes
0 answers

Spark job total uptime less than the difference between job start and job end time

I have a spark job that starts at 10AM and is killed after a threshold of 14 hours (12AM). The thing is that while running when I go into WEB UI the total uptime (before it gets killed, after 13h and 40 minutes) is 9.5h. I don't understand why is…
Stefan Ss
  • 45
  • 5
0
votes
2 answers

How to calculate ansible_uptime_seconds and output this in os.csv

I am trying to create a csv file that can be used to review certain systems details. One of these items is the system uptime, which is reflected in unix seconds. But in the os.csv output file I would like to see it as days, HH:MM:SS. Below my yaml…
JDFreez
  • 1
  • 1
0
votes
0 answers

bash: Printf splitting output of `uptime` into multiple lines

I have a very simple script that tries to get the uptime of the local device and print it out as a string. Here is my script: #!/usr/bin/bash UPTIME=$(uptime -p) printf "Uptime: %s\n" $UPTIME The output is: meatcram@digest01:~$ bash test.sh…
0
votes
1 answer

Expected body contents in GCP monitoring for POST HTTPs requests

When setting up GCP uptime monitoring through the console with the following settings, I am getting a Request Exception in 10,000 ms error response. The documentation mentions "encode URL yourself" on the body section, which I presume is a standard…
0
votes
1 answer

View Windows UpTime dynamically in WPF

I want to get Windows UpTime like the picture below I am using NetFrameWork 3 I use this code to display UpTime for Windows PerformanceCounter upTime = new PerformanceCounter("System", "System Up Time"); upTime.NextValue(); TimeSpan ts =…
XxMaHdIxX
  • 3
  • 4
0
votes
1 answer

discord.js v13 bot uptime

I made some bot uptime code but got an error showing 52 years ago The code is below. const style = 'R' const starttime = `' client.on('messageCreate' , message=>{ …
0
votes
2 answers

How to calculate total availability based on individual object availabilities?

How to calculate overall availability given individual object availability percentages? Example 1: I have sql server with FCI. VM1 has 99.9% availability VM2 has 99.9% availability What is total availability calculation? Example 2: same as above…
0
votes
1 answer

Why read access takes time after restarting influxdb?

So whenever we restart influxdb, we notice that it takes quite a while for grafana to reconnect/read data from influxdb.(up to ~10m) However, when it comes to writing data and accessing /health endpoint the DB is available within ~2-3 mins. Why does…
Vipin Menon
  • 2,892
  • 4
  • 20
  • 35
0
votes
4 answers

get system uptime with Python on a Raspberry Pi

This question refers to: uptime with Python If I use the programm on a raspberry, I get the wrong time: ~ $ uname -a Linux raspberry 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux pi@raspberry:~ $ uptime 15:14:33 up 20 min, 3…
Speedy-10
  • 11
  • 3
0
votes
1 answer

How can I monitor VM services in GCP?

I have a VM instance that contains SQL service, I want to monitor this SQL service how can I do that?
user13969300
0
votes
2 answers

How can I have a live timer that updates every second to see for how much my programming is running? python

Is there any way to make a timer that updates every second so i can see for how long my program is running. I tried making a loop: i = 0 for i in range(1000000): i += 1 time.sleep(1) And then I want to print it into my discord.py bot. This…
ツTruePvP
  • 13
  • 2
0
votes
1 answer

Permission issue getting uptime with performance counters

I'm trying to read the system uptime using performance counters in C++. I want to support both XP and Windows 7 at minimum. The following code works fine on Windows XP... HQUERY hQuery; HCOUNTER hCounter; PDH_FMT_COUNTERVALUE Value; int ret = 0; if…
mappu
  • 36
  • 3
0
votes
5 answers

Best way to monitor uptime of a remote windows server?

The company I work with currently has 10 windows boxes running various in house scripts, however occasionally one goes down and no one notices for periods of up to 24 hours because the data that is manufactured is only gathered on weekly intervals. …
phpnewb
0
votes
1 answer

Shell Script To Notify When Server Uptime Has Reached Threshold

I'm looking to cleanup the following shell script that reads in the uptime of a Linux server and will mail a certain user when the threshold has been met so that we know when to reboot through a daily cron job. The below will read in the uptime and…
G_Homz
  • 1