It's something specific to your site. If I change the URL in the script to be your site, I don't get a value back.
If I change it to xenforo.com/community:
root@vps [/usr/share/munin/plugins]# ./xenforo_users
members.value 88
guests.value 441
Yep, you are blocking the perl script from connecting, and sending back a 403 forbidden
Just added an IP exclusion... took all of 30 seconds once I figured out what it was... I was working in the foreground with my post up in the background to MattW, fixed it and came back and finished my post then saw he had found the same thing I did.You need to either disable its rule regarding libwww-perl requests, or specifically allow it. mod_security will prevent this as well as a default behavior (using the ASL rules).
I've updated the Perl script to include some error checking.
You can now use autoconf to check trouble shoot if you are getting the below response:
Code:# ./xenforo_users members.value U guests.value U
Checks for 404, 403 errors, and also checks if the site is a XenForo site.
What is your website? I looked in your profile and it's not listed. I was going to modify one of my munin plugins to point there and check.I have the same problem :S I'd love to have this working!
Code:root@www:/etc/munin/plugins# ./xenforo_users autoconf root@www:/etc/munin/plugins# ./xenforo_users members.value U guests.value U
if ($response->content =~ /Online\snow\:\s\d+\s\(members\:\s(\d+)\,\sguests\:\s(\d+)\)/im)
if ($response->content =~ /Total\:\s\d+\s\(miembros\:\s(\d+)\,\sinvitados\:\s(\d+)\)/im)
root@host:/etc/munin/plugins# diff xenforo_users xenforo_users_2
19c19
< my $URL = exists $ENV{'url'} ? $ENV{'url'} : "http://www.example1.com";
---
> my $URL = exists $ENV{'url'} ? $ENV{'url'} : "http://www.example2.com";
52c52
< print "graph_title Forum Users\n";
---
> print "graph_title Forum 2 Users\n";
We use essential cookies to make this site work, and optional cookies to enhance your experience.