Ad Widget

Collapse

Autodiscover for multiple agent ports?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jquast
    Junior Member
    • Oct 2009
    • 5

    #1

    Autodiscover for multiple agent ports?

    I can't seem to allow zabbix to monitor two agents on the same IP address with auto-discovery -- their "Add host" actions conflict each other.

    I have a standard zabbix agent on port 10050, and a zapcat java agent on port 10052.

    An auto-discovery rule is created for each, for zabbix agent on port 10050 and another on 10052.
    I've tried to chose the key "jmx[java.lang:type=Runtime][Name]" for the device uniqueness criteria for the zapcat discovery configuration because it includes the PID of the JVM with the hostname, instead of the hostname from "jmx[jboss.system:type=ServerInfo][HostName]", but that doesn't seem to help distinguish the two different discoveries at the "Add host" action.

    Furthermore, for the Discovery Actions, i distinguish "Discovery Solaris Zones" rule from the "Discover Zapcat monitored JVMs" rule by their Service Port that must be either 10050 or 10052. I chose "Add host" as an action for both, but link them to different templates.

    After some time, I end up with a single host record that includes all of the templates combined, with the zabbix agent configured for port 10050 only. Then i begin receiving alerts about not being able to retrieve critical jmx attributes.

    Any suggestions? How do I monitor both the host AND a zapcat jvm on the same machine through auto-discovery? Should I resort to manually adding the zapcat monitored machines only? (Only 50-100 compared to thousands of the other kind)
  • jquast
    Junior Member
    • Oct 2009
    • 5

    #2
    Oh its even worse than that.

    I have auto-discover for the solaris zones with agents running on port 10050, and I proceeded to manually add the zapcat as a seperate hostname record as an agent on port 10052 and linked to different templates.

    Now the "discover agents on port 10050" action is actually overwriting the zapcat-only host records created manually, changing the agent port to 10050 (and signallying .nodata() in the process)

    Is there any way, at all, of any kind, to be able to have two agents on a host? Do I have to chose? Monitor JBOSS or Monitor Host???

    Comment

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

      #3
      that sounds like quite a serious limitation of network discovery.
      if i'm reading this correctly, what might be needed - agent port settable per item. is that correct ?
      in any case, please report this on the tracker (mentioning as much information as possible and including the description of optimal solution as well).

      in the meanwhile you could consider generating xml templates with desirable configuration and importing them, that should trump completely manual configuration.
      Zabbix 3.0 Network Monitoring book

      Comment

      • jlukar
        Junior Member
        • Mar 2012
        • 1

        #4
        I am having the same issue

        Hi,
        Same exact issue. Did you resolve it ?

        I would appreciate any info on the resolution to this.

        J.

        Comment

        Working...