Ad Widget

Collapse

Unable to get active check working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rks
    Junior Member
    • Aug 2015
    • 6

    #1

    Unable to get active check working

    I am running Zabbix 2.4.6 (revision 54796) on a CentOs 6.5 server
    and managing a Tomcat 8 instance running on another CentOS 6.5 server.

    Managed entity:
    Tomcat 8 server
    Zabbix agent: Zabbix 2.0.15 (revision 54798)
    CentOS 6.5

    Zabbix Server:
    Zabbix 2.0.15 (revision 54798

    My confusion:
    Documentation and discussions seem to suggest that active and passive both may not be employed on an agent at one time. Is this true? For some items I need to use active and for others I need to use passive.

    My Problem:
    I want to check if Tomcat server is running - if not I want to issue an alert.
    First, I configured the agent to enable active checks and disable passive checks:

    Code:
       
        # /etc/zabbix/zabbix_agentd.conf
        #
        Server=
    
        ListenIP=<agent IP address>
    
        ##### Active checks related
        ServerActive=manager.xxx.com
        Hostname=tomcat.xxx.com
        
        ## UserParameters to show number of Tomcat Bootstrap processes running
        UserParameter=satellite.server,/opt/jdk/bin/jps -l  | grep -c Bootstrap
    I have added the Host "tomcat.xxx.com" on the Zabbix server. And I created
    an item of type Zabbix agent (pl see attachment).

    After a few minutes (10 minutes) I am monitoring the Latest Data on the host tomcat.xxx.com and I see no data.

    I put the agent in debug mode and I do not see it returning the value of the user parameter (satellite.server).

    What am I missing?
    Also, what is the best way to implement a trigger to be notified when my Tomcat server (tcp/8080) dies or stops?

    Thanx,

    /Kobe
    Attached Files
  • jamesNJ
    Senior Member
    • Jun 2015
    • 103

    #2
    Are you running 2.0 or 2.4? Your initial description seems in conflict. CentOS 6 has packages for 2.4 so if you are running old software it might be good to upgrade.

    I don't have a tomcat server to reference here but I recall it runs as a java process. You could simply use 2 checks to check for the availability of http on port 8080, and also look for the process running your tomcat. Just by way of example:
    proc.num[java,,,tomcat.jar] # zabbix agent check
    net.tcp.service[http,your-IP-addr-here,8080] # zabbix simple check

    Not sure about active checks on that, I mainly use passive

    Comment

    • rks
      Junior Member
      • Aug 2015
      • 6

      #3
      Solved

      I figured this out.

      My apologies for the conflicting info on my Zabbix server version. I am using 2.4.

      I found out by trial and error that I can perform both active and passive checks at the same time.

      Regards,

      /Kobe

      Comment

      Working...