Looking for help for a data source templae with no index, and no description

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Looking for help for a data source templae with no index, and no description

Post by Rno »

Hello,
I try to graph tjhe radio signal from a Cisco 4G router.
the snmp walk is this one:
snmpwalk -v3 -asha -ASnmpPassw0rd2020 -uSnmpUser -lauthPriv -xaes -X SnmpPassw0rd2020 10.2.253.70 1.3.6.1.4.1.9.9.661.1.3.4.1.1.1
SNMPv2-SMI::enterprises.9.9.661.1.3.4.1.1.1.12 = INTEGER: -71

So I try to create a snmp_queries like that:

Code: Select all

<rssi>
  <name>Get Cisco RSSI Signal</name>
  <description>Queries a host for RSSI details</description>
  <oid_index>1.3.6.1.4.1.9.9.661.1.3.4.1.1.1</oid_index>
  <oid_index_parse>OID/REGEXP:.*\.([0-9]+)$</oid_index_parse>
  <fields>
    <Index>
        <name>RSSI Index</name>
        <method>walk</method>
        <source>value</source>
        <direction>input</direction>
        <oid>1.3.6.1.4.1.9.9.661.1.3.4.1.1.1</oid>
    </Index>
    <rssiState>
      <name>RSSI Level</name>
      <type>integer</type>
      <method>get</method>
      <source>value</source>
      <direction>output</direction>
      <oid>.1.3.6.1.4.1.9.9.661.1.3.4.1.1.1</oid>
    </rssiState>
  </fields>
</rssi>

The debug output is this one:
2024-11-18 16_15_43-Clipboard.png
2024-11-18 16_15_43-Clipboard.png (38.98 KiB) Viewed 868 times
I have a problem with this line, since it's not an index:
Total: 0.370000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.9.9.661.1.3.4.1.1.1.14' value: '-81'

and when I try the graph I can see this:
2024-11-18 16_17_17-Clipboard.png
2024-11-18 16_17_17-Clipboard.png (4.63 KiB) Viewed 868 times
But I like to have a different name, than the value measured, and the device can have to 4G modem active, so 2 entries.
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Looking for help for a data source templae with no index, and no description

Post by macan »

Have a look here - below is described "SNMP Index does not exist"
https://docs.cacti.net/How-To-Data-Queries.md
Let the Cacti grow!
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Looking for help for a data source templae with no index, and no description

Post by Rno »

Thanks, that was the one I was looking for.
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest