There is the NLM Status ZenPack, by Scott Degenhardt. It checks the status of an NLM on Netware. http://www.zenoss.com/community/projects/zenpacks/checknlm
Thanks, Matt Ray Zenoss Community Manager community.zenoss.com [email protected] On Mar 3, 2009, at 9:04 AM, larve_q wrote: > Hello, > > Is there anybody using Zenoss with Novell? I’m trying all day now to > get some information in de File systems under OS. I’ve tried to > change the HRFileSystemMap.py but don’t do much when I model. > > Is there anybody with a working ZenPack? > > Thanks in Advance, > > Gr, > Martijn > > Code Plugin============ > __doc__="""FileSystemMap > > FileSystemMap maps the interface and ip tables to interface objects > > $Id: HRFileSystemMap.py,v 1.2 2004/04/07 16:26:53 edahl Exp $""" > > __version__ = '$Revision: 1.2 $'[11:-2] > > import re > > from Products.ZenUtils.Utils import unsigned > from Products.DataCollector.plugins.DataMaps import ObjectMap > from Products.DataCollector.plugins.CollectorPlugin \ > import SnmpPlugin, GetTableMap > > class HRFileSystemMap(SnmpPlugin): > > maptype = "FileSystemMap" > compname = "os" > relname = "filesystems" > modname = "Products.ZenModel.FileSystem" > deviceProperties = \ > SnmpPlugin.deviceProperties + ('zFileSystemMapIgnoreNames',) > > columns = { > '.1': 'snmpindex', > '.2': 'type', > '.3': 'mount', > '.4': 'blockSize', > '.5': 'totalBlocks', > } > > snmpGetTableMaps = ( > GetTableMap('fsTableOid', '.1.3.6.1.2.1.25.2.3.1', columns), > ) > > typemap = { > ".1.3.6.1.4.1.23.2.27.2.1.2": "ram", > ".1.3.6.1.4.1.23.2.27.2.1.3": "swap", > ".1.3.6.1.4.1.23.2.27.2.1.1": "fixedDisk", > } > > > def process(self, device, results, log): > """collect snmp information from this device""" > log.info('processing %s for device %s', self.name(), device.id) > getdata, tabledata = results > fstable = tabledata.get("fsTableOid") > skipfsnames = getattr(device, 'zFileSystemMapIgnoreNames', > None) > maps = [] > rm = self.relMap() > for fs in fstable.values(): > if not fs.has_key("totalBlocks"): continue > totalBlocks = fs['totalBlocks'] > if totalBlocks < 0: > fs['totalBlocks'] = unsigned(totalBlocks) > if not self.checkColumns(fs, self.columns, log): continue > fstype = self.typemap.get(fs['type'],None) > size = long(fs['blockSize'] * totalBlocks) > if fstype == "ram": > maps.append(ObjectMap({"totalMemory": size}, > compname="hw")) > elif fstype == "swap": > maps.append(ObjectMap({"totalSwap": size}, > compname="os")) > elif (fstype == "fixedDisk" and size > 0 and > (not skipfsnames or not > re.search(skipfsnames,fs['mount']))): > om = self.objectMap(fs) > om.id = self.prepId(om.mount) > rm.append(om) > maps.append(rm) > return maps > > > =================== > > > > > -------------------- m2f -------------------- > > Read this topic online here: > http://forums.zenoss.com/viewtopic.php?p=31867#31867 > > -------------------- m2f -------------------- > > > > _______________________________________________ > zenoss-users mailing list > [email protected] > http://lists.zenoss.org/mailman/listinfo/zenoss-users _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
