SNMPv3 and SElinux


(Arethusa) #1

Hello everyone.

I have a problem with SNMPv3 and Selinux.

Some custom OID from /etc/snmp/snmpd.conf doesn’t work when “setenforce 1”.

For exemple :

Snmpwalk -On -V3 ……..@ip @custom OID
…string : “/script.sh: systemctl : commande not found

An other exemple :

I have script who return 0 or 100.

And after snmpwalk, the return is :

STRING : “” or STRING : “000”

But of cause without SElinux, the STRING are OK.

I suppose I have to add exception on SElinux, but I don’t know how.

Maybe anyone have an example ?

Thank you.