[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread 'Brian Candler' via Prometheus Users
First, make sure you can reproduce the existing generator.yml -> snmp.yml using the Makefile to download MIBs. You should be able to reproduce exactly what the supplied snmp.yml has. Once you have that working, then try your own generator.yml and compare the generated snmp.yml. Drilling down th

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread Mitchell Laframboise
I just used this command and successfully return the right oid snmptranslate -On -m /usr/share/snmp/mibs/SYNOLOGY-RAID-MIB.mib -IR raidTotalSize so I don't get it On Monday, September 30, 2024 at 10:41:33 AM UTC-4 Mitchell Laframboise wrote: > here is the contents of the Synology raid mib fil

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread Mitchell Laframboise
here is the contents of the Synology raid mib file SYNOLOGY-RAID-MIB DEFINITIONS ::= BEGIN IMPORTS OBJECT-GROUP, MODULE-COMPLIANCE FROM SNMPv2-CONF enterprises, MODULE-IDENTITY, OBJECT-TYPE, Integer32, Counter64 FROM SNMPv2-SMI; synoRaid MODULE-IDENTITY LAST-UPDATED "20130911Z" ORGAN

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread 'Brian Candler' via Prometheus Users
I mean the MIB files consumed by generator. On Monday 30 September 2024 at 14:41:14 UTC+1 Mitchell Laframboise wrote: > I know the mib is working because when I do an snmpwalk i get the > following output. > > ~/snmp_exporter/generator$ snmpwalk -v2c -c public *.*.*.* > 1.3.6.1.4.1.6574.3 > SNM

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread Mitchell Laframboise
I know the mib is working because when I do an snmpwalk i get the following output. ~/snmp_exporter/generator$ snmpwalk -v2c -c public *.*.*.* 1.3.6.1.4.1.6574.3 SNMPv2-SMI::enterprises.6574.3.1.1.1.0 = INTEGER: 0 SNMPv2-SMI::enterprises.6574.3.1.1.1.1 = INTEGER: 1 SNMPv2-SMI::enterprises.6574.3

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread Mitchell Laframboise
Thank you for the explanations... I've checked the mibs and that metric is included as an object along with others like raidFreeSize that are also not being included in the generated snmp.yml I'm using the latest verison of snmp-exporter 0.26.0 Im wondering if the generator is broken? On Monda

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread 'Brian Candler' via Prometheus Users
> Since the generator.yml has that metric in overrides, shouldn't it be generated? No. Overrides only change how a metric is rendered; if there's no matching metric in the MIB then there's nothing to override. On Monday 30 September 2024 at 13:45:57 UTC+1 Brian Candler wrote: > > I looked at t

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread 'Brian Candler' via Prometheus Users
> I looked at the sample snmp.yml from Github that I assume is generated from the default generator.yml and I see that the "raidTotalSize" metric is included, but when I check my snmp.yml that metric isn't included. Either something is different in your generator.yml, or something is different

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread Mitchell Laframboise
>From the generator.yml I posted do you know why the snmp.yml didn't include that metric? Since the generator.yml has that metric in overrides, shouldn't it be generated? On Monday, September 30, 2024 at 8:39:30 AM UTC-4 Mitchell Laframboise wrote: > I looked at the sample snmp.yml from Githu

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread Mitchell Laframboise
I looked at the sample snmp.yml from Github that I assume is generated from the default generator.yml and I see that the "raidTotalSize" metric is included, but when I check my snmp.yml that metric isn't included. So I edited the snmp.yml to include that metric and now Prometheus is scraping t

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-30 Thread 'Brian Candler' via Prometheus Users
I can't see what you're looking at, because: 1. You've shown your generator.yml, but you've not shown the snmp.yml output that generator creates. 2. You've not said how the output snmp.yml is different from the supplied snmp.yml 3. You've not said what version of snmp_exporter you're using, so I

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-29 Thread Mitchell Laframboise
Hi. I'm having issues with another metric. raidTotalSize its in the default generator.yml under the synology module in overrides but when I generate the snmp.yml it doesn't put the metric in there??? I can't figure out why Here is my generator.yml file --- auths: public_v1: versio

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-29 Thread Mitchell Laframboise
Thanks for your reply. I was using the default generator.yml which lists an override of ifName and ignore was set to "true" I removed those lines before generating the snmp.yml and was able to query ifName. Thank you! On Sunday, September 29, 2024 at 4:17:09 PM UTC-4 Brian Candler wrote: >

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-29 Thread 'Brian Candler' via Prometheus Users
> I am successful in querying the metrics in Prometheus Which ones in particular *are* you able to see? > I did some more queries and found that I'm unable to return ifName? Please explain exactly what you're doing when you say "unable to return". If you're going to the Prometheus web interfac

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-29 Thread Mitchell Laframboise
Hi there, I did some more queries and found that I'm unable to return ifName? Im walking that specific OID so I don't understand? Can you help On Sunday, September 29, 2024 at 9:23:37 AM UTC-4 Mitchell Laframboise wrote: > Thanks Brian. I am successful in querying the metrics in Prometheu

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-29 Thread Mitchell Laframboise
Thanks Brian. I am successful in querying the metrics in Prometheus, so I will check out the Grafana community for support. On Sunday, September 29, 2024 at 9:03:12 AM UTC-4 Brian Candler wrote: > First, do a query in the Prometheus web interface (for example, just > "ifPhysAddress"). If you s

[prometheus-users] Re: Synology NAS Details Dashboard

2024-09-29 Thread 'Brian Candler' via Prometheus Users
First, do a query in the Prometheus web interface (for example, just "ifPhysAddress"). If you see no answers, then you need to drill down into your metrics collection. Check the query "up" to see if SNMP scraping is successful. If it's not, then check logs from snmp_exporter ("journalctl -eu sn