snmpgets are hammering my box

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

Moderators: Developers, Moderators

Post Reply
valen
Posts: 11
Joined: Fri Oct 11, 2002 8:44 am

snmpgets are hammering my box

Post by valen »

My monitoring box is a retrofitted cobalt raq3, which was not a powerful machine, even when it was new.

I'm now monitoring a load of machines, each with dozens of services, with cacti (for graphing purposes) and nagios (for alerting).

However, the huge number of snmpgets is killing the machine. snmpget has to read in over a meg of SNMP MIB files each time it's started up. And, cacti seems to call it in parallell, so I've a constant load of around five.

Is there any plans to make cacti use the PHP versions of the snmpget calls? This would reduce overhead immensely...
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Cacti can already do this :-)

You basically either need to compile SNMP support into the PHP binary, or install the php-snmp package on binary distributions.

About compiling the PHP binary with SNMP support, I mention how to do it here:

http://www.raxnet.net/board/viewtopic.php?p=1054#1054

Once this is complete, cacti should automatically detect the presence of this module. If not, it can always be forced on in 'include/config.php' line 59.

-Ian
valen
Posts: 11
Joined: Fri Oct 11, 2002 8:44 am

woohoo

Post by valen »

I love this software. You guys think of everything!

:D

John
phriday613
Posts: 32
Joined: Thu Aug 15, 2002 10:29 am
Location: ct
Contact:

Post by phriday613 »

"You guys?" i think just ian created it :P

not bad for a young 17 year old, huh?!
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Thanks! 18 to be exact :wink:, not like that matters much though. Anyhow, I am glad it is working as you expected, let me know if you have any further problems/questions.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest