2013-11-26 KIKUCHI koichiro <koichiro@rworks.jp>
* lib/PandoraFMS/DB.pm: Fixed get_agent_status to return warning status correctly. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9125 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6f24c9f6f2
commit
0e56927e9a
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-26 KIKUCHI koichiro <koichiro@rworks.jp>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/DB.pm: Fixed get_agent_status to return warning status
|
||||||
|
correctly.
|
||||||
|
|
||||||
2013-11-13 Ramon Novoa <rnovoa@artica.es>
|
2013-11-13 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but
|
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but
|
||||||
|
|
|
@ -352,7 +352,7 @@ sub get_agent_status ($$$) {
|
||||||
# AGENT_MODULE_STATUS_CRITICAL_ALERT
|
# AGENT_MODULE_STATUS_CRITICAL_ALERT
|
||||||
# AGENT_MODULE_STATUS_CRITICAL_BAD
|
# AGENT_MODULE_STATUS_CRITICAL_BAD
|
||||||
# AGENT_MODULE_STATUS_WARNING
|
# AGENT_MODULE_STATUS_WARNING
|
||||||
# AGENT_MODULE_STATUS_UNKNOW
|
# AGENT_MODULE_STATUS_UNKNOWN
|
||||||
# AGENT_MODULE_STATUS_NORMAL
|
# AGENT_MODULE_STATUS_NORMAL
|
||||||
if ($m_status == 4) {
|
if ($m_status == 4) {
|
||||||
$module_status = 4;
|
$module_status = 4;
|
||||||
|
@ -365,7 +365,7 @@ sub get_agent_status ($$$) {
|
||||||
if ($m_status == 2) {
|
if ($m_status == 2) {
|
||||||
$module_status = 2;
|
$module_status = 2;
|
||||||
}
|
}
|
||||||
else {
|
elsif ($module_status != 2) {
|
||||||
if ($m_status == 0) {
|
if ($m_status == 0) {
|
||||||
$module_status = 0;
|
$module_status = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue