In simple terms, you need to run Target[yourtarget]: 'yourscripthere' The script needs to return 4 lines of output Minval Maxval Uptime SystemName
Example, in a script I wrote to poll a RADIUS server for number of active connections, I do all the mumbo jumbo, and then return this: echo "$count_total\n"; echo "$count_total\n"; echo "a long time.\n"; echo "myRAS\n"; I don't have a Min/Max, so I just return the same value twice. I also don't care about uptime, so I don't calculate it. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Shane Presley > Sent: Monday, February 28, 2005 10:33 AM > To: [EMAIL PROTECTED] > Subject: [mrtg] Remote Scripts > > Does anyone have any examples or pointers to documents on how to run a > remote script, and graph the results. > > I run MRTG on a centralized linux system. I have a mainframe box with > a unix interface. I can run basic unix commands on it. I have a > script that tests internal response time. It returns a single value > (milliseconds). I'd like to graph that. > > But I need to get that data off to my MRTG server. Any suggestions? > > Thanks > Shane > > -- > Unsubscribe mailto:[EMAIL PROTECTED] > Archive http://www.ee.ethz.ch/~slist/mrtg > FAQ http://faq.mrtg.org Homepage http://www.mrtg.org > WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
