Plugin-Gallery: get better 2nd level structure

This commit is contained in:
dipohl 2017-02-24 01:35:47 +01:00
parent 45391005a8
commit 3a6fdce80f
13 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@ fi
if [ "$1" = "config" ]; then
echo 'graph_title SSH Statistics'
echo 'graph_order refused invalid accepted'
echo 'graph_category ssh'
echo 'graph_category security'
echo 'graph_vlabel Count'
echo 'graph_scale no'

View File

@ -52,7 +52,7 @@ if (isset($argv[1]) && $argv[1] == 'config') {
echo 'graph_title SSHD invalid countries from ' . SYSLOG . "\n";
echo 'graph_args --base 1000 -l 0' . "\n";
echo 'graph_vlabel number of invalid access per country' . "\n";
echo 'graph_category system' . "\n";
echo 'graph_category security' . "\n";
echo 'graph_info This graph shows the countries of invalid access to sshd.' . "\n";
foreach (get_sshd_invalid_countries() as $country => $cnt) {
echo $country . '.label ' . $country . "\n";

View File

@ -71,7 +71,7 @@ when 'config'
puts 'graph_title SSHD invalid countries from ' + SYSLOG
puts 'graph_args --base 1000 -l 0'
puts 'graph_vlabel number of invalid access per country'
puts 'graph_category system'
puts 'graph_category security'
puts 'graph_info This graph shows the countries of invalid access to sshd.'
getInvalids.each {|k,v| puts k + '.label ' + k}
exit 0

View File

@ -30,7 +30,6 @@
#
LOG=${logfile:-/var/log/secure}
CATEGORY=${category:-system}
if [ "$1" = "autoconf" ]; then
@ -48,7 +47,7 @@ if [ "$1" = "config" ]; then
echo 'graph_title SSHD login stats from' $LOG
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel logins'
echo 'graph_category' $CATEGORY
echo 'graph_category' security
echo 'LogPass.label Successful password logins'
echo 'LogPassPAM.label Successful login via PAM'