Create Custom Plugin - Using Table

Hi.

I would like to create a custom plug (which kind of works right now).

It’s basically just pulling data from the database using a custom query

 $devices_sql = dbFetchRows("SELECT
                     `D`.`sysName` AS `sysName`,
                     `D`.`hardware` AS `hardware`,
                     `S`.`sensor_class` AS `sensor_class`,
                     `S`.`sensor_current` AS `sensor_current`
              FROM `devices` AS `D`
                     INNER JOIN `wireless_sensors` AS `S` ON `D`.`device_id`=`S`.`device_id`");

I would like to put this data into the standard tables I see all across librenms, is there any documentation about how the tables work? Basically, the wireless sensors are fine, but I would like to filter by device types as well which I can’t currently do.

Is there any documentation about how this works? I see requests going to /ajax/table/device but honestly, I’m a bit lost as to how to format this correctly to allow filtering and refreshing?

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