Here are some things to check --

* Check that MRTG is actually running ( maybe you have cron problems, is cron 
active?)
* Look at the last-update times on the .png files, are they changing?
* Check your server's clock is set correctly (including the timezone!) else 
browser cache might stop the images reloading.  Also, make sure you have either 
a .htaccess file specifying cache timeouts, or else have your browser set to 
cache correctly (MSIE can sometimes use an aggressive caching mode that doesnt 
check for changes every time)
* If the image files are not updating, and cron is running, try running MRTG 
interactively -- is it producing any errors?
* Check the file ownerships -- maybe they are owned by root, but you are 
running the MRTG as an mrtg user which doesnt have write permission to the 
directory or files.

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
[email protected]<mailto:[email protected]>
Ph: +64 9 373 7599 ext 86487

________________________________
From: [email protected] 
[[email protected]] on behalf of Tobias 
Dinse [[email protected]]
Sent: Tuesday, 28 December 2010 11:29 p.m.
To: [email protected]
Subject: [mrtg] mrtg snmp problem

Hi @all,

I ve tried to config MRTG to get the number of all connected calls from our 
telephone system (patton smartnode) over SNMP. I generated a config file by 
using

cfgmaker --global "WorkDir: /var/www/mrtg" --output /etc/mrtg/isdn_zaehler.cfg 
[email protected]

I opened isdn_zaehler.cfg and did some changes. Here is the actual configfile:


#  for UNIX
# WorkDir: /home/http/mrtg

#  for Debian
WorkDir: /var/www/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

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

EnableIPv6: no
WorkDir: /var/www/mrtg


Target[sn4552isdncounter]: 
1.3.6.1.4.1.1768.100.70.40.2.1.2.2&1.3.6.1.4.1.1768.100.70.40.2.1.2.2:[email protected]

# SetEnv[sn4552isdncounter]: MRTG_INT_IP="" MRTG_INT_DESCR="ethernet-0-0-1"

MaxBytes[sn4552isdncounter]: 2

Title[sn4552isdncounter]: ISDN Channels

PageTop[sn4552isdncounter]: <h1>active ISDN Channels </h1>
               <div id="sysdetails">
                       <table>
                               <tr>
                                       <td>System:</td>
                                       <td>Buero</td>
                               </tr>
                               <tr>
                                       <td>Maintainer:</td>
                                       <td>[email protected]</td>
                               </tr>
                               <tr>
                                       <td>Description:</td>
                                       <td>SNMP ISDN Counter  </td>
                               </tr>
                               <tr>
                                       <td>ifType:</td>
                                       <td>ISDN Bri Channel Counter</td>
                               </tr>
                               <tr>
                                       <td>ifName:</td>
                                       <td></td>
                               </tr>
                 <tr>
                                       <td>Max Speed:</td>
                                       <td>2 Channels</td>
                               </tr>
                       </table>
               </div>

If i browse to http://localhost/mrtg i can see some graphics but there are 
always the same. Cron entry is set and work. Running mrtg with isdn_zaehler.cfg 
shows no errors. I hope there is an error in the cfg file and someone can help 
me

thanks & cu

Tobias D.
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to