Have you considered making a Zenpack with this or otherwise getting it into the code repository?
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



larve_q wrote, On 3/5/2009 4:54 AM:
Major Break Through!! :D Check: http://farm4.static.flickr.com/3662/3330646032_9c321f2381_o.jpg

Finally I’ve got it working, made a small mistake (typo) in my NWFileSystemMap.py (Rule 29: Changed “class HRFileSystemMap(SnmpPlugin):� -> “class NWFileSystemMap(SnmpPlugin):�)
To add the Netware file system to your OS tab follow these steps:

1.      Create a file NWFileSystemMap.py under 
$ZENHOME/Products/DataCollector/plugins/zenoss/snmp (Check your file 
permissions)

2. Paste this code in the file:
Begin----------------------------------Begin
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2007, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# For complete information please visit: http://www.zenoss.com/oss/
#
###########################################################################

__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 NWFileSystemMap(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('fsTableOidNW', '.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",
        }
End----------------------------------End

3.      Go to your device -> Triangle -> More -> Collector Plugins and add 
zenoss.snmp.NWFileSystemMap. (Remove the zenoss.snmp.HRFileSystemMap) -> Save

4. Model your device…
5.      Finished

Let’s hope this helps somebody, it toke me a lot of work….!!!

Greeting,
Martijn




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31937#31937

-------------------- 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

Reply via email to