ability to specify SNMP port number

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
bbice
Cacti User
Posts: 71
Joined: Mon May 13, 2002 6:53 pm

ability to specify SNMP port number

Post by bbice »

One thing that might be useful is the addition of a port number field to the page that asks for data for doing an SNMP query. I sometimes have several SNMP agents running on a single machine (on separate ports) and I may want to monitor variables on each of them.

For instance, I may be running the SNMP software that comes with Solaris on one port, but also running net-snmp on another (so I can monitor things like the number of ClearCase licenses in use or the number of SPAM messages blocked or whatever), and I may also be running SQUID which also has SNMP queriable values on a third port.

Right now, in cacti all I can specify is IP/hostname, community, and OID, right?

Brent
Guest

Post by Guest »

Hello,

You have any solution yet for the port problem in cacti ?
I have the same problem here because i´m running portbased NAT
to reach different device vian SNMP.

Thanks,

Holger
bbice
Cacti User
Posts: 71
Joined: Mon May 13, 2002 6:53 pm

Post by bbice »

'Fraid not. I poked around in the guts enough to figure out how to make the snmp queries
work even using the built-in php routines which use the net-snmp libraries I compiled, and
also figured out how to make it do retries (which were necessary because I was also running
MRTG at the exact same time that cacti fired off it's data collection).

But the port really needs to be an option stored with each data object -- it would need to be
a new column in one or more of the tables and at least one form would need to be modified.
I didn't have time to dig into the code enough to implement it myself and haven't arranged
getting CVS access (so I could check in my changes).

I've got a few other projects on the back burner, but if nobody else takes this on, I may...
eventually... :-)

Brent
Bidds

Squid and non-standard SNMP ports

Post by Bidds »

Hi,

I found that the inbuilt SNMP code is happy to work with a fairly standard address:port syntax like most other applications.

I'm currently monitoring Squid's SNMP on port 3401 with the SNMP host set as localhost:3401, and the community and OID as you would normally use.

Hope this helps,

DJH.
bbice
Cacti User
Posts: 71
Joined: Mon May 13, 2002 6:53 pm

Thanks!

Post by bbice »

Aha! Thanks for that tidbit. It certainly DOES help. (grin) And it's a whale of a lot easier
than modifying the database schema and rewriting bunches of the PHP code.
Koshatul
Posts: 1
Joined: Sat Aug 16, 2003 1:19 pm
Contact:

Post by Koshatul »

is that in 0.8.2a ?
if i set the host, it's ok, but it keeps asking for the ip address to be filled in.
xnet

Post by xnet »

Hello!

Anybody got scripts for graphing squid data (cache hits, size...) on snmp-squid port 3410?
User avatar
evert
Posts: 27
Joined: Sun Sep 21, 2003 6:39 am
Location: Sarpsborg, Norway
Contact:

Re: Squid and non-standard SNMP ports

Post by evert »

Bidds wrote:Hi,

I'm currently monitoring Squid's SNMP on port 3401 with the SNMP host set as localhost:3401, and the community and OID as you would normally use.

Hope this helps,

DJH.
Can you give us some more info/details on this? IMHO there are quite some people who'd like to do this... 8)
Regards,
Evert Meulie
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests