Health check of web page using curl
I’d like to do a health check of a service by calling a specific url on it. Feels like the simplest solution would be to use cron to do the check every minute or so. In case of errors, cron sends me an email.
I’d like to do a health check of a service by calling a specific url on it. Feels like the simplest solution would be to use cron to do the check every minute or so. In case of errors, cron sends me an email.
I use Ubuntu Server 10.10 and I would like to see what processes are running. I know that PostgreSQL is running on my machine but I can not see it with the top or ps commands, so I assume that they aren’t showing all of the running processes. Is there another command which will show all running processes or is there any other parameters I can use with top or ps for this?
So recently I found that someone has been using my computer without consent, browsing folders, etc….
I have a script which produces a file ‘Detail.out’. I know that the script is completed whenever the file contains a certain number of lines (roughly 21025). So I find myself sitting at the command prompt running:
I run a web server (Debian Squeeze on a VPS), and the graphs provided by the hosting company show consistently that around twice as much traffic is incoming to the server compared to the outgoing traffic. I am a little confused by this, so I would like to run some kind of logging utility on the machine that will not only confirm the upload/download figures, but also split them up by the remote host involved, so I can see if a large proportion of the incoming traffic is from one particular source.
Basically I would like to constantly get updated values from meminfo and cpuinfo.
I don’t understand iotop output: it shows ~1.5 MB/s of disk write (top right), but all programs have 0.00 B/s. Why?
From the question here, the OP wants to repeatedly poll the pid of a process using pidof in a shell script. Of course this is inefficient as a new process must be started for the pidof program multiple times per second (I don’t know that this is the cause of the CPU spikes in the question, but it seems likely).
$ tail -f testfile the command is supposed to show the latest entries in the specified file, in real-time right? But that’s not happening. Please correct me, if what I intend it to do is wrong… I created a new file “aaa” and added a line of text and closed it. then issued this command … Read more
I have a growing log file for which I want to display only the last 15 lines. Here is what I know I can do: