John You can run the script directly from the target eg target[thing]: `/usr/mrtg/myscript.scr`
The script must return 4 values each on their own line. The first two must be whole integer data while the other two must be text (hostname and uptime to be exact but mrtg doesn't really care as long as it is text. Eg 56 235453 Thing Some More text Dave -----Original Message----- From: John [mailto:[EMAIL PROTECTED] Sent: Thursday, 14 August 2003 2:07 PM To: [EMAIL PROTECTED] Subject: [mrtg] target syntax problems. i have a perl script that is collecting all my data (via telnet/ssh) and sticking it into 2 hashs. I would like to use one has for input and the other for output. The problem is i don't understand what the correct format is for target without using back quotes. If i only use 1 var it works fine (well if fine means i only track half of what i want). example target[thing]: 56 what i've tried is target[thing]: 56 235453 and target[thing]: 56&235453 and a few others i can't think of. This is a sample of the .cfg Directory[thing]: thing YLegend[thing]: Connections/sec LegendI[thing]: Connections: LegendO[thing]: Bytes TCP ShortLegend[thing]: Conns/sec WithPeak[thing]: ywmd MaxBytes[thing]: 300000000 Options[thing]: growright, gauge, nopercent Title[thing]: <H1> Connections for thing </H1> Target[thing]: 1 PageTop[thing]: <H1> thing Connections </H1> -- 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 This e-mail (including any attachments) may contain confidential or privileged information and is intended for the sole use of the person(s) to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify the sender of the message or send an e-mail to mailto:[EMAIL PROTECTED] immediately, and delete all copies. Any unauthorised review, use, alteration, disclosure or distribution of this e-mail by an unintended recipient is prohibited. Ergon Energy accepts no responsibility for the content of any e-mail sent by an employee which is of a personal nature. Ergon Energy Corporation Limited ABN 50 087 646 062 Ergon Energy Pty Ltd ABN 66 078 875 902 -- 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
