mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
2012-11-19 Sergio Martin <sergio.martin@artica.es>
* modules/pandora_module.h modules/pandora_module.cc: Fixed type conflicts in the last changes git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7155 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
205e4259dd
commit
a9dabcf2aa
@ -1,3 +1,9 @@
|
|||||||
|
2012-11-19 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* modules/pandora_module.h
|
||||||
|
modules/pandora_module.cc: Fixed type conflicts in the
|
||||||
|
last changes
|
||||||
|
|
||||||
2012-11-19 Sergio Martin <sergio.martin@artica.es>
|
2012-11-19 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* modules/pandora_module.h
|
* modules/pandora_module.h
|
||||||
|
@ -66,7 +66,7 @@ Pandora_Module::Pandora_Module (string name) {
|
|||||||
this->timestamp = 0;
|
this->timestamp = 0;
|
||||||
this->intensive_match = 0;
|
this->intensive_match = 0;
|
||||||
this->unit = "";
|
this->unit = "";
|
||||||
this->module_group = 0;
|
this->module_group = "";
|
||||||
this->custom_id = "";
|
this->custom_id = "";
|
||||||
this->str_warning = "";
|
this->str_warning = "";
|
||||||
this->str_critical = "";
|
this->str_critical = "";
|
||||||
@ -74,10 +74,10 @@ Pandora_Module::Pandora_Module (string name) {
|
|||||||
this->warning_instructions = "";
|
this->warning_instructions = "";
|
||||||
this->unknown_instructions = "";
|
this->unknown_instructions = "";
|
||||||
this->tags = "";
|
this->tags = "";
|
||||||
this->critical_inverse = 0;
|
this->critical_inverse = "";
|
||||||
this->warning_inverse = 0;
|
this->warning_inverse = "";
|
||||||
this->quiet = 0;
|
this->quiet = "";
|
||||||
this->module_ff_interval = 0;
|
this->module_ff_interval = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -601,7 +601,7 @@ Pandora_Module::getXml () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Module group */
|
/* Module group */
|
||||||
if (this->module_group != 0) {
|
if (this->module_group != "") {
|
||||||
module_xml += "\t<module_group>";
|
module_xml += "\t<module_group>";
|
||||||
module_xml += this->module_group;
|
module_xml += this->module_group;
|
||||||
module_xml += "</module_group>\n";
|
module_xml += "</module_group>\n";
|
||||||
@ -657,28 +657,28 @@ Pandora_Module::getXml () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Critical inverse */
|
/* Critical inverse */
|
||||||
if (this->critical_inverse != 0) {
|
if (this->critical_inverse != "") {
|
||||||
module_xml += "\t<critical_inverse>";
|
module_xml += "\t<critical_inverse>";
|
||||||
module_xml += this->critical_inverse;
|
module_xml += this->critical_inverse;
|
||||||
module_xml += "</critical_inverse>\n";
|
module_xml += "</critical_inverse>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Warning inverse */
|
/* Warning inverse */
|
||||||
if (this->warning_inverse != 0) {
|
if (this->warning_inverse != "") {
|
||||||
module_xml += "\t<warning_inverse>";
|
module_xml += "\t<warning_inverse>";
|
||||||
module_xml += this->warning_inverse;
|
module_xml += this->warning_inverse;
|
||||||
module_xml += "</warning_inverse>\n";
|
module_xml += "</warning_inverse>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Quiet */
|
/* Quiet */
|
||||||
if (this->quiet != 0) {
|
if (this->quiet != "") {
|
||||||
module_xml += "\t<quiet>";
|
module_xml += "\t<quiet>";
|
||||||
module_xml += this->quiet;
|
module_xml += this->quiet;
|
||||||
module_xml += "</quiet>\n";
|
module_xml += "</quiet>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Module FF interval */
|
/* Module FF interval */
|
||||||
if (this->module_ff_interval != 0) {
|
if (this->module_ff_interval != "") {
|
||||||
module_xml += "\t<module_ff_interval>";
|
module_xml += "\t<module_ff_interval>";
|
||||||
module_xml += this->module_ff_interval;
|
module_xml += this->module_ff_interval;
|
||||||
module_xml += "</module_ff_interval>\n";
|
module_xml += "</module_ff_interval>\n";
|
||||||
|
@ -177,7 +177,7 @@ namespace Pandora_Modules {
|
|||||||
unsigned char intensive_match;
|
unsigned char intensive_match;
|
||||||
int intensive_interval;
|
int intensive_interval;
|
||||||
string unit, custom_id, str_warning, str_critical;
|
string unit, custom_id, str_warning, str_critical;
|
||||||
int module_group, warning_inverse, critical_inverse, quiet, module_ff_interval;
|
string module_group, warning_inverse, critical_inverse, quiet, module_ff_interval;
|
||||||
string critical_instructions, warning_instructions, unknown_instructions, tags;
|
string critical_instructions, warning_instructions, unknown_instructions, tags;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user