snmpd.conf question(s)

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

Moderators: Developers, Moderators

Post Reply
ideasculptor
Posts: 1
Joined: Fri Feb 10, 2006 7:05 pm

snmpd.conf question(s)

Post by ideasculptor »

I have cacti up and running ad everything works beautifully. However, I don't know a thing about snmp configuration on linux (redhat and suse, in this case). I am fairly certain that it should be possible to expose much more information than just exposed by the 'SNMP - Interface Statistics' data query that was installed by default and appears to be the only SNMP access to a regular linux host.

In particular, I am interested in paging activity, context switches, disk activity, etc.

I have browsed through the documentation, and found an item on graphing a single OID, but I have no idea how to figure out which OID to graph and how to make sure the hosts I am monitoring actually provide a value for that. Most of the snmp documentation that arises from a google search seems to assume a certain level of expertise that I don't have, and I haven't seen anything that mentions the parameters I am looking for specifically.

I suppose it is possible that I have to write little scripts that run vmstat and such, or grab values from /proc, and then insert them via an exec command in snmpd.conf, but that seems an extraordinarily complex way to do something which must be fairly frequently done. Is there some shortcut I am missing, or somewhere that I can find predefied snmpd.conf sections that I can cut and paste into my own?

THanks

--sam
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: snmpd.conf question(s)

Post by gandalf »

ideasculptor wrote:In particular, I am interested in paging activity, context switches, disk activity, etc.
There are SNMP Templates for this in the Templates forum
I have browsed through the documentation, and found an item on graphing a single OID, but I have no idea how to figure out which OID to graph and how to make sure the hosts I am monitoring actually provide a value for that. Most of the snmp documentation that arises from a google search seems to assume a certain level of expertise that I don't have, and I haven't seen anything that mentions the parameters I am looking for specifically.
Best starting point is

Code: Select all

snmpwalk -c <your community, often: public> -v 1 <target host> system
Replace "system" by "interface" or "disk" etc. to see other OIDs responding (hopefully). See some of my signature links, perhaps this helps.
I suppose it is possible that I have to write little scripts that run vmstat and such, or grab values from /proc, and then insert them via an exec command in snmpd.conf, but that seems an extraordinarily complex way to do something which must be fairly frequently done. Is there some shortcut I am missing, or somewhere that I can find predefied snmpd.conf sections that I can cut and paste into my own?

THanks

--sam
Again, see the Templates forum. There are lots of ressources to be found ...
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests