diff --git a/notify.pl b/notify.pl index dfadbc1..7847392 100755 --- a/notify.pl +++ b/notify.pl @@ -162,7 +162,7 @@ my @files = glob "$conf{'conf'}{'VMS'}/*.txt"; if ($function =~ /notify/) { mailout(\%conf, \%vms); -} elsif ($function =~ /(deployed|redeployed|msg|thanx)/ and $function_variable !~ /empty/) { +} elsif ($function =~ /(deployed|redeployed|cpu|msg|thanx)/ and $function_variable !~ /empty/) { my %slice = %vms{$function_variable}; mailout(\%conf, \%slice); } elsif ($function =~ /(renewal|subscription|deprovision)/) { @@ -187,5 +187,5 @@ if ($function =~ /notify/) { } mailout(\%conf, \%vms); } else { - print "usage: " . basename($0) . " [stopped | renewal | notify | deprovision] | [deployed | redeployed | msg | thanx] \n"; + print "usage: " . basename($0) . " [stopped | renewal | notify | deprovision] | [deployed | redeployed | cpu | msg | thanx] \n"; }