mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problem with snmp filter
This commit is contained in:
parent
ff30396595
commit
96ef0fdc4f
@ -508,7 +508,24 @@ if (empty ($traps)) {
|
|||||||
// Header
|
// Header
|
||||||
ui_print_page_header(__("SNMP Console"), "images/op_snmp.png", false,
|
ui_print_page_header(__("SNMP Console"), "images/op_snmp.png", false,
|
||||||
"", false, array($list, $statistics));
|
"", false, array($list, $statistics));
|
||||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no SNMP traps in database') ) );
|
|
||||||
|
$sql2 = "SELECT *
|
||||||
|
FROM ttrap
|
||||||
|
WHERE (
|
||||||
|
`source` IN (" . implode(",", $address_by_user_groups) . ") OR
|
||||||
|
`source`='' OR
|
||||||
|
`source` NOT IN (" . implode(",", $all_address_agents) . ")
|
||||||
|
)
|
||||||
|
AND status = 0
|
||||||
|
ORDER BY timestamp DESC";
|
||||||
|
$traps2 = db_get_all_rows_sql($sql2);
|
||||||
|
|
||||||
|
if(!empty ($traps2)){
|
||||||
|
ui_toggle($filter, __('Toggle filter(s)'));
|
||||||
|
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no SNMP traps in database that contains this filter') ) );
|
||||||
|
} else {
|
||||||
|
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no SNMP traps in database') ) );
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
} else{
|
} else{
|
||||||
if($config["pure"]){
|
if($config["pure"]){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user