DX NetOps

 View Only

 Records in the alarminfo table in the Reporting database

MARUBUN SUPPORT's profile image
MARUBUN SUPPORT posted Dec 24, 2024 03:05 AM
Hi Team,
[Product]
DX NetOps Spectrum
 
 
[Questions]
Please tell me about the records in the alarminfo table on the reporting mysql database running on the OC server.
A customer has contacted us stating that the number of alarms confirmed by applying select to the alarminfo table does not match the number of events displayed on the OneClick Java GUI.
Please confirm what information on OneClick the records stored in the alarminfo table match.
Also, could you please let us know if there is a manual or Knowledge Base that explains the operation when an alarm is stored in the Reporting database?
 
For reference, we have provided a sample of the SQL statement executed by the customer.
* Displaying a list of alarms with severity: Critical or severity: Major that occurred from 2024/1/1 to 2024/2/1
 
-----
select alarminfo.set_time as Time,
       alarmcondition.condition_name as Severity,
       devicemodel.model_name as Hostname,
       devicemodel.IP as IPAddress,
       case alarminfo.cause
            when 65540 then 'Communication not possible: Possible failure of upper level equipment'
            else alarmtitle.title
       end as AlarmTitle,
       concat('0x',lpad(hex(alarminfo.cause), 8, 0)) as CauseID,
       group_concat(globalcollection.gc_name) as GC
from ((((( alarminfo
inner join alarmtitle on alarminfo.alarm_title_id = alarmtitle.alarm_title_id )
inner join alarmcondition on alarminfo.condition_id = alarmcondition.condition_id )
inner join devicemodel on alarminfo.model_key = devicemodel.model_key )
inner join gcmodel on alarminfo.model_key = gcmodel.model_key )
inner join globalcollection on gcmodel.gc_rec_ID = globalcollection.gc_rec_ID )
where ( set_time >= {ts '2024-01-01 00:00:00'} and set_time < {ts '2024-02-01 00:00:00'} )
and ( alarmcondition.condition_name = 'Critical' or alarmcondition.condition_name = 'Major')
group by alarminfo.alarm_id;
-----

Thanks,

Silvio Okamoto's profile image
Broadcom Employee Silvio Okamoto

Hello Marubun Support,

The OneClick Console Events tab shows the information from the Archive Manager's DDM database. The MySQL query you ran retrieve the information from the reporting database. 

If the reporting db is not in sync you may see the alarm count mismatch. Also ensure there is no unprocessed alarm bucket files in the reporting directory. The SRM polls the data from the Archive Manager's DDM database every 60 minutes.

What event code are you counting in the OneClick Console to compare against the MySQL query output?

Thanks,
Silvio

MARUBUN SUPPORT's profile image
MARUBUN SUPPORT

Hi Silvio,

Thank you for your reply. 
Before I check with the customer, I have a question.
> If the reporting db is not in sync you may see the alarm count mismatch.
 
Is there a setting to synchronize the reporting db?
I tried looking but couldn't find anything.
 
 
 
Thanks,
Silvio Okamoto's profile image
Broadcom Employee Silvio Okamoto

Hello Marubun Support,

Run the following MySQL query to show the landscape sync status:

mysql> select * from landscape\G

Run the following MySQL query to find unprocessed bucket files:

mysql> select count(1) from bucketactivitylog where destroy_time is null;

mysql> select count(1) from bucketactivitylog where destroy_time is null and bucket_table_name like "alarm%";

For you reference:

https://knowledge.broadcom.com/external/article?articleId=210890

Thanks,
Silvio

MARUBUN SUPPORT's profile image
MARUBUN SUPPORT

Hi Silvio,

-

> What event code are you counting in the OneClick Console to compare against the MySQL query output?

This one is aware of the fact that it counts all events displayed in the Alarms tab after selecting the target node from the topology on the OneClick.
However, it is filtered by severity and alarms with Severity:Critical or Severity:Major are displayed.

and 

If the information you have given us is contained in the manual, could you please point us to the manual page?
* If it is an internal operation and not described in the manual, please let us know.

-

Thanks,

Silvio Okamoto's profile image
Broadcom Employee Silvio Okamoto

You could have set to Hide Symptoms alarms in Alarm Filter.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/24-3/managing-client-applications/using-oneclick/monitoring-your-network-with-oneclick/manage-alarms.html

Thanks,
Silvio