TECHZEN Zenoss User Community ARCHIVE  

MIB files

Subject: MIB files
Author: Vimal Koshy
Posted: 2017-12-14 01:11

Hi guys,

I am not able to find the MIB files in my zenoss core installation. I have tried searching for it the \USR\SHARE folder but with no luck. Could someone please help me with it. Do I need to create one?​​

------------------------------
Vimal Koshy
IT Engineer
dans
------------------------------


Subject: RE: MIB files
Author: Kent Erickson
Posted: 2017-12-14 17:04

In the Administration Guide, it says "SNMP traps sent as a result of this notification are defined in the ZENOSS-MIB file. You can find this MIB file
on any Resource Manager server at $ZENHOME/share/mibs/site/ZENOSS-MIB.txt."

For commercial users, there is an additional MIB for service impact trap notification. The location seems to be undocumented, but it's here: /opt/zenoss/ZenPacks/ZenPacks.zenoss.Impact-<version>-py2.7.egg/ZenPacks/zenoss/Impact/share/mibs

That's a pretty cool trap because it includes the top scoring root causes related to the issue. 

I opened a ticket to document the Impact MIB location. 


------------------------------
Kent Erickson
Zenoss Inc.
------------------------------

Subject: RE: MIB files
Author: Jane Curry
Posted: 2017-12-14 17:44

As Kent says (and it is the same with Core) you should find mibs under $ZENHOME/share/mibs .  There should be several directories under there - ietf should have a big bunch of standard mibs/  The site subdirectory should be used for other Mibs that you want to import into your Zenoss.  Typically you get the mib file from the internet, put it under $ZENHOME/share/mibs/site and then run:
zenmib run -v 10 <name of mib>

Note that Zenoss runs on a Unix system so your slashes are the other way from Windows and Unix IS case-sensitive.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: MIB files
Author: Vimal Koshy
Posted: 2017-12-17 05:18

Hi Kent and Jane,

Thanks for the valuable input. I have seen these recommendations online but would like to know how we get into $ZENHOME. Is it the zenoss user? Do we get into the directory by using su Zenoss?

Thanks


------------------------------
Vimal Koshy
IT Engineer
dans
------------------------------


Subject: RE: MIB files
Author: Jane Curry
Posted: 2017-12-18 05:27

You should do all Zenoss administrative work as the zenoss user (note the userid is all lower case).  Depending on your setup, you may need to use sudo or you go via the root user.  By default, the zenoss user is created but you cannot login directly as zenoss. So, if you are the root user, use:

su - zenoss

If you are using sudo, login as yourself and then use:
 sudo su - zenoss

Once you are the zenoss user, there are various files that are sourced when you login as zenoss, that setup environment variables.  One of these is $ZENHOME, which is the top-level directory of where the zenoss code is stored, typically /opt/zenoss.  This is different from the zenoss user's home directory which is typically /home/zenoss (and is probably, largely, empty).

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: MIB files
Author: Vimal Koshy
Posted: 2017-12-18 05:36

Hi Jane,

Thanks for the response. I used to be able to go to su - zenoss but now it shows su: user zenoss does not exist. Do I need to create a new user within the zenoss core application? The only users I can see in the user list are admin and zenoss_system

------------------------------
Vimal Koshy
IT Engineer
dans
------------------------------

Subject: RE: MIB files
Author: Vimal Koshy
Posted: 2017-12-18 06:29

Hi Jane,

Just figured out that we need to attach to the zope container by using 'serviced service attach zope' before I can su to zenoss. Is that true?

Thanks

------------------------------
Vimal Koshy
IT Engineer
dans
------------------------------


Subject: RE: MIB files
Author: Jane Curry
Posted: 2017-12-19 08:35

If you are running Zenoss 5.x then the zenoss user does NOT exist on the base system; it DOES exist in each of the containers.  I use the following to attach to a container:

serviced service attach zope su zenoss -l

That attaches you as the zenoss user.  zope is the right container to do "general stuff" in.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: MIB files
Author: Eric Wong
Posted: 2022-01-17 06:41

Vimal

/opt/serviced/var/volumes/<instance ID>/zenoss-var-ext/uploadedMIBs

------------------------------
Eric Wong
Student
Self Employed
West Seneca NY
7165070577
------------------------------


< Previous
ServiceNow integration - Alert Maintenance Governance
  Next
Timeout when running backup
>