Ad Widget

Collapse

problem monitoring linux log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smitty
    Junior Member
    • Mar 2011
    • 13

    #1

    problem monitoring linux log file

    I am running zabbix 1.8.4 and I am trying to monitor a log file on a linux client. The zabbix user definitely has permission to the file. Unfortunately it is not working (always becomes disabled - other check such as memory,disk space, etc work fine). Any help would be greatly appreciated.

    Item is defined as:
    host: myhost01
    Description: ndm error log
    Type: zabbix agent (active)
    Key: Logrt["/opt/cdlinux/work/myhost01/S2*","errno"]
    Type: Log


    Here is the zabbix_agentd.conf (comment lines removed):
    PidFile=/var/run/zabbix/zabbix_agentd.pid
    LogFile=/var/log/zabbix/zabbix_agentd.log
    LogFileSize=0
    DebugLevel=4
    EnableRemoteCommands=1
    LogRemoteCommands=1
    Server=zabbix.example.com
    Hostname=myhost01
    ListenPort=10050
    ServerPort=10051

    In my agent.log I get the following:
    23340:20111207:103807.816 refresh_active_checks('zabbix.example.com',10051)
    23340:20111207:103807.817 Sending [{
    "request":"active checks",
    "host":"myhost01"}]
    23340:20111207:103807.817 Before read
    23340:20111207:103807.819 Got [{
    "response":"success",
    "data":[
    {
    "key":"Logrt[\"\/opt\/cdlinux\/work\/myhost01\/S2*\",\"errno\",\"UTF-8\",100]",
    "delay":"60",
    "lastlogsize":"0",
    "mtime":"0"}]}]
    23340:20111207:103807.819 In parse_list_of_checks()
    23340:20111207:103807.819 In disable_all_metrics()
    23340:20111207:103807.819 In add_check('Logrt["/opt/cdlinux/work/myhost01/S2*","errno","UTF-8",100]', 60, 0, 0)
    23340:20111207:103807.819 In process_active_checks('zabbix.example.com',10051)
    23340:20111207:103807.819 For key [Logrt["/opt/cdlinux/work/myhost01/S2*","errno","UTF-8",100]] received value [ZBX_NOTSUPPORTED]
    23340:20111207:103807.819 In process_value() key:'myhost01:Logrt["/opt/cdlinux/work/myhost01/S2*","errno","UTF-8",100]' value:'ZBX_NOTSUPPORTED'
    23340:20111207:103807.819 In send_buffer() host:'zabbix.example.com' port:10051 values:0/100
    23340:20111207:103807.819 End of send_buffer():SUCCEED
    23340:20111207:103807.819 Buffer: new element 0
    23340:20111207:103807.819 Active check [Logrt["/opt/cdlinux/work/myhost01/S2*","errno","UTF-8",100]] is not supported. Disabled.
    23340:20111207:103807.819 In get_min_nextcheck()
    23340:20111207:103807.819 Sleeping for 1 seconds
    23340:20111207:103808.820 In send_buffer() host:'zabbix.example.com' port:10051 values:1/100
    23340:20111207:103808.821 JSON before sending [{
    "request":"agent data",
    "data":[
    {
    "host":"myhost01",
    "key":"Logrt[\"\/opt\/cdlinux\/work\/myhost01\/S2*\",\"errno\",\"UTF-8\",100]",
    "value":"ZBX_NOTSUPPORTED",
    "clock":1323272287}],
    "clock":1323272288}]
    23340:20111207:103808.862 JSON back [{
    "response":"success",
    "info":"Processed 1 Failed 0 Total 1 Seconds spent 0.040078"}]
    23340:20111207:103808.862 In check_response({
    "response":"success",
    "info":"Processed 1 Failed 0 Total 1 Seconds spent 0.040078"})
    23340:20111207:103808.862 Info from server: Processed 1 Failed 0 Total 1 Seconds spent 0.040078
    23340:20111207:103808.862 OK
    23340:20111207:103808.862 End of send_buffer():SUCCEED
  • smitty
    Junior Member
    • Mar 2011
    • 13

    #2
    Anyone? I'm wondering if this is a bug...

    Comment

    Working...