restarting xinetd and npre

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

restarting xinetd and npre

Post by srikanth.kallu »

I there a way to restart xinetd in Linux and nrpe in AIX as a nagios user.

I have instructions not to run this as root.

Please Advice.

Thank You.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: restarting xinetd and npre

Post by abrist »

You could make some permission changes to the init script: /etc/rc.d/init.d/xinetd - but this is not suggested.

Alternatively, you could set up a sudoers rule for that specific script, or for the "service" command. This is the suggested method.
The same applies to the nrpe daemon.

Below are a few links to get you more acclimated with the sudoers file:
http://linux.die.net/man/5/sudoers
http://www.garron.me/linux/visudo-comma ... ditor.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: restarting xinetd and npre

Post by slansing »

This is a more operating system specific question that would be better asked in AIX community forums. We do not have an in house AIX system to test this against but I am assuming you may be able to create a rule for this within the OS. You would need to ask them how to configure the system to allow a selected user to restart specific services without root permissions. This is something you would also need to talk to your AIX admin about and something we can not directly support other than these surface answers as it is non Nagios specific.
Locked