diff --git a/plugins/syslog/syslog_ng_stats b/plugins/syslog/syslog_ng_stats index 8ec54d99..d68699e7 100755 --- a/plugins/syslog/syslog_ng_stats +++ b/plugins/syslog/syslog_ng_stats @@ -103,7 +103,7 @@ for my $graph (@str) { # Show config if( exists $ARGV[0] and $ARGV[0] eq "config" ) { print "graph_title Syslog-ng statistics\n"; - print "graph_vlabel count\n"; + print "graph_vlabel messages/\${graph_period}\n"; print "graph_args --base 1000 --lower-limit 0 --rigid\n"; print "graph_info This graph show syslog-ng-ctl stats\n"; print "graph_category system\n"; @@ -117,6 +117,7 @@ if( exists $ARGV[0] and $ARGV[0] eq "config" ) { printf "%s.label %s: %s, %s\n", $id, $graph->{source_name},$graph->{source_id}, $graph->{type}; printf "%s.min 0\n", $id; + printf "%s.type DERIVE\n", $id; } }