[{"data":1,"prerenderedAt":1214,"buildId":1215},["ShallowReactive",2],{"post-synology-nas-monitoring-snmp-prometheus":3,"posts-nav":1161},{"id":4,"title":5,"body":6,"date":1151,"description":1152,"draft":1153,"extension":1154,"meta":1155,"navigation":277,"path":1156,"readingTime":238,"seo":1157,"stem":1158,"tags":1159,"__hash__":1160},"posts\u002Fposts\u002Fsynology-nas-monitoring-snmp-prometheus.md","Monitoring a Synology NAS with snmp_exporter and Prometheus",{"type":7,"value":8,"toc":1142},"minimark",[9,18,30,35,45,51,55,63,108,111,148,155,159,166,173,180,184,198,453,456,483,486,490,493,519,525,638,642,649,1103,1112,1120,1124,1127,1138],[10,11,12,13,17],"p",{},"My NAS holds the backups for everything else in the homelab, so it is the one box I most need to know about ",[14,15,16],"em",{},"before"," something fails. Synology's own notifications are fine, but I wanted the NAS in the same Prometheus and Alertmanager setup as the rest of the cluster, with the same routing, silences and dashboards.",[10,19,20,21,25,26,29],{},"The good news is that you do not need to install an agent on the NAS. DSM ships an SNMP daemon, and Prometheus' ",[22,23,24],"code",{},"snmp_exporter"," already includes a ",[22,27,28],{},"synology"," module.",[31,32,34],"h2",{"id":33},"overview","Overview",[36,37,43],"pre",{"className":38,"code":40,"language":41,"meta":42},[39],"language-text","Prometheus ──scrape──▶ snmp_exporter (in Kubernetes) ──SNMPv3\u002FUDP 161──▶ NAS\n","text","",[22,44,40],{"__ignoreMap":42},[10,46,47,48,50],{},"Prometheus does not talk SNMP itself. It scrapes ",[22,49,24],{},", passing the NAS as a target, and the exporter translates that into SNMP requests.",[31,52,54],{"id":53},"step-1-enable-snmpv3-in-dsm","Step 1: Enable SNMPv3 in DSM",[10,56,57,58,62],{},"In DSM, go to ",[59,60,61],"strong",{},"Control Panel → Terminal & SNMP → SNMP",":",[64,65,66,70,73,105],"ol",{},[67,68,69],"li",{},"Enable the SNMP service.",[67,71,72],{},"Turn off SNMPv1\u002Fv2c, because v2c sends a plaintext community string.",[67,74,75,76,79,80,83,84],{},"Enable ",[59,77,78],{},"SNMPv3"," with a dedicated user, for example ",[22,81,82],{},"prometheus",":\n",[85,86,87,94],"ul",{},[67,88,89,90,93],{},"authentication protocol ",[59,91,92],{},"SHA"," with a long random password",[67,95,96,97,100,101,104],{},"privacy protocol ",[59,98,99],{},"AES"," with a ",[14,102,103],{},"different"," long random password",[67,106,107],{},"Apply.",[10,109,110],{},"Then check that the daemon really listens on the network interface and not just on loopback:",[36,112,116],{"className":113,"code":114,"language":115,"meta":42,"style":42},"language-bash shiki shiki-themes github-light github-dark","netstat -lnu | grep 161\n# udp   0   0 0.0.0.0:161   0.0.0.0:*\n","bash",[22,117,118,141],{"__ignoreMap":42},[119,120,123,127,131,135,138],"span",{"class":121,"line":122},"line",1,[119,124,126],{"class":125},"sScJk","netstat",[119,128,130],{"class":129},"sj4cs"," -lnu",[119,132,134],{"class":133},"szBVR"," |",[119,136,137],{"class":125}," grep",[119,139,140],{"class":129}," 161\n",[119,142,144],{"class":121,"line":143},2,[119,145,147],{"class":146},"sJ8bj","# udp   0   0 0.0.0.0:161   0.0.0.0:*\n",[10,149,150,151,154],{},"When I first set this up, the daemon only listened on ",[22,152,153],{},"127.0.0.1:161"," because the setting had not been applied yet. Every scrape timed out, and the exporter logs gave no hint why.",[31,156,158],{"id":157},"step-2-open-the-firewall-path","Step 2: Open the firewall path",[10,160,161,162,165],{},"If the cluster and the NAS sit in different VLANs or subnets, your router has to allow ",[59,163,164],{},"UDP 161 from the cluster nodes to the NAS",". Pod traffic usually leaves the cluster with the node's IP as its source (SNAT), so allow the node subnet rather than the pod CIDR.",[10,167,168,169,172],{},"Keep the rule narrow: one protocol, one port, one destination. Also check DSM's own firewall (",[59,170,171],{},"Control Panel → Security → Firewall",") if you have enabled it.",[10,174,175,176,179],{},"This was my second timeout. DSM was set up correctly, but the router dropped the traffic because only NFS was allowed from the cluster network to the NAS. The exporter's log shows the same ",[22,177,178],{},"request timeout (after 3 retries)"," in both cases, so check both places.",[31,181,183],{"id":182},"step-3-deploy-snmp_exporter-with-credentials-from-a-secret","Step 3: Deploy snmp_exporter with credentials from a secret",[10,185,186,187,190,191,193,194,197],{},"I use the community Helm chart ",[22,188,189],{},"prometheus-snmp-exporter",". The built-in ",[22,192,28],{}," module already knows the right OIDs, so the custom config only adds ",[59,195,196],{},"auth settings",". The passwords come from a Kubernetes secret through environment variables, which keeps them out of the Helm values in Git:",[36,199,203],{"className":200,"code":201,"language":202,"meta":42,"style":42},"language-yaml shiki shiki-themes github-light github-dark","config: |\n  auths:\n    nas_v3:\n      version: 3\n      security_level: authPriv\n      username: prometheus\n      auth_protocol: SHA\n      password: ${SNMP_AUTH_PASS}\n      priv_protocol: AES\n      priv_password: ${SNMP_PRIV_PASS}\n\nextraArgs:\n  - --config.file=\u002Fetc\u002Fsnmp_exporter\u002Fsnmp.yml\n  - --config.expand-environment-variables\n\nenvFrom:\n  - secretRef:\n      name: nas-snmp\n\nserviceMonitor:\n  enabled: true\n  selector: {}\n  params:\n    - name: nas\n      target: 192.0.2.10\n      module: [synology]\n      auth: [nas_v3]\n      interval: 60s\n      scrapeTimeout: 30s\n","yaml",[22,204,205,218,224,230,236,242,248,254,260,266,272,279,287,296,304,309,317,327,338,343,351,362,371,379,393,404,418,431,442],{"__ignoreMap":42},[119,206,207,211,215],{"class":121,"line":122},[119,208,210],{"class":209},"s9eBZ","config",[119,212,214],{"class":213},"sVt8B",": ",[119,216,217],{"class":133},"|\n",[119,219,220],{"class":121,"line":143},[119,221,223],{"class":222},"sZZnC","  auths:\n",[119,225,227],{"class":121,"line":226},3,[119,228,229],{"class":222},"    nas_v3:\n",[119,231,233],{"class":121,"line":232},4,[119,234,235],{"class":222},"      version: 3\n",[119,237,239],{"class":121,"line":238},5,[119,240,241],{"class":222},"      security_level: authPriv\n",[119,243,245],{"class":121,"line":244},6,[119,246,247],{"class":222},"      username: prometheus\n",[119,249,251],{"class":121,"line":250},7,[119,252,253],{"class":222},"      auth_protocol: SHA\n",[119,255,257],{"class":121,"line":256},8,[119,258,259],{"class":222},"      password: ${SNMP_AUTH_PASS}\n",[119,261,263],{"class":121,"line":262},9,[119,264,265],{"class":222},"      priv_protocol: AES\n",[119,267,269],{"class":121,"line":268},10,[119,270,271],{"class":222},"      priv_password: ${SNMP_PRIV_PASS}\n",[119,273,275],{"class":121,"line":274},11,[119,276,278],{"emptyLinePlaceholder":277},true,"\n",[119,280,282,285],{"class":121,"line":281},12,[119,283,284],{"class":209},"extraArgs",[119,286,83],{"class":213},[119,288,290,293],{"class":121,"line":289},13,[119,291,292],{"class":213},"  - ",[119,294,295],{"class":222},"--config.file=\u002Fetc\u002Fsnmp_exporter\u002Fsnmp.yml\n",[119,297,299,301],{"class":121,"line":298},14,[119,300,292],{"class":213},[119,302,303],{"class":222},"--config.expand-environment-variables\n",[119,305,307],{"class":121,"line":306},15,[119,308,278],{"emptyLinePlaceholder":277},[119,310,312,315],{"class":121,"line":311},16,[119,313,314],{"class":209},"envFrom",[119,316,83],{"class":213},[119,318,320,322,325],{"class":121,"line":319},17,[119,321,292],{"class":213},[119,323,324],{"class":209},"secretRef",[119,326,83],{"class":213},[119,328,330,333,335],{"class":121,"line":329},18,[119,331,332],{"class":209},"      name",[119,334,214],{"class":213},[119,336,337],{"class":222},"nas-snmp\n",[119,339,341],{"class":121,"line":340},19,[119,342,278],{"emptyLinePlaceholder":277},[119,344,346,349],{"class":121,"line":345},20,[119,347,348],{"class":209},"serviceMonitor",[119,350,83],{"class":213},[119,352,354,357,359],{"class":121,"line":353},21,[119,355,356],{"class":209},"  enabled",[119,358,214],{"class":213},[119,360,361],{"class":129},"true\n",[119,363,365,368],{"class":121,"line":364},22,[119,366,367],{"class":209},"  selector",[119,369,370],{"class":213},": {}\n",[119,372,374,377],{"class":121,"line":373},23,[119,375,376],{"class":209},"  params",[119,378,83],{"class":213},[119,380,382,385,388,390],{"class":121,"line":381},24,[119,383,384],{"class":213},"    - ",[119,386,387],{"class":209},"name",[119,389,214],{"class":213},[119,391,392],{"class":222},"nas\n",[119,394,396,399,401],{"class":121,"line":395},25,[119,397,398],{"class":209},"      target",[119,400,214],{"class":213},[119,402,403],{"class":129},"192.0.2.10\n",[119,405,407,410,413,415],{"class":121,"line":406},26,[119,408,409],{"class":209},"      module",[119,411,412],{"class":213},": [",[119,414,28],{"class":222},[119,416,417],{"class":213},"]\n",[119,419,421,424,426,429],{"class":121,"line":420},27,[119,422,423],{"class":209},"      auth",[119,425,412],{"class":213},[119,427,428],{"class":222},"nas_v3",[119,430,417],{"class":213},[119,432,434,437,439],{"class":121,"line":433},28,[119,435,436],{"class":209},"      interval",[119,438,214],{"class":213},[119,440,441],{"class":222},"60s\n",[119,443,445,448,450],{"class":121,"line":444},29,[119,446,447],{"class":209},"      scrapeTimeout",[119,449,214],{"class":213},[119,451,452],{"class":222},"30s\n",[10,454,455],{},"Two details:",[85,457,458,472],{},[67,459,460,463,464,467,468,471],{},[22,461,462],{},"--config.expand-environment-variables"," makes the exporter replace ",[22,465,466],{},"${...}"," with environment values when it loads the config. Without it, the literal string ",[22,469,470],{},"${SNMP_AUTH_PASS}"," is sent as the password.",[67,473,474,475,478,479,482],{},"The default chart config already contains the standard modules. The second file adds only the ",[22,476,477],{},"auths"," block, so you do not need to generate the huge ",[22,480,481],{},"snmp.yml"," yourself.",[10,484,485],{},"The secret itself is stored encrypted, as a SealedSecret in my case, so the repo never contains the plaintext passwords.",[31,487,489],{"id":488},"step-4-check-the-metrics","Step 4: Check the metrics",[10,491,492],{},"You can test from inside the exporter pod before you wait for Prometheus:",[36,494,496],{"className":113,"code":495,"language":115,"meta":42,"style":42},"wget -qO- 'http:\u002F\u002F127.0.0.1:9116\u002Fsnmp?target=192.0.2.10&module=synology&auth=nas_v3' | grep -E '^(systemStatus|diskStatus|raidStatus)'\n",[22,497,498],{"__ignoreMap":42},[119,499,500,503,506,509,511,513,516],{"class":121,"line":122},[119,501,502],{"class":125},"wget",[119,504,505],{"class":129}," -qO-",[119,507,508],{"class":222}," 'http:\u002F\u002F127.0.0.1:9116\u002Fsnmp?target=192.0.2.10&module=synology&auth=nas_v3'",[119,510,134],{"class":133},[119,512,137],{"class":125},[119,514,515],{"class":129}," -E",[119,517,518],{"class":222}," '^(systemStatus|diskStatus|raidStatus)'\n",[10,520,521,522,524],{},"Useful metrics from the ",[22,523,28],{}," module:",[526,527,528,541],"table",{},[529,530,531],"thead",{},[532,533,534,538],"tr",{},[535,536,537],"th",{},"Metric",[535,539,540],{},"Meaning",[542,543,544,559,572,582,592,602,615,625],"tbody",{},[532,545,546,556],{},[547,548,549,552,553],"td",{},[22,550,551],{},"systemStatus",", ",[22,554,555],{},"powerStatus",[547,557,558],{},"1 = normal, 2 = failed",[532,560,561,569],{},[547,562,563,552,566],{},[22,564,565],{},"systemFanStatus",[22,567,568],{},"cpuFanStatus",[547,570,571],{},"1 = normal",[532,573,574,579],{},[547,575,576],{},[22,577,578],{},"temperature",[547,580,581],{},"system temperature in °C",[532,583,584,589],{},[547,585,586],{},[22,587,588],{},"diskStatus",[547,590,591],{},"1 normal, 2 initialized, 3 not initialized, 4 system partition failed, 5 crashed",[532,593,594,599],{},[547,595,596],{},[22,597,598],{},"diskHealthStatus",[547,600,601],{},"1 normal, 2 warning, 3 critical, 4 failing",[532,603,604,612],{},[547,605,606,552,609],{},[22,607,608],{},"diskBadSector",[22,610,611],{},"diskTemperature",[547,613,614],{},"per disk",[532,616,617,622],{},[547,618,619],{},[22,620,621],{},"raidStatus",[547,623,624],{},"1 normal, 2 repairing, 11 degraded, 12 crashed, …",[532,626,627,635],{},[547,628,629,552,632],{},[22,630,631],{},"raidFreeSize",[22,633,634],{},"raidTotalSize",[547,636,637],{},"per volume, in bytes",[31,639,641],{"id":640},"step-5-alerts-that-matter","Step 5: Alerts that matter",[10,643,644,645,648],{},"These are the rules I use, as a ",[22,646,647],{},"PrometheusRule",". Hard failures fire right away, and slow trends wait so they do not flap:",[36,650,652],{"className":200,"code":651,"language":202,"meta":42,"style":42},"groups:\n  - name: nas\n    rules:\n      - alert: NasSnmpScrapeFailed\n        expr: absent_over_time(systemStatus[15m])\n        for: 5m\n        labels: {severity: warning}\n        annotations:\n          summary: \"No SNMP data from the NAS for 15 minutes\"\n\n      - alert: NasSystemFailed\n        expr: systemStatus != 1 or powerStatus != 1\n        labels: {severity: critical}\n\n      - alert: NasDiskFailed\n        expr: diskStatus >= 4 or diskHealthStatus >= 3\n        labels: {severity: critical}\n\n      - alert: NasDiskHealthWarning\n        expr: diskHealthStatus == 2\n        for: 30m\n        labels: {severity: warning}\n\n      - alert: NasDiskBadSectorsIncreasing\n        expr: delta(diskBadSector[1d]) > 0\n        labels: {severity: warning}\n\n      - alert: NasDiskTemperatureHigh\n        expr: diskTemperature > 55\n        for: 15m\n        labels: {severity: warning}\n\n      - alert: NasRaidDegraded\n        expr: raidStatus == 11 or raidStatus == 12\n        labels: {severity: critical}\n\n      - alert: NasRaidRepairing\n        expr: raidStatus == 2\n        for: 1h\n        labels: {severity: warning}\n\n      - alert: NasRaidSpaceLow\n        expr: raidFreeSize \u002F raidTotalSize \u003C 0.10\n        for: 1h\n        labels: {severity: warning}\n",[22,653,654,661,671,678,691,701,711,730,737,747,751,762,771,786,790,801,810,824,828,839,848,857,871,875,886,895,909,913,924,933,943,958,963,975,985,1000,1005,1017,1027,1037,1052,1057,1069,1079,1088],{"__ignoreMap":42},[119,655,656,659],{"class":121,"line":122},[119,657,658],{"class":209},"groups",[119,660,83],{"class":213},[119,662,663,665,667,669],{"class":121,"line":143},[119,664,292],{"class":213},[119,666,387],{"class":209},[119,668,214],{"class":213},[119,670,392],{"class":222},[119,672,673,676],{"class":121,"line":226},[119,674,675],{"class":209},"    rules",[119,677,83],{"class":213},[119,679,680,683,686,688],{"class":121,"line":232},[119,681,682],{"class":213},"      - ",[119,684,685],{"class":209},"alert",[119,687,214],{"class":213},[119,689,690],{"class":222},"NasSnmpScrapeFailed\n",[119,692,693,696,698],{"class":121,"line":238},[119,694,695],{"class":209},"        expr",[119,697,214],{"class":213},[119,699,700],{"class":222},"absent_over_time(systemStatus[15m])\n",[119,702,703,706,708],{"class":121,"line":244},[119,704,705],{"class":209},"        for",[119,707,214],{"class":213},[119,709,710],{"class":222},"5m\n",[119,712,713,716,719,722,724,727],{"class":121,"line":250},[119,714,715],{"class":209},"        labels",[119,717,718],{"class":213},": {",[119,720,721],{"class":209},"severity",[119,723,214],{"class":213},[119,725,726],{"class":222},"warning",[119,728,729],{"class":213},"}\n",[119,731,732,735],{"class":121,"line":256},[119,733,734],{"class":209},"        annotations",[119,736,83],{"class":213},[119,738,739,742,744],{"class":121,"line":262},[119,740,741],{"class":209},"          summary",[119,743,214],{"class":213},[119,745,746],{"class":222},"\"No SNMP data from the NAS for 15 minutes\"\n",[119,748,749],{"class":121,"line":268},[119,750,278],{"emptyLinePlaceholder":277},[119,752,753,755,757,759],{"class":121,"line":274},[119,754,682],{"class":213},[119,756,685],{"class":209},[119,758,214],{"class":213},[119,760,761],{"class":222},"NasSystemFailed\n",[119,763,764,766,768],{"class":121,"line":281},[119,765,695],{"class":209},[119,767,214],{"class":213},[119,769,770],{"class":222},"systemStatus != 1 or powerStatus != 1\n",[119,772,773,775,777,779,781,784],{"class":121,"line":289},[119,774,715],{"class":209},[119,776,718],{"class":213},[119,778,721],{"class":209},[119,780,214],{"class":213},[119,782,783],{"class":222},"critical",[119,785,729],{"class":213},[119,787,788],{"class":121,"line":298},[119,789,278],{"emptyLinePlaceholder":277},[119,791,792,794,796,798],{"class":121,"line":306},[119,793,682],{"class":213},[119,795,685],{"class":209},[119,797,214],{"class":213},[119,799,800],{"class":222},"NasDiskFailed\n",[119,802,803,805,807],{"class":121,"line":311},[119,804,695],{"class":209},[119,806,214],{"class":213},[119,808,809],{"class":222},"diskStatus >= 4 or diskHealthStatus >= 3\n",[119,811,812,814,816,818,820,822],{"class":121,"line":319},[119,813,715],{"class":209},[119,815,718],{"class":213},[119,817,721],{"class":209},[119,819,214],{"class":213},[119,821,783],{"class":222},[119,823,729],{"class":213},[119,825,826],{"class":121,"line":329},[119,827,278],{"emptyLinePlaceholder":277},[119,829,830,832,834,836],{"class":121,"line":340},[119,831,682],{"class":213},[119,833,685],{"class":209},[119,835,214],{"class":213},[119,837,838],{"class":222},"NasDiskHealthWarning\n",[119,840,841,843,845],{"class":121,"line":345},[119,842,695],{"class":209},[119,844,214],{"class":213},[119,846,847],{"class":222},"diskHealthStatus == 2\n",[119,849,850,852,854],{"class":121,"line":353},[119,851,705],{"class":209},[119,853,214],{"class":213},[119,855,856],{"class":222},"30m\n",[119,858,859,861,863,865,867,869],{"class":121,"line":364},[119,860,715],{"class":209},[119,862,718],{"class":213},[119,864,721],{"class":209},[119,866,214],{"class":213},[119,868,726],{"class":222},[119,870,729],{"class":213},[119,872,873],{"class":121,"line":373},[119,874,278],{"emptyLinePlaceholder":277},[119,876,877,879,881,883],{"class":121,"line":381},[119,878,682],{"class":213},[119,880,685],{"class":209},[119,882,214],{"class":213},[119,884,885],{"class":222},"NasDiskBadSectorsIncreasing\n",[119,887,888,890,892],{"class":121,"line":395},[119,889,695],{"class":209},[119,891,214],{"class":213},[119,893,894],{"class":222},"delta(diskBadSector[1d]) > 0\n",[119,896,897,899,901,903,905,907],{"class":121,"line":406},[119,898,715],{"class":209},[119,900,718],{"class":213},[119,902,721],{"class":209},[119,904,214],{"class":213},[119,906,726],{"class":222},[119,908,729],{"class":213},[119,910,911],{"class":121,"line":420},[119,912,278],{"emptyLinePlaceholder":277},[119,914,915,917,919,921],{"class":121,"line":433},[119,916,682],{"class":213},[119,918,685],{"class":209},[119,920,214],{"class":213},[119,922,923],{"class":222},"NasDiskTemperatureHigh\n",[119,925,926,928,930],{"class":121,"line":444},[119,927,695],{"class":209},[119,929,214],{"class":213},[119,931,932],{"class":222},"diskTemperature > 55\n",[119,934,936,938,940],{"class":121,"line":935},30,[119,937,705],{"class":209},[119,939,214],{"class":213},[119,941,942],{"class":222},"15m\n",[119,944,946,948,950,952,954,956],{"class":121,"line":945},31,[119,947,715],{"class":209},[119,949,718],{"class":213},[119,951,721],{"class":209},[119,953,214],{"class":213},[119,955,726],{"class":222},[119,957,729],{"class":213},[119,959,961],{"class":121,"line":960},32,[119,962,278],{"emptyLinePlaceholder":277},[119,964,966,968,970,972],{"class":121,"line":965},33,[119,967,682],{"class":213},[119,969,685],{"class":209},[119,971,214],{"class":213},[119,973,974],{"class":222},"NasRaidDegraded\n",[119,976,978,980,982],{"class":121,"line":977},34,[119,979,695],{"class":209},[119,981,214],{"class":213},[119,983,984],{"class":222},"raidStatus == 11 or raidStatus == 12\n",[119,986,988,990,992,994,996,998],{"class":121,"line":987},35,[119,989,715],{"class":209},[119,991,718],{"class":213},[119,993,721],{"class":209},[119,995,214],{"class":213},[119,997,783],{"class":222},[119,999,729],{"class":213},[119,1001,1003],{"class":121,"line":1002},36,[119,1004,278],{"emptyLinePlaceholder":277},[119,1006,1008,1010,1012,1014],{"class":121,"line":1007},37,[119,1009,682],{"class":213},[119,1011,685],{"class":209},[119,1013,214],{"class":213},[119,1015,1016],{"class":222},"NasRaidRepairing\n",[119,1018,1020,1022,1024],{"class":121,"line":1019},38,[119,1021,695],{"class":209},[119,1023,214],{"class":213},[119,1025,1026],{"class":222},"raidStatus == 2\n",[119,1028,1030,1032,1034],{"class":121,"line":1029},39,[119,1031,705],{"class":209},[119,1033,214],{"class":213},[119,1035,1036],{"class":222},"1h\n",[119,1038,1040,1042,1044,1046,1048,1050],{"class":121,"line":1039},40,[119,1041,715],{"class":209},[119,1043,718],{"class":213},[119,1045,721],{"class":209},[119,1047,214],{"class":213},[119,1049,726],{"class":222},[119,1051,729],{"class":213},[119,1053,1055],{"class":121,"line":1054},41,[119,1056,278],{"emptyLinePlaceholder":277},[119,1058,1060,1062,1064,1066],{"class":121,"line":1059},42,[119,1061,682],{"class":213},[119,1063,685],{"class":209},[119,1065,214],{"class":213},[119,1067,1068],{"class":222},"NasRaidSpaceLow\n",[119,1070,1072,1074,1076],{"class":121,"line":1071},43,[119,1073,695],{"class":209},[119,1075,214],{"class":213},[119,1077,1078],{"class":222},"raidFreeSize \u002F raidTotalSize \u003C 0.10\n",[119,1080,1082,1084,1086],{"class":121,"line":1081},44,[119,1083,705],{"class":209},[119,1085,214],{"class":213},[119,1087,1036],{"class":222},[119,1089,1091,1093,1095,1097,1099,1101],{"class":121,"line":1090},45,[119,1092,715],{"class":209},[119,1094,718],{"class":213},[119,1096,721],{"class":209},[119,1098,214],{"class":213},[119,1100,726],{"class":222},[119,1102,729],{"class":213},[10,1104,1105,1106,1111],{},"The most valuable one is ",[59,1107,1108],{},[22,1109,1110],{},"NasDiskBadSectorsIncreasing",". A growing bad-sector count often shows up weeks before a disk is marked as failing, which leaves time to order a replacement calmly.",[10,1113,1114,1119],{},[59,1115,1116],{},[22,1117,1118],{},"NasSnmpScrapeFailed"," is the safety net. If the NAS, the network path or the credentials break, you get one clear alert instead of silence. During setup it fires until everything works, which is a convenient end-to-end test.",[31,1121,1123],{"id":1122},"wrap-up","Wrap-up",[10,1125,1126],{},"With an agent-free setup and a handful of rules, the NAS reports into the same monitoring as everything else. If your scrapes time out, check three things in this order:",[64,1128,1129,1132,1135],{},[67,1130,1131],{},"Does the daemon listen on the network interface, not only on loopback?",[67,1133,1134],{},"Does every firewall in between allow UDP 161?",[67,1136,1137],{},"Do the SNMPv3 user, protocols and passwords match exactly?",[1139,1140,1141],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}",{"title":42,"searchDepth":226,"depth":226,"links":1143},[1144,1145,1146,1147,1148,1149,1150],{"id":33,"depth":143,"text":34},{"id":53,"depth":143,"text":54},{"id":157,"depth":143,"text":158},{"id":182,"depth":143,"text":183},{"id":488,"depth":143,"text":489},{"id":640,"depth":143,"text":641},{"id":1122,"depth":143,"text":1123},"2026-11-26","Disk health, RAID state, temperatures and free space from a Synology NAS in Prometheus, using SNMPv3, the built-in synology module of snmp_exporter, and a set of alerts that catch failing disks early.",false,"md",{},"\u002Fposts\u002Fsynology-nas-monitoring-snmp-prometheus",{"title":5,"description":1152},"posts\u002Fsynology-nas-monitoring-snmp-prometheus",null,"neL-e4NInn84RAhfwXo_O0kT-6XsBFHfWNz2R0IvF5M",[1162,1166,1170,1171,1175,1179,1183,1186,1190,1194,1198,1202,1206,1210],{"title":1163,"date":1164,"stem":1165},"Letting an AI agent run my homelab: guardrails that actually work","2026-11-28","posts\u002Fai-agent-homelab-guardrails",{"title":1167,"date":1168,"stem":1169},"From ingress-nginx to Gateway API with Envoy Gateway","2026-11-27","posts\u002Fingress-nginx-to-gateway-api-envoy",{"title":5,"date":1151,"stem":1158},{"title":1172,"date":1173,"stem":1174},"Cutting Prometheus series by 45 % on MicroK8s","2026-11-25","posts\u002Fprometheus-series-reduction-microk8s",{"title":1176,"date":1177,"stem":1178},"Deactivate Wordfence OTP","2024-11-15","posts\u002Fdeactivate-wordfence-otp",{"title":1180,"date":1181,"stem":1182},"ADB full backup Android","2021-09-28","posts\u002Fadb-full-backup-android",{"title":1184,"date":1181,"stem":1185},"Recover FreeOTP Codes","posts\u002Frecover-freeotp-codes",{"title":1187,"date":1188,"stem":1189},"systemd service starting without user login","2019-09-26","posts\u002Fsystemd-service-starting-without-login-of-user",{"title":1191,"date":1192,"stem":1193},"Keep processes running after ending an SSH session","2019-09-19","posts\u002Fkeep-process-running-after-ssh-session-closed",{"title":1195,"date":1196,"stem":1197},"PHP and Apache2 on Ubuntu — clean install for Composer","2019-09-13","posts\u002Fphp-and-apache2-on-ubuntu-clean-install-for-composer",{"title":1199,"date":1200,"stem":1201},"Headless Raspberry Pi","2019-09-06","posts\u002Fheadless-raspberry-pi",{"title":1203,"date":1204,"stem":1205},"ip route for WiFi","2019-09-05","posts\u002Fip-route-for-wifi",{"title":1207,"date":1208,"stem":1209},"Pi-Backup automation","2019-09-03","posts\u002Fpi-backup",{"title":1211,"date":1212,"stem":1213},"Pi-hole and PiVPN","2019-09-02","posts\u002Fpi-hole-and-pivpn",1795905437425,"9ff458c0-c29d-4bc7-9c60-8621e771cacc"]