Add a mib for cacti !!!

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Add a mib for cacti !!!

Post by wookii »

I know that i'm not in a good forum, but if anyone can help me et's cool.

I want to add a perfmib.mib in my mibs share (/usr/local/share/snmp/mibs on my Fedora Core 3) for monitoring the snmp oid of my windows 2000 server (user session / files open).

How can i do this ???

Thanks a lot and sorry for the forum mystake :-?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You don't really need to add the mib. Cacti will not use it, typically, you use the OID.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

Are you sure !!!

Why Cacti use net-snmp ???
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

I want to monitor the number of users connected in my server w2k.
the OID is .1.3.6.1.4.1.311.1.1.3.1.1.8.16 but no data are graph.

Where is the mistake ???
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yes, I'm sure cacti doesn't need and doesn't care about the MIBS.

Can you query that OID with snmpget from that cacti machine? Do you have your SNMP version correct?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

With GETIF in a windows 2000 workstation, i can tell this oid with a correct answer.

Linux machin can send snmp query to .1.3.6.1.2 but not for a private section of microsoft that begin on .1.3.6.1.4 ... why ???
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I would venture that the SNMP agent on the server isn't allowing it. Also, from the Linux box, try to use snmpwalk, that way you see if you are in a tree, and if it's a single value, it will still return it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

I can't acces to the private section with snmpwalk.

I have integrate the snmp4w2k agent on a server (http://www.snmp4tpc.com/) W2K, and modify the getif program.
In the doc it explain that perfmib is the mib for microsoft server.
Getif return the true value of private mib section.

I think that i have to modify (perhaps) this mib (perfmib) and add it to the mib of my linux net-snmp, but i don't know how !!!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Wookii,

Please understand that the need for a Linux MIB to be "compiled" (aka added to perfmib) would never be a requirement. From Cacti's perspective, SNMP has two components (there are actually more):

1) Agent Component - That which responds to requests relative to a MIB based OID value (this is where the agents host system need to know how to respond to MIB requests, and in the case of Microsoft, integration into the MIB.BIN file via the MIBCC application)
2) Poller Component - A device which randomly (or not so randomly) uses the network to obtain data from SNMP agent's (aka Cacti). The Pollers host device does not needs the snmp agent unless you are a) Running Windoz (because I don't know why) or b) You want Cacti to graph it's performance.

Therefore, you should not have to "compile" another hosts agent MIB information to the Windoz MIB.BIN file. I think you are just a little confused.

There are MIB files that you place in a MIBS directory on your poller system to allow you to access intellegent, english language, information about each OID (download GetIF to see), but they are not needed for Cacti unless you are creating Templates.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

OK ... thanks a lot ... so why can't i SNMP request in the Private section of Windows Server with snmpget ???

Sure i'm confused, but i try to resolve me problem, and i all my action fail !!!

So ... give me a method to graph a number of session in my W2K Server with Cacti ... please !!!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok,

You need to obtain a copy of the Windows200x resource kit and find documentation on the MIBCC application. Then you can add additional information such as DHCP, DNS, IIS Web Server, and Other (eg. HP Insight Manager) information.

If you are using a Compaq/HP Server, HP actually has an excellent writeup as to how to use their product to integrate other mibs with the MIB.BIN file.

Good Luck,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

I have resolve the problem !!!

snmp.conf must have this line to can explore all oid in the MIB.
"view systemview included .1"

My snmp.conf just have :
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1

Pfff ...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, your agent is net-snmp and not microsoft. Net-snmp makes microsoft look quite weak.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
wookii
Posts: 25
Joined: Wed Mar 09, 2005 3:37 am

Post by wookii »

:D

Sorry for a mistake !!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest