Ad Widget

Collapse

SpringBoot / Java monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maxSingapore
    Junior Member
    • Mar 2019
    • 2

    #1

    SpringBoot / Java monitoring

    Hi All,

    I am running Zabbix 4.0 and am able to do all the basic monitoring/alerting I want. I love it.

    Now I have a springboot (so JAVA) application running locally which uses PostGreSQL, and I would like to be able to raise "problems" on Zabbix baise on behaviors that my application sees.
    My list of alarms is determined, so I guess I could defined all the required Zabbix items/trigers for each of the "problem".
    My use case if basic: if one of my Java method return xxx, i want to raise and show a problem in Zabbix.

    But my question is how can I send that to Zabbix server? I d rather work with a push model to avoid worrying about alarms rotation or duplicates, but that s not an hardcore requirement.

    Here are the few ideas I have in mind. If some if you could let me know your recommendations (if you know of a Java library for your recomendation, that d be even awesomer):

    - Send Trapper alert from my application? Any stable Java client available?
    - Something like a log file?
    - Use JMX monitoring? It seems a bit complicated to set up, but maybe I wrong.
    - Use custom SNMP alerts?
    - Maintain an Alert DB and get it queried by Zabbix?

    Here is the extent of what I have in mind.

    Thank you all in advance.

    Max




  • marcos.schimidt
    Junior Member
    • Apr 2019
    • 18

    #2
    Could you solve your problem ??

    Comment

    • maxSingapore
      Junior Member
      • Mar 2019
      • 2

      #3
      Nope not yet...

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        If you can receive the result by executing some command, there are two ways to send the result to the Zabbix server.

        - Use the zabbix_sender command
        - Output the result to a file and monitor that file with Zabbix

        Because monitoring using JMX is primarily a memory condition, it may not be suitable for determining the outcome of a particular method.

        Manual: zabbix_sender

        Manual: Trapper items

        Comment

        Working...