Page 2 of 3
Re: Tomcat6 You need root priviledges to run this script
Posted: Thu Mar 21, 2013 12:32 pm
by scottwilkerson
bkelly,
on the
REMOTE machine, can you run
Code: Select all
ls -l /usr/local/nagios/libexec/check_init_service
cat /etc/sudoers|grep check_init_service
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 2:32 am
by bkelly
Hi
I mentioned this is a previous reply that line is already part of the sudoers file
Thanks
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 6:54 am
by bkelly
Hi all
We have got it to work by changing it to check for a process - so its looking for tomcat6
Still have get the initial method working but at least we have a work around
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 6:57 am
by scottwilkerson
bkelly wrote:Hi
I mentioned this is a previous reply that line is already part of the sudoers file
Thanks
I wanted to make sure it was in the sudoers file on the correct machine. Additionally, if you are getting that error, it could be permissions problem on the script..
On the REMOTE machine, can you run
Code: Select all
ls -l /usr/local/nagios/libexec/check_init_service
cat /etc/sudoers|grep check_init_service
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 9:17 am
by bkelly
Sure
-rwxrwxr-x 1 nagios nagios 1147 Oct 9 19:12 /usr/local/nrdp/plugins/AIX/check_init_service
nagios ALL = NOPASSWD:/usr/local/nrdp/plugins/AIX/check_init_service
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 10:06 am
by lmiltchev
Is this your remote machine (not Nagios XI)?
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 10:26 am
by bkelly
Indeed it is...
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 11:29 am
by lmiltchev
It seems like you have Nagios XI installed on the remote machine, is this correct? Have you installed the linux agent on this box, using our linux agent installer?
http://assets.nagios.com/downloads/nagi ... _Agent.pdf
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 11:35 am
by bkelly
Sorry the agent is on the remote machine and the information I provided is on nagios XI
Thanks
Re: Tomcat6 You need root priviledges to run this script
Posted: Fri Mar 22, 2013 11:57 am
by lmiltchev
So, did you add the "check_init_service" to the sudoers file on the client? Actually, do you have it in the plugins directory?