Ad Widget

Collapse

Java based agent example

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • probert100
    Junior Member
    • Jun 2010
    • 7

    #1

    Java based agent example

    Hi,

    I'm trying to create agent in java. Does anyone know of a good example?

    (this agent is not for java program monitoring)

    Thanks,
    Robert
  • sybex
    Junior Member
    Zabbix Certified Specialist
    • Aug 2008
    • 29

    #2
    Hi, ...

    zapcat is an exisiting Java agent made for the integration in any java application server:

    Comment

    • probert100
      Junior Member
      • Jun 2010
      • 7

      #3
      Hi,

      I want to explain a little more what I'm trying to do.
      My Java program pulls cisco configs from devices every night, it stores them in the DB. I'm adding a function to compare the new config to the one already stored in the DB if they are different I would like to trigger an alarm in Zabbix.

      The version of Zabbix we are currently using is 1.6.
      I wanted to find out what would be the best way to accomplish this.

      Thanks,
      Robert

      Comment

      • dalle
        Senior Member
        Zabbix Certified Specialist
        • Mar 2009
        • 402

        #4
        Hi,
        you can download sources of Orabbix from sourceforge and modify or just use to have an example for enquiry a database and send data to Zabbix server.
        Andrea Dalle Vacche
        website:http://www.smartmarmot.com/
        e-mail:
        Author of:Mastering Zabbix Book - second edition
        Zabbix Network Monitoring Essentials

        Comment

        • sarathyme
          Member
          • Mar 2009
          • 58

          #5
          If you are looking for the way to write a trigger when the last two values changes,
          you can do it by trigger expression function diff(0)

          It compares last two values if they are different it gives value 1 else 0

          To send values to zabbix you can use zabbix sender script or the method said above.

          Comment

          Working...