Archive for June, 2010
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
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. That being the case the circuits are almost never all or nothing, and they are almost never perfectly balanced. In order to effectively monitor the whole picture you need to monitor the aggregate power consumption of both circuits.
I’ve not really seen direct support in any Network Monitoring System that I have ever looked at. Zenoss is the NMS I have been using recently and while it has many rules for alerting it does not support alerts based on multiple data points. To solve my issue I ended up writing a small script that would query the SNMP OID for the total power load on a single PDU for two specified hosts and return the aggregate as well as the individual PDU loads in Nagios plugin format. That gave me a single data point that I could use for thresholds and alerts.
I have created a ZenPack that includes the script as well as the templates for graphing and thresholds. The thresholds and graphs are specific to a 20A circuit but could easily be modified for others.
The aggregateAPCpduAB ZenPack can be found on my github profile.
http://github.com/nickanderson/ZenPacks.community.aggregateAPCpduAB
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.

Identica
Twitter
LinkedIn