Feb 272009
 

Recently I had to input quite a few OID’s into Zenoss. This meant I had to create a Data Source for each OID I wanted to monitor as well as one Data Point.
Now I knew this was going to be a hassle!!! So I decided to write a custom Python script that uses pysnmp to essentially do a snmpwalk (nextCmd)
on a Branch of OID’s. This means that I can create one Data Source and Mutiple Data Points.
Which drops the amount of time that I have to input into the Zenoss GUI.

Please Post any questions about this script here http://www.linuxdynasty.org/forums/Scripting/scripting/snmp_branch_help
You can download the script snmp_branch.py

  • Update 1.0.10
    1. Fixed labeling bug, (Thanks Stephan26 for finding this)
    2. Added –fsearch option
      Thanks Stephan26 for suggesting to add a way to find OID’s by their begining Digits on their last Octect
    3. Added –length option
      This will allow you to search for an Index on the final Octect of the OID, when the final octect is not just the index.
      Example…. You want the index OID of 100 but the entire last octect of the OID is .6534389100)

 

So here is an example below of what the data looks like from SNMP..

UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 0UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 1UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 3|UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 19UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 7UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 7UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 84

 

Continue reading “HowTo monitor and add multiple Data Points the easy way in Zenoss” »

Feb 132009
 

I’m currently working for The New School University, and I must say I really do like the place. There is so much that I can bring to the table as well as technologies that I have yet to learn. One thing that I have done quite a bit of in the past is Programming to the VMware SDK in Perl and some Python scripting for the NIC reordering issue.

Now I’m working on writing some Scripts in PowerShell for Windows. I am also learning about the management aspect of VMware VC and VMware Clustering and Vmotion. Also Researching Kerberos with Securid, and getting ready to deploy Puppet and Subversion. And more to come….

So you should see some upcoming HowTo’s as well as Scripts in Perl/Python/Ruby, and just maybe PowerShell…. I want to apologize for not updating the site in over a month but I was affected by this horrible economy and I was just not into it and now that I am back working… You best believe that I am 110% back!!!!!!!!

 

LINUXDYNASTY 4 LIFE!!!

  


Warning: fopen(/home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/lib/standard.txt) [function.fopen]: failed to open stream: No such file or directory in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 104

Warning: fread(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 106
.