Cacti Variables in Input String?

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

Moderators: Developers, Moderators

Post Reply
kruz
Posts: 23
Joined: Tue Sep 19, 2006 2:19 pm

Cacti Variables in Input String?

Post by kruz »

hey guys

i have a data input method:



input type: script/command

input string: sh /blahblah/script.sh <returnvalue> |host_hostname|

shouldnt cacti fill in |host_hostname| with the hostname of the graph i append this to??


please help me as im trying to make my graph versital


thank you
`KruZ~
Bigel0w
Posts: 10
Joined: Thu May 12, 2005 1:07 pm
Location: San Diego, CA
Contact:

use "Special Type Code"

Post by Bigel0w »

Should be:

input string: sh /blahblah/script.sh <returnvalue> <hostname>

Then select "hostname" in Input Fields and type hostname under "Special Type Code" section.


Alex,
kruz
Posts: 23
Joined: Tue Sep 19, 2006 2:19 pm

Post by kruz »

type hostname under special field?
or

|host_hostname|


thanx man!


ill try this out.
Bigel0w
Posts: 10
Joined: Thu May 12, 2005 1:07 pm
Location: San Diego, CA
Contact:

Post by Bigel0w »

Just hostname it shows some examples in the field next to it. I used the Unix ping as an example when I created my own templates.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try second to last link of my signature. Currently, I'm too confused with all those postings. So I would require a clean start
Reinhard
kruz
Posts: 23
Joined: Tue Sep 19, 2006 2:19 pm

Post by kruz »

thanx lvm, and the other dude it worked!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest