Error: This script appears to have no input values

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

Moderators: Developers, Moderators

Post Reply
fosiul
Posts: 12
Joined: Thu Jun 04, 2009 7:03 am

Error: This script appears to have no input values

Post by fosiul »

HI,
i am following this article :
http://forums.cacti.net/about30124.html&highlight=
so i add the script :
#!/bin/bash

CURL=/usr/bin/curl
$CURL -m 60 -w "total:%{time_total} dns:%{time_namelookup} connect:%{time_connect} pretransfer:\
%{time_pretransfer} starttransfer:%{time_starttransfer}" -o /dev/null -s $1

NOw, as this article said,
" So the complete Input string is: /home/cactiuser/measure.sh <url> "

so i put this way : /root/measure <www.domain.com>
but when i am clicking on ADD button its saying

Error: This script appears to have no input values, therefore there is nothing to add.

so, what i am missing ?? what does it mean,?? what do i need to modify the scrept ??

i saw another article :http://forums.cacti.net/about24594.html&highlight=
but i am not clear, what it mean by "adding something like <host> <arg1> etc ?

can any one please help me to understand ??
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

<url> is EXACTLY what you're suppose to put in the input string -- don't put in a real URL. It's the placeholder for an input value. Read http://docs.cacti.net/manual:087:3a_adv ... ut_methods
fosiul
Posts: 12
Joined: Thu Jun 04, 2009 7:03 am

Post by fosiul »

HI
thanks, i have done that job

but i have Same error as the author got first time,
there is not any graph.

and the solution , he gave is, to set the max value to 100

which i guess

from Data source item -> maximum value = 100

but still its not showing any graph...

any idea
thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Your question regarding the script really belongs in the thread where you got it from.

Follow http://docs.cacti.net/manual:087:4_help ... #debugging
fosiul
Posts: 12
Joined: Thu Jun 04, 2009 7:03 am

Post by fosiul »

HI
Sorry didnot understand what you meant..

but will really appreciate if you could of help me

i have done as the author said, and i am having the same problem as the author had, but author fixed the problem by this " it was indeed the default max value being zero. One I flipped it to 100 my graphs started showing. "

so my understanding is: datasource->edit data source item->set maximum value to 100
and i have done this,
but still graph is not showing.

Note : I can gurentee rrd file is gathering the proper data and if i use create graph command it will create the png file and it will show accurate data.( i have attached the sample1.png which i create by rrdtool create graph command)

so that meant, something in cacti setting which related to showing graph is missing,

I have attached the sample1.png what i have created by rrdtool create graph command also part of cacti page

please advise ..
Attachments
cacti-graph.GIF
cacti-graph.GIF (18.82 KiB) Viewed 3281 times
sample1.png
sample1.png (8.03 KiB) Viewed 3281 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Regarding the data source max... go to the data template you imported for this script. Find the data source and change the max field to 100. Then delete the rrd file which the graph uses (look in graph debugging is the easiest). Cacti will re-create the file with the max.
fosiul
Posts: 12
Joined: Thu Jun 04, 2009 7:03 am

Post by fosiul »

Hi thanks
did you meant this, please check the picture
Attachments
cacti-datasource.GIF
cacti-datasource.GIF (33.23 KiB) Viewed 3251 times
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please deselect the per minute RRA from the Data Template. That is a problem. You then have to delete the RRDfile and let it be recreated. It looks to me that the rest of your problem is "training".

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 2 guests