From ISP admin
SNMP template
This wiki is under reconstruction, be so kind and count on some uncomplete texts, mistakes and older screenshots, sometimes even not corresponding links. Before the final presentation, all these flaws will be, of course, removed :-)
Public SNMP interface
- Values read out from any device supporting SNMP v1 or v2
- Defining OID templates for every device
- Measured values may be displayed in a graph
- Measured values may be grouped into more graphs
- Final values settings variability ( setting of a graph type, size, colour, possibility of a final values conversion)
Setting of SNMP templates OID for information read-out from other devices than MikroTik.
...co dal napsat, nejake nove věci co se dodelavaly?
Name
The name of the monitored device.
SNMP
SNMP protocole version
OID
???
Description
A description to every SNMP OID
Graph
Check if you want the graphs to be generated
Separate graph
Check if you want to generate separate graphs. ???
GENERAL SNMP MODULE
newly launched SNMP module which solves universal communication through SNMP with any device supporting SNMP version v1 or v2. The system is able to read out the dataout of these devices, and thus gained data use for generating graphs according to given criteria. The system allows creating an SNMP template and the communication runs according to these templates
1. Creating an SNMP template. Setting a template for the device is done in the menu of "Settings / Others / SNMP OID". Here you can create a template for every device which we use. You need to complete these items:
- Name of the template - The name of the used template
- SNMP version - SNMP versions in use ( SNMP v1 or SNMP v2c )
- graph size - the graph size in pixels. The default value is 520x140 px
- Max and Min value - Maximum and Minimum value of a generated graph. If 0 is stated for both values, the Y axis of a final graph will automatically adjusts itself to the measured values, so if for example we measure CPU load which is around 50%, the minimum value will be eg. 40 and the maximum value of the graph will be 60%. By setting the values in the template, it is possible to set the minimum value as 0 and the maximum alue as 100%, which is better-arranged in the final graph.
- separately measured values - detailed setting of every meaured value of the graph. Within one template it is possible to enter 32 measured values
- OID - SNMP OID measured values - ( eg. 1.3.6.1.2.1.2.2.1.10.1 for transmission onto the interface on the switch ). The meaured values must be gained from MIB tabels of a certain device. SNMP OID must be input in their unshorten numeric form.
- Description - the description of a measured value ( eg. CPU load, Temeperature ... ). This measured value description show in the graph.
- Graph - if the checkbox is marked, the graph of the measured value is drawn. If it is not marked, the graph is not drawn, but the value is read out of the device and it is possible to display it later again.
- Group - separate values may be displayed in groups. A group means a values set, which display in a single graph. If we set, for example, three values into group 1 and other two into group 2, two graphs will display for the device when displaying a graph. In the first graph, there will the three values be, and in the second one, there will be the two values.
- Operator - loaded values may be converted to correct values. For example, while displaying the information about voltage of the battery, the system instead of the value of 12,45 returns values 1245. This value is thus necessary to be converted for the correct output of the graph ( in this case divide by 100 ). An operator may be chosen from the popup menu, "*", "/", "+" and "-".
- Value - the value which is used for conversion of the measured value from the device ( in connection with the operator )
- Unit - the unit is displayed at the value of the graph ( kbps, A, V, % ..... )
- Number of decimal places - the number of decimal places which are displayed with the value ( 0-3 )
- Absolute value- if the data are loaded, eg. information about the temperature, voltage, etc., the absolute values are then read out from the system ( eg. 12,45 V, 12,58 V .... ); it means that the values are not incremental values and they are thus the absolute values. In this case it is vital to mark thi checkbox. In case we display for example a graph of data transmitted, where the system gives back "incremental" values ( counter ), it is necessary to get a difference between the current measured value and previous measured value and to display this final result in the graph. In this case, the checbox remains unmarked.
- Colour - you can choose a current colour from the offered colour codebook, and this colour will be used for drawing the final value into the graph.
- Type of graoh - here you can choose a type of graph from the codebook, and this type will be of a LINE type ( linewidth 1-3 ) and/or of an AREA type. The LINE type is a simple line in the graph ( of an approproate linewidth ) and the AREA type is filled "area" of the graph.
All changes of SNMP OID template will demonstrate immediately in the final graph. It means that if, for example, a conversion coefficient of the measured value is changed, the scheme for even earlier measured values changes ( by return ) within the final graph.
2. If we have created a template including all SNMP OID, the setting of the type of graph, conversion of values, colours, etc., we must assign this template to a specific type of the device ( eg. CISCO switch, temperature number etc. ). An SNMP template may be assigned to all devices which are listed in the menu of "Settings / Codebooks / End devices". In this codebook, it is possible to add separate types of devices divided according to groups. When adding or editing a device, you can choose also an SNMP OID template, which will be used for a communication with this device.
3. In the "Routers" menu, you can add a device to a router by clicking on the bookmark of "Add a device". In the settings of the device, you can select a "Type of device", which is a group from the menu of "Settings / Codebooks / End devices" and also the "Exact type of the device", which are separate devices in this group to which a certain template has been assigned for communication through SNMP.
After selecting the exact type of device, you can enter SNMP password for communication with the device; if everything has been set correctly, the test of communication with MikroTik will be run by clicking on the icon of "Test connection" ( the second one from the right in the router header ) as well as the test of communication with all other devices which are set for the communication through SNMP. Even the current values gained out of the device will be displayed for the tested devices, and they will be displayed in the graph. Thanks to the display of loaded values and the display of converted values online, you can carry out debugging of an SNMP template without any problems, so that the values were displayed in the graph correctly.
Enclosed pictures to be sorted out