From 0b654f64ae9b62adda70c61d60ec59962db1af21 Mon Sep 17 00:00:00 2001 From: mischa Date: Sat, 9 Apr 2022 10:57:44 +0200 Subject: [PATCH] added dedicated cpu notification --- notify.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; }