Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision |
monitors:retds [2015/03/17 14:11] – [Installation] wnelis | monitors:retds [2015/03/18 03:55] – [Known Bugs and Issues] wnelis |
---|
INTERVAL 5m | INTERVAL 5m |
| |
In file $XYMONHOME/etc/hosts.cfg one needs to identify the hosts for which this script should extract the DNS usage statistics. For a BIND server, two tags need to be added or modified, TRENDS and RNAMED. Matching the example above, the following values could be used: | In file $XYMONHOME/etc/hosts.cfg one needs to identify the hosts for which this script should extract the DNS usage statistics. For a BIND server, two tags need to be added or modified, RNAMED and TRENDS. Matching the example above, the following values could be used: |
| |
RNAMED:”cmd(ssh -T AUser@%{H} 2>/dev/null),statsfile(named.stats)” | RNAMED:”cmd(ssh -T AUser@%{H} 2>/dev/null),statsfile(named.stats)” |
<hidden onHidden="Show Code ⇲" onVisible="Hide Code ⇱"> | <hidden onHidden="Show Code ⇲" onVisible="Hide Code ⇱"> |
<code> | <code> |
To Be Defined | [wdnsstats] |
| TITLE , DNS statistics |
| YAXIS Rate [/s] |
| -l 0 |
| DEF:qry=wdnsstats.rrd:Query:AVERAGE |
| DEF:upd=wdnsstats.rrd:DynUpdRcv:AVERAGE |
| DEF:er0=wdnsstats.rrd:RcrsFail:AVERAGE |
| DEF:er1=wdnsstats.rrd:DynUpdRej:AVERAGE |
| DEF:er2=wdnsstats.rrd:ServFail:AVERAGE |
| DEF:er3=wdnsstats.rrd:NxDomain:AVERAGE |
| CDEF:err=er0,er1,+,er2,+,er3,+ |
| LINE1:qry#66CC33:Query |
| GPRINT:qry:MIN: Min\: %5.1lf %s |
| GPRINT:qry:MAX:Max\: %5.1lf %s |
| GPRINT:qry:AVERAGE:Avg\: %5.1lf %s |
| GPRINT:qry:LAST:Cur\: %5.1lf %s\n |
| LINE1:upd#9933FF:Update |
| GPRINT:upd:MIN:Min\: %5.1lf %s |
| GPRINT:upd:MAX:Max\: %5.1lf %s |
| GPRINT:upd:AVERAGE:Avg\: %5.1lf %s |
| GPRINT:upd:LAST:Cur\: %5.1lf %s\n |
| LINE1:err#FF0000:Error |
| GPRINT:err:MIN: Min\: %5.1lf %s |
| GPRINT:err:MAX:Max\: %5.1lf %s |
| GPRINT:err:AVERAGE:Avg\: %5.1lf %s |
| GPRINT:err:LAST:Cur\: %5.1lf %s\n |
</code> | </code> |
</hidden> | </hidden> |
| |
By default, the statistics are presented to Xymon using a so-called 'trends' data-message. These type of messages do not carry a status nor a time stamp. Thus problems in collecting the statistics cannot be passed as a status. The independent polling cycles at client and server introduce variable delays, which cannot be accounted for, although the time of data collection is known at the server-side script. | By default, the statistics are presented to Xymon using a so-called 'trends' data-message. These type of messages do not carry a status nor a time stamp. Thus problems in collecting the statistics cannot be passed as a status. The independent polling cycles at client and server introduce variable delays, which cannot be accounted for, although the time of data collection is known at the server-side script. |
| |
| It is assumed that the BIND statistics file contains only one set of statistics. Thus the new statistics overwrite the old statistics, rather than being appended. |
| |
This script is only tested using 'trends'-messages. The function to use a status message to inform Xymon has thus not been tested. | This script is only tested using 'trends'-messages. The function to use a status message to inform Xymon has thus not been tested. |