Ad Widget

Collapse

Unable to monitor log using zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vijay maurya
    Junior Member
    • Aug 2018
    • 10

    #1

    Unable to monitor log using zabbix

    Hi Team,

    We had followed the instruction given at below link to monitor logs file using zabbix on Linux server.



    After creating the item below error is coming.

    5470:20180829:044654.964 active check "log[/var/log/mariadb/mariadb.log,ERROR]" is not supported: Cannot obtain information for file "/var/log/mariadb/mariadb.log": [13] Permission denied

    We troubleshooted the issue but no luck.

    1.We had given the zabbix user read/write permission on /var/log/mariadb/mariadb.log which used to run zabbix_agent

    2. We allowed the zabbix_agent should by pass the SELinux setting, as it is in enforcing mode.

    semanage permissive -a zabbix_agent_t

    3.We disabled the SELinux completely.

    We tried the different method but still the same error is coming.

    Please help us on this.

    Thanks and Regards,
    Vijay Maurya
    Attached Files
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Could you please show the output of the following commands:
    Code:
    ls -l /var/log/mariadb/mariadb.log
    Code:
    ps axuwww | grep zabbix_agent | tail -3

    Comment

    • vijay maurya
      Junior Member
      • Aug 2018
      • 10

      #3
      Originally posted by dimir
      Could you please show the output of the following commands:
      Code:
      ls -l /var/log/mariadb/mariadb.log
      Code:
      ps axuwww | grep zabbix_agent | tail -3
      Thanks for your mail.

      Please find the required output for your details.

      /var/log/mariadb/mariadb.log

      -rw-rw-rw-+ 1 mysql mysql 73610 Aug 29 04:21 /var/log/mariadb/mariadb.log


      ps axuwww | grep zabbix_agent | tail -3

      zabbix 5469 0.0 0.0 80912 2220 ? S 04:45 0:01 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
      zabbix 5470 0.0 0.0 80920 2252 ? S 04:45 0:00 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
      root 11622 0.0 0.0 112708 964 pts/0 S+ 06:13 0:00 grep --color=auto zabbix_agent

      Comment

      Working...