> Is 1126912;0;0;; in the correct format or have I missed > something eg it's delimited by |?
Don't separate the values with semicolons (;) instead use carriage-returns and just list the values each on their own line. I feed the output below into mrtg to plot some memory stats and it picks up the values just fine. -bash-3.00$ ./meminfo.pl -p MemFree ModMemFree 0.644290465938352 31.5242538908946 -bash-3.00$ > If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments. If you no longer wish to receive e-mail from Edward Jones, please send this request to [email protected]. You must include the e-mail address that you wish not to receive e-mail communications. For important additional information related to this e-mail, visit www.edwardjones.com/US_email_disclosure -----Original Message----- > From: [email protected] > [mailto:[email protected] > h] On Behalf Of PeteH > Sent: Friday, November 26, 2010 11:07 AM > To: [email protected] > Subject: [mrtg] Graphing netware disk usage > > > Firstly, I apologise if this question has been asked before. > I've looked at > what I'm trying to do and if there's an error I just can't see it. > Below is a section of my mrtg.cfg > > -----------------------mrtg.cfg > ------------------------------------------------------------- > Title[VCH-NA1.SYS]: Disk Space Usage on SYS > Target[VCH-NA1.SYS]: `/usr/lib/nagios/plugins/check_nwstat > 10.5.1.9 -v > VKFSYS | cut -f2 -d =` > Kilo[VCH-NA1.SYS]:1024 > AbsMax[VCH-NA1.SYS]:2097152000 > MaxBytes[VCH-NA1.SYS]: 1638912 > Options[VCH-NA1.SYS]: gauge, nopercent > YLegend[VCH-NA1.SYS]: Free Space > ShortLEgend[VCH-NA1.SYS]: bytes > Legend1[VCH-NA1.SYS]: SYS > Legend2[VCH-NA1.SYS]: > Legend3[VCH-NA1.SYS]: SYS Peak > Legend4[VCH-NA1.SYS]: > LegendI[VCH-NA1.SYS]: SYS: > LegendO[VCH-NA1.SYS]: > PageTop[VCH-NA1.SYS]: <H1>Disk space stats for VCH-NA1\SYS </H1> > <p> These graphs track disk space usage on SYS > ------------------------End of mrtg.cfg > ------------------------------------- > > If I execute the command from a bash shell i get > > > nagios1:/etc/init.d # /usr/lib/nagios/plugins/check_nwstat 10.5.1.9 -v > VKFSYS > 1126912 KB free on volume SYS|KBFreeSYS=1126912;0;0;; > nagios1:/etc/init.d # /usr/lib/nagios/plugins/check_nwstat 10.5.1.9 -v > VKFSYS | cut -f2 -d = > 1126912;0;0;; > nagios1:/etc/init.d # > > I was hoping this would get me a log file in my > workdir=/var/www/mrtg but > nothing. I get a link on my mrtg web page but obviously no > log file means no > .html file. (Before somebody asks why I'm not using snmp, > I'll explain that > these are nss volumes so snmp doesn't return the most > accurate of figures > were as the check_nwstat command is fairly spot on.) > > Is 1126912;0;0;; in the correct format or have I missed > something eg it's > delimited by |? > > > Thanks, > PeteH > -- > View this message in context: > http://mrtg-mailinglists.795376.n2.nabble.com/Graphing-netware > -disk-usage-tp5777936p5777936.html > Sent from the MRTG Users Mailinglist mailing list archive at > Nabble.com. > > _______________________________________________ > 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
