Ad Widget

Collapse

SELinux configuration for zabbix_trap_receiver.pl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gorekBoy
    Junior Member
    • Jan 2020
    • 10

    #1

    SELinux configuration for zabbix_trap_receiver.pl

    Hello,

    I would like pass SNMP traps to Zabbix via zabbix_trap_receiver.pl perl script. My configuration is very similar to example from Zabbix blog (https://blog.zabbix.com/snmp-traps-in-zabbix/).
    My SNMPTrapperFile is localized in /var/log/zabbix/ and zabbix_trap_receiver.pl is in /usr/bin/ directory.
    When I temporarily disable SELinux everything works but when SELinux works snmptrapd can't write to SNMPTrapperFile (even if file is in /tmp).

    How to configure SELinux to allow snmp traps processing by Zabbix in Centos 7? From some reasons I would like not disable SELinux.
    I am very basic in SElinux​.

    Thanks
    Last edited by gorekBoy; 27-03-2023, 22:17.
Working...