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 get uptime of command in socket

The task was to write a program using INET domain, so I did. But there is one small thing to do that I don't know how to perform. the first non-blank character of the input line is 'u', the server will send to the client the output of the 'uptime'…
RegarBoy
  • 3,228
  • 1
  • 23
  • 44
0
votes
2 answers

Show ticks in Days, Hours, Minutes and Seconds

I'm trying to show an UpTime in Days, Hours, Minutes, Seconds. Something like 20 days, 4 hours, 9 minutes, 3 seconds Here is my PHP Code: // Get uptime with my SNMP class $iTicks = $oHardwareMonitoring->fGetSystemUpTime(); // Convert Ticks to…
SatanicGeek
  • 342
  • 5
  • 15
0
votes
1 answer

Adding an if statement to change text output

I have some PowerShell code that gets me the uptime of a list of servers and outputs the Days, Hours and Minutes that the server is up. I'm trying to add a statement that will take anything less than 10 hours of uptime and output to the text file -…
0
votes
0 answers

PHP APC doesn't seem to work : uptime is allways 0

After installing APC on a VPS with CentOS/Nginx/8G Ram, apc.php always shows uptime = 0 minutes, this is my apc configuration :…
Sami
  • 717
  • 6
  • 28
0
votes
0 answers

how do you run arguments in a custom monitor on uptime

i am trying to run a custom monitor in the up-time monitoring system and when i have it open a .bat that i have created it gives me an error stating that the @echo off is not a command. the .bat file contains @echo off start…
bgrif
  • 253
  • 1
  • 4
  • 14
0
votes
1 answer

Windows - kill process with a certain uptime

I am looking for a way to kill processes matching a certain name if (and only if) their uptime is 4hours+ I plan to then schedule the script every hour or so to detect and kill processes matching my criterias. I have been googling around for…
user3535795
  • 53
  • 2
  • 6
0
votes
3 answers

Need to check uptime on a large file being hosted

I have a dynamically generated rss feed that is about 150M in size (don't ask) The problem is that it keeps crapping out sporadically and there is no way to monitor it without downloading the entire feed to get a 200 status. Pingdom times out on it…
concept47
  • 30,257
  • 12
  • 52
  • 74
0
votes
2 answers

C++ Show uptime

I have a program, where part of it is supposed to show the uptime every 5 seconds but right now it's just showing it one time than telling the program to exit. Why is this child process only going one time and than going to the parent for program…
user3339703
  • 73
  • 1
  • 10
0
votes
0 answers

C++ Exec command to get uptime and pipe

How do I use exec command to get the uptime to display every 5 seconds from /usr/bin/uptime? How do I get my 3 children to write to the parent via pipe which then writes to standard out in the parent? So far I have for my project: #include…
user3339703
  • 73
  • 1
  • 10
0
votes
1 answer

How is MySQL Uptime's value "computed"?

According to MySQL Documentation, the global variable Uptime is defined as "The number of seconds that the server has been up.". However, can somebody please explain to me how this value is actually computed? What does it use as a reference, System…
0
votes
2 answers

Linux uptime command inside php doesn't show anything

I am trying a linux command for uptime in a php file on a server as below

The uptime for this system is But when I open my webpage it just shows : The uptime for this system is PHP…

user3166042
0
votes
1 answer

nodejs - Increasing number of uptime checks per minute

I'm building a system similar to pingdom.com, where I have around 10k domains for checking uptime every 5 minutes. I'm using ec2 micro instances for the checks to be performed. My check urls and their last check times are stored in mongodb. A node…
Masum
  • 1,678
  • 15
  • 19
0
votes
3 answers

Sending data to php using wget

I am trying to hit a PHP url and post some information about my linux box using a cron job and wget. */30 * * * * wget -O /dev/null http://ping.xxx.com/xxx/up.php?mac=`ifconfig eth1 | awk '/HWaddr/ { print $5 }`\&uptime=`uptime`\&ip=`ifconfig eth1 |…
Sachin
  • 119
  • 2
  • 19
0
votes
1 answer

Output Uptime to file and acumulate

Hey guys im im trying to get a cumulative uptime data of my network machines easily. Essentially we need the total of the uptime saved to a file so at say the end of the quarter we can report on this. I can easily get uptime at the time i run a…
0
votes
1 answer

Total uptime on Android and iPhone

As far as I know both OSes allow me to obtain the current uptime since the last boot, but is there a way to obtain the total uptime since the OS was first started, or since my application was installed or something like that? I was thinking of…
Tri-Edge AI
  • 330
  • 2
  • 15