Tag Info

Hot answers tagged

8

PHP-FPM connections are via a socket (TCP or file based). As such, PHP-FPM must 'listen' on that socket, and then 'accept' connections. Since there is a finite rate at which the connections can be accepted, it is possible, under high load for there to be a delay between the time a connection is initiated and the time it is accepted. Connections in that ...


7

if you want a bit of bells and whistles under linux - try htop. it's top on steroids, you can configure it to display on 'bars' cpu time spend in userland/system/iowait/irqs. this might give you good view what's the cause of load. still - some info that you get from vmstat will not be displayed in htop. you can as well take a look at sar from sysstat. [ ...


6

There is a lot of complexity you ignore in your question, so I'm going to ignore it in my answer: if [ `git status | grep -c "working directory clean"` -ne 1 ]; then . . . you have changes . . . else . . . you don't have any changes . . . fi Note however that this doesn't tell you if you're sync'd up, or if the changes locally are legitimate, or ...


4

You asked a similar question last month, and I provided instructions on where to go on HP's Web site to get the tools you needed. Here are exact links: You can get CPQLOCFG.EXE (as suggested by sleske) here. You can get HPLOCFG.EXE (a similar tool) here. You can get sample XML files and the Perl locfg.pl utility here. I suggest also looking over the ...


4

Depending on how many servers you have you may want to setup nagios or a similar monitoring system for this. Basically you set limits on metrics (CPU usage, memory usage etc..), and if a limit is exceeded you receive an alert, which could be a page or email or whatever. However if this is your home PC, I find myself using nmon. It's great for getting an ...


4

The list of broken URLs would be in the actual log files. Right now it appears like ~15% of the requests to your system are 404. That does seem unusually high. If I was to guess I would bet that your page template included a link to a broken image, javascript, or css file. A quick grep of the log files will probably reveal most of the details.


4

You should use git ls-files The -m flag will get a list of all modified files since last commit. If no files are modified, no data is output. This makes it extremely easy to set up a cronjob using this command, since the cronjob will by default only send a mail if the command outputs something. Deleted files are pr. definition modified, so they will also ...


4

No, once an instance is terminated, it's gone. That's why they have the termination protection bit you can enable for critical instances.


3

I agree that is a rather high amount of 404s, but it might be automated bots trying to exploit known holes in software. Granted it's not quite the same, but I have tens of thousands of 404's a month on our web server, and analysing the URL's it just looks like some bot trying known SQL injections to hundreds of different products (none of which we have ...


3

It really sounds like you should just run a simple wiki for this. If the website is internal-only then you don't really have to worry about spam. Set up something like PmWiki and leave it wide open for anyone to update. You should probably also set up email notifications just to make sure nobody accidentally erases a page or posts bogus data. PmWiki is a ...


3

First, you can use netstat to see state of port. Second, you can use tcpdump to see traffic going in and out on that port. tcpdump -i eth0 "port 5004" reports traffic on eth0 to port 5004.


3

top is a good tool (if its installed), but the other one I like for a real quick look to see if anything is wrong is dmesg. That should let you know if the server's experiencing something incredibly major (disconnected nics, disk faults, memory faults etc).


3

I know about faxstat -d, but it's a report for all jobs and i can't fetch that on php side. Sure you can. You have a couple options: system and exec. Use one of those to run the faxstat command in combination with grep, and you should be able to get the data you want. Alternatively, suck in all of faxstat's output into a php variable, and then parse ...


3

250 means that the message was accepted for delivery. The human-readable portion of it can say anything, and it appears that this is someone's attempt at humor.


2

Your question is rather vague. What status data do you want? Please provide some examples. That said, iLO offers scripting interfaces (via HP's tool CPQLOCFG.EXE, or via Perl). See the HP documentation on iLO for details.


2

How big is your company? On the one hand, if you're big enough to have an accounting department, they're supposed to be professional and to make payments that are properly dealt with (Purchase Order, etc.) On the other hand, if you're small, you should keep an eye on your own "accounting" to be sure that important payments aren't missed. At our med-small ...


2

Parent Server Generation: 33 Resets? Number of times you have instructed apache to re-read its configuration file and gracefully restart all child processes. Total accesses: 2458466 Requests? Number of requests to server. CPU Usage: u33.6 s9.83 cu45.75 cs0 - .00579% CPU load u? s? cu? cs? u=user, s=system... cu and cs are the cumulative ...


2

Should be /var/www/html by default. http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-config-ui.html Make sure you have php installed and configured.


2

There are also open source status page dashboards like http://www.stashboard.org/ that you can utilize.


2

The site you're linking to has been compromised. It is redirecting visitors to a page which distributes malware (though the page appears to have been taken down). If you know the owner of the site, you may wish to inform them of the problem.


2

If trigger evaluation fails for some reason, you should see an error message in "Configuration" -> "Triggers", on the right hand side: In this case, if you have just created "mysql.slowqueries" item and it does not yet have data older than half an hour, function "last(0,1800)" (which returns the last value half an hour ago) is going to fail. Once it has ...


1

I've just written a bash scripty thing to poll the bacula client status, and write the tape write speed (in GB/hr) to a logfile, along with a datestamp: Here's how. while `/bin/true`; do echo -n `date +%s` >> /var/log/backupspeed.log; echo -n " " >> /var/log/backupspeed.log; BPS=$(echo "status client"|bconsole|awk '/Bytes\/sec/ {print ...


1

check disk slices: fdisk /dev/xx Part status: geom part status


1

I'm astonished that these are manual processes where you work. I've never known anyone to do it that way before. The solution is to do arrange for regular payments to be made by some kind of direct debit. Your bookkeeper is then responsible for ensuring the correct payments are debited at the appropriate times, not paying them. It's a business after all, not ...


1

I've been using a serial-attached GSM modem with Nagios for a while; really any phone(-like thing) should work (as long as it presents as a serial port), but I'd imagine the industrial modems are more reliable, and since mine has an external antenna, gets better signal inside my datacenter. (Older EDGE/GPRS usb-dongles seem to be cheap, but I haven't tried ...


1

some time ago i deployed Siemens Cellular Engine TC35 Terminal connected over serial port to linux server. to send SMSes i use scmxx. there are usb<>serial adapters - you might have some luck exposing it to your vm. most probably you will also be able to use 'usb 3g dongle' cards [like huawei e200 or similar] to send sms'es [AT-commands to do so are ...


1

Given that it took 2 hours to deploy this image, I'd say your source media is fairly slow (Is it a USB Drive? A network share?) The /verify option does exactly what it sounds like, and verifies the write operation succeeded by comparing it to the source image. You will nearly double your imaging time by doing this. Also note, that if you accidentally enter ...


1

Did you figure this out? I notice in my new install of openfire (windows service, using the build in hsqldb.) That when I log into the admin panel is shows what users are online, but spark shows users as offline. We can still chat with each other, but have no indication of who is online. A work around is to have the users log off and log back in and re-add ...


1

Sorry, but I'm afraid not.


1

Good free service: http://mon.itor.us/ The problem with doing all the monitoring locally is you won't be aware of any network problems which might arise.



Only top voted, non community-wiki answers of a minimum length are eligible