3 Replies Latest reply on Jul 20, 2018 3:52 AM by sxnxr

    vrops

    nupurk14 Novice

      Hi Everyone,

       

      Greetings...!!!

       

      How can i get the total number of alert definition( default and customized both ) in a report. I have tried using alert list widget but that gives me only the generated alerts. So can anyone help me in getting the complete list. Thanks

        • 1. Re: vrops
          daphnissov Champion
          Community WarriorsvExpert

          I don't think vROps is capable of reporting that information back to itself because it isn't a metric or collected property. You could probably use PowerCLI with the OM series of cmdlets to retrieve this information.

          • 2. Re: vrops
            virtualg_uk Expert
            User ModeratorsvExpert

            That's right, using PowerCLI you'll need to use Get-OMAlertDefinition

            More info:

            Getting started with PowerCLI for vRealize Operations (vR OPs) - VMware PowerCLI Blog - VMware Blogs

            • 3. Re: vrops
              sxnxr Expert

              you could use the likes of postman and use the rest api

               

              https://your vrops/suite-api/api/alertdefinitions

               

              This will list all the alerts definitions with all the info

               

              <ops:alert-definition>

                      <ops:id>AlertDefinition-SDDCHealthAdapter-WitnessHostAvilability</ops:id>

                      <ops:name>Witness Host Node is Down</ops:name>

                      <ops:adapterKindKey>SDDCHealthAdapter</ops:adapterKindKey>

                      <ops:resourceKindKey>Witness Host</ops:resourceKindKey>

                      <ops:waitCycles>1</ops:waitCycles>

                      <ops:cancelCycles>1</ops:cancelCycles>

                      <ops:type>15</ops:type>

                      <ops:subType>18</ops:subType>

                      <ops:states>

                          <ops:state severity="IMMEDIATE">

                              <ops:symptom-set>

                                  <ops:symptomDefinitionIds>

                                      <ops:symptomDefinitionId>SymptomDefinition-SDDCHealthAdapter-WitnessHostAvilability</ops:symptomDefinitionId>

                                  </ops:symptomDefinitionIds>

                                  <ops:relation>SELF</ops:relation>

                                  <ops:symptomSetOperator>AND</ops:symptomSetOperator>

                              </ops:symptom-set>

                              <ops:impact>

                                  <ops:impactType>BADGE</ops:impactType>

                                  <ops:detail>health</ops:detail>

                              </ops:impact>

                              <ops:recommendationPriorityMap>

                                  <entry>

                                      <key>Recommendation-df-SDDCHealthAdapter-vCenterHAClusterBadHealthRecomm</key>

                                      <value>1</value>

                                  </entry>

                              </ops:recommendationPriorityMap>