Page 1 of 1

Error when trying to Monitor TomCat6

Posted: Tue Feb 05, 2013 4:44 am
by PCrossan
Hi All,

We now have Nagios setup in our environment :)

Unfortunately we have 1 issue at the moment, when monitoring TomCat6 we receive the following error "You need root privileges to run this script"

We do not want to give the Nagios account root permissions - Does anyone know why it requires root permissions for this check?

thanks for your help

Re: Error when trying to Monitor TomCat6

Posted: Tue Feb 05, 2013 10:40 am
by slansing
If it is an executable just make sure that the user account can execute it, in most cases a simple:

Code: Select all

chmod +x /usr/local/nagios/libexec/custompluginnamehere
Will do the trick, or wherever you have the plugin located. Also, welcome to the community!