Plugin-Gallery: get better 2nd level structure
This commit is contained in:
parent
45391005a8
commit
3a6fdce80f
|
@ -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'
|
||||
|
|
@ -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";
|
|
@ -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
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue