hornos wrote:
> Well, NetApp-1.2.zip package won't install. I had to reinstalla NetApp-1.1
> zenpack and apply sstormes fix but still no luck.
>
> I can see all NetApp volumes with their Total bytes, but Used bytes, Free
> bytes and % Util will show unknown values
I'm not sure what happened with the original export of the zenpack...somehow it
didn't export correctly...I'm guessing something I did on my end. I need to
setup a blank test instance and try exporting from my prod instance to this
test instance.
In the meantime I'd check to see that the script is working first. I'm really
sorry about how badly that was written....I got it together as quickly as I
could for some in house stuff so it's very rough around the edges. Go to
/Devices /Storage /NetApp /Templates /FileSystem /usedBlocks
"usedBlocks" should be the only datasource...if it's not then it's a problem
with the zenpack itself. For now you can make a copy of that Filesystem
template in /Storage/NetApp/ (in case you need it back) and remove all the
Datasources from the Filesystem template. Create a new "Command"
DataSource...it MUST be named usedBlocks.
Enabled: True
SSH: False
Componenet: ${here/mount}
Event Class: /Cmd/Fail (I wasn't really sure what to put here....this works
but it may not be the best option)
Event Key:
Severity: Warning (you can change this to whatever you like)
Cycle Time: 300 ( you can change this to whatever you like...it's in seconds)
Command Template: check_netapp ${here/zSnmpCommunity} ${dev/id}
${here/snmpindex}
On the command template, you technically replace "${here/zSnmpCommunity}"
directly with your snmp community string....although I think it's nice to use
the variable above as it pulls it from the devices zproperties.
You'll also need a DataPoint of "usedBlocks" that's of type "Gauge". You can't
really test it from there without modifying the command template further...the
script requires the snmp oid you want to query...which is "dfIndex" followed by
the index number of the volume. To test it, I just run the script from a
command line. Like below:
Code:
vm2:/usr/local/zenoss/libexec # ./check_netapp public ntap1 1
|totalBlocks=1102804624 usedBlocks=1028262364 availBlocks=74542260
Above...ntap1 is one of our netapp devices and 1 is the index number of the
first volume (should be valid on almost any netapp device).
If you get an event in zenoss for this device stating something to the effect
that it couldn't find check_netapp....then you need to go to the zProperties of
that device and make sure that the "zCommandPath" reflects the path of where
teh check_netapp script resides on the zenoss server. It's a bit
confusing....as you're going into the zProperties of the netapp device....and
pointing to a location on the zenoss server. That's because we told this
DataSource not to use SSH and to run locally (locally being the zenoss server).
Please let me know if that helps or if you run into further issues. Getting it
to work wasn't pretty, but it was the only way I knew at the time to get it to
work. From what I understand, the Enterprise version integrates this much more
seamlessly.
-Eric[/code][/quote]
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=24926#24926
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users