1. First data
2. Second data
3. Uptime
4. Hostname
If your MRTG is on the same server you are monitoring, its easy. If not, find a way to for the script to query the target host through tcp/udp.
Your mrtg config should look like this.
Target[prepost]: `/usr/bin/prepost.pl`
Directory[prepost]: prepost
MaxBytes[prepost]: 48
Title[prepost]: Prepaid / Postpaid
PageTop[prepost]: <H1>Prepaid / Postpaid</H1>
Options[prepost]: gauge, absolute, growright, nopercent, unknaszero
YLegend[prepost]: Users
ShortLegend[prepost]: Users
Legend1[prepost]: Prepaid
Legend2[prepost]: Postpaid
#Legend3[prepost]: b
#Legend4[prepost]: c
LegendI[prepost]: Users
LegendO[prepost]: Users
#Colours[prepost]: BLUE#0000ff,GREEN#00eb0c,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[prepost]: ymw
John
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

