Jump to content

SNMP configuration example: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:


===RUT9xx===
===RUT9xx===
To setup SNMP first make sure that SNMP package is installed, more information here [[RUT955 Packages]] and [[RUT950_Package_Manager|RUT950 Packages]].
To setup SNMP first make sure that SNMP package is installed, more information here [[RUT956 Packages]] and [[RUT951_Package_Manager|RUT951 Packages]].


==OID codes==
==OID codes==
Line 139: Line 139:
Press "Download" button to download MIB file.
Press "Download" button to download MIB file.


[[File:Networking_device_configurationexample_snmp_snmpconfiguration_v1.png]]
[[File:SNMP_config_example_7.8_5.png]]


===Testing SNMP with MIB browser===
===Testing SNMP with MIB browser===
Line 164: Line 164:
First enable SNMP Trap, then enter '''Host/IP''', Hots/IP is the SNMP manager, computer to which SNMP agent will send Trap messages. If router is connected to PC via ethernet cable, enter the IP address of the interface the router is connected to. You can use '''ipconfig''' command on windows, '''ifconfig''' on linux to find IP address of the interface to which router is connected. Next choose '''port''', preferably choose port number higher than '''1024''' so SNMP manager could establish connection without root/admin rights. If you choose to leave default port '''162''' make sure to launch SNMP manager with admin/root permissions.
First enable SNMP Trap, then enter '''Host/IP''', Hots/IP is the SNMP manager, computer to which SNMP agent will send Trap messages. If router is connected to PC via ethernet cable, enter the IP address of the interface the router is connected to. You can use '''ipconfig''' command on windows, '''ifconfig''' on linux to find IP address of the interface to which router is connected. Next choose '''port''', preferably choose port number higher than '''1024''' so SNMP manager could establish connection without root/admin rights. If you choose to leave default port '''162''' make sure to launch SNMP manager with admin/root permissions.


[[File:Networking device configurationexample trap configurations v1.png]]
[[File:SNMP_config_example_7.8_1.png]]


===Trap rules===
===Trap rules===
Trap rules describe on what event SNMP agent should send Trap messages. There are certain rules which can be set up using Teltonika WebUI depending on physical configuration of the device.
Trap rules describe on what event SNMP agent should send Trap messages. There are certain rules which can be set up using Teltonika WebUI depending on physical configuration of the device.


