I installed the VMwareESX zenpack, and it comes with a FileSystem template to
gather filesystem information using a shell script. The problem is, the
template doesn't seem to be working for me. Here's how the template looks:
Name Disk_VDF
Source Type COMMAND
Enabled TRUE
Use SSH FALSE
Component
Event Class /Perf/FileSystem
Event Key
Severity Warning
Cycle Time 60
Parser Auto
Command Template:
$$ZENHOME/Products/VMwareEsx/libexec/vmware-esx.sh ${dev/manageIp}
${dev/zSnmpCommunity} ${here/mount}
When I test this against a device, I get this error:
Type: KeyError
Value: 'mount'
Traceback (innermost last):
* Module ZPublisher.Publish, line 114, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Products.ZenModel.BasicDataSource, line 164, in
manage_testDataSource
* Module Products.ZenModel.RRDDataSource, line 202, in getCommand
* Module Products.PageTemplates.Expressions, line 224, in __call__
* Module Products.PageTemplates.Expressions, line 185, in __call__
* Module Products.PageTemplates.Expressions, line 173, in _eval
* Module Products.PageTemplates.Expressions, line 127, in _eval
__traceback_info__: here
* Module Products.PageTemplates.Expressions, line 320, in restrictedTraverse
__traceback_info__: {'path': ['mount'], 'TraversalRequestNameStack': []}
* Module OFS.ObjectManager, line 713, in __getitem__
KeyError: 'mount'
If I remove the ${here/mount} and replace it with a known mountpoint, I get the
correct response:
Executing command against vmware03
DISK OK | usedBlocks=222837760 availBlocks=93570048 totalBlocks=316407808
VMProduction
DONE in 1 seconds
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=27945#27945
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users