1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Merge branch 'patch-1' of github.com:JoomlaStats/contrib into JoomlaStats-patch-1

This commit is contained in:
Stig Sandbeck Mathisen 2014-10-05 23:23:42 +02:00
commit 4be7859977

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl #!/usr/bin/perl
# #
# Munin plugin for different stats over a spotweb MySQL database # Munin plugin for different stats over a Joomla MySQL database
# #
# Copyright (C) 2011 - Csaba Martha (http://www.zenebuzi.com) # Copyright (C) 2011 - Csaba Martha (http://www.zenebuzi.com)
# Based on Rowdy Schwachfer (http://rowdy.nl) 's Spotweb plugin # Based on Rowdy Schwachfer (http://rowdy.nl) 's Spotweb plugin
@ -71,4 +71,4 @@ print "registered.value ".$1."\n";
#All count #All count
my $all = `$MYSQL $MYSQLOPTS -e 'SELECT COUNT(usertype) FROM $DATABASE.jos_session'`; my $all = `$MYSQL $MYSQLOPTS -e 'SELECT COUNT(usertype) FROM $DATABASE.jos_session'`;
$all =~/(\d+)/; $all =~/(\d+)/;
print "all.value ".$1."\n"; print "all.value ".$1."\n";