9 Replies Latest reply on Oct 10, 2017 12:43 PM by mesverrum

    Active Alert Details - Custom HTML and User Links

    thsw

      Hi All,

       

      I wonder if someone could help on a couple of issues I'm having whilst trying to setup custom links in the resources below:

      - Custom HTML

      - User Links

       

      Basically SolarWinds is not populating those resources with the custom variables I've set up.

       

      E.g.

       

      Custom HTML

       

      <a href=''http://URL/${Nodes.Nodename}''>Link for ${Nodes.Nodename}</a>

       

      <a href=''http://URL/${N=SwisEntity;M=Alerts.Name}''>Link for ${N=SwisEntity;M=Alerts.Name}</a>

       

      Neither of the above work and it's the same thing for

      User Links

       

       

      Also it would be useful to know where I can get the full list of available variables in the Active Alert Details.

       

      Thanks in advance for your help!

        • Re: Active Alert Details - Custom HTML and User Links
          mesverrum

          I think you are using those variables out of context.  As best I can guess you probably took those variables from an alert email and tried to use them elsewhere but that's not going to work, as part of the alerting process it feeds those variables the info they need to work. Outside of the alert actions those variables are basically meaningless.

           

          Let me know what type of view are you putting this on and I can help you with figuring out if its possible to do what you are trying and the proper syntax

           

          -Marc Netterfield

              Loop1 Systems: SolarWinds Training and Professional Services

            • Re: Active Alert Details - Custom HTML and User Links
              thsw

              Basically what I need to do in the Active Alerts Details view is creating a custom resource with several info gathered from the alert itself.

              I would need to know the alert name, description of the issue, etc. and I'd like to be able to create custom URL containing variables that reference what I need from the alert.

              Hope that makes sense.

               

              Thank you for your help.

                • Re: Active Alert Details - Custom HTML and User Links
                  mesverrum

                  I suspect you won't be able to do it.  I just tested the active alert details view for the types of variables I would expect and none of them populated, that is the case with many types of views where the devs didn't anticipate people custom resources and trying to pull back variables.

                   

                  On the plus side the active alerts page already has the name of the alert and link to the trigger object and its parent node right at the top of the page.

                    • Re: Active Alert Details - Custom HTML and User Links
                      thsw

                      Oh that's such a pity. Thanks for testing it.

                       

                      I really need to do this via custom views on various pages of the systems, it's not just about the Active Alert Details view.

                      Maybe I can do that via Custom queries and [_LinKFor_...] syntax, or SWQL queries inside a Custom HTML? Just an idea, I'm not very familiar with that...

                       

                      Thanks

                        • Re: Active Alert Details - Custom HTML and User Links
                          mesverrum

                          You could make it happen in swql or html for sure if you are on the node details, interface details, volume details, application details, or component details pages, other pages are hit or miss in terms of being able to load a variable in that lets your query know what the active object it supposed to be.  A clunky work around would be to write generic swql queries on the alert details page and then have the user type in the search box to filter it to the specific one they need, but I feel like most end user's wouldnt be able to wrap their heads around that very easily.

                            • Re: Active Alert Details - Custom HTML and User Links
                              thsw

                              Thanks mesverrum

                               

                              I have duplicated a Node Details page and added a User Links resource.

                               

                              What I found is that I cannot access all these variables, which I would imagine I should be able to

                               

                              Node variables

                               

                              Node Variable

                              Description

                              ${N=SwisEntity;M=AgentPort}

                              Node SNMP port number

                              ${N=SwisEntity;M=Node.Allow64BitCounters}

                              Node allows 64-bit counters (1), or not (0)

                              ${N=SwisEntity;M=AvgResponseTime}

                              Average node response time, in msec, to ICMP requests

                              ${N=SwisEntity;M=BlockUntil}

                              Day, date, and time until which node polling is blocked

                              ${N=SwisEntity;M=BufferBgMissThisHour}

                              Device‑dependent count of big buffer misses on node in current hour, queried with MIB 1.3.6.1.4.9.2.1.30

                              ${N=SwisEntity;M=BufferBgMissToday}

                              Device‑dependent count of big buffer misses on node in current day, queried with MIB 1.3.6.1.4.9.2.1.30

                              ${N=SwisEntity;M=BufferHgMissThisHour}

                              Device‑dependent count of huge buffer misses on node in current hour, queried with MIB 1.3.6.1.4.9.2.1.62

                              ${N=SwisEntity;M=BufferHgMissToday}

                              Device‑dependent count of huge buffer misses on node in current day, queried with MIB 1.3.6.1.4.9.2.1.62

                              ${N=SwisEntity;M=BufferLgMissThisHour}

                              Device‑dependent count of large buffer misses on node in current hour, queried with MIB 1.3.6.1.4.9.2.1.38

                              ${N=SwisEntity;M=BufferLgMissToday}

                              Device‑dependent count of large buffer misses on node in current day, queried with MIB 1.3.6.1.4.9.2.1.38

                              ${N=SwisEntity;M=BufferMdMissThisHour}

                              Device‑dependent count of medium buffer misses on node in current hour, queried with MIB 1.3.6.1.4.9.2.1.22

                              ${N=SwisEntity;M=BufferMdMissToday}

                              Device‑dependent count of medium buffer misses on node in current day, queried with MIB 1.3.6.1.4.9.2.1.22

                              ${N=SwisEntity;M=BufferNoMemThisHour}

                              Count of buffer errors due to low memory on node in current hour

                              ${N=SwisEntity;M=BufferNoMemToday}

                              Count of buffer errors due to low memory on node in current day

                              ${N=SwisEntity;M=BufferSmMissThisHour}

                              Device‑dependent count of small buffer misses on node in current hour, queried with MIB 1.3.6.1.4.9.2.1.14

                              ${N=SwisEntity;M=BufferSmMissToday}

                              Device‑dependent count of small buffer misses on node in current day, queried with MIB 1.3.6.1.4.9.2.1.14

                              ${N=SwisEntity;M=Caption}

                              User friendly node name

                              ${N=SwisEntity;M=Community}

                              Node community string

                              [...] (the list continues, see link above)

                               

                               

                              As you can see I'm not getting anything back

                               

                              but strangely enough if I use a different syntax, e.g.

                               

                              ${CAPTION} instead of ${N=SwisEntity;M=Caption}

                              it works

                               

                              that doesn't apply for everything though.

                                • Re: Active Alert Details - Custom HTML and User Links
                                  mesverrum

                                  None of the swisentity forms are used outside of alerts, the easy way to see a list of all node properties that you would be able to resolve is to go to a summary resource such as the all nodes, or top volumes/interfaces and click edit and scroll down near the bottom the list of filter examples is actually all of the ones you could use.  Just use them like ${caption}, the swis entity stuff basically says "for the object(s) that triggered this alert" but don't apply anywhere else in the UI.

                                   

                                   

                                   

                                  1 of 1 people found this helpful
                                    • Re: Active Alert Details - Custom HTML and User Links
                                      thsw

                                      Thanks mesverrum

                                       

                                      That's very useful to know, I'm making good progress

                                       

                                      What confuses me now is why SolarWinds says "Some of the properties that can be used for Filtering Nodes are:"

                                       

                                       

                                      Do you know where the others are specified (website / manual)?

                                       

                                      I've tried to create a Custom HTML containing all the suggested properties with the syntax ${propertyName} (e.g. ${NodeID}, ${GroupStatus} [got an icon here], etc.), and it worked although not everything gets populated. Thank you.

                                       

                                       

                                      I'll do some more tests to see what I get.