Monitoring graylog with Zabbix


(Tien PHAN) #1

Hi Folks,

Today I implement Graylog monitoring with Zabbix, however, it could not succeed. I used zabbix-graylog-monitoring of bezarsnba at github & share.graylog.org.

I got an error:
"graylog-srv-02:graylog.proc.buffer[ProcessBufferProcessor.processTime,m5_rate]" became not supported: Unsupported item key.

I don’t know if you already installed this before. So I would like to post here and hope someone can help me.

Here is my system:

  • Graylog 3.0
  • Zabbix 4.0
  • Python 3.5/ 3
  • Ubuntu 16.04 LTS

I tightly followed your instruction, however, this is not the same version of Zabbix and Python, then I got any issue [not supported] with following templates:

  1. GrayLog: Filter execution Time(FIltered OutMessages) 5min
  2. GrayLog: Filter execution Time(Incoming Messages) 5min
  3. GrayLog: Filter execution Time(Outgoing Message) 5min
  4. GrayLog: Filter execution Time(Process Time) 5min
  5. GrayLog: Internal Log Message Error 5 min
  6. GrayLog: Internal Log Message Fatal 5 min
  7. GrayLog: Internal Log Message Trace 5 min
  8. GrayLog: Internal Log Message Warn 5 min
  9. GrayLog Journal Size

And what did I implement
sky@zabbix4-srv-01:/opt/packages$ sudo git clone https://github.com/bezarsnba/zabbix-graylog-monitoring.git
sky@zabbix4-srv-01:/opt/packages$ cd zabbix-graylog-monitoring/
sky@zabbix4-srv-01:/opt/packages/zabbix-graylog-monitoring$ sudo mkdir /etc/zabbix/scripts
sky@zabbix4-srv-01:/opt/packages/zabbix-graylog-monitoring$ sudo chmod +x /etc/zabbix/scripts/monitoring-graylog.py

sky@zabbix4-srv-01:/etc/zabbix/scipts$ python3
python3     python3.5   python3.5m  python3m
sky@zabbix4-srv-01:/etc/zabbix/scipts$ python3.5 monitoring-graylog.py lldgraylognode
{
    "data":[
        {
            "{#NODEID}":"74654950-8fa7-4b2f-ac1f-afe08d2d1b02"
        }
    ]
}

sky@zabbix4-srv-01:/etc/zabbix/scipts$ grep Include /etc/zabbix/zabbix_agentd.conf
### Option: Include
# Include=
Include=/etc/zabbix/zabbix_agentd.d/*.conf
# Include=/usr/local/etc/zabbix_agentd.userparams.conf
# Include=/usr/local/etc/zabbix_agentd.conf.d/
# Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf

sky@zabbix4-srv-01:/etc/zabbix/scipts$ sudo cp /opt/packages/zabbix-graylog-monitoring/user_parameter_graylog.conf /etc/zabbix/zabbix_agentd.d/

sky@zabbix4-srv-01:/etc/zabbix$ zabbix_get -s 10.30.3.117 -k graylog.discovery.node
{
    "data":[
        {
            "{#NODEID}":"74654950-8fa7-4b2f-ac1f-afe08d2d1b02"
        }
    ]
}

sky@zabbix4-srv-01:/etc/zabbix/zabbix_agentd.d$ zabbix_get -s 10.30.3.117 -k graylog.cluster.status['74654950-8fa7-4b2f-ac1f-afe08d2d1b02',lb_status]
alive

Thank you so much!


(Jan Doberstein) #2

I guess you are the same person that opens the issue on github?

Please do not cross-post the same question on multiple plattforms.


(Tien PHAN) #3

Sure, because I am not sure the author is still working on this :sweat_smile:
Thank you so much @jan !


(system) closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.