2011-05-12 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Added check of the returning of add operation to queue git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
53c03b7452
commit
ed5a909d01
|
@ -1,3 +1,8 @@
|
|||
2011-05-12 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* util/pandora_manage.pl: Added check of the returning of add
|
||||
operation to queue
|
||||
|
||||
2011-05-12 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* lib/PandoraFMS/DB.pm: Added a function to give the address of
|
||||
|
|
|
@ -1227,7 +1227,14 @@ sub pandora_manage_main ($$$) {
|
|||
my $policy_id = enterprise_hook('get_policy_id',[$dbh, $policy_name]);
|
||||
exist_check($policy_id,'policy',$policy_name);
|
||||
|
||||
enterprise_hook('pandora_add_policy_queue', [$dbh, $conf, $policy_id, 'apply']);
|
||||
my $ret = enterprise_hook('pandora_add_policy_queue', [$dbh, $conf, $policy_id, 'apply']);
|
||||
|
||||
if($ret == -1) {
|
||||
print "[ERROR] Operation 'apply' cannot be added to policy '$policy_name' because is duplicated in queue or incompatible with others operations\n\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
print "[INFO] Added operation 'apply' to policy '$policy_name'\n\n";
|
||||
}
|
||||
elsif ($param eq '--disable_policy_alerts') {
|
||||
param_check($ltotal, 1);
|
||||
|
|
Loading…
Reference in New Issue