PluginTools minor updates

This commit is contained in:
fbsanchez 2020-09-09 12:34:51 +02:00
parent cbed2ef758
commit 4df6aa96df
2 changed files with 7 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
pandora_console/attachment/agents

View File

@ -672,22 +672,22 @@ sub print_module {
if (! (empty ($data->{warning_inverse}))) {
$xml_module .= "\t<warning_inverse><![CDATA[" . $data->{warning_inverse} . "]]></warning_inverse>\n";
}
if (! (empty($data->{min_warning})) ) {
if (! (empty($data->{min_warning_forced})) ) {
$xml_module .= "\t<min_warning_forced><![CDATA[" . $data->{min_warning_forced} . "]]></min_warning_forced>\n";
}
if (! (empty($data->{max_warning})) ) {
if (! (empty($data->{max_warning_forced})) ) {
$xml_module .= "\t<max_warning_forced><![CDATA[" . $data->{max_warning_forced} . "]]></max_warning_forced>\n";
}
if (! (empty ($data->{min_critical})) ) {
if (! (empty ($data->{min_critical_forced})) ) {
$xml_module .= "\t<min_critical_forced><![CDATA[" . $data->{min_critical_forced} . "]]></min_critical_forced>\n";
}
if (! (empty ($data->{max_critical})) ){
if (! (empty ($data->{max_critical_forced})) ){
$xml_module .= "\t<max_critical_forced><![CDATA[" . $data->{max_critical_forced} . "]]></max_critical_forced>\n";
}
if (! (empty ($data->{str_warning}))) {
if (! (empty ($data->{str_warning_forced}))) {
$xml_module .= "\t<str_warning_forced><![CDATA[" . $data->{str_warning_forced} . "]]></str_warning_forced>\n";
}
if (! (empty ($data->{str_critical}))) {
if (! (empty ($data->{str_critical_forced}))) {
$xml_module .= "\t<str_critical_forced><![CDATA[" . $data->{str_critical_forced} . "]]></str_critical_forced>\n";
}
if (! (empty ($data->{max}))) {