"Monitor" plugin groups devices incorrectly

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
tubagreg
Posts: 3
Joined: Thu Jun 02, 2011 11:19 am

"Monitor" plugin groups devices incorrectly

Post by tubagreg »

I'm using Cacti 0.8.7i, but this happened in version 'h' as well.
I'm using Monitor plugin v1.3

Here is the issue: I have ~30 Graph Trees and my "Monitor" plugin settings configured to group devices/hosts based on the Tree they reside in. I think the goal is obvious, I would like to go to the "Monitor" tab and be able to see clusters of devices grouped according to how they are in the Graph Trees; however, when I go to the "Monitor" tab, most of the devices are grouped under the heading of the first graph tree.

I can supply a screen shot if absolutely necessary to understand. I didn't supply one now because I figured so much editing would have to be done that it wouldn't make sense.

Thanks in advance for your help

-tubagreg
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: "Monitor" plugin groups devices incorrectly

Post by noname »

Please see my old post:
- http://forums.cacti.net/viewtopic.php?p=197734#p197734

And here is a patch for monitor-v1.3-1 (but nothing changed from the old one).
monitor_grouping_tree.patch
(1.4 KiB) Downloaded 149 times
tubagreg
Posts: 3
Joined: Thu Jun 02, 2011 11:19 am

Re: "Monitor" plugin groups devices incorrectly

Post by tubagreg »

Hi noname,

The patch worked. Thank you so much for your help! Really appreciate it. Sorry I didn't see the other post.

tubagreg
mattlam
Posts: 2
Joined: Wed Mar 14, 2012 2:31 am

Re: "Monitor" plugin groups devices incorrectly

Post by mattlam »

Can anyone tell me how to use this file “monitor_grouping_tree.patch” ?

Here is the command:
[root@localhost plugins]# chmod 755 monitor_grouping_tree.patch
[root@localhost plugins]# ./monitor_grouping_tree.patch
./monitor_grouping_tree.patch: line 1: ---: command not found
./monitor_grouping_tree.patch: line 2: +++: command not found
./monitor_grouping_tree.patch: line 3: @@: command not found
./monitor_grouping_tree.patch: line 5: =: command not found
./monitor_grouping_tree.patch: line 6: =: command not found
./monitor_grouping_tree.patch: line 7: +: command not found
./monitor_grouping_tree.patch: line 8: +: command not found
./monitor_grouping_tree.patch: line 10: =: command not found
./monitor_grouping_tree.patch: line 11: syntax error near unexpected token `('
./monitor_grouping_tree.patch: line 11: ` $tree_names = array();'

Thank you!
Last edited by mattlam on Wed Mar 14, 2012 4:08 am, edited 2 times in total.
mattlam
Posts: 2
Joined: Wed Mar 14, 2012 2:31 am

Re: "Monitor" plugin groups devices incorrectly

Post by mattlam »

Now is ok
Thank you, brother upstairs!

Here is the command:
[root@localhost monitor]# patch -p0 < /var/www/html/cacti/plugins/monitor/monitor_grouping_tree.patch
patching file monitor.php

The result:
result.JPG
result.JPG (15.43 KiB) Viewed 996 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests