pfSense Support Subscription

Author Topic: Need More Info from SNMP  (Read 20546 times)

0 Members and 1 Guest are viewing this topic.

Offline milpo2717

  • Newbie
  • *
  • Posts: 2
    • View Profile
Need More Info from SNMP
« on: November 04, 2005, 07:54:23 pm »
First, let me say PFSense is an outstanding piece of software.  Love it!

My question is it appears that only network stats can be derived from from the SNMP mibs.  How can I obtain information like CPU utilization, memory utilization, disk space usage?

I also need help with getting interface utilizations (Rx and Tx), Tx Utilization (%), Traffic in Kbps (both Rx and Tx), and Errors in pkts.

Is this possible?

Jonathan Merrill
MCP, CCA, NET+
www.gomerrill.com

Offline Myntric

  • Jr. Member
  • **
  • Posts: 33
    • View Profile
Re: Need More Info from SNMP
« Reply #1 on: November 04, 2005, 10:37:21 pm »
Jonathan,

If you use a MIB Browser to walk the MIB, you will see the interface information.  The transmit utilization is (to my knowledge) does not have a standard MIB OIB in the SNMP MibII library, but can be obtained via a method found on http://www.faqs.org/faqs/snmp-faq/part1/, which states:

(DELTA(ifInOctets) + DELTA(ifOutOctets)) * 8
-------- * 100
(DELTA(sysUpTime) / 100) * 1 540 000

where DELTA(attribute) means the difference of the value
of attribute between two polls. Of course, the values for
ifInOctets, ifOutOctets and sysUpTime should be requested
in one single PDU.

For work, I use a great program to walk MIB's from a company called iReasoning (http://www.ireasoning.com) that I've found more than valuable.  As an example if what I looked at when browsing the MIB, load RFC1213 and UCD-SNMP-MIB into your MIB Tree.  If you need more help, let me know.  Thanks!

Mike

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
    • View Profile
    • pfSense
Re: Need More Info from SNMP
« Reply #2 on: November 04, 2005, 10:40:53 pm »

Offline Sharaz

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
Re: Need More Info from SNMP
« Reply #3 on: November 05, 2005, 08:21:47 am »
sounds like you might be looking for something like this:



i use rrdtool, frontended by cacti.  right now i have the same problem with the mibs, so far i only get interface information, but ill walk the mibs soon too.

if you want to see my *very* small cacti project, its here:

http://mrtg.dfwlp.com/mrtg/dfwlp.com/zeus.dfwlp.com_7.html
Jonathan

Offline milpo2717

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Need More Info from SNMP
« Reply #4 on: November 06, 2005, 10:28:04 pm »
Here is what I am dealing with.  I am using the network monitoring product called OpManager from ManageEngine (http://manageengine.adventnet.com/products/opmanager/index.html?ad-main).

W've gotten hitched to it as it allows help desk integration and so on.  However, there is a fair amount of getting it just right to have the monitoring go without a hitch.

No matter what I do - I can't get the aforementioned stats to appear.  Very frustrating.  OpManage recognizes all the interfaces on the firewall, but doesn't actively track the stats.  Im told it's because the mibs are not right.

Anyone run this too and can provide guidance?

JMM

Offline Snille

  • Newbie
  • *
  • Posts: 10
  • If you don't have it, make it!
    • View Profile
    • www.snille.net
Re: Need More Info from SNMP
« Reply #5 on: January 26, 2006, 09:49:01 am »
Hi all SNMP users.... :)

Dos anyone know what OID to use for reading the CPU usage from the pfSense box?
Is there any other information about the SNMP traps in pfSense then the http://cvstrac.pfsense.com/tktview?tn=257
Or maybe a way to read it out?
The only truth - Cause and effect!

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
    • View Profile
    • pfSense
Re: Need More Info from SNMP
« Reply #6 on: January 26, 2006, 11:39:46 am »
Please try an image from http://www.pfsense.com/~sullrich/1.0-BETA1-TESTING-SNAPSHOT-1-25-06/ as it has a lot of expanded MIBS now that we imported BSNMPD from FreeBSD-Current.

Offline Wookie7

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Need More Info from SNMP
« Reply #7 on: January 31, 2006, 08:15:43 am »
Please try an image from http://www.pfsense.com/~sullrich/1.0-BETA1-TESTING-SNAPSHOT-1-25-06/ as it has a lot of expanded MIBS now that we imported BSNMPD from FreeBSD-Current.

I am downloading the snapshot, but could you tell me if some 802.11x association tables are included? I would like to try out pfSense as an access point/router combination but our monitoring currently uses Cisco SNMP on 1200 series APs. Having an association table with rssi, errors, duplicates, etc. is a must for me. I hope this is in, or will be in pfSense at some point. Does BSNMPD have wireless client stats?

Offline Wookie7

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Need More Info from SNMP
« Reply #8 on: January 31, 2006, 08:24:36 am »
I may be answering my own question but it looks like wireless MIBs may not be included until the FreeBSD 6.1 release?... or is the the documentation of it?

http://lists.freebsd.org/pipermail/freebsd-doc/2006-January/009562.html

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
    • View Profile
    • pfSense
Re: Need More Info from SNMP
« Reply #9 on: January 31, 2006, 11:47:10 am »
We are using bsnmpd from current so if its going to be in RELENG_6_1 then it should be in there too.

Offline mbreitba

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Need More Info from SNMP
« Reply #10 on: August 30, 2006, 01:33:09 pm »
Has anyone figured out what the OID's are for monitoring CPU usage?  I'd really like to graph that info.

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
    • View Profile
    • pfSense
Re: Need More Info from SNMP
« Reply #11 on: August 30, 2006, 01:37:05 pm »

Offline mbreitba

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Need More Info from SNMP
« Reply #12 on: August 30, 2006, 05:55:28 pm »
So from what I can tell, you can't monitor CPU usage via SNMP?  I'm not sure exactly what I'm looking at in that ticket, but I think it's the list of all of the OID's that I can querry.  Am I in the ballpark?

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
    • View Profile
    • pfSense
Re: Need More Info from SNMP
« Reply #13 on: August 30, 2006, 07:11:35 pm »
You should check the file locations mentioned in the article as not all of the mibs are ouputted on the same page.