snmpwalk scrubbing....

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
eecue
Posts: 27
Joined: Thu Nov 07, 2002 7:11 pm
Location: Los Angeles, CA USA
Contact:

snmpwalk scrubbing....

Post by eecue »

ok here's what i'm working on right now for cacti (which is really great btw thanks raX!!!)

i use snmpd and ipf to keep track of certain protocols i'm interested in using ipf rules like this:

count in on xl0 proto tcp from any to any port = 389

i have about 80 of such rules currently. if i snmpwalk through my rules i see all of them and their titles and counter values no problem. i am going to make a script that will walk though UCD-IPFILTER-MIB::ipfAccIn (or what ever oid you want to walk through really) and set up data source for each of the counters.

that way when i make changes to the ipf rules i can easily generate graphs of each of them without having to click through a million php pages.

after i make this i am going to write a similar script that will set up monitoring of mysql, httpd process, cpu load, mem usage, disk usage for any host i choose by simply plugging in the IP address.

these two scripts will make my life much easier.

i will keep everyone updated as to my status.

-eecue
User avatar
eecue
Posts: 27
Joined: Thu Nov 07, 2002 7:11 pm
Location: Los Angeles, CA USA
Contact:

Post by eecue »

ok so my first question is this:

what db tables do i need to update to create new data source? is there db schema documentation somewhere?

and also which tables do i need to update to create a graph?

thanks!
User avatar
eecue
Posts: 27
Joined: Thu Nov 07, 2002 7:11 pm
Location: Los Angeles, CA USA
Contact:

Post by eecue »

i saw the cacti_inject script but i'm going to write something similar in pure php.

i don't like that fact that i have to install a bunch of perl modules.

this is going to be fun!

-eek
User avatar
eecue
Posts: 27
Joined: Thu Nov 07, 2002 7:11 pm
Location: Los Angeles, CA USA
Contact:

Post by eecue »

ok it's all done!!!!

here check it out

http://eecue.com/ipf_scrubber.txt

i need to tweak the graph hierarchey so it creates and uses a new sub heading for each ipf group...

-eecue
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests