Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Printers</h2> <p>You should use the <a href="http://tools.ietf.org/html/rfc3805" rel="nofollow">Printer MIBv2</a> to monitior printer error status for jams...</p> <ul> <li><code>hrPrinterDetectedErrorState</code> reports printer errors such as low toner, jams, etc... the RFC contains details on what specific codes mean</li> <li><code>hrDeviceStatus</code> will reveal the big picture ability of the printer to handle tasks. For more info, see <a href="http://tools.ietf.org/html/rfc3805#section-2.2.13.2" rel="nofollow">Printer MIBv2, Section 2.2.13.2</a></li> </ul> <p><code>sysUpTime.0</code> is an OID that reports the time a system's SNMP stack has been up (reference <a href="http://tools.ietf.org/html/rfc1213" rel="nofollow">RFC 1213: MIB-II</a>). If this value is returned and incrementing, it's a 99% safe bet that a printer is up. Most people use <code>sysUpTime</code> to detect whether the device has rebooted for some reason; if that happens, you'll see a sudden decrease in <code>sysUpTime.0</code>, unless your last value was around 248 days (where a 32-bit counter would roll).</p> <h2>Ethernet Switches</h2> <p>Checking the basic health of ethernet switches is usually done with checks to <code>sysDescr.0</code> or <code>sysUpTime.0</code>; the problem with this heuristic comes if you care about the up/down status of particular links... at that point, you need to check values from <code>ifOperStatus</code>, which is indexed by <code>ifIndex</code> and uses interface names from <code>ifName</code>. See the following examples...</p> <pre><code>[mpenning@Hotcoffee ~]$ ## Walk ifName correlated to ifIndex [mpenning@Hotcoffee ~]$ snmpwalk -v 2c -c Public 172.25.116.6 .1.3.6.1.2.1.31.1.1.1.1 iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "Fa0/0" iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "Nu0" [mpenning@Hotcoffee ~]$ ## Walk ifOperStatus (up==1) [mpenning@Hotcoffee ~]$ snmpwalk -v 2c -c Public 172.25.116.6 .1.3.6.1.2.1.2.2.1.8 iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1 iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 1 [mpenning@Hotcoffee ~]$ </code></pre> <p>Thus we know from the example that both interface "Fa0/0" (index: 1) and "Nu0" (index: 2) have an ifOperStatus of "up"; the index value is the last integer returned in the OID of the results.</p> <h2>Scripting</h2> <p>I assume you will use <code>bash</code> for your monitoring scripts; if so, check out <a href="http://www.net-snmp.org/" rel="nofollow">Net-SNMP</a> for your SNMP manager</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload