DX Unified Infrastructure Management

 View Only
  • 1.  Powershell script for exs ntp monitoring

    Posted Oct 31, 2023 11:19 AM

    Hi All 

    I am trying to create a script to monitor NTP sync of esxi host and if threshold is breached alarm should be raised in UIM through UIMAPI

    But when i run the script and try to compare with 0 as threshold there should be 39 alarms one for each esxi host in Vcentre i am logged in  but instead i am only getting 7 alarms and i have noticed that count of these alarms is 6 or 7 or 10 which should not happen, also hostname always is UIM hub server even tough i am passing esx name in body of uimapi.

    below loop is run inside a for loop for each esx and i even printed to check if all esx are getting detected or not which is working

    Can anybody suggest why only 7 alarms are getting created instead of 39 alarms one for each esx and why hostname is always uim hub server instaed of esx name i am passing inside body. 



    ------------------------------
    Regards
    Nijin
    ------------------------------


  • 2.  RE: Powershell script for exs ntp monitoring

    Posted Nov 09, 2023 05:25 PM

    If it helps, the logmon probe is capable of executing commands and reading the output to create an alarm.