====Events log====
----
<table class="nd-mantable">
<table class="nd-mantable">
     <tr>
     <tr>
         <th>Rule name</th>
         <th>Event</th>
      <th>Value</th>
        <th>Event subtype</th>
      <th>Explanation</th>
        <th>Description</th>
    </tr>
    <tr>
        <td><b>Config change</b></td>
        <td>All | Specific config change; default: <b>all</b></td>
        <td>Informs on changes to the device's configuration.</td>
    </tr>
    <tr>
        <td><b>Reboot</b></td>
        <td>All | From Web UI | From ping reboot | From reboot scheduler | From button | From SMS; default: <b>All</b></td>
        <td>Informs on if the device was rebooted.</td>
    </tr>
    <tr>
        <td><b>Startup</b></td>
        <td>Device startup completed</td>
        <td>Informs on when the device is fully booted.</td>
    </tr>
    <tr>
        <td><b>GPS</b></td>
        <td>All | Entered geofence | Left geofence; default: <b>All</b></td>
        <td>Informs on when the device has entered or left a user defined geofence zone.</td>
    </tr>
    <tr>
        <td><b>Mobile data</b></td>
        <td>All | Connected | Disconnected; default <b>All</b></td>
        <td>Informs on changes to the state of the device's mobile connection.</td>
    </tr>
    <tr>
        <td><b>New DHCP client</b></td>
        <td>All | Connected from LAN | Connected from WiFi; default <b>All</b></td>
        <td>Informs on new DHCP lease give outs.</td>
    </tr>
    <tr>
        <td><b>Ports state</b></td>
        <td>All | Link speed | Link state | Unplugged | Plugged in | Specific port; default: <b>All</b></td>
        <td>Informs on Ethernet port state (plugged in or unplugged) or speed (100 Mbps or 1000 Mbps) changes.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Signal strength trap</td>
        <td><b>Reboot</b></td>
      <td>Minimal mobile signal strength</td>
        <td>All | From button | From Input/Output | From Ping Reboot | From Reboot Scheduler | From WebUI | From SMS; default: <b>All</b></td>
      <td>Teltonika device will send trap message when mobile signal strength falls lower than specified</td>
        <td>Informs after device reboot occurrences.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Connection type trap</td>
        <td><b>Signal strength</b></td>
      <td>This trap does not have value</td>
        <td>All | - 121 dBm - 113 dBm | - 113 dBm - 98 dBm | - 98 dBm - 93 dBm | - 93 dBm - 75 dBm | - 75 dBm - 60 dBm | - 60 dBm - 50 dBm; default: <b>All</b></td>
      <td>Teltonika device will send trap message when mobile connection establishes or changes</td>
        <td>Informs on signal strength changes.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Digital input trap</td>
        <td><b>SMS</b></td>
      <td>Inactive/Active/Both</td>
        <td>SMS received</td>
      <td>Teltonika device will send trap message when Digital input value changes to specified value</td>
        <td>Informs on received SMS messages.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Digital isolated input trap</td>
        <td><b>SSH</b></td>
      <td>Inactive/Active/Both</td>
        <td>All | Successful authentication | Unsuccessful authentication; default: <b>All</b></td>
      <td>Teltonika device will send trap message when Digital isolated input value changes to specified value</td>
        <td>Informs on successful or unsuccessful SSH login attempts.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Analog input trap</td>
        <td><b>Topology state</b></td>
      <td>Higher/Lower/Both + Voltage value</td>
        <td>Topology changes</td>
      <td>Teltonika device will send trap message when Analog input value fulfills specified requirement</td>
        <td>Informs on changes to the device's network topology.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Digital output trap</td>
        <td><b>WAN failover</b></td>
      <td>Inactive/Active/Both</td>
        <td>All | Switched to failover | Switched to main; default: <b>All</b></td>
      <td>Teltonika device will send trap message when Digital output value changes to specified value</td>
        <td>Informs on WAN failover occurrences.</td>
     </tr>
     </tr>
     <tr>
     <tr>
      <td>Digital relay output trap</td>
        <td><b>WebUI</b></td>
      <td>Inactive/Active/Both</td>
        <td>ALL | Successful authentication | Unsuccessful authentication; default: <b>All</b></td>
      <td>Teltonika device will send trap message when Digital relay output value changes to specified value</td>
        <td>Informs on successful or unsuccessful HTTP/HTTPS login attempts.</td>
     </tr>
     </tr>
     <tr>
     <tr>
<table>
        <td><b>New WiFi client</b></td>
        <td>All | Connected | Disconnected; default: <b>All</b></td>
        <td>Informs on new WiFi clients. Possible triggers are:</td>
    </tr>
</table>
----
----
To create new rule chose action and press "Add" button, specify rule values and save.
To create new rule chose action and press "Add" button, specify rule values and save:


Example: choose "Connection type trap" action and press "Add" button.
[[File:SNMP_config_example_7.8_2.png|1000px]]
 
[[File:Networking device configurationexample snmp trap rule v1.png]]
----
----
Enable trap rule and press "Save".
Modify the trap to your needs:
 
[[File:SNMP_config_example_7.8_3.png|1000px]]
[[File:Networking device configurationexample snmp new connection rule v1.png]]
----
----
New rule should appear in the main Trap window.
New rule should appear in the main Trap rules window:
 
[[File:SNMP_config_example_7.8_4.png|1000px]]
[[File:Networking device configurationexample new snmp rule saved v1.png]]
----
----
====Testing Trap with MIB browser====
====Testing Trap with MIB browser====