Ad Widget

Collapse

Call for discussion on ZABBIX 1.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tractorboy
    Member
    • Oct 2010
    • 98

    #196
    MSMQ monitoring

    Originally posted by andreminelli
    I just started using Zabbix into a Windows network using perf_counter keys.

    But since we use a lot of message queues from MS and the performance objects have the name of the server on it (for instance, \MSMQ Queue(<myservername>\private$\<myqueuename>)\Messages In Queue]), we can not use templates for these items, and we have to add server by server, queue by queue on Item and Trigger configuration

    So will be very usefull if Item keys could accept some macros, so we can write the key like this:
    \MSMQ Queue({HOSTNAME}\private$\<myqueuename>)\Messages In Queue]


    Thanks
    This would be very powerful, if this yet available?

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #197
      you should be able to use keys like key[param_{HOST.HOST}_here], yes - at least that works with latest version of zabbix
      Zabbix 3.0 Network Monitoring book

      Comment

      • Tractorboy
        Member
        • Oct 2010
        • 98

        #198
        perf_counter[\\{HOST.HOST}\MSMQ Queue({HOST.HOST}\private$\msmq.itemname.prd)\Mess ages in Queue]

        Above is what I have changed the monitoring from but its now not working, suggesting the host.host part is incorrect

        1) I cannot find {HOST.HOST} is the zabbix documentation. Are you able to supply a link?
        2) I was expecting the key to be translated when looking in the servers config, is that an incorrect assumption?
        3) The key does not error. but I guess that because its treating the content as text.
        4) Is it possible to debug or trace the code to see what it is actually doing?


        Thanks for your help so far.

        (There is no space in Message, but for some reason there is on the post, have tried to remove)
        Last edited by Tractorboy; 20-04-2015, 11:54. Reason: adding an extar comment

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #199
          1. see https://www.zabbix.com/documentation...ed_by_location
          2. in the configuration, macro/variable resolution is done in some places, but not in others. it's not very safe to rely on that
          3. so what actually happens if there are no errors ? doesn't it go unsupported ?
          what is the host name of that host ?
          4. see the ability to change debuglevels either in the config file or on the fly (since 2.4), but beware - that can log a lot of information

          it might be a good idea to start a new thread as well - or join irc
          Zabbix 3.0 Network Monitoring book

          Comment

          Working...