Closed joelsdc closed 6 years ago
Hi, I just did a git pull and tried again, I think something might still be wrong?
./discovery.php -d -v -m os -h 11pdu1.la2.gogii.net
LibreNMS Discovery
===================================
Version info:
Commit SHA: 44cb59d54e80cd7b85e7fe55ad02857c823f6629
Commit Date: 1510086659
DB Schema: 215
PHP: 7.0.15-0ubuntu0.16.04.4
MySQL: 10.0.29-MariaDB-0ubuntu0.16.04.1
RRDTool: 1.5.5
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
SQL[SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 AND `hostname` LIKE '11pdu1.la2.gogii.net' ORDER BY device_id DESC]
SQL[SELECT * FROM devices_attribs WHERE `device_id` = '27']
11pdu1.la2.gogii.net 27 generic SQL[INSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`) VALUES ('3','3','0','0.73','1.41','0.98','27',NOW())]
SNMP Check response code: 0
SNMP[/usr/bin/snmpget -v2c -c 'public' -OUQn -M /opt/librenms/mibs udp:11pdu1.la2.gogii.net:161 SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysObjectID.0]
.1.3.6.1.2.1.1.1.0 = Sentry Switched CDU
.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.1718.3
| Sentry Switched CDU | .1.3.6.1.4.1.1718.3 |
SNMP[/usr/bin/snmpget -v2c -c 'public' -Oqv -M /opt/librenms/mibs udp:11pdu1.la2.gogii.net:161 .1.3.6.1.4.1.12148.10.2.6.0]
No Such Object available on this agent at this OID
SNMP[/usr/bin/snmpget -v2c -c 'public' -Oqv -m Sentry3-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/sentry udp:11pdu1.la2.gogii.net:161 serverTech.4.1.1.1.3.0]
No Such Object available on this agent at this OID
SNMP[/usr/bin/snmpget -v2c -c 'public' -Oqv -m Sentry3-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/sentry udp:11pdu1.la2.gogii.net:161 serverTech.4.1.1.1.3.0]
No Such Object available on this agent at this OID
SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '27' AND `attrib_type` = 'poll_mib' ]
Modules status: Global+ OS+ Device
#### Load disco module os ####
SNMP[/usr/bin/snmpget -v2c -c 'public' -OUQn -M /opt/librenms/mibs udp:11pdu1.la2.gogii.net:161 SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysObjectID.0]
.1.3.6.1.2.1.1.1.0 = Sentry Switched CDU
.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.1718.3
| Sentry Switched CDU | .1.3.6.1.4.1.1718.3 |
SNMP[/usr/bin/snmpget -v2c -c 'public' -Oqv -M /opt/librenms/mibs udp:11pdu1.la2.gogii.net:161 .1.3.6.1.4.1.12148.10.2.6.0]
No Such Object available on this agent at this OID
SNMP[/usr/bin/snmpget -v2c -c 'public' -Oqv -m Sentry3-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/sentry udp:11pdu1.la2.gogii.net:161 serverTech.4.1.1.1.3.0]
No Such Object available on this agent at this OID
SNMP[/usr/bin/snmpget -v2c -c 'public' -Oqv -m Sentry3-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/sentry udp:11pdu1.la2.gogii.net:161 serverTech.4.1.1.1.3.0]
No Such Object available on this agent at this OID
OS: Generic Device (generic)
>> Runtime for discovery module 'os': 0.1010 seconds with 1208 bytes
#### Unload disco module os ####
SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '27' AND `attrib_type` = 'poll_mib' ]
SQL[UPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='0.81' WHERE `device_id` = '27']
Discovered in 0.81 seconds
SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES ('discover','11pdu1.la2.gogii.net','1510088361.5868','0.871','1','11cn3')]
./discovery.php 11pdu1.la2.gogii.net 2017-11-07 12:59:22 - 1 devices discovered in 0.871 secs
SNMP: Get[9/0.39s] Walk [0/0.00s]
MySQL: Cell[2/0.00s] Row[2/0.00s] Rows[4/0.00s] Column[0/0.00s] Update[1/0.00s] Insert[2/0.00s] Delete[0/0.00s]
Is there anything else I need to do? Do I have to delete/re-create the device or just running the discovery should be enough? Maybe run the poller.php manually once?
Thanks, Joel.
Current ./validate.php:
Component | Version
--------- | -------
LibreNMS | 1.33-54-g44cb59d
DB Schema | 215
PHP | 7.0.15-0ubuntu0.16.04.4
MySQL | 10.0.29-MariaDB-0ubuntu0.16.04.1
RRDTool | 1.5.5
SNMP | NET-SNMP 5.7.3
You should update by using ./daily.sh
- please try that.
Worked perfectly. Thanks once again for the quick fix! :D
This thread has been automatically locked since there has not been any recent activity after it was closed.
DO NOT DELETE THIS INFORMATION.
GitHub issues is for known/validated bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our Discord server to ask questions or our community site.
If you have a feature request please post this on our community site.
Please confirm each of the sections below by putting an
x
in the box like[x]
.====================================
section of./validate.php
which you can run from the cli.Up until Friday everything was fine, today we found that all our PDUs are reported as Generic devices, thus all the power related graphs are not available.
This is the info from discovery.php:
I haven't found any changes on the sensor or the MIB in the commits since Friday.
Please advice on what to do/check.
Thank you. Joel.