<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 May 11, 2008, at 9:55 PM, Devinder Singh wrote:</div></span></div><div><br class="Apple-interchange-newline"><blockquote type="cite">Hello<br><br>I managed to run the mrtg.log file but i still can tview the Graphs<br><br>Nagios says the data is outdated.<br><br>MRTG data has expired (20176157 minutes old) </blockquote><div><br></div><div>Which means either a) MRTG is still not running properly, or b) your Nagios command isn't looking at the proper log files, in this case something like /home/mrtg/210.19.228.81_1.log My suspicion would be with a.</div><br><blockquote type="cite">I have a crontab -e command line as :<br> <br>#AVGSCAN-GUI<br>0 8 * * 5 (FILENAME=/root/.avg7/testresults/testreport.`date +\%s`; /opt/grisoft/avg7/bin/avgscan -report $FILENAME /|| mv $FILENAME $FILENAME.)<br>*/5 * * * * /usr/bin/mrtg /home/mrtg/cfg/mrtg1.cfg --logging /var/log/mrtg1.log<br> ~</blockquote><div><br></div><div>Ok, that looks reasonable.</div><br><blockquote type="cite"><br>this is a potion of mrtg1.log</blockquote><div><br></div><div>Nope, that's your mrtg1.cfg file, not your mrtg1.log. But that's probably what you meant :). To figure out what's going on, however, it would be helpful to see your /var/log/mrtg1.log file. Your .cfg file, as shown below, looks fine to me. Also, have you tried just running "/usr/bin/mrtg /home/mrtg/cfg/mrtg1.cfg" on the command line? What does that spit out? Also, as I've mentioned before, until you have MRTG working on its own, without Nagios, you might get better results on the MRTG board. When you have MRTG working, you should see the log files located in /home/mrtg (in your case) being updated every 5 minutes, and if you have everything set up to do so, you should be able to see the mrtg graphs directly.</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"><br>### Global Defaults<br><br># to get bits instead of bytes and graphs growing to the right<br># Options[_]: growright, bits<br><br>EnableIPv6: no<br>WorkDir: /home/mrtg<br>Options[_]: bits,growright<br> <br>######################################################################<br># System: <a href="http://SilterraKL.yourdomain.com">SilterraKL.yourdomain.com</a><br># Description: Cisco IOS Software, 2800 Software (C2800NM-IPBASE-M), Version 12.4(3i), RELEASE SOFTWARE (fc2)<br> # Technical Support: <a href="http://www.cisco.com/techsupport">http://www.cisco.com/techsupport</a><br># Copyright (c) 1986-2007 by Cisco Systems, Inc.<br># Compiled Wed 28-Nov-07 21:09 by stshen<br> # Contact:<br># Location:<br>######################################################################<br><br><br>### Interface 1 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip: '<a href="http://210.19.228.81">210.19.228.81</a>' | Eth: '30-78-30-30-31-65-66-37-36-30-36-38-35-38' ###<br> <br>Target[210.19.228.81_1]: <a href="mailto:1%3Apublic@210.19.228.81">1:public@210.19.228.81</a>:<br>SetEnv[210.19.228.81_1]: MRTG_INT_IP="<a href="http://210.19.228.81">210.19.228.81</a>" MRTG_INT_DESCR="FastEthernet0/0"<br> MaxBytes[210.19.228.81_1]: 12500000<br>Title[210.19.228.81_1]: Traffic Analysis for 1 -- <a href="http://SilterraKL.yourdomain.com">SilterraKL.yourdomain.com</a><br>PageTop[210.19.228.81_1]: <h1>Traffic Analysis for 1 -- <a href="http://SilterraKL.yourdomain.com">SilterraKL.yourdomain.com</a></h1><br> <div id="sysdetails"><br> <table><br> <tr><br> <td>System:</td><br> <td><a href="http://SilterraKL.yourdomain.com">SilterraKL.yourdomain.com</a> in </td><br> </tr><br> <tr><br> <td>Maintainer:</td><br> <td></td><br> </tr><br> <tr><br> <td>Description:</td><br> <td>FastEthernet0/0 $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-FE 0/0$ </td><br> </tr><br> <tr><br> <td>ifType:</td><br> <td>ethernetCsmacd (6)</td><br> </tr><br> <tr><br> <td>ifName:</td><br> <td>Fa0/0</td><br> </tr><br> <tr><br> <td>Max Speed:</td><br> <td>100.0 Mbits/s</td><br> </tr><br><br><br><br><br>What am i missing from here. I need to view bandwidth stats on the Router.<br><br>Ragards,<br>Devinder<br><br><br><br><div class="gmail_quote">2008/4/30 Devinder Singh <<a href="mailto:devinbhullar@gmail.com">devinbhullar@gmail.com</a>>:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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 <br><br>Please advise<br><br>-- <br><font color="#888888">Devinder </font></blockquote></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_______________________________________________________">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________________</a><br>Nagios Plugin Development Mailing List Nagiosplug-devel@lists.sourceforge.net<br>Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel<br>::: Please include plugins version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</blockquote></div><br></body></html>