Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu May 25, 2017 1:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Variables in custom data of Data sources
PostPosted: Fri May 04, 2012 7:56 am 
Offline

Joined: Tue Apr 03, 2012 10:50 am
Posts: 4
There is a problem that variables does not work in custom data of Data Sources.
There is a little patch for "/var/www/cacti/cmd.php" fixes this problem in attach. Please add it to all future versions.
Sincerelly yours Vladimir.


Attachments:
File comment: for "/var/www/cacti/cmd.php"
cacti_variables.patch [158 Bytes]
Downloaded 159 times

_________________
Dear administrators of forums.cacti.net!
My primary nickname is "Checker" and this is not a SPAM!;
Top
 Profile  
 
 Post subject: Re: Variables in custom data of Data sources
PostPosted: Sat May 05, 2012 6:38 am 
Offline

Joined: Sat May 05, 2012 4:25 am
Posts: 1
Guys, is there any opinion or response on this issue?

Let me describe it in more details:
We've created data template where one of "Custom Data" entry contains |host_hostname| macro. It's supposed to be automatically substituted during data source creation time, or during data source execution time. But it doesn't((( So script, specified in "Data Input Method", still be invoked with "service:jmx:rmi:///jndi/rmi://|host_hostname|:8006/jmxrmi" argument!

Attached patch helped us to solve this problem on the level of data source execution in cmd.php. I've attached more readable version of patch.


Attachments:
File comment: Patch that fixes the problem
cacti_variables.patch.txt [541 Bytes]
Downloaded 186 times
Top
 Profile  
 
 Post subject: Re: Variables in custom data of Data sources
PostPosted: Sat May 12, 2012 8:23 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Should be part of 088a already
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Variables in custom data of Data sources
PostPosted: Tue Nov 29, 2016 12:26 pm 
Offline

Joined: Tue Nov 29, 2016 12:13 pm
Posts: 2
gandalf wrote:
Should be part of 088a already
R.


I'm really sorry to revive such and old post, but I'm having this problem and the patch doesn't seem to have made it.
I added the suggested code but it did not produce the desired result :(

I have Version 0.8.8g


Top
 Profile  
 
 Post subject: Re: Variables in custom data of Data sources
PostPosted: Mon Dec 05, 2016 12:07 pm 
Offline

Joined: Tue Nov 29, 2016 12:13 pm
Posts: 2
*bump*

Can anyone chime in on this subject?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group