1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Reduce number of categories

This commit is contained in:
Gabriele Pohl 2014-09-07 14:20:12 +02:00
parent 81ad9f2bc7
commit 81db94e2d3
43 changed files with 60 additions and 54 deletions

View file

@ -51,7 +51,7 @@ if ($#ARGV eq 0) {
if ($ARGV[0] eq 'config') {
print "eAccelerator\n";
print "graph_title eAccelerator\n";
print "graph_category php-cgi\n";
print "graph_category php\n";
print "memusage.label Memory Usage %\n";
print "memusage.warning 95\n";
print "memusage.critical 95\n";

View file

@ -90,7 +90,7 @@ if (exists $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title PHP CGI [MB]\n";
print "graph_vlabel PHP CGI Memory usage\n";
print "graph_category php-cgi\n";
print "graph_category php\n";
print "graph_args -l 0\n";
print "php_cgi_ram.label PHP CGI Used RAM\n";
print "php_cgi_ram.draw LINE2\n";
@ -102,4 +102,4 @@ if (exists $ARGV[0] and $ARGV[0] eq "config") {
my ($pp, $pm) = eval(`ps u -p \$(pidof $PROCESS_NAME) | awk 'NR > 1 {pm += \$5} END {print "("NR-1","pm/1024")"}'`);
printf("php_cgi_ram.value %d\n", ceil($pm));
print "php_cgi_processes.value $pp\n";
}
}