<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">On Apr 30, 2008, at 6:21 PM, Devinder Singh wrote:</div></span></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Hi <br><br>How do i get the following log file<br>192.168.1.253_1.log i which directory is that log file found<br><br>I only get a log file in var/log.mrtg.log<br><br>Pls advise<br>Devinder</div></blockquote><br><div>The location that MRTG uses for your log files is defined in your mrtg.cfg file, specifically the "WorkDir:" directive. Keep in mind, these files are not created until MRTG has been run successfully. If they don't exist, and you have run MRTG, it would make sense to look at the /var/log/mrtg.log file to see if maybe MRTG isn't running properly, or is generating some error. I would HIGHLY recommend that you read through <a href="http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html">http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html</a> , and perhaps some of the other associated MRTG documentation to get a better understanding of how MRTG works and how to set it up- this stuff is all explained in there. Also, the MRTG mailing lists would be a better place for questions regarding setting up and using MRTG. After that, if you still have issues specifically with integrating the MRTG data with nagios, this would be an appropriate place to ask those questions.</div><div><br></div><div><div>-----------------------------------------------</div><div>Israel Brewster</div><div>Computer Support Technician</div><div>Frontier Flying Service Inc.</div><div>5245 Airport Industrial Rd</div><div>Fairbanks, AK 99709</div><div>(907) 450-7250 x293</div><div>-----------------------------------------------</div></div><blockquote type="cite"><div><br></div> <div> </div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div style=""><div><div><div><pre>define service{<br> use generic-service ; Inherit values from a template<br>
host_name linksys-srw224p<br> service_description Port 1 Bandwidth Usage<br> check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,2000000!5000000,5000000!10<br> }</pre> <blockquote type="cite"><br><br> <div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Devinder Singh</b> <<a href="mailto:devinbhullar@gmail.com" target="_blank">devinbhullar@gmail.com</a>><br>Date: 2008/4/30<br> Subject: MRTG Graf<br>To: <a href="mailto:nagiosplug-devel@lists.sourceforge.net" target="_blank">nagiosplug-devel@lists.sourceforge.net</a><br><br><br><br clear="all">Hi<br><br>I have problems in getting bandwidth statistics using MRTG.<br> <br>define service{<br> use generic-service ; Inherit values from a template<br> host_name D-Link<br> service_description Port 1 Bandwidth Usage<br> check_command check_local_mrtgtraf!/home/mrtg/cfg/mrtg.cfg!AVG!1000000,1000000!5000000,5000000!10<br> }<br><br>I tried to run the above command and see the file is outdated.<br><br>i have ran the cfgmaker program and stored the mrtg.cfg in /home/mrtg/cfg/mrtg.cfg </div></blockquote></div></div> <div>Oh, I should also point out that unless you are using a non-standard mrtgtraf plugin, the file specified in your configuration above should be the .log file generated my mrtg, not the config file.</div> <div> <div><br></div> <div>-----------------------------------------------</div> <div>Israel Brewster</div> <div>Computer Support Technician</div> <div>Frontier Flying Service Inc.</div> <div>5245 Airport Industrial Rd</div> <div>Fairbanks, AK 99709</div> <div>(907) 450-7250 x293</div> <div>-----------------------------------------------</div> <blockquote type="cite"> <div class="gmail_quote"><br><br>Please advise<br><br>-- <br><font color="#888888">Devinder </font></div><br><br clear="all"><br>-- <br>Devinder -------------------------------------------------------------------------<br> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference <br>Don't miss this year's exciting event. There's still time to save $100. <br>Use priority code J8TL2D2. <br><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________</a><br> Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</blockquote></div></div><br></div></blockquote></div><br> <br clear="all"> <br>-- <br>Devinder </blockquote></div><br></body></html>