Cacti / plugin_monitor

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

Monitor Tab odering issue #147

Closed darkness4773 closed 1 year ago

darkness4773 commented 2 years ago

Hi ,

I'm using CACTI 1.2.19 and MONITOR plugin 2.5

I have setup a graph tree with manual ordering. I have 1 branch per building (Bat A, Bat B, Bat C, ...) In each Branch i have several devices

In the MONITOR tab, i have my devices grouped as setup but the branch ordering is random and it changes with the refresh. Bat A, Bat B, Bat C Bat B, Bat C, bat A Bat A, Bat C, Bat B, etc... image

Why the monitor tab doesn't respect the ordering setup in the trees management? Is it normal? Is there a way to have my ordering int the monitor tab?

gallogabor commented 1 year ago

I also hit this ordering problem when I upgraded our very old Cacti server to near current. I wish there will be a solution for this. Cacti 1.2.16, Monitor plugin 2.5

TheWitness commented 1 year ago

@gallogabor and @darkness4773, I think it's a sort on the SQL query. I'm not working on Monitor right now, too many other projects in flight both for my hobby and work. But if any of you can figure this out, a pull request would be appreciated.

shamimaust commented 1 year ago

The mentioned issue has not been solved yet. I am getting the following error.

2022-09-03 23:01:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/monitor/monitor.php[161]:draw_page(), /plugins/monitor/monitor.php[278]:CactiErrorHandler()) 2022-09-03 23:01:18 - ERROR PHP NOTICE in Plugin 'monitor': Undefined offset: 2 in file: /usr/share/cacti/plugins/monitor/monitor.php on line: 278 2022-09-03 23:01:14 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/monitor/monitor.php[161]:draw_page(), /plugins/monitor/monitor.php[278]:CactiErrorHandler()) 2022-09-03 23:01:14 - ERROR PHP NOTICE in Plugin 'monitor': Undefined offset: 2 in file: /usr/share/cacti/plugins/monitor/monitor.php on line: 278 2022-09-03 23:01:11 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/monitor/monitor.php[161]:draw_page(), /plugins/monitor/monitor.php[278]:CactiErrorHandler()) 2022-09-03 23:01:11 - ERROR PHP NOTICE in Plugin 'monitor': Undefined offset: 2 in file: /usr/share/cacti/plugins/monitor/monitor.php on line: 278

Need help.... Top Cacti Version: 1.2.15 Monitor Plugin version: 2.5