Ad Widget

Collapse

I need help fo Log Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Irlan
    Junior Member
    • Dec 2016
    • 3

    #1

    I need help fo Log Monitoring

    I want to monitor a log file, but my configuration does not work

    I want to monitor the expression from inside the log file Read timed out

    The command line used is this

    log[/var/log/wildfly/console.log,"Real time out"]


    I already tried with the expression error before Real Time, but it did not work either.

    Could someone give me a hand?
  • andris
    Zabbix developer
    • Feb 2012
    • 228

    #2
    HI!

    In Zabbix frontend you can check "Type" of this log[] item - it should be "Zabbix agent (active)" and "Type of information" - it should be "Log".

    Then you can set DebugLevel=4 in zabbix_agentd.conf and restart agent.

    Then check zabbix_agentd.log - what is between messages "In refresh_active_checks" and "End of refresh_active_checks"
    - is it successful, does agent get "log[/var/log/wildfly/console.log,"Real time out"]" item to monitor ?

    If that is successful. look for messages on sending data to server (grep "Real time out").

    Comment

    • Irlan
      Junior Member
      • Dec 2016
      • 3

      #3
      Originally posted by andris
      HI!

      In Zabbix frontend you can check "Type" of this log[] item - it should be "Zabbix agent (active)" and "Type of information" - it should be "Log".

      Then you can set DebugLevel=4 in zabbix_agentd.conf and restart agent.

      Then check zabbix_agentd.log - what is between messages "In refresh_active_checks" and "End of refresh_active_checks"
      - is it successful, does agent get "log[/var/log/wildfly/console.log,"Real time out"]" item to monitor ?

      If that is successful. look for messages on sending data to server (grep "Real time out").

      The type is already in LOG and the Zabbix agent is already active, my question is regarding the text, if I put this text REAL TIME OUT, if this string it will check inside the log, or because it has space it will not identify

      Comment

      Working...