mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fix get agent status on unknown modules
This commit is contained in:
parent
3f000f403a
commit
9305fd17ba
@ -618,8 +618,13 @@ sub get_agent_status ($$$) {
|
||||
$module_status = 2;
|
||||
}
|
||||
elsif ($module_status != 2) {
|
||||
if ($m_status == 0) {
|
||||
$module_status = 0;
|
||||
if ($m_status == 3) {
|
||||
$module_status = 3;
|
||||
}
|
||||
elsif ($module_status != 3) {
|
||||
if ($m_status == 3) {
|
||||
$module_status = 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -647,6 +652,8 @@ sub get_agent_status ($$$) {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
print "MS ::::::::::::::".Dumper($module_status);
|
||||
|
||||
return $module_status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user