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:
koichirok 2013-11-25 22:03:07 +00:00
parent 6f24c9f6f2
commit 0e56927e9a
2 changed files with 7 additions and 2 deletions

View File

@ -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>
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but

View File

@ -352,7 +352,7 @@ sub get_agent_status ($$$) {
# AGENT_MODULE_STATUS_CRITICAL_ALERT
# AGENT_MODULE_STATUS_CRITICAL_BAD
# AGENT_MODULE_STATUS_WARNING
# AGENT_MODULE_STATUS_UNKNOW
# AGENT_MODULE_STATUS_UNKNOWN
# AGENT_MODULE_STATUS_NORMAL
if ($m_status == 4) {
$module_status = 4;
@ -365,7 +365,7 @@ sub get_agent_status ($$$) {
if ($m_status == 2) {
$module_status = 2;
}
else {
elsif ($module_status != 2) {
if ($m_status == 0) {
$module_status = 0;
}