[Nagiosplug-devel] MRTG Graf

Devinder Singh devinbhullar at gmail.com
Mon May 12 07:55:43 CEST 2008


Hello

I managed to run the mrtg.log file but i still can tview the Graphs

Nagios says the data is outdated.

MRTG data has expired (20176157 minutes old)

I have a crontab -e command line as :

#AVGSCAN-GUI
0 8 * * 5 (FILENAME=/root/.avg7/testresults/testreport.`date  +\%s`;
/opt/grisoft/avg7/bin/avgscan -report $FILENAME  /|| mv $FILENAME
$FILENAME.)
*/5 * * * *  /usr/bin/mrtg /home/mrtg/cfg/mrtg1.cfg --logging
/var/log/mrtg1.log
~

this is a potion of mrtg1.log
### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no
WorkDir: /home/mrtg
Options[_]: bits,growright

######################################################################
# System: SilterraKL.yourdomain.com
# Description: Cisco IOS Software, 2800 Software (C2800NM-IPBASE-M), Version
12.4(3i), RELEASE SOFTWARE (fc2)
#          Technical Support: http://www.cisco.com/techsupport
#          Copyright (c) 1986-2007 by Cisco Systems, Inc.
#          Compiled Wed 28-Nov-07 21:09 by stshen
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip: '
210.19.228.81' | Eth: '30-78-30-30-31-65-66-37-36-30-36-38-35-38' ###

Target[210.19.228.81_1]: 1:public at 210.19.228.81 <1%3Apublic at 210.19.228.81>:
SetEnv[210.19.228.81_1]: MRTG_INT_IP="210.19.228.81"
MRTG_INT_DESCR="FastEthernet0/0"
MaxBytes[210.19.228.81_1]: 12500000
Title[210.19.228.81_1]: Traffic Analysis for 1 -- SilterraKL.yourdomain.com
PageTop[210.19.228.81_1]: <h1>Traffic Analysis for 1 --
SilterraKL.yourdomain.com</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td>SilterraKL.yourdomain.com in
</td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>FastEthernet0/0
$ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-FE 0/0$ </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>ethernetCsmacd (6)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>Fa0/0</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>100.0 Mbits/s</td>
                                </tr>




What am i missing from here. I need to view bandwidth stats on the Router.

Ragards,
Devinder



2008/4/30 Devinder Singh <devinbhullar at gmail.com>:

>
> Hi
>
> I have problems in getting bandwidth statistics using MRTG.
>
> define service{
>         use                          generic-service ; Inherit values from
> a template
>         host_name               D-Link
>         service_description   Port 1 Bandwidth Usage
>         check_command
> check_local_mrtgtraf!/home/mrtg/cfg/mrtg.cfg!AVG!1000000,1000000!5000000,5000000!10
> }
>
> I tried to run the above command and see the file is outdated.
>
> i have ran the cfgmaker program and stored the mrtg.cfg in
> /home/mrtg/cfg/mrtg.cfg
>
> Please advise
>
> --
> Devinder




-- 
Devinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20080512/59b6b07d/attachment.html>


More information about the Devel mailing list