Dynamic port for script/template

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
miaviator
Posts: 2
Joined: Thu Feb 06, 2014 1:53 am

Dynamic port for script/template

Post by miaviator »

I'm using a monitoring script from here: https://bitcointalk.org/index.php?topic=76502.0

I'm looking for a way to pass the TCP Ping Port to the script in order to monitor machines which are not on port 4028 which is currently hard coded in the script.

There is a cash/crypto bounty on solving this issue as it is losing me money.
Attachments
cgminer-cacti-template-0.01.zip
(26.63 KiB) Downloaded 26 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Dynamic port for script/template

Post by phalek »

would the snmp port do as well ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Dynamic port for script/template

Post by BSOD2600 »

Sure, one can edit the script/templates to pass in a specific port number.

Sounds like you need to hire a developer ;-)
miaviator
Posts: 2
Joined: Thu Feb 06, 2014 1:53 am

Re: Dynamic port for script/template

Post by miaviator »

BSOD2600 wrote:Sure, one can edit the script/templates to pass in a specific port number.

Sounds like you need to hire a developer ;-)

I hired a developer. I just couldn't pay myself :)

phalek wrote:would the snmp port do as well ?
This was actually the solution. I shifted all of the script arguments up one iteration and made arg 1 the snmp_port and then passed snmp_port to the script. Since I don't actually use SNMP it works out pretty well.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests