https://linuxconfig.org/how-to-disable-enable-selinux-on-ubuntu-20-04-focal-fossa-linux
# apt install ifupdown ifenslave
# apt install policycoreutils selinux-utils selinux-basics
root@ceph-sata-osd191:~# selinux-activate
Activating SE Linux
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-144-generic
Found initrd image: /boot/initrd.img-5.4.0-144-generic
Found linux image: /boot/vmlinuz-5.4.0-124-generic
Found initrd image: /boot/initrd.img-5.4.0-124-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
done
SE Linux is activated. You may need to reboot now.
root@ceph-sata-osd191:~# sestatus
SELinux status: disabled
root@ceph-sata-osd191:~# selinux-config-enforcing
Configured enforcing mode in /etc/selinux/config for the next boot.
This can be overridden by "enforcing=0" on the kernel command line.
root@ceph-sata-osd191:~# reboot
semanage permissive -a zabbix_t
semanage permissive -a zabbix_agent_t
systemctl stop zabbix-agent.service
systemctl reset-failed zabbix-agent.service
systemctl start zabbix-agent.service
systemctl status zabbix-agent.service
/bin/Megaraid >> sulinux polocy...
cp /bin/Megaraid /usr/sbin/
/usr/lib/nagios/plugins/check_megaraid_sas
#my $megaclibin = '/bin/MegaCli'; # the full path to your MegaCli binary
my $megaclibin = '/usr/sbin/MegaCli'; # the full path to your MegaCli binary
#my $megacli = "sudo $megaclibin"; # how we actually call MegaCli
my $megacli = "$megaclibin"; # how we actually call MegaCli