03.03.2015 Views

MonitorMagic - Tools4Ever.com

MonitorMagic - Tools4Ever.com

MonitorMagic - Tools4Ever.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using <strong>MonitorMagic</strong><br />

Next topic in sequence: Snmp get monitor - Formula calculation<br />

See also:<br />

<strong>MonitorMagic</strong> SNMP support<br />

Snmp get monitor - Overview<br />

Snmp get monitor - Tables<br />

Snmp get monitor - Formula calculation<br />

(This topic is part of a sequence of topics that start with Snmp get monitor - Tables<br />

When collecting SNMP data, it is very well possible that you want to perform some data<br />

calculation before you evaluate the rules. Example: Suppose you want to create a rule that<br />

should be triggered if the average number of bytes received per second on an interface card<br />

exceeds a threshold. This type of information is available from MIB-II, the interface table. Table<br />

entry 1.3.6.1.2.1.2.2.1.10 (iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets)<br />

identifies the total number of bytes received on each interface card. But, this is a cumulative value<br />

that will increase in time only. By itself, this value will not show the average number of bytes<br />

received per second. What we really need is the result of a formula that calculates the<br />

difference of two samples of the cumulative value, divided by the time in seconds of these two<br />

samples:<br />

In formula:<br />

ValueOld:The total number of bytes received at time Told.<br />

ValueNew: The total number of bytes received at time Tnew:<br />

Average number of bytes per second = (ValueNew - ValueOld) / (Tnew - Told)<br />

<strong>MonitorMagic</strong> support a number of formulas by default. To specify the formula activate the<br />

monitor policies window, select the policy, right click the mouse, and select the menu option<br />

Add monitor, Snmp get. Press the Add button. You will be shown the Snmp object identifier<br />

specification window. Press the Advanced button. The formula's can be selected from the<br />

bottom list.<br />

Formula's can be calculated over the first 2 object identifiers of the list Object identifier<br />

specification only. These object identifiers are referred to as Oid1 and Oid2. For these object<br />

identifiers, <strong>MonitorMagic</strong> also stores the previous value and elapsed time since the previous<br />

value. Note that the result of the formula calculation can be stored in the database and can be<br />

used for rule criteria evaluations.<br />

Available formula's:<br />

Standard (value of Oid1)<br />

No formula calculated, result equals the value of the first object identifier.<br />

Oid1 difference in time (ValueNew-ValueOld)<br />

Result equals the difference between current and previous value of the first object identifier.<br />

Oid1 change per second (Vnew-Vold)/(Elapsed time)<br />

Rate calculation, the result is the change per second of the first object identifier in units per<br />

second.<br />

Oid2 difference in time (ValueNew-ValueOld)<br />

Result equals the difference between current and previous value of the second object identifier.<br />

109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!