different port numbers

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

different port numbers

Post by mvam »

not sure if this has been requested (couldnt find it from a search), but the ability to use a different port number in the custom data section of a data template would be nice. for instance you have something like net-snmp running on a non-default port say 10161 and your application is running on the default port of 161. adding a section in the data template would save the time of creating a second host for the new port number.

just a thought..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Thats a very unique situation, so it would warrent a custom data template / query. Take a look in the Informaton forum on how to create/modify existing templates/scripts.
ehall
Cacti User
Posts: 246
Joined: Fri Dec 09, 2005 3:42 pm

Post by ehall »

I agree with the OP. The TrippLite UPS software runs on a funny port but uses plain old SNMP, and so the options are either hard-code the port number (inflexible) or create a separate host. The OP doesn't even have that choice with data templates, but going to queries isn't a whole lot better.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The ability to have multiple agents on a single host, each with their own unique port number, is currently supported in Cacti 0.8.x cmd.php and Cactid 0.8.6f and above.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

hmmm.. what am i missing then?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Look at the generic snmp graph template. You should be able to specify an alternate snmp port number for that host. Therefore, since up status is determined by specifying the snmp port with sysUptime on it, you would specify 10161 for the host. Then for the other snmp counters on port 161, you would specify the other port number for those hosts either using the default "generic snmp" graph template, or by creating your own.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

cool, thanks.
alpha
Posts: 1
Joined: Wed Aug 16, 2006 12:31 pm
Contact:

Post by alpha »

TheWitness wrote:Look at the generic snmp graph template. You should be able to specify an alternate snmp port number for that host. Therefore, since up status is determined by specifying the snmp port with sysUptime on it, you would specify 10161 for the host. Then for the other snmp counters on port 161, you would specify the other port number for those hosts either using the default "generic snmp" graph template, or by creating your own.

TheWitness
I till now shall not understand as it is possible to realize data polling from different ports in on the device. I unfortunately have not found in a generic snmp graph template snmp port field, moreover, snmp port is not transferred in " Get SNMP " data input method. It seems to me in general impossible to use what or port except for 161 in Get SNMP method. Which I have found the unique decision, this instruction of port in a field hostname in the "device" tab, for example: "any_host:snmp_port". Correct for me if I am wrong.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I see where you are coming now. Gee's, I always thought it was there. My appologies. Can you please goto http://bugs.cacti.net and open a bug report about this ASAP!

Regards,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests