Tomcat6 You need root priviledges to run this script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Tomcat6 You need root priviledges to run this script

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bkelly
Posts: 10
Joined: Thu Mar 21, 2013 9:27 am

Re: Tomcat6 You need root priviledges to run this script

Post by bkelly »

Hi

I mentioned this is a previous reply that line is already part of the sudoers file

Thanks
bkelly
Posts: 10
Joined: Thu Mar 21, 2013 9:27 am

Re: Tomcat6 You need root priviledges to run this script

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Tomcat6 You need root priviledges to run this script

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bkelly
Posts: 10
Joined: Thu Mar 21, 2013 9:27 am

Re: Tomcat6 You need root priviledges to run this script

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tomcat6 You need root priviledges to run this script

Post by lmiltchev »

Is this your remote machine (not Nagios XI)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bkelly
Posts: 10
Joined: Thu Mar 21, 2013 9:27 am

Re: Tomcat6 You need root priviledges to run this script

Post by bkelly »

Indeed it is...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tomcat6 You need root priviledges to run this script

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
bkelly
Posts: 10
Joined: Thu Mar 21, 2013 9:27 am

Re: Tomcat6 You need root priviledges to run this script

Post by bkelly »

Sorry the agent is on the remote machine and the information I provided is on nagios XI

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Tomcat6 You need root priviledges to run this script

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked