Warning: This plugin must be either run as root or setuid ro

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
huyvinhptit
Posts: 5
Joined: Sat Jan 27, 2018 11:36 pm

Warning: This plugin must be either run as root or setuid ro

Post by huyvinhptit »

I have this error when using Nagios XI, expect you to only fix the problem. Because I have followed the instructions on the net forever not yet.
Thank you very much.
Warning: This plugin must be either run as root or setuid root.
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
Image
Image

Thanks you very much.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Warning: This plugin must be either run as root or setui

Post by dwhitfield »

What's the output when you run chmod u+s yourpluginfile? Also, what's the output of ll check_icmp?
huyvinhptit
Posts: 5
Joined: Sat Jan 27, 2018 11:36 pm

Re: Warning: This plugin must be either run as root or setui

Post by huyvinhptit »

Thanks you very much ! I edited it successfully and you can close this topic.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Warning: This plugin must be either run as root or setui

Post by scottwilkerson »

Glad you were able to get it to work
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked