Updates from March, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Jeff Forman 5:58 pm on March 27, 2011 Permalink
    Tags: nikon,   

    New toy, Nikon style. 

    It had only been ‘recently’ that I had purchased myself a micro four-thirds digital camera for my honeymoon. It took pretty good pictures, and I loved its compactness when roaming around Portugal for 10 days. But I had always wanted a bit more control over the photos I took; whether it was exposure modification, lense type, or overall flexiblity for shooting in different situations (low light at night).

    ‘Lo and behold, Nikon announced the D7000. It had all the features of my Father’s D90, but with better HD video capture, an upgraded AF sensor and a whole host of other functionality too long to list. Patiently I waited for my bonus to be direct deposited, reading up on the manual (a hefty 350 pages), investigating some photography walks and classes in the area. Now in my hot little hands:

    The weather finally reached an acceptable temperature where it was just above the level of being uncomfortable for an afternoon stroll. I wandered my way through Somerville and Cambridge on my way through Harvard Square. I captured the below uniquely-painted house. I was mainly playing around with Aperture-priority today, but look forward to digging into more of the image control options to bring out different detail.

    Overall the camera is great, not too heavy for a couple hours slung over my shoulder, even with the included Nikon strap and an 18-105mm lens connected. The Op/Tech neoprene strap I have on order should make things a heck of a lot more comfortable when that arrives. I am really looking forward to the weather warming up when I can explore more of Boston with the camera and take it up into the mountains for some day-hikes.

     
  • Jeff Forman 1:18 pm on March 6, 2011 Permalink
    Tags: apc, , , snmp, ups   

    Remind Me: Adding SNMP mibs for querying 

    I was having issues trying to get Nagios to more easily query my APC UPS with the APC-provided MIB. It took me a while to figure out the right bits both on the file system and in my query to have the MIB ‘processed.’ I still don’t know how to add that MIB to the “automatically process me too if snmpwalk is run” piece of the puzzle.

    But for what I have running a home, some notes for myself and others who ripped out enough hair already.

    jforman@monitor:/usr/share/snmp/mibs$ ls
    powernet401.mib
    
    jforman@monitor:~$ cat /etc/snmp/snmp.conf
    mibs +PowerNet-MIB
    
    jforman@monitor:/usr/share/snmp/mibs$ snmpwalk -v1 -c snmpcommunity ups1 apc
    PowerNet-MIB::upsBasicIdentModel.0 = STRING: "SMART-UPS 700"
    PowerNet-MIB::upsBasicIdentName.0 = STRING: "ups1"
    PowerNet-MIB::upsAdvIdentFirmwareRevision.0 = STRING: "50.14.D"
    .....
    

    Relevant Nagios configs:

    define service {
           use                              generic-service
           check_command                    snmp_apcups_batterystatus!snmpcommunity
           service_description              UPS Battery Status
           host_name                        ups1
    }
    
    define command {
           # OID corresponds to: PowerNet-MIB::upsBasicBatteryStatus.0
           command_name      snmp_apcups_batterystatus
           command_line      /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o upsBasicBatteryStatus.0 -s "batteryNormal(2)"
    }
    

    Help and inspiration courtesy of http://www.cuddletech.com/articles/snmp/node13.html

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel