Error for ICMP Plugin
Posted: Wed Jul 22, 2020 11:30 am
Hello Guys,
While creating host services there was error for host which says it is down. But all services were up and running and on Nagios XI console it was 'OK' State(Which is green)
out of curious i tried to check the script which is checking for ICMP ping and it had root permissions. Changed it to apache:nagios and it throwed me an error. Rolled back the changes to root:nagios. But now it is still showing as below error:
To run as root, you can use a tool like sudo.
To set the setuid permissions, use the command:
chmod u+s yourpluginfile
check_icmp: Failed to obtain ICMP socket: Operation not permitted
Can someone please help on the above error?
Thanks,
While creating host services there was error for host which says it is down. But all services were up and running and on Nagios XI console it was 'OK' State(Which is green)
out of curious i tried to check the script which is checking for ICMP ping and it had root permissions. Changed it to apache:nagios and it throwed me an error. Rolled back the changes to root:nagios. But now it is still showing as below error:
To run as root, you can use a tool like sudo.
To set the setuid permissions, use the command:
chmod u+s yourpluginfile
check_icmp: Failed to obtain ICMP socket: Operation not permitted
Can someone please help on the above error?
Thanks,