mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Plugin-Gallery: get better 2nd level structure
This commit is contained in:
parent
45391005a8
commit
3a6fdce80f
13 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,7 @@ fi
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title SSH Statistics'
|
echo 'graph_title SSH Statistics'
|
||||||
echo 'graph_order refused invalid accepted'
|
echo 'graph_order refused invalid accepted'
|
||||||
echo 'graph_category ssh'
|
echo 'graph_category security'
|
||||||
echo 'graph_vlabel Count'
|
echo 'graph_vlabel Count'
|
||||||
echo 'graph_scale no'
|
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_title SSHD invalid countries from ' . SYSLOG . "\n";
|
||||||
echo 'graph_args --base 1000 -l 0' . "\n";
|
echo 'graph_args --base 1000 -l 0' . "\n";
|
||||||
echo 'graph_vlabel number of invalid access per country' . "\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";
|
echo 'graph_info This graph shows the countries of invalid access to sshd.' . "\n";
|
||||||
foreach (get_sshd_invalid_countries() as $country => $cnt) {
|
foreach (get_sshd_invalid_countries() as $country => $cnt) {
|
||||||
echo $country . '.label ' . $country . "\n";
|
echo $country . '.label ' . $country . "\n";
|
|
@ -71,7 +71,7 @@ when 'config'
|
||||||
puts 'graph_title SSHD invalid countries from ' + SYSLOG
|
puts 'graph_title SSHD invalid countries from ' + SYSLOG
|
||||||
puts 'graph_args --base 1000 -l 0'
|
puts 'graph_args --base 1000 -l 0'
|
||||||
puts 'graph_vlabel number of invalid access per country'
|
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.'
|
puts 'graph_info This graph shows the countries of invalid access to sshd.'
|
||||||
getInvalids.each {|k,v| puts k + '.label ' + k}
|
getInvalids.each {|k,v| puts k + '.label ' + k}
|
||||||
exit 0
|
exit 0
|
|
@ -30,7 +30,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
LOG=${logfile:-/var/log/secure}
|
LOG=${logfile:-/var/log/secure}
|
||||||
CATEGORY=${category:-system}
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
|
@ -48,7 +47,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title SSHD login stats from' $LOG
|
echo 'graph_title SSHD login stats from' $LOG
|
||||||
echo 'graph_args --base 1000 -l 0'
|
echo 'graph_args --base 1000 -l 0'
|
||||||
echo 'graph_vlabel logins'
|
echo 'graph_vlabel logins'
|
||||||
echo 'graph_category' $CATEGORY
|
echo 'graph_category' security
|
||||||
|
|
||||||
echo 'LogPass.label Successful password logins'
|
echo 'LogPass.label Successful password logins'
|
||||||
echo 'LogPassPAM.label Successful login via PAM'
|
echo 'LogPassPAM.label Successful login via PAM'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue