Resource icon

Munin Graph Users / Guests Online 2.2

No permission to download
Looks like it doesn't capture the guest value when the first value is more than 1,000

Code:
matt@Matt-PC:/var/www$ /usr/share/munin/plugins/xenforo_users
members.value 1259
guests.value

Trying to figure why it's not playing now
 
Think I've cracked it!

Code:
matt@Matt-PC:/var/www$ /usr/share/munin/plugins/xenforo_users      
members.value 1259
guests.value 1702

So for XF 1.1 replace
Code:
               my($members) = $2;
                $members =~ s/,//g;
                my($guests) = $3;
                $guests =~ s/,//g;
                print "members.value $members\n";
                print "guests.value $guests\n";

with
Code:
                @results = ("members.value $2\n","guests.value $3\n");
                for (@results) {
                s/,//;
                }
                print @results;
 
So you want robots to be in their own graph?
In image I see just members guest and total, but in plugin robots is writed, and from what I know "LWP::UserAgent" is blocked on some webservers, security module or manual by sysadmin. Anyway you plugin is very usefull, I will install it tomorrow.
 
In image I see just members guest and total, but in plugin robots is writed, and from what I know "LWP::UserAgent" is blocked on some webservers, security module or manual by sysadmin. Anyway you plugin is very usefull, I will install it tomorrow.
The last update has two files. One that works with XF 1.1 and one that will work with XF 1.2

The XF 1.2 will put all 3 entries into the graph.

http://xenforo.com/community/resources/munin-graph-users-guests-online.1382/updates

xenforo_users-day.webp
 
Last edited:
That seems to work when executing manually:

members.value 1060
guests.value 1568

but the graph still isn't showing the blue line. I'll give it a little while in case it needs it.

Edit: Seems to be showing up now after a few restarts :-)

Cheers
 
Last edited:
That seems to work when executing manually:

members.value 1060
guests.value 1568

but the graph still isn't showing the blue line. I'll give it a little while in case it needs it.

Cheers
It took about 25 minutes for my graph to start showing a build up of the blue line on top of the green
 
I installed it but someting is wrong.

Code:
root@xxx:/etc/munin/plugins# ./xenforo_users
members.value U
guests.value U
robots.value U
root@xxx:/etc/munin/plugins# ./xenforo_users autoconf
root@xxx:/etc/munin/plugins#
In last run i got blank result, I am ussing nginx and disabled all security but still not working.

Edit: FIXED
1st: I forgot about language pack need to modify plugin for you language if you do not use english.
2st: If you use some security modules or rules take of this user-agents "libwww-perl" "libwww" "perl".

0c3j7C0.png


For feature update maybe can do something to extract data from databate without to scrape front-end.
 
Last edited:
While this generally works fine, does everyone elses monthly and yearly plots look ok? The y-axis seems to be incorrect on mine.
 
Sorry I forgot :-)

Screen Shot 2013-08-18 at 12.59.22.webp
The top row seems ok but the month and year ones on the bottom row seem off.

In the top two graphs the values stack (which is how the rest of Munin seems to work) with the blue being built on top of the green and not underneath it.

In the month plot, the top total number should be just over 5K but it's actually displaying at the "Guests" value of just over 4k.

The year graph seems even worse. The y-axis is only around 2K but the maximum value should be 5k.

I hope that makes sense?
 
The month and year graphs take an average

http://munin-monitoring.org/ticket/1051

This is an artifact of the storage format: The RRD file stores min/max/average values for the time periods specified by Munin, but when Munin generates graphs the line is always based on the average values. Since the larger time span views have to compress the data, the larger time spans cause the sharp peaks and valleys in the average values to soften and disappear. Conversely, it's easy to retain the max/min information because you just keep the bigger/smaller value. In this way, the further you zoom out, the more flat the line will get, while the min/max will still tell you how high it actually went.

I've seen other projects that use RRDs show the MAX/MIN values on the graphs, but I'm not sure if Munin has any built-in capability for it. It's tricky because it can easily make the graph crowded and hard to interpret.
 
Are you sure that's it? It'd be good to see a few other people's graphs if possible.

The monthly one seems to be showing the max values but not placed on top of each other. It's a bit of a coincidence that it's calculated the average numbers to plot to be pretty much the same numbers (4k and 1.2k) as the maximums.
 
That looks to me like yours is "stacking" correctly but mine isn't. I agree that it's using the average values.

Your green line is around 20 which is similar to your average, you blue line is around 100 (which is 80 for guests plus the 20 for members), your orange line is another 50 on top of that.

It might be that I don't have enough year data yet to tell if it's working for mine though as we fluctuate a lot over the year so our average isn't consistent like yours is.

Have you got a similar monthly plot?
 
That looks to me like yours is "stacking" correctly but mine isn't. I agree that it's using the average values.

Your green line is around 20 which is similar to your average, you blue line is around 100 (which is 80 for guests plus the 20 for members), your orange line is another 50 on top of that.

It might be that I don't have enough year data yet to tell if it's working for mine though as we fluctuate a lot over the year so our average isn't consistent like yours is.

Have you got a similar monthly plot?
I'll post the monthly one when I get home
 
Top Bottom