Ad Widget

Collapse

can't get log monitor to work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tpyro
    Junior Member
    • Mar 2007
    • 8

    #1

    can't get log monitor to work

    I've recently got Zabbix 1.1.6 installed through macports (OS X Tiger). I got a simple shell script based test working but the log monitor comes up blank.

    I go to the History view in Monitoring and none of the monitoring options show anything. In the monitoring queue the items show up with "next check" set to 12.31.1969 19:00:00.

    The timestamp format in the log looks like this [Time 2007.03.21 22:19:29 UTC]. I'd also like to monitor /var/log/system.log which looks like this: "Mar 21 18:19:29".

    Here are my item settings:

    Type: ZABBIX agent (active)
    Key: log[/var/log/asl.log]
    Type of Information: Log

    Tried with and without a date format.

    Turned on debug for both the server and agentd process and neither wrote any mention of my item name.

    Here is my complete config (with comments grepped out):

    mac2-1:/opt/local/etc/zabbix root# egrep '^[^#]' zabbix_agentd.conf
    Server=127.0.0.1,10.128.237.81,10.128.237.82
    Hostname=localhost
    DebugLevel=3
    PidFile=/var/tmp/zabbix_agentd.pid
    LogFile=/tmp/zabbix_agentd.log
    Timeout=3
    UserParameter=tonytest.tmplisting,cat /tmp/tonytest
    mac2-1:/opt/local/etc/zabbix root#


    mac2-1:/opt/local/etc/zabbix root# egrep '^[^#]' zabbix_server.conf
    Server=1
    StartPollers=6
    StartTrappers=5
    ListenPort=10051
    HousekeepingFrequency=1
    SenderFrequency=30
    DebugLevel=3
    Timeout=5
    PidFile=/var/tmp/zabbix_server.pid
    LogFile=/tmp/zabbix_server.log
    AlertScriptsPath=/home/zabbix/bin/
    FpingLocation=/opt/local/sbin/fping
    DBName=zabbix
    DBUser=root
    DBPassword=******
    DBSocket=/opt/local/var/run/mysql5/mysqld.sock
    mac2-1:/opt/local/etc/zabbix root#
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please check three things:

    - ZABBIX server is running on 127.0.0.1. Agents use first IP from Server to send active checks to.
    - Item log[...] is linked to host 'localhost' (Hostname in agent's config file).
    - /var/log/asl.log ir readable by user zabbix
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • tpyro
      Junior Member
      • Mar 2007
      • 8

      #3
      fixed

      Your second suggestion did the trick. In the item I had specified the hostname but my zabbix_agentd.conf the hostname was set to 'localhost'. Next I will try to get the log trigger working. Thanks!

      Comment

      Working...