You are here

Run a check as root?

2 posts / 0 new
Last post
Martin Porter
Martin Porter's picture
Run a check as root?

Hi there,

 

I have added a plugin called check_vpn.

 

The script needs to be run as root to work . Which means that nagios user needs to have sudoer rights, even if it's just that file, i think?

I have worked out how to change the sudoers file and indeded from a command prompt, I can run the script correctly

 

eg

 

sudo ./check_vpn ....

But I can't work out how to append the sudo part to the command from within the Opsview interface.

I have tried editing the command within \usr\local\nagios\etc\checkcommands.cfg but that doesnt work?

Martin Porter
Martin Porter's picture
Re: Run a check as root?

Is there nobody who can help me?