Hi all,

I am try to graph nomber of DNS queries of Win32 DNS service. I run perl script 
which read A/CNAME and PRT records and push those two values into mrtg. Values 
are increment counters, all new DNS queries are added to existing number. I 
expect the increment counter should be handled similar as SNMP byte/packet 
count from iface. By this reason,  I let out the GAUGE option in .cfg file. But 
in this case, no values going into graph anywise the external script pushing 
values into mrtg  ok (verified by --debug option), in .log file, there are 
still only actual value in very top line. Every logrotate ir overwiten by new 
value.

When I include GAUGE option in .cfg file, then graphs is filled by vallues, but 
only incrementing sum.

What I am doing wrong???

Petr Laznovsky



----------------------------------------------------------------------

WorkDir: C:\monitoring\dns_queries
IconDir: C:\monitoring\mrtg\images
RunAsDaemon: Yes
Language: Czech

# pocet dotazu na dns

Target[dns]: `c:\scripts\perl\get_dns_stats.cmd`
Title[dns]: Počet dotazů na DNS server
PageTop[dns]: <H1>Počet dotazů na DNS server</H1>
MaxBytes[dns]: 500
AbsMax[dns]: 10001
WithPeak[dns]: ymwd
Options[dns]: growright,unknaszero,nopercent,nobanner,noinfo,integer
Unscaled[dns]: dwmy
YLegend[dns]: # DNS queries
ShortLegend[dns]: #
Legend1[dns]: # Forward DNS queries
Legend2[dns]: # Reverse DNS queries 
Legend3[dns]: Maximal 5 Minute # DNS queries
Legend4[dns]: Maximal 5 Minute # DNS queries
LegendI[dns]: &nbsp;# queries:
LegendO[dns]: &nbsp;# queries:

---------------------------------------------------------------------

Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
--base: Starting main Loop
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20344, out:12129, up:unknown, name:unknown, 
time:1255942142
--base: Create Graphics
2009-10-19 10:49:02, Rateup WARNING: c:/monitoring/mrtg/bin\rateup could not 
read the primary log file for dns
2009-10-19 10:49:02, Rateup WARNING: c:/monitoring/mrtg/bin\rateup The backup 
log file for dns was invalid as well
2009-10-19 10:49:02, Rateup WARNING: c:/monitoring/mrtg/bin\rateup Can't remove 
dns.old updating log file
2009-10-19 10:49:02, Rateup WARNING: c:/monitoring/mrtg/bin\rateup Can't rename 
dns.log to dns.old updating log fil
e
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20472, out:12193, up:unknown, name:unknown, 
time:1255942441
--base: Create Graphics
2009-10-19 10:54:01, Rateup WARNING: c:/monitoring/mrtg/bin\rateup Can't remove 
dns.old updating log file
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20659, out:12248, up:unknown, name:unknown, 
time:1255942745
--base: Create Graphics
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20726, out:12248, up:unknown, name:unknown, 
time:1255943045
--base: Create Graphics
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20762, out:12254, up:unknown, name:unknown, 
time:1255943345
--base: Create Graphics
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20806, out:12254, up:unknown, name:unknown, 
time:1255943645
--base: Create Graphics
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20847, out:12254, up:unknown, name:unknown, 
time:1255943944
--base: Create Graphics
--base: Check for Thresholds
--base: Check for Write HTML Pages
--base: Populate Target object by polling SNMP and external Datasources
--base: Act on Router/Target dns
--base: Get Current values: in:20889, out:12254, up:unknown, name:unknown, 
time:1255944244
--base: Create Graphics
--base: Check for Thresholds
--base: Check for Write HTML Pages

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

Reply via email to