From 19f06793fab10f4c4f8ec4aec19d7b89adaf84ad Mon Sep 17 00:00:00 2001 From: Someone Date: Wed, 28 Aug 2013 01:57:54 +0200 Subject: [PATCH] changed ircd stat plugins --- ircch => ircdch | 8 ++++---- ircd => ircdlusers | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename ircch => ircdch (71%) rename ircd => ircdlusers (90%) diff --git a/ircch b/ircdch similarity index 71% rename from ircch rename to ircdch index 4f151e3..e8736fd 100755 --- a/ircch +++ b/ircdch @@ -22,15 +22,15 @@ if [ "$1" = "autoconf" ]; then fi if [ "$1" = "config" ]; then - echo "graph_title irc channel users" - echo "graph_info This graph shows the usercounts in selected channels" + echo "graph_title ircd channel stats" + echo "graph_info This graph shows the usercounts of the top 15 channels" echo "graph_category irc" echo "graph_printf %.0lf" echo "graph_scale no" - cat /tmp/irc/channels.txt | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".label "$1"\n"$1".draw LINE2" }' | head -n 15 + cat /tmp/irc_sno/channels.txt | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".label "$1"\n"$1".draw LINE2" }' | head -n 15 exit 0 fi -cat /tmp/irc/channels.txt | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".value "$2 }' | head -n 15 +cat /tmp/irc_sno/channels.txt | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".value "$2 }' | head -n 15 exit 0 diff --git a/ircd b/ircdlusers similarity index 90% rename from ircd rename to ircdlusers index 12c5fa9..b79ddb0 100755 --- a/ircd +++ b/ircdlusers @@ -22,8 +22,8 @@ if [ "$1" = "autoconf" ]; then fi if [ "$1" = "config" ]; then - echo "graph_title ircd status" - echo "graph_info This graph shows the IRC daemon's status" + echo "graph_title ircd usage stats" + echo "graph_info This graph shows the IRCd's stats" echo "graph_category irc" echo "graph_order clients channels servers" echo "graph_printf %.0lf" @@ -38,5 +38,5 @@ if [ "$1" = "config" ]; then exit 0 fi -cat /tmp/irc/stats.txt +cat /tmp/irc_sno/stats.txt exit 0 -- 2.43.0