Skip to content

Commit 08b5e71

Browse files
authored
Raise satellites/satellites_used RRD max from 40 to 200 for gpsd (librenms#19655)
Modern multi-constellation GNSS receivers (GPS+GLONASS+Galileo+BeiDou, sometimes also QZSS/NavIC) routinely report 70-80+ satellites visible and 60+ used in fix, far exceeding the existing RRD GAUGE max of 40. When the polled value exceeds the DS max, RRD records "Unknown" - which graphs as 0 - even though the application is correctly returning the real value. Visible-satellites graphs flat-line at 0 on otherwise healthy multi-constellation feeds (e.g. Quectel LC29H + gpsd 3.25, reporting 77-79 visible / 64-68 used). Raise both DS maxima to 200, which gives headroom for any conceivable constellation count today (current theoretical maximum across all GNSS is ~140 satellites) and any near-term expansion. Tested on gpsd 3.25 + Quectel LC29H multi-constellation GNSS HAT on Debian 13 Trixie: with max=40, `rrdtool lastupdate` showed `satellites=0` for an extend output of `79`; after `rrdtool tune --maximum satellites:200`, the same poll cycle records `satellites=79` correctly.
1 parent 7bd424e commit 08b5e71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/polling/applications/gpsd.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
->addDataset('mode', 'GAUGE', 0, 4)
151151
->addDataset('hdop', 'GAUGE', 0, 100)
152152
->addDataset('vdop', 'GAUGE', 0, 100)
153-
->addDataset('satellites', 'GAUGE', 0, 40)
154-
->addDataset('satellites_used', 'GAUGE', 0, 40);
153+
->addDataset('satellites', 'GAUGE', 0, 200)
154+
->addDataset('satellites_used', 'GAUGE', 0, 200);
155155

156156
// Update basic RRD
157157
$basic_tags = [

0 commit comments

Comments
 (0)