Custom Templates do not have custom input fields

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
johnny5
Posts: 5
Joined: Wed Jul 25, 2012 10:24 am

Custom Templates do not have custom input fields

Post by johnny5 »

I've recently installed cacti (0.8.7i) using repos (ubuntu) and then added a web page speed test tool from this website; http://www.askaboutphp.com/44/cacti-...ng-part-1.html

After following the guide above I copied some templates so I can add a bunch of websites via CLI for monitoring. Trouble is its not working. Drilling down I have found that Cacti thinks there is no input field for the graph template I'm trying to use;

Code: Select all

# php -q /usr/share/cacti/cli/add_graphs.php --graph-template-id=47 --list-input-fields
Known Input Fields:(name, default, description)
[no results]
I have copied all these templates from a working version of cacti on an older install of ubuntu/cacti (0.8.7g);

Code: Select all

# php -q /usr/share/cacti/site/cli/add_graphs.php --graph-template-id=37 --list-input-fields
Known Input Fields:(name, default, description)
50:url          URL
I can't see any difference in any of the templates with the exception of names I've used. Anyone have any ideas? I asked my senior sys admin bud to take a look and he couldn't find anything wrong with my templates or data input methods. :(

I'll attach a picture of my data input method... anyone got any ideas?
Attachments
Cacti data input method
Cacti data input method
2012-07-25 09.47.39 am.png (60.14 KiB) Viewed 2750 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Custom Templates do not have custom input fields

Post by BSOD2600 »

Input looks correct. What about the data and graph template?
johnny5
Posts: 5
Joined: Wed Jul 25, 2012 10:24 am

Re: Custom Templates do not have custom input fields

Post by johnny5 »

Thanks for the reply, attached are the data & graph templates
Attachments
Graph Template
Graph Template
2012-07-25 12.09.15 pm.png (111.51 KiB) Viewed 2746 times
Data Template
Data Template
2012-07-25 12.08.20 pm.png (88.18 KiB) Viewed 2746 times
johnny5
Posts: 5
Joined: Wed Jul 25, 2012 10:24 am

Re: Custom Templates do not have custom input fields

Post by johnny5 »

Here is a picture of the custom script working on a domain I setup following the guide linked in the first post, I used this graph's dim/ds/graph for templates.
Attachments
working website
working website
2012-07-25 12.12.00 pm.png (37.6 KiB) Viewed 2746 times
johnny5
Posts: 5
Joined: Wed Jul 25, 2012 10:24 am

Re: Custom Templates do not have custom input fields

Post by johnny5 »

Also if I use the templates to make graphs, it works. I've just made 3-4 graphs for some common websites (google/yahoo/facebook) and they're working fine. Its something to do with the CLI command add_graphs.php thats not working correctly somehow...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Custom Templates do not have custom input fields

Post by BSOD2600 »

johnny5 wrote:Its something to do with the CLI command add_graphs.php thats not working correctly somehow...
Possibly already fixed in cacti 0.8.8a. If not, then a bug should be created http://www.cacti.net/bugs.php
johnny5
Posts: 5
Joined: Wed Jul 25, 2012 10:24 am

Re: Custom Templates do not have custom input fields

Post by johnny5 »

Possibly already fixed in cacti 0.8.8a. If not, then a bug should be created http://www.cacti.net/bugs.php
I'll try and get a hold of other versions of add_graphs.php and see if they work.
kenbright
Posts: 1
Joined: Tue Oct 09, 2012 12:48 pm

Re: Custom Templates do not have custom input fields

Post by kenbright »

thank you very much for the helpful advices. i was facing the same issues but everything is working fine now!
ken http://www.gutschein-ort.com | http://www.familien-gutschein.net
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests