Ubuntu :: Write A Script To Gather The Uptime Of A Box?
Jun 23, 2011
trying to write a script to gather the uptime of a box and send an email out if the box has died. Problem being that this is hard when `uptime` changed from the format 23:59 to 1 day. Is there a method to just see the uptime in hours or minutes or even seconds?
View 4 Replies
ADVERTISEMENT
Mar 10, 2011
I need to write a GUI for the web to gather the following info:
Username
Password
SomePlainText
Path1
PathN
Of course, I then need an 'submit' button. I then want to have the user upload all paths supplied from their machine to my server. I hope to work with this data as arguments for a bash script. Also, I need to work with all possible client OSes consistently. What language should be used?
View 3 Replies
View Related
Sep 15, 2010
How can init process uptime be longer than the uptime of whole system?
Code:
martin@server:~> ps -p 1 -o pid,cmd,bsdtime,start
PID CMD TIME STARTED
1 init [3] 20:50 Mar 05
martin@server:~> uptime
2:23pm up 559 days 1:42, 10 users, load average: 0.18, 0.28, 0.34
martin@server:~>
View 1 Replies
View Related
Nov 8, 2010
Is there a way in Gnome to gather all windows to one screen? I switch between two screens and one from time to time, and if I don't remember to move all my windows onto my laptop's screen (only) it is a nuisance to reckon out.
My use model is that I have a laptop with a monitor hooked up to it. I take my laptop to code reviews and therefore need to condense to once screen. It would be nice if there was a command to invoke that would gather (tile, perhaps?) all windows on one screen so I wouldn't have any off-screen windows when I "go mobile".
[Ubuntu 10.04 64-bit | Lenovo T510]
View 7 Replies
View Related
Dec 3, 2010
I want to know if there is a way to know the uptime for a server after a reboot process, I need that information for a statistic, but I forgot to take the uptime before reboot the server, so I am looking for that information after the server is power on.
View 1 Replies
View Related
Jul 27, 2010
I've installed Ubuntu server on a small box with a couple of large hard drives to use as a remote backup server. Since my backups will run nightly in the wee hours, I'm configuring this to use Wake-on-LAN to start the server and run the backup. Once the backup completes - probably on the order of an hour later - another script shuts the server down. Once in a while I'll remote in to update packages and check on the status of the system, though I can check backup logs to insure that is still running.
Need I be concerned about the various cron jobs that periodically run to tidy things up? Should I periodically - say once/month - leave the system up for a full day to make sure that everything that needs to happen will run?
View 9 Replies
View Related
Sep 10, 2010
I've read from some Web-page that GNU/Linux resets it's uptime every 497 (498) days... So even if GNU system works 1000 days, uptime never will be more then 497 (498) days. Is it true?
View 2 Replies
View Related
Apr 14, 2010
This seems like a nicely populated forum so I hope some knowledgeable people happen to see this thread.
I've been encountering this issue where the system will not respond to seemingly anything after being on for generally no shorter than a day but sometimes as long as three days. This has been going on for few months since I only have physical access to the machine for about a day or two once every two weeks. So I'll come to the machine, reboot it, it will be fine for a day; then about a day after I'm away from it, it will not respond in any way. When I am away from it I only have ssh access, but when I'm with it, I have access to anything and everything.
After it locks up into the silent issue I have tried: ssh either remotely or locally, where it will time outPinging from the local network, where I get "ping: sendto: Host is down" a lot and occasionally a "ping: sendto: Host is down"Plugging in a monitor and keyboard, where the monitor never gets a signal no matter what I do on the keyboard. When it isn't locked up into the silent issue and I plug in the keyboard and monitor, the monitor gets a signal right after I hit the spacebar for sure. After the silent issue triggers it's fans still whir, the power light is on and light on the Ethernet port is on (and turns off if I unplug the Ethernet cable, and back on if I plug it back in) like everything was normal but there is no hard drive or network activity (even after unplugging/replugging the Ethernet cable).
After a reboot, all log files have nothing past a certain time and date, which I assume is the time when the silent issue got triggered. My setup is the following: Debian 5.0 "lenny" on an HP ProLiant ML110 G6Using full disk encryption with ext3 which was all set up by the installerIIRC "core" and "minimal" were selected in tasksel during install. I'm sure about "core", not about "minimal". The programs I have running are apticron, ddclient, sshd, fail2ban, screen, php-cgi (php5-cgi), cherokee (from unstable) and rtorrent (from unstable). I can provide a "ps aux" if necessary. The packages from unstable, that I have all set to Pin-Priority 990 in /etc/apt/preferences, are:
[Code]...
I'm pretty sure I don't have ECC memory so I don't think a lockup from a flipped bit is an issue. I'm thinking one thing to test would be to set up some kind of daemon that sends log info over the network to a logging server and compare the latest timestamps of what the daemon sent versus what the latest info on the disk is, and that would show that the issue is with the encrypted disk since things are still functioning in memory but not able to write to disk. If that's the case then I guess it locks up eventually from not being able to read or write something. Does anyone know of something out there like this? Or perhaps a way to do something similar?
Is there something I could do to determine whether this is caused by maybe some kind of kernel panic or by something like the motherboard having issues?
View 7 Replies
View Related
Feb 22, 2010
language: cOs: ubuntu 9.10 want a c or c++ program that gives the system uptime in YYYY: MM: DD HH : MM: SS format.eally it is head ditching..This is not home work or assisgnment..
View 10 Replies
View Related
Apr 22, 2010
This is an observation of something that I can't explain. Its not a problem in itself.
[Code]...
View 2 Replies
View Related
Jan 31, 2010
I was wondering why after a couple of days of my ubuntu server running, that it goes from starting off at 94mb of ram usage all the way up to 498mb of ram usage?
View 2 Replies
View Related
Jan 12, 2011
It is the strangest thing. I can not receive emails on this server after it has been up for an hour. I noticed that everytime and email is received that a sshd opens but never closes. Causeing a memory issue that I dont know how to fix. Also the mailq grows and grows. Mostly with email stating the recipient and send are both [URL].. also postmaster@mail.jmchd.com shows mail system configuration error. I have to restart the server every 30 minutes so users can get and send emails. This is horrible because for every 5 minutes out of the hour emails are bouncing.i have looked through them but I know not what I am looking at.
PS. I was thrown into the position and have limited knowledge. I am used to a GUI.
View 4 Replies
View Related
Mar 28, 2011
I know that uptime prints the time a machine has been up and running, but is there an easier (reliable) way to get the date of the start up than counting down from this output?I tried looking around /proc, but didn't find anything of relevance. There's also a line like this on my dmesg: [ 0.673492] rtc_cmos rtc_cmos: setting system clock to 2011-03-14 14:26:52 UTC (1300112812), but I'm wondering if this method is distribution and kernel version agnostic.
View 5 Replies
View Related
May 11, 2011
My Linux system was last rebooted few hours ago. But it seems little confusing for me to figure out the exact reason behind it. I guess following command should justify what i meant to say.
Code:
# date
Wed May 11 13:22:49 IST 2011
# last | grep "May 10"
reboot system boot 2.6.18-194.el5 Tue May 10 17:35 (19:46)
root pts/1 XXXX Tue May 10 17:24 - 18:18 (00:53)
[Code]...
My question is Why the uptime is saying that the system is up since last 47 min.It should be more than 1 day if i m not wrong.
View 2 Replies
View Related
Jul 28, 2010
I know several tools that allow tracking time spend on different tasks / projects.Is there any existing tool for very very simplified work-time-tracking.I am an employee, come to the office, switch on my laptop directly. I have mostly around 1 hr lunchtime, but sometimes less, sometimes more.At around 18:00 I want to type one command in the console (or simple GUI would also be okay of course) that tells me:"1 hour overworked. Go home now! (came at 8:00, 1 hour standard lunch-break)."
View 1 Replies
View Related
Jul 7, 2011
I need applet which shows the total data usage (In+out) (of the current session or since the uptime) on the panel.I searched a lot, but everytime I had to click somewhere to see my data usage. I don't want that. I want my data usage displayed regularly on the panel.
View 9 Replies
View Related
Jan 31, 2011
solve the following problem...mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combiningThis i am getting many lines in DMESG.
View 10 Replies
View Related
Apr 13, 2010
Being a newbie, I did check for similar threads before posting this message. There is an existing thread that contains a very similar question to mine, but since the existing thread is approx. 7 years old, I thought I would go ahead and post my question.I am wondering how I can change "uptime" on a Linux 2.6 box. I want to do this to test a complex wireless system that contains multiple Linux boxes.I am able to change "uptime" on a Solaris or VxWorks box with "lbolt" and "tickSet" commands respectively. But these commands do not work on Linux boxes (no surprise there).
View 9 Replies
View Related
Nov 17, 2009
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
View 3 Replies
View Related
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies
View Related
May 3, 2011
I can't write to USB on Natty. I can read the files and copy them to my netbook fine, but I can't change anything, I can't write or delete files
View 1 Replies
View Related
Sep 9, 2010
what is diff between "uptime" and "date" command. where we can use these command
View 3 Replies
View Related
Jan 4, 2011
df -h [URL] I did the following command to find everything is in /usr or /var, then tracked it down to /usr/lib and /usr/share as the main offenders, but out of all the directories none are more than 1mb or so.
du -sh /* | sort -gr | head -n 5
I tried to uninstall firefox, which is what got me in this mess in the first place, the log claims it will remove ~240 mb but failes on a "E: Write error - write (28 No space left on device)" [URL] If I could juggle something onto an external hard drive so I can uninstall firefox I would be out of the wood. Failing that I believe a new install is in order.
View 1 Replies
View Related
May 20, 2010
I have just installed 10.04 onto a brand new HD and cannot access my old drives for lack of permission. I've tried various "sudo chmod 777" combinations to no avail.
View 9 Replies
View Related
Apr 3, 2011
I'm trying to help my family burn an image to dvd and I can't see the inserted dvd when running brasero with X forwarding over ssh. Any advice? I also can't see the dvd when running nautilus or really anything else.
View 1 Replies
View Related
Jan 17, 2010
ive tried my hand and failed. My friend was using my computer nad he didnt safely remove his USB MP3 and now it is write protected. Ive tried windows diskpart (nothing), ive tried fsck ("disk maybe in use?"), i tried to format(write protected)ive tried otehr USB slots and other computers. This has happened to me sooo many times and i can never find a damn thing about it, can some one tell me how to fix this??? There has to be a simple fix as it is such a simple issue, an issue any one who has used windows for 90% of their computing history could make
View 5 Replies
View Related
Mar 6, 2010
I have installed Jaunty on my laptop. I have a dual boot with Windows 7 and I've set up access to my windows partition. I can read and write to the music and photos directories but I can't write anything to My Documents in the windows file system. I have tried in Gnome and from a terminal and checked that I have write permissions set correctly.
For example in the My Documents directory:
Code:
$ mkdir test
mkdir: cannot create directory `test': Operation not supported
I get the same message if I try to rename My Documents using either mv in the terminal or the Rename option in gnome.
View 4 Replies
View Related
Apr 16, 2010
I have tried almost everything and still can't write to the SMB share on my ubuntu machine from my mac. The [media] section is the folder that I'm trying to enable write access for.
I have pasted the smb.conf file below:
View 6 Replies
View Related
May 24, 2010
I only have an ubuntu machine here, but I wish to transfer some files to her mac via my external hard drive. I only have an ubuntu machine here. I managed to make an hfs+ partition on my external hard drive using gparted after installing hfsprogs. I tried changing the permissions with chmod. The ls -l command yields:ls -l /dev/sdc1 brwxrwxrwx 1 root disk 8, 33 2010-05-24 10:53 /dev/sdc1
View 1 Replies
View Related
Jul 19, 2010
I have made a new /boot/grub/grub.conf file.
How do I write it to MBR? Do I have to be running from CD?
I can't find new Grub2 instructions anywhere.
View 9 Replies
View Related