<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">Here are some things to check --<br>
<br>
* Check that MRTG is actually running ( maybe you have cron problems, is cron active?)<br>
* Look at the last-update times on the .png files, are they changing?<br>
* 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)<br>
* If the image files are not updating, and cron is running, try running MRTG interactively -- is it producing any errors?<br>
* 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.<br>
<br>
Steve<br>
</div>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;"><strong>Steve Shipway</strong></div>
<div style="font-family: Tahoma; font-size: 13px;">University of Auckland ITS</div>
<div style="font-family: Tahoma; font-size: 13px;"><em>UNIX Systems Design Lead</em></div>
<div style="font-family: Tahoma; font-size: 13px;"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family: Tahoma; font-size: 13px;">Ph: +64 9 373 7599 ext 86487</div>
<div style="font-family: Tahoma; font-size: 13px;"><em></em> </div>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF355794"><font size="2" color="#000000" face="Tahoma"><b>From:</b> mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Tobias Dinse [dinseto@stegbauer.info]<br>
<b>Sent:</b> Tuesday, 28 December 2010 11:29 p.m.<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] mrtg snmp problem<br>
</font><br>
</div>
<div></div>
<div>Hi @all,<br>
<br>
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<br>
<br>
cfgmaker --global "WorkDir: /var/www/mrtg" --output /etc/mrtg/isdn_zaehler.cfg public@192.168.110.162<br>
<br>
I opened isdn_zaehler.cfg and did some changes. Here is the actual configfile:<br>
<br>
<br>
# for UNIX<br>
# WorkDir: /home/http/mrtg<br>
<br>
# for Debian<br>
WorkDir: /var/www/mrtg<br>
<br>
# or for NT<br>
# WorkDir: c:\mrtgdata<br>
<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: /var/www/mrtg<br>
<br>
<br>
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:public@192.168.110.162<br>
<br>
# SetEnv[sn4552isdncounter]: MRTG_INT_IP="" MRTG_INT_DESCR="ethernet-0-0-1"<br>
<br>
MaxBytes[sn4552isdncounter]: 2<br>
<br>
Title[sn4552isdncounter]: ISDN Channels <br>
<br>
PageTop[sn4552isdncounter]: <h1>active ISDN Channels </h1><br>
<div id="sysdetails"><br>
<table><br>
<tr><br>
<td>System:</td><br>
<td>Buero</td><br>
</tr><br>
<tr><br>
<td>Maintainer:</td><br>
<td>techrole@xxx.de</td><br>
</tr><br>
<tr><br>
<td>Description:</td><br>
<td>SNMP ISDN Counter </td><br>
</tr><br>
<tr><br>
<td>ifType:</td><br>
<td>ISDN Bri Channel Counter</td><br>
</tr><br>
<tr><br>
<td>ifName:</td><br>
<td></td><br>
</tr><br>
<tr><br>
<td>Max Speed:</td><br>
<td>2 Channels</td><br>
</tr><br>
</table><br>
</div><br>
<br>
If i browse to <a href="http://localhost/mrtg" target="_blank">http://localhost/mrtg</a> 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<br>
<br>
thanks & cu<br>
<br>
Tobias D.<br>
</div>
</div>
</div>
<script type="text/javascript"><!--
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
//--></script>
</body>
</html>