Cacti / plugin_monitor

Monitor Plugin for Cacti
GNU General Public License v2.0
36 stars 39 forks source link

When grouping by site, devices with no site never appear #95

Closed netniV closed 5 years ago

netniV commented 5 years ago

Describe the bug If a device has not been associated to a site, it will never appear in monitor

Expected behavior When using "All sites" or "Non-Site Devices", the device should be shown.

Additional context The reason for this is that render_site() has a specific "INNER JOIN" for the site table. That join should be a left join as the site may not exist (eg, when the id is 0)