Skip to content

Commit ffd1708

Browse files
committed
Add documentation about the get_connected_users time variation - relates to issue #4
1 parent ec622d2 commit ffd1708

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ the following inside it (we need to execute each script every 5 minutes to give
5757
valuable data to Munin, and we want to do that a little bit before the rounded
5858
5 minutes to ensure the data is ready when Munin fetches it):
5959

60-
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_connected_users_munin.php config
61-
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_connected_users_munin.php
60+
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_connected_users_5_munin.php config
61+
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_connected_users_5_munin.php
6262
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_registered_courses_munin.php config
6363
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_registered_courses_munin.php
6464
3,8,13,18,23,28,33,38,43,48,53,58 * * * * munin /usr/local/share/chamilo-munin/get_registered_users_munin.php config
@@ -107,7 +107,7 @@ ones that recover the information for you (the non-proxy ones will generate
107107
that info based on the cron process).
108108

109109
$ cd /etc/munin/plugins/
110-
$ ln -s /usr/local/share/chamilo-munin/get_connected_users_munin_proxy.php chamilo-connected-users
110+
$ ln -s /usr/local/share/chamilo-munin/get_connected_users_5_munin_proxy.php chamilo-connected-users-5
111111
$ ln -s /usr/local/share/chamilo-munin/get_live_answers_munin_proxy.php chamilo-live-answers
112112
$ ln -s /usr/local/share/chamilo-munin/get_live_exam_users_munin_proxy.php chamilo-live-exam-users
113113
$ ln -s /usr/local/share/chamilo-munin/get_registered_courses_munin_proxy.php chamilo-registered-courses
@@ -123,6 +123,19 @@ As you can see, we gave slightly different names to the links than the scripts
123123
themselves, just to ensure the scripts are called with a "chamilo" prefix and
124124
are more easily identified in the logs.
125125

126+
The get_connected_users script is built so as to allow to multiply the charts,
127+
for example checking for connected users in the last 5, 30 and 120 minutes.
128+
To do this, just make a copy of the script with "5" in the name to other
129+
scripts with the same name except for the 5 (both "munin" and "munin_proxy"
130+
scripts). The scripts will change depending on their name.
131+
132+
For example:
133+
$ cd /usr/local/share/chamilo-munin
134+
$ cp get_connected_users_5_munin.php get_connected_users_30_munin.php
135+
$ cp get_connected_users_5_munin_proxy.php get_connected_users_30_munin_proxy.php
136+
$ cd /etc/munin/plugins/
137+
$ ln -s /usr/local/share/chamilo-munin/get_connected_users_30_munin_proxy.php chamilo-connected-users-30
138+
126139
## Checking your setup ##
127140

128141
If you have configured everything correctly, you should now be able to issue a munin-run command and get results:

0 commit comments

Comments
 (0)