« Munin HP plugin » : différence entre les versions

Aller à la navigation Aller à la recherche
aucun résumé des modifications
Aucun résumé des modifications
Ligne 234 : Ligne 234 :
if ( $ARGV[0] and $ARGV[0] eq "config") {
if ( $ARGV[0] and $ARGV[0] eq "config") {
   print "graph_title HP Fans\n";
   print "graph_title HP Fans\n";
   print "graph_category system\n";
   print "graph_category sensors\n";
   print "ok.label Fans OK\n";
   print "ok.label Fans OK\n";
   print "ok.type GAUGE\n";
   print "ok.type GAUGE\n";
Ligne 335 : Ligne 335 :
if ( $ARGV[0] and $ARGV[0] eq "config") {
if ( $ARGV[0] and $ARGV[0] eq "config") {
   print "graph_title HP Power Supplies\n";
   print "graph_title HP Power Supplies\n";
   print "graph_category system\n";
   print "graph_category sensors\n";
   print "ok.label Power Supplies OK\n";
   print "ok.label Power Supplies OK\n";
   print "ok.type GAUGE\n";
   print "ok.type GAUGE\n";
Ligne 463 : Ligne 463 :
if ( $ARGV[0] and $ARGV[0] eq "config") {
if ( $ARGV[0] and $ARGV[0] eq "config") {
   print "graph_title HP temperature\n";
   print "graph_title HP temperature\n";
   print "graph_category system\n";
   print "graph_category sensors\n";
   for my $sensor (@sensors) {
   for my $sensor (@sensors) {
       print "s" . $sensor->{'id'} . ".label " . $sensor->{'name'} . "\n";
       print "s" . $sensor->{'id'} . ".label " . $sensor->{'name'} . "\n";
4 231

modifications

Menu de navigation