Why root access on icmp & dhcp plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Why root access on icmp & dhcp plugins

Post by sgiworks »

Hello Team,

Please find attached screen shot from the error triggered on permission for check_icmp & check_dhcp plugins. Can you please let us know why do these two plugins need root access? I believe its for check the host alive status, but that can be done by a ping command, right?

Path:
/usr/local/nagios/libexec/check_icmp
/usr/local/nagios/libexec/check_dhcp

Regards,
Swapnil
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Why root access on icmp & dhcp plugins

Post by avandemore »

Can you please let us know why do these two plugins need root access?
The underlying OS internals require this. Basically anything capable of opening a raw socket needs root, unless it's like the setuid ping.
I believe its for check the host alive status, but that can be done by a ping command, right?
That depends on how you define host alive status. One or more metrics can be used to achieve this. A simple ICMP check may be good enough for a lot of use cases.
Previous Nagios employee
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Why root access on icmp & dhcp plugins

Post by bwallace »

You can refer to this doc on changing the host alive metric(s)
https://assets.nagios.com/downloads/nag ... 1456514247

Curious about your permissions on those files, could you post the output of:

Code: Select all

ll /usr/local/nagios/libexec/check_icmp
ll /usr/local/nagios/libexec/check_dhcp
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked