Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. DCI Template manual override

DCI Template manual override

Scheduled Pinned Locked Moved Support
15 Posts 6 Posters 41.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    tickett
    wrote on last edited by
    #4

    Perhaps you want to set the Server Configuration parameter ImportConfigurationonStartup to 0? This did the trick for us.

    1 Reply Last reply
    0
    • L
      L
      letabawireless
      wrote on last edited by
      #5

      Hi - but what about new nodes that needed to get the template values ? The template adds about 5 DCI's, of which one needs to be adapted. I think I will just duplicate on each of the custom nodes, and disable the one from the template.

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #6

        Hi,

        you can change threshold to script like this:

        v = GetCustomAttribute($node, "VoltageThreshold");
        return $1 < ((v != null) ? v : 22);
        

        then threshold will fire if voltage is less than 22 unless you have custom attribute VoltageThreshold set on a node - in that case it will compare current value with value of this attribute. So if you need to override threshold to fire if below 25v on specific node, go to that node properties, page "Custom Attributes", and add attribute VoltageThreshold with value 25.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • L
          L
          letabawireless
          wrote on last edited by
          #7

          Hi Victor

          Could you possibly just explain where I add the custom attributes ? To each node that the default threshold has to be overwritten ? And do I add this on the DCC where the default values currently are ? I apologise again for not seeing this clearly...

          1 Reply Last reply
          0
          • L
            L
            letabawireless
            wrote on last edited by
            #8

            Hi

            Another thing - lets say I have 5 DCI's in the template (This is for Mikrotik), but I have a node that cannot process one of those DCI's (no voltage for eg) - if I disable it, the Template adds it again ? Can this be avoided somehow ?
            Thank you

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #9

              Hi,

              yes, idea is that you add this attribute on each node where default threshold value should be overridden. You cannot exclude certain DCIs from being applied as part of template.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • I
                I
                igor
                wrote on last edited by
                #10

                Hi Victor,
                still about this issue, how can I do if I have more than 1 disk with different sizes?

                thank you

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #11

                  Hi,

                  you may need to use instance discovery.

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • I
                    I
                    igor
                    wrote on last edited by
                    #12

                    Yes it's ok.
                    What I mean is, if I have more than 1 disk with different size and I need a different threshold, for example 20% and 10%, and set a custom attributes with script, all disks will get this same attribute, correct?
                    So how can I do  this?

                    thank you

                    1 Reply Last reply
                    0
                    • T
                      T
                      Tursiops
                      wrote on last edited by
                      #13

                      You will probably need to do something similar to what's been discussed in this post:
                      https://www.netxms.org/forum/general-support/simple-question-cdm-monitoring-using-snmp-anybody-doing-this/15/

                      Bascially, you will need to use a combination of script thresholds and custom attributes so you can override your default thresholds.

                      1 Reply Last reply
                      0
                      • P
                        P
                        paul
                        wrote on last edited by
                        #14

                        As per Tursiops and Victor, the Windows template example that I uploaded deals with both customized DCI thresholds with three variations, as well as dropping DCI's for instances not wanted.

                        For instance exclusion, there is probably a better way, but basically, you can either do the DCI exclusion in the automatic bind coding - I do it there because it globally applies and it would be cleaner to have different templates for devices based on different firmware / software levels that do / do not support all the DCI's. You might have two templates - Microtik with Voltage and Microtik no voltage - selected based on whatever determines that voltage is expected to be returned (Poll the voltage or set a system attribute somewhere - volt_sensor_installed).

                        Having said that, I use the same global thresholds for Windows and Linux - all variants. I can override per node, and have set global thresholds for things like /var and C:\ - mixing and matching as needed. The only real difference is that Windows devices node specific override is first three chars whereas Linux is full instance name match.

                        It took me some time to get my head around this - plus the invaluable assistance from Tursiops and Victor - but it is all there and is all working. When I get time (hahaha), I will write up a "how to" for this as there are a few different components that need to be aligned in order for this to work.

                        1 Reply Last reply
                        0
                        • I
                          I
                          igor
                          wrote on last edited by
                          #15

                          Tursiops,
                          It's work fine!!!

                          Thanks a lot!

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          Powered by NodeBB Contributors
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups