Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
#!/bin/sh
#If you have a password stated in mldonkey then type it instead of "MyPassword":
AUTH="auth xxxxxx"
DOWN=$(echo -e "$AUTH\nbw_stats\nq"|netcat localhost 4000|grep Down|cut -f 1 -d \|)
kDOWN=$(echo $DOWN|cut -f 2 -d ' ')
echo "$kDOWN"
1. question. Can i run a shell script direct in "Data Input Methods" ?
2. I created a graph with this 2 Methods above, but the graph shows nothing...?
Dude,
I'm not quite sure that I understand everything you said. First, why do you use both scripts, the perl one and the shell? The shell script should work on its own (perhaps use echo -n to suppress newline).
For debugging, you may su to your cacti user (e.g. cacti or cactiuser or so; see your crontab) and run this script from the shell. Please post output. As for the xml attachments: Personally, I'd prefer some screenshots of the objects; for me its faster to debug. Another hint: Settings -> General -> logging level=Debug puts lots of debugging output into <path_cacti>/log/cacti.log. You will find the call of your shell script with the output produced and so on.
Reinhard
Dude,
well, that looks fine. Please have a look at the timestamp of the rrd. Does it get updated? Or check using "rrdtool info <rrd>". What about your graph? Still broken?
Reinhard