Creating multiple values scripts
Moderators: Developers, Moderators
Creating multiple values scripts
Hi,
I have written a php script that ends with the following line
echo "e:".$row_e['e']."\np:".$row_p['p']."\nd:".$row_d['d'];
and that prints something like
e:9154
p:0
d:24510
I go to Data Input Methods, add a new one and give it 3 outputs named d,e and p. (i have tried the data source both like "Script/Command" and "script - script server PHP")
Then I go to Data Sources, where I add 3 data source items.
-If the data source is Script/command, I can choose what Data Source Item is what output.
-If the Data source is script - script server PHP, I cant choose that, I just make 3 Data Source Items.
On both cases, nothing shows up when i try to grapth it, and no error messages are displayed anywhere.
Any guidelines where to move next and what is the correct setup? cheers.
I have written a php script that ends with the following line
echo "e:".$row_e['e']."\np:".$row_p['p']."\nd:".$row_d['d'];
and that prints something like
e:9154
p:0
d:24510
I go to Data Input Methods, add a new one and give it 3 outputs named d,e and p. (i have tried the data source both like "Script/Command" and "script - script server PHP")
Then I go to Data Sources, where I add 3 data source items.
-If the data source is Script/command, I can choose what Data Source Item is what output.
-If the Data source is script - script server PHP, I cant choose that, I just make 3 Data Source Items.
On both cases, nothing shows up when i try to grapth it, and no error messages are displayed anywhere.
Any guidelines where to move next and what is the correct setup? cheers.
I have tried to edit the exit to many ways.
e:9154 p:0 d:24511alianos@nocusers
doesnt work also, should I add a /n at the end?
Also what makes me wonder most is the fact that I cannot choose what Data Source Item is supposed to be each Output. Here is a SS.
e:9154 p:0 d:24511alianos@nocusers
doesnt work also, should I add a /n at the end?
Also what makes me wonder most is the fact that I cannot choose what Data Source Item is supposed to be each Output. Here is a SS.
- Attachments
-
- output_problem.JPG (99.44 KiB) Viewed 2329 times
On command line I type
php nisides.php and that generates
e:9244 p:3 d:25521
name Nisides
I go to "Data Input Methods" create a new one
Input type -> script/command
Input String ->php <path_cacti>/scripts/nisides.php
Input Fields
No Input Fields
Output Fields
Name Field Order Friendly Name Update RRA
d 0 (Not In Use) disabled Selected Delete
e 0 (Not In Use) energopoiimeno Selected Delete
p 0 (Not In Use) pending Selected Delete
When thats done I go to data templates, create a new one
Name Nisides
Data Input Method Nisides
1: d 2: e 3: p
Internal Data Source Name d
Output Field d - disabled (from the dropdown list)
and similar for e and p
Then I go and graph the values, the graph is generated with no errors, but no line is apearing. (seems like there are no values in the database)
php nisides.php and that generates
e:9244 p:3 d:25521
name Nisides
I go to "Data Input Methods" create a new one
Input type -> script/command
Input String ->php <path_cacti>/scripts/nisides.php
Input Fields
No Input Fields
Output Fields
Name Field Order Friendly Name Update RRA
d 0 (Not In Use) disabled Selected Delete
e 0 (Not In Use) energopoiimeno Selected Delete
p 0 (Not In Use) pending Selected Delete
When thats done I go to data templates, create a new one
Name Nisides
Data Input Method Nisides
1: d 2: e 3: p
Internal Data Source Name d
Output Field d - disabled (from the dropdown list)
and similar for e and p
Then I go and graph the values, the graph is generated with no errors, but no line is apearing. (seems like there are no values in the database)
Who is online
Users browsing this forum: No registered users and 0 guests