added dedicated cpu notification
This commit is contained in:
parent
072f833ce3
commit
0b654f64ae
|
@ -162,7 +162,7 @@ my @files = glob "$conf{'conf'}{'VMS'}/*.txt";
|
||||||
|
|
||||||
if ($function =~ /notify/) {
|
if ($function =~ /notify/) {
|
||||||
mailout(\%conf, \%vms);
|
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};
|
my %slice = %vms{$function_variable};
|
||||||
mailout(\%conf, \%slice);
|
mailout(\%conf, \%slice);
|
||||||
} elsif ($function =~ /(renewal|subscription|deprovision)/) {
|
} elsif ($function =~ /(renewal|subscription|deprovision)/) {
|
||||||
|
@ -187,5 +187,5 @@ if ($function =~ /notify/) {
|
||||||
}
|
}
|
||||||
mailout(\%conf, \%vms);
|
mailout(\%conf, \%vms);
|
||||||
} else {
|
} else {
|
||||||
print "usage: " . basename($0) . " [stopped | renewal | notify | deprovision] | [deployed | redeployed | msg | thanx] <vmid>\n";
|
print "usage: " . basename($0) . " [stopped | renewal | notify | deprovision] | [deployed | redeployed | cpu | msg | thanx] <vmid>\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue