swooningfish / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

Per-host values for SSH port (and application port) #161

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We have a mixture of different servers, some of which have SSH running on a 
non-standard port and some of which have Apache running on a non-standard port.

Would it be possible to add SSH port and application port as input fields in 
the data query and as command line options to ss_get_by_ssh.php so we can 
specify them on a per-host basis?

Original issue reported on code.google.com by ladadad...@gmail.com on 15 Oct 2010 at 2:37

GoogleCodeExporter commented 8 years ago
Hi!  Yes, that would be possible to do.  Have you looked at the --mpds feature?

Original comment by baron.schwartz on 15 Jan 2011 at 6:22

GoogleCodeExporter commented 8 years ago
I've also tried the --mpds option to generate a template with a per host SSH 
port and this return me exactly the standard template.
That's what I've done : 
perl tools/make-template.pl --script scripts/ss_get_by_ssh.php 
definitions/gnu_linux_definitions.pl --mpds port > 
template_unix_requiring_port.xml
I've also tried with the "port2" as said in the wiki, but got the same result...

Original comment by herve.ma...@kosmos.fr on 19 Jan 2011 at 4:06

GoogleCodeExporter commented 8 years ago
Just to say I get it work by using cacti's UI.
Modify Data Input Method: 
 - add --port <port> parameter to the command line, 
 - add a new input field associated to <port>
Modify Data template:
 - enable "Use Per-Data Source Value" in Custom Data for port parameter.

Hope it will help someone...

Original comment by herve.ma...@kosmos.fr on 20 Jan 2011 at 10:04

GoogleCodeExporter commented 8 years ago
This should be fixed in r540.

Original comment by baron.schwartz on 22 Jan 2011 at 2:31