Hi. That might work. I'm just having trouble wrapping my head around having a .cfg file that can parse four values.
The numbers that are returned are actually cable modem counts on four seperate downstream channels of a cmts. Using expect and some shell, I extract the four values: 85 102 101 74 Is what gets returned from running the script. I have no problem doing a mrtg cfg file for 2 values and scripting, but 4 and using rrd/routers2 is a bit harder. Thanks, I'll see what I can work out. Keith On Wed, 2 Jan 2013 [email protected] wrote: |->Hey Keith, |-> |->Here's just a thought, maybe point you in the right direction... |-> |->You could have your script take say 4 separate arguments. One argument for |->each of the values you plan to output, I |->think you said you are outputting 4 Values...? |-> |->Then You would have 4 "sections" in you .cfg File, one for each of the |->values the script outputs. Then for each "Target:" |->line you would use that specific argument to get that specific value... |-> |->For Instance, let's say your script (call it "get_cpu-usage") is printing |->CPU-Usage and the 4 Values printed are: |-> Line 1 == 1-Min Avg |-> Line 2 == 5-Min Avg |-> Line 3 == 10-Min Avg |-> Line 4 == 1-Hour Avg |->Have a device that I cannot poll via SNMP for some values. I wrote |->a little expect/shell script to get me those values. |-> |->I use small perl scripts to poll data and feed those into MRTG but |->those just return two values, which are used to build graphs and |->work just fine. |-> |->The expect/shell script actually returns 4 integer values. |->I have read that it appears I can only use RRD and routers2 to be |->able to combine and display all 4 values on a graph. |-> |->I have seen some examples of how others have done this, but the |->few I have seen are polling multiple devices and combining those into |->one graph. |-> |->I am polling one device that returns 4 values. |-> |->How can I create a .cfg file that can take those 4 values and create |->one graph? |-> |->Thanks, |->Keith |-> |-> |-> |->_______________________________________________ |->mrtg mailing list |->[email protected] |->https://lists.oetiker.ch/cgi-bin/listinfo/mrtg |-> |-> |-> _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
