Ad Widget

Collapse

java pollers not starting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • greedysoul
    Junior Member
    • Jul 2014
    • 10

    #1

    java pollers not starting

    Hi all, I have a client with Zabbix server 2.0.9 , am trying to set up their JMX monitoring and have these settings in the conf file:

    JavaGateway=127.0.0.1
    JavaGatewayPort=10052
    StartJavaPollers=5

    The java gateway doesn't report any connection attempt (I've enabled debug), and the host monitoring JMX icon doesn't show any status (remains as disabled). I've tried restarting all the processes with no effect. It looks like their Zabbix server was configured and compiled from source, is it possible that it does not have java poller support? Also have noticed that their server conf file did not have a comment block for the Java options so I was already suspicious. Any advice? TIA.
  • jvalenzani
    Member
    Zabbix Certified Specialist
    • Sep 2010
    • 53

    #2
    How many pollers did you start on the java gateway? (settings.sh)

    Comment

    • greedysoul
      Junior Member
      • Jul 2014
      • 10

      #3
      The java gateway has started 5 threads (default). But in the server log I don't see any java pollers started at all, I believe those will be started regardless of the gateway (even if the gateway isn't running). I think at this point I will re-install the server for them with standard rpm's for version 2.2.x.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Originally posted by greedysoul
        The java gateway has started 5 threads (default).
        Is it a default of 5? I think in my 2.0.9 setup the default is 0.

        This is what I have in my zabbix_server.conf. And if you want 5 started, then you need to remove the comment ( # sign), change 0 to 5 and restart the Zabbix server process.

        ### Option: StartJavaPollers
        # Number of pre-forked instances of Java pollers.
        #
        # Mandatory: no
        # Range: 0-1000
        # Default:
        # StartJavaPollers=0

        I actually prefer to keep my defaults in place and just add a new line for any customized values. So I would make mine look like this:

        ### Option: StartJavaPollers
        # Number of pre-forked instances of Java pollers.
        #
        # Mandatory: no
        # Range: 0-1000
        # Default:
        # StartJavaPollers=0
        StartJavaPollers=5

        Comment

        • greedysoul
          Junior Member
          • Jul 2014
          • 10

          #5
          In the server conf I have 5 pollers started and have restarted the server several times while troubleshooting. However in the server log I see no java pollers started, hence my original question. In the java gateway I have just the defaults (5 is the default there). Anyway today I'm going to upgrade their server to 2.2.x, I expect there to have no such problem.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            What I am getting at is the comment sign preceding the StartJavaPollers= parameter. Of the below, which one does yours look like? If it is the first one, then make it look like the second one and restart Zabbix server process.


            # StartJavaPollers=5
            StartJavaPollers=5

            Comment

            Working...