New devices all generic and graph problem

Helo

Can someone please help me?

All devices with Microsoft Windows automaticly makes Generic logo and graph not show when i point mouse like on photo attached…

Also all new devices not show icon on dashboard… show generic logo…

here is my validate.php log

root@tt:/opt/librenms# ./validate.php

Component Version
LibreNMS 1.47-115-gf811dac53
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.10-0ubuntu0.18.04.1
MySQL 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.8.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
root@tt:/opt/librenms#

Thanks

run poller debug and discovery.

./poller.php -h HOSTNAME -d
./discovery.ptp -h HOSTNAME -d

./poller.php -h HOSTNAME -d
LibreNMS Poller
SQL[select migration from migrations order by id desc limit 1 [] 0.5ms]

SQL[select count(*) as aggregate from migrations limit 1 [] 0.45ms]

SQL[SELECT version() [] 0.28ms]

===================================
Version info:
Commit SHA: f811dac53271b726d1329f1c5aaee99a366c4a07
Commit Date: 1548694537
DB Schema: 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP: 7.2.10-0ubuntu0.18.04.1
MySQL: 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool: 1.7.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache…
Done
Starting polling run:

SQL[SELECT * FROM devices WHERE disabled = 0 AND hostname = ‘HOSTNAME’ ORDER BY device_id ASC [] 1.75ms]

./poller.php HOSTNAME 2019-01-28 19:02:10 - 0 devices polled in 0.445 secs
MySQL [1/0.00s]: Cell[1/0.00s] Row[-1/-0.00s] Rows[1/0.00s] Column[0/0.00s] Update[0/0.00s] Insert[0/0.00s] Delete[0/0.00s]

./discovery.php -h HOSTNAME -d
LibreNMS Discovery
SQL[select migration from migrations order by id desc limit 1 [] 0.66ms]
SQL[select count(*) as aggregate from migrations limit 1 [] 0.31ms]
SQL[SELECT version() [] 0.47ms]

Version info:
Commit SHA: f811dac53271b726d1329f1c5aaee99a366c4a07
Commit Date: 1548694537
DB Schema: 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP: 7.2.10-0ubuntu0.18.04.1
MySQL: 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool: 1.7.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache… Done
SQL[SELECT * FROM devices WHERE disabled = 0 AND snmp_disable = 0 AND hostname LIKE ‘HOSTNAME’ ORDER BY device_id DESC [] 1.72ms]
./discovery.php HOSTNAME 2019-01-28 19:21:13 - 0 devices discovered in 0.520 secs
MySQL [1/0.00s]: Cell[1/0.00s] Row[-1/-0.00s] Rows[1/0.00s] Column[0/0.00s] Update[0/0.00s] Insert[0/0.00s] Delete[0/0.00s]
root@free:/opt/librenms#

That doesn’t look right. Is this device in LibreNMS? Can you swalk this device?

Yes i already have about 100 devices put… but problem start from yesterday on all new devices and devices that i ping change icon from Microsoft Windows to generic… as u can see on photo…

You need replace HOSTNAME with name of device that you added in librenms.

here is my config.php

List of RFC1918 networks to allow scanning-based discovery

#$config[‘nets’][] = “10.0.0.0/8”;
#$config[‘nets’][] = “172.16.0.0/12”;
#$config[‘nets’][] = “192.168.0.0/16”;

Update configuration

#$config[‘update_channel’] = ‘release’; # uncomment to follow the monthly release channel
#$config[‘update’] = 0; # uncomment to completely disable updates
$config[‘force_hostname_to_sysname’] = true;
$config[‘force_ip_to_sysname’] = true;
$config[‘enable_printers’] = true;
$config[‘show_services’] = 1;
$config[‘nagios_plugins’] = “/usr/lib/nagios/plugins”;

./poller.php only ping devices shows

/opt/librenms# ./poller.php -h 10.10.12.8 -d
LibreNMS Poller
SQL[select migration from migrations order by id desc limit 1 [] 6.43ms]

SQL[select count(*) as aggregate from migrations limit 1 [] 0.8ms]

SQL[SELECT version() [] 0.37ms]

===================================
Version info:
Commit SHA: 60a39caa3518b474d3bc9c93de6a5fbaf1321dd6
Commit Date: 1548696617
DB Schema: 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP: 7.2.10-0ubuntu0.18.04.1
MySQL: 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool: 1.7.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache…
Done
Starting polling run:

SQL[SELECT * FROM devices WHERE disabled = 0 AND hostname = ‘10.10.12.8’ ORDER BY device_id ASC [] 2.33ms]

SQL[SELECT * FROM devices_attribs WHERE device_id = ? [96] 15.27ms]

Hostname: 10.10.12.8
Device ID: 96
OS: windows
Warning: inet_pton(): Unrecognized address in /opt/librenms/includes/polling/functions.inc.php on line 249

[FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 10.10.12.8
array (
‘xmt’ => ‘3’,
‘rcv’ => ‘3’,
‘loss’ => ‘0’,
‘min’ => ‘0.93’,
‘max’ => ‘5.96’,
‘avg’ => ‘2.62’,
‘exitcode’ => 0,
)
SQL[INSERT IGNORE INTO device_perf (xmt,rcv,loss,min,max,avg,device_id,timestamp,debug) VALUES (:xmt,:rcv,:loss,:min,:max,:avg,:device_id,NOW(),:debug) {“xmt”:“3”,“rcv”:“3”,“loss”:“0”,“min”:“0.93”,“max”:“5.96”,“avg”:“2.62”,“device_id”:96,“debug”:"[]"} 26.06ms]

Start Device Groups

SQL[SELECT * FROM device_groups ORDER BY name [] 0.47ms]

SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id=? AND (devices.sysName REGEXP “Docsis” ) LIMIT 1 [96] 0.72ms]

SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id=? AND (devices.type = “wireless”) LIMIT 1 [96] 0.63ms]

SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id=? AND (devices.os REGEXP “Windows” ) LIMIT 1 [96] 0.6ms]

SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id=? AND (devices.sysName REGEXP “nod”) LIMIT 1 [96] 0.73ms]

SQL[SELECT DISTINCT(devices.device_id) FROM devices WHERE devices.device_id=? AND (devices.os REGEXP “Linux” ) LIMIT 1 [96] 0.6ms]

SQL[SELECT device_group_id FROM device_group_device WHERE device_id=? [96] 0.76ms]

Groups Added:
Groups Removed:

End Device Groups

RRD[update /opt/librenms/rrd/10.10.12.8/ping-perf.rrd N:2.62]
RRD[update /opt/librenms/rrd/10.10.12.8/poller-perf.rrd N:1.154]
SQL[UPDATE devices set last_ping=NOW(),last_ping_timetaken=?,last_polled=NOW(),last_polled_timetaken=? WHERE device_id = ? [“2.62”,1.154,96] 10.7ms]

Updating 10.10.12.8

Polled in 1.154 seconds

Start Alerts

SQL[select * from devices where devices.device_id = ? limit 1 [96] 1.24ms]

SQL[select device_groups.*, device_group_device.device_id as pivot_device_id, device_group_device.device_group_id as pivot_device_group_id from device_groups inner join device_group_device on device_groups.id = device_group_device.device_group_id where device_group_device.device_id = ? [96] 1.01ms]

SQL[select exists(select * from alert_schedule inner join alert_schedulables on alert_schedule.schedule_id = alert_schedulables.schedule_id where ((recurring = ? and start <= NOW() and end >= NOW()) or (recurring = ? and (start_recurring_dt <= date_format(NOW(), ‘–%d’) and (end_recurring_dt >= date_format(NOW(), ‘–%d’) or end_recurring_dt is null or end_recurring_dt = ? or end_recurring_dt = ?)) and start_recurring_hr <= date_format(NOW(), ‘%H:%i:%s’) and end_recurring_hr >= date_format(NOW(), ‘%H:%i:%s’) and (recurring_day like CONCAT(’%’, date_format(NOW(), ‘’), ‘%’) or recurring_day is null or recurring_day = ?))) and ((alert_schedulable_type = ? and alert_schedulable_id = ?) or (alert_schedulable_type = ? and alert_schedulable_id in (?)))) as exists [0,1,“0000-00-00”,"","",“device”,96,“device_group”,1] 20.82ms]

SQL[SELECT DISTINCT a.* FROM alert_rules a
LEFT JOIN alert_device_map d ON a.id=d.rule_id
LEFT JOIN alert_group_map g ON a.id=g.rule_id
LEFT JOIN device_group_device dg ON g.group_id=dg.device_group_id
WHERE a.disabled = 0 AND ((d.device_id IS NULL AND g.group_id IS NULL) OR d.device_id=? OR dg.device_id=?) [96,96] 20.09ms]

End Alerts

SQL[INSERT IGNORE INTO perf_times (type,doing,start,duration,devices,poller) VALUES (:type,:doing,:start,:duration,:devices,:poller) {“type”:“poll”,“doing”:“10.10.12.8”,“start”:1548766490.825868,“duration”:“2.527”,“devices”:1,“poller”:“free”} 20.84ms]

./poller.php 10.10.12.8 2019-01-29 13:54:53 - 1 devices polled in 2.527 secs
SNMP [0/0.00s]: Get[0/0.00s] Getnext[0/0.00s] Walk[0/0.00s]
MySQL [7/0.10s]: Cell[6/0.01s] Row[-6/-0.01s] Rows[3/0.04s] Column[1/0.00s] Update[1/0.01s] Insert[2/0.05s] Delete[0/0.00s]
RRD [2/0.00s]: Update[2/0.00s] Create [0/0.00s] Other[0/0.00s]

./discovery.php

./discovery.php -h 10.10.12.8 -d
LibreNMS Discovery
SQL[select migration from migrations order by id desc limit 1 [] 0.53ms]
SQL[select count(*) as aggregate from migrations limit 1 [] 0.36ms]
SQL[SELECT version() [] 0.35ms]

Version info:
Commit SHA: 60a39caa3518b474d3bc9c93de6a5fbaf1321dd6
Commit Date: 1548696617
DB Schema: 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP: 7.2.10-0ubuntu0.18.04.1
MySQL: 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool: 1.7.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache… Done
SQL[SELECT * FROM devices WHERE disabled = 0 AND snmp_disable = 0 AND hostname LIKE ‘10.10.12.8’ ORDER BY device_id DESC [] 1.25ms]
./discovery.php 10.10.12.8 2019-01-29 13:58:05 - 0 devices discovered in 0.492 secs
MySQL [1/0.00s]: Cell[1/0.00s] Row[-1/-0.00s] Rows[1/0.00s] Column[0/0.00s] Update[0/0.00s] Insert[0/0.00s] Delete[0/0.00s]

Anyine please?

Please use pastebin or gist and link it here. also you need to replace the -h 10.10.12.8 with the hostname of whaterver you used to add the device into librenms.

Everything works before 2-3 days… that ip adress is from device… i mean that device is in my network…

just one… when i see on dashboard its generic… when i open device logo is from windows…

Ok so it’s just that page not the actual device pages.

Here is devices in dashboard

Here is when i open some device

As u can see in dashboard also dont show graphs of ping

These are ping only devices thats how they show.

Why not enable snmp?

Whatever of device if i change OS in dashboard is still Generic and when i open device it show it… dont accept any OS change

Can anyone help me to fix this?