Problems entering SNMP data

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Guest

Problems entering SNMP data

Post by Guest »

Hi,
Have been playing with various tools for gathering data from hosts via snmp and charting it. I've come across Cacti, and it looks the best of the bunch by a long chalk. I'm having a severe dose of brain fade trying to get it to work though!

I want to capture (for example) processor busy from a Win2k box. I can snmpwalk the server from my linux box running cacti, and find that the host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.2 oid may give me something useful.

How/where do I enter the SNMPGET information into Cacti? If I look at the 'rrdtool data source config' screen I see that 'Get SNMP data' is an option, but it's not obvious where I should enter the other parameters (OID, IP address etc). Am I missing something here?

(Cacti 0.6.8, UCD-SNMP 4.2.5, Apache 1.3, PHP Unknown)

Cheers,
Chris
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Doesn't sound too hard... :D

Add a new data source with the following non-default settings:

Data Source Type: GAUGE
Data Input Type: Get SNMP Data
Associated RRA's: Select all of them
Maximum Value: 100

Click save, then click 'edit data' next to that newly created data source.

You can specify the hostname, community and OID for your Win2k server here.

-Ian
Guest

Post by Guest »

:D Thanks Ian,
All working wonderfully. I think Cacti has just found its rightful place in our monitoring strategy!

One other question has occurred to me: Is there an easy way of exporting the 5 minute interval RRDTool data into text/csv/tsv format? I'd like to use another tool to take the data from cacti and perform some statistical analysis on it. (Trends, correlations etc). I'm thinking about scheduling a nightly cron export to a flat file, and number-crucnhing that. Has anybody managed to accomplish something like this?

Cheers,
Chris
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The best way to get useful information out of an rrd file is to run an rrdtool dump on it. The sytax is as follows:

Code: Select all

rrdtool dump filename.rrd > filename.xml
This will turn the rrd file into a something much more readable/parsible.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests