$ smidump -fpython $ZENHOME/share/mibs/ietf/IF-MIB

looks like it works

The problem seems to be  when zenmib.py is running
it can't find smidump because
$ZENHOME/bin is not in the path.

The path is correct for zenoss.

sudoers includes;

Defaults   env_keep = "PYTHONPATH ZENHOME PATH"
and
zenoss ALL = NOPASSWD: /usr/local/zenoss/bin/python,/bin/kill

/etc/profile sets the path correctly

Soooo, I need to learn some things about sudo and friends on Ubuntu.

Thanks,
Kent

On 7/18/06, Eric Newton <[EMAIL PROTECTED]> wrote:
The configuration file is not necessary, but you can make one to
eliminate the warning:

    $ touch $ZENHOME/etc/zenmib.conf

Zenoss uses "smidump" to convert a mib into python.  You can do this at
the command line to see what kind of errors and warnings it produces:

    $ smidump -fpython $ZENHOME/share/mibs/ietf/IF-MIB
    /usr/local/zenoss/share/mibs/ietf/IF-MIB:1112: index element
`ifRcvAddressAddress' of row `ifRcvAddressEntry' must have a size
restriction
    smidump: module `/usr/local/zenoss/share/mibs/ietf/IF-MIB' contains
errors, expect flawed output

This looks like it failed, but that was just a warning. Check the exit code:

    $ echo $?
    0

Hopefully smidump's diagnostics will help you find whatever is wrong
with your MIBs.

-Eric

Schuran, Sven wrote:
> Hi,
>
> Same Problem here.
>
> Not able to load mib with zenmib.
> Seems to be config file is missing.
>
> Sven
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Newton [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 17. Juli 2006 21:43
> An: General discussion of using zenoss system
> Betreff: Re: [zenoss-users] How do I populate ../zport/dmd/Mibs ?
>
> This works for me:
>
>     $ zenmib run $ZENHOME/share/mibs/ietf/IF-MIB
>
> -Eric
>
> Kent Tenney wrote:
>
>> Just added this to the FAQ
>>
>>> The mib loader is called zenmib. To load mibs first copy them to
>>>
>> $ZENHOME/share/mibs/site. Then run zenmib mibfile.
>>
>> I don't know what 'mibfile' is.
>>
>> /usr/local/zenoss$ bin/zenmib mibfile
>> Usage: bin/zenmib {run|help}
>>
>> I copied a couple mibs to ../share/mibs/site and tried;
>>
>> /usr/local/zenoss$ sudo bin/zenmib run share/mibs/site/*
>> WARN: config file /usr/local/zenoss/etc/zenmib.conf not found skipping
>> ERROR:zen.zenmib:Failed to load mib: share/mibs/site/INFORMANT-STD.MIB
>> ERROR:zen.zenmib:Failed to load mib: share/mibs/site/WTCS.MIB
>>
>> Suggestions?
>>
>> Thanks,
>> Kent
>>
>> On 7/17/06, Erik A. Dahl <[EMAIL PROTECTED]> wrote:
>>
>>> Kent,
>>>
>>> Just added this to the FAQ not sure it was documented otherwise.
>>>
>>> http://dev.zenoss.org/trac/wiki/FAQ
>>>
>>> -EAD
>>>
>>> On Jul 17, 2006, at 11:45 AM, Kent Tenney wrote:
>>>
>>>
>>>> Howdy,
>>>>
>>>> In my new install I have no no mibs registered.
>>>>
>>>> How do I register mibs with Zenoss?
>>>>
>>>> In the vmware instance under ..dmd/Mibs/viewHistory I see; Import
>>>> from file /usr/local/zenoss/Products/ZenModel/data/mibs.xml
>>>> using XmlDataLoader
>>>>
>>>> In the same location on my install I see only;
>>>> /zport/dmd/Mibs/manage_addOrganize
>>>>
>>>> Thanks,
>>>> Kent

_______________________________________________
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