Error: This script appears to have no input values
Moderators: Developers, Moderators
Error: This script appears to have no input values
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 ??
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 ??
<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
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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
Follow http://docs.cacti.net/manual:087:4_help ... #debugging
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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 ..
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 (18.82 KiB) Viewed 3283 times
-
- sample1.png (8.03 KiB) Viewed 3283 times
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Who is online
Users browsing this forum: No registered users and 2 guests