Hello,
I have been looking for the correct way to compose my COMMAND Datasource string and get the resulting output into the performance graphs.
1st off; the problem. I am monitoring 800 Mikrotik devices, and need to graph signal strengh (TX/RX). When I create the SNMP datasource, I need to use the exact OID in order to get data graphing. As I understand; this is because Zenoss uses SNMPGET, not SNMPWALK to get the information.
The issue is that the OID's that I am monitoring contains the mac address and/or a unique ending identifier of the client radio card to the OID. Each OID would then be unique.
I have been researching how to get around this, so I don't have to create a local copy of the template for every device.
Example:
SNMPWALK against this OID 1.3.6.1.4.1.14988.1.1.1.1.1.4 produces the following:
SNMPv2-SMI::enterprises.14988.1.1.1.1.1.4.5 = INTEGER: -76
Note the .5 at the end of the OID. This is because SNMPWALK walks the tree. Each device has it's own ending digit that changes from device to device; so walking is the method to collect this for all devices on a global template.
Another example:
SNMPWALK against this OID 1.3.6.1.4.1.14988.1.1.1.2.1.3 produces the following:
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.21.109.100.166.139.5 = INTEGER: -76
0.21.109.100.166.139.5 is thebinary mac address for the Access Point's radio card. Again, I would like to use SNMPWALK to graph these datapoints vs SNMPGET so that I can set a global template to gather the desired results for all devices without local templates for each one.
I have created a COMMAND Datasource with the following in the command line:
snmpwalk -cwH7V]kf^ -v1 -c${device/zSnmpCommunity} ${here/manageIp} 1.3.6.1.4.1.14988.1.1.1.2.1.3
I can use zentestcommand -v10 -d {any Mikrotik device} --datasource=RX_Strength, and get the following results:
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.21.109.100.166.139.5 = INTEGER: -76
This would indicate to me that the above COMMAND syntax is correct ... however, I cannot graph these datapoints.
As with SNMP Datasources; Zenoss automatically creates the Data Points, but the COMMAND Datasource does not. I manually added the Data Point using the same name as the Datasource; created performance graphs, and get 'nan' for the values.
Am I missing how RRDTool collects this data for graphing? I have read about Nagios STDOUT (standard output that Zenoss recognizes), but am not sure how to get the resulting output into the graphs.
Any assistance with this matter would be greatly appreciated; as I am certain that there is a way to collect the data I am trying to and graph it.
Matt