From 5d09d49499bb7dd330e17370981ed30442f90f2e Mon Sep 17 00:00:00 2001 From: Bushmills Date: Sat, 20 Mar 2010 18:29:21 +0100 Subject: [PATCH] Initial version --- plugins/other/logins | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 plugins/other/logins diff --git a/plugins/other/logins b/plugins/other/logins new file mode 100755 index 00000000..fde9fd3f --- /dev/null +++ b/plugins/other/logins @@ -0,0 +1,34 @@ +#!/bin/sh + +do_config() { +graph=( 2 # number of graphs. + label draw colour # graph setup + logins AREA 40ff40 # 1st graph setup data + users LINE2 ff0080 # 2nd graph setup data +) + +cat << EOF +graph_title Users Online +graph_vlabel Number of users and logins +graph_category logins +graph_args --base 1000 -l 0 +graph_scale no +EOF + +# can go into an include file +labels=$((${#graph[*]}/(graph+1))) +for ((i=0; i