Gpsd not showing data

$ ./validate.php 
====================================
Component | Version
--------- | -------
LibreNMS  | 21.11.0-79-gdf123c62c
DB Schema | 2021_25_01_0129_isis_adjacencies_nullable (229)
PHP       | 7.4.3
Python    | 3.8.10
MySQL     | 10.3.32-MariaDB-0ubuntu0.20.04.1
RRDTool   | 1.7.2
SNMP      | 5.8
====================================

[OK]    Composer Version: 2.1.14
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

I installed the gpsd snmp extend script and got it all working. Everything was generating pretty graphs and then it just stopped. I can run the script manually:

# sudo -u Debian-snmp /etc/snmp/gpsd 
{"data":{"mode":"3", "hdop":"0.93", "vdop":"0.8", "latitude":"33.714545", "longitude":"-112.060643333", "altitude":"128.1", "satellites":"14", "satellites_used":"8"}, "error":"0", "errorString":"", "version":"3.22"}

But I never see any data in LibreNMS. I’ve deleted and re-added the device a couple of times and made sure everything is up to date. What else can I check into?

Thank you.

Looking more with poller.php I can see I get a gpsd:-2:Empty return from snmp_get. when it’s run.

I should setup a second account since I reply to myself so often. Using snmpwalk I finally got a clue.

snmpwalk -v2c -c preciousSecret 10.0.0.1 nsExtendOutput1

Timeout: No Response from 10.0.0.1

Adding a -t10 got me a response. I couldn’t find docs on the GUI, but in the WebUI under the Device->SNMP there is a field under SNMP Settings that just said “seconds.” I bumped that up to 15 (it’s a RaspberryPi2 on the other end) and everything appears to be working now.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.