Nginx is a great little web server. I have posted previously about using it as a reverse proxy. Weather your using it as a reverse proxy or as a normal webserver you will probably eventually want to know what its doing over time so you can adjust resources as necessary. The other day I threw together a Zenpack to make it easier to setup monitoring on new Zenoss instances. It contains a command data source “check_nginx_ng” which is a slightly modified version of Chris Kellys check_nginx_ng which in turn was based on check_nginx by Mike Adolphs.
Why do applications have such horrible error messages. Non-specific errors are really not any more helpful than not logging at all. I was recently setting up autofs for mounting home directories from an nfs server. The little buggers refused to work right. All I was seeing in the logfile was a notice that an attempt was made, and failed. attempting to mount entry /home/nanderso failed to mount /home/nanderso How helpful is that?
Redundant power is a necessity for any highly available system. Most servers have redundant power supplies and the common design pattern is to have each power supply plugged into a power distribution units that are on separate circuits. One challenge with this type of dealing with this type of design is monitoring the power load. Monitoring A/B power is not as easy as monitoring the individual PDUs. Some servers will draw power from both power supplies, other will draw from one or the other.
Today I woke up to another abrupt Google change, the background image. I know some people want so much candy they can’t see the cane. Some of these changes Google has been making lately makes me wonder if the next time I open up vanilla ice cream I will be looking at a tub of Rocky Road. Yes, the background is only there for a day as publicity for the new feature to make Google more bingesque but I would be pretty upset if my vanilla ice cream turned to Rocky Road as well, even if only for a day.
I don’t have much to say about the loss. Henry Sieff was a brilliant network, security engineer and friend.
Recently I was building a ZenPack for Zenoss. The ZenPack included an Event Command which executed a custom script. I wanted to store the custom script in the ZenPack and I didn’t want to do anything other than have proper script dependencies in place for it to work. ${here/ZenPackManager/packs/ZenPacks.community.YOURZENPACK/path}/libexec/yourscript.sh ${dev/manageIp} Custom scripts can be placed in $ZENHOME/ZenPacks/ZenPacks.CompanyName.Package/Zenpacks/CompanyName/Package/lib but if you want them to be executable place them in libexec. Thanks to Matt Ray for telling me how to properly path the Event Command and the note about scripts in libexec getting the executable bit set, the docs I found only specified the lib directory.
I came across a new blog (seems to have come on-line in March) http://www.epoxyjournal.com. One of the entries was about how to clear command history. Everyone has inadvertently pasted or typed something into the wrong shell. Sometimes its worthwhile to clean up after yourself and sometimes its not. I figured I would offer a suggestion for the times you want to avoid having your embarrassing moments in your ~/.bash_history. Instead of blowing away your entire current buffer with history -c you can redirect it to another file, flush the buffer to the file, clean it up then append it to your ~/.
I just downloaded EMC Networker client for a 32bit linux box. The file I downloaded was nw74sp5_linux_x86.tar.gz. Of course when I go to extract it …. # tar zxvf ../nw74sp5_linux_x86.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors Umm not in gzip format …. # tar xvf ../nw74sp5_linux_x86.tar.gz linux_x86/ linux_x86/lgtoclnt-7.4.5-1.i686.rpm linux_x86/lgtolicm-7.4.5-1.i686.rpm linux_x86/lgtoman-7.4.5-1.i686.rpm ... 🙂
They are only on their 3rd episode, but its been good listening so far. If your into networking check it out. http://packetpushers.net/
Gah, still recovering from a hardware issue that hit early Monday morning. Back to restoring data …