DX Unified Infrastructure Management

  • 1.  Generate Alerts for new agents installed

    Posted Sep 26, 2017 05:26 PM

    I want to know if it would be possible generate one alert if the new robot was installed in order to keep under control. 



  • 2.  Re: Generate Alerts for new agents installed

    Broadcom Employee
    Posted Sep 26, 2017 08:54 PM

    Hi  RHENRIQUE,

     

    You can create a db trigger on table CM_NIMBUS_ROBOT after insert (for each row) . In the trigger insert a row with information from row(robot) just inserted into CM_NIMBUS_ROOBT into a custom table. If you are familar with custom probe, create a probe to periodically check this table, and fire alarms accordingly then drop the row. You can also resue this probe for other tasks if you want.

     

    Hope this helps.



  • 3.  Re: Generate Alerts for new agents installed

    Broadcom Employee
    Posted Sep 28, 2017 11:12 AM

    also you will have to create this custom table manually before creating this trigger. If this table is later modified or renamed, manually recompile the trigger and make sure its status is valid and enabled.

     

    maybe someone else here has other suggestions.



  • 4.  Re: Generate Alerts for new agents installed

    Posted Oct 08, 2017 07:29 PM

    We  do  this  in  another way:

    • We have a custom installation scripts,
    • which generates a request.cfg
    • containing a reference to a package "our_monitoring",
    • where "our_monitoring" is a super-pack referencing "our_cdm" and other standard "our_" super-packages,
    • and also refers to  a "our_new_robot" package
    • which only contains the execution of a nimalarm command with a special  subsystem id.
    • This subsystem id is recognized by nas that triggers special treatment (i.e. configuring net_connect).

     

    We are investigating the use of  mon_config_service  to  achive the same results - but we can't  use that all over the place, as we have some servers we are not allowed to upgrade or reconfigure automatic.



  • 5.  Re: Generate Alerts for new agents installed

    Posted Oct 09, 2017 02:14 PM

    Hi Poul, 

     

    Could you please share with me this script ?

     

    Thanks, 

    Roberto



  • 6.  Re: Generate Alerts for new agents installed

    Posted Oct 10, 2017 06:10 AM

    Another possibility is to use the probe: sql_response to execute each hour (or any other freq):

    ---

    SELECT nm.robot,cs.create_time,nm.check_time, nm.hub from CM_COMPUTER_SYSTEM cs INNER JOIN CM_NIMBUS_ROBOT nm on nm.robot=cs.name where create_time >= DATEADD(hh, -1, GETDATE())

    ---

    This could generate someting like:

    new_robot_discovered/bgbulab53/CA_UIM: name: bgbulab54