Page 1 of 1

restart service nrpe in AIX

Posted: Thu Mar 14, 2013 12:55 pm
by srikanth.kallu
HI,

I had a problem in insatlling nagios on my AIX server

nrpe service would show inoperative, but i have to do this

export LIBPATH=/usr/linux/lib:$LIBPATH
/opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d

All the inbuild scripts checking filesystems, swap .... worked fine and we were OK with it.

Now i am writing my own plugins and in the process on uploading them i have to restart service nrpe,

Is there any way i can upload my my plugin with restarting nrpe.

Re: restart service nrpe in AIX

Posted: Thu Mar 14, 2013 12:58 pm
by slansing
I'm not sure I understand your question, if you are asking do you have to restart NRPE after making changes to it then yes, you have to do this otherwise the changes are not pushed through the configuration files. What do you mean by uploading your plugin? Are you talking about our Exchange site? Or are you talking about adding the plugins to your AIX server, and then adding their command definitions to the config file.

Re: restart service nrpe in AIX

Posted: Thu Mar 14, 2013 1:03 pm
by srikanth.kallu
sorry for not being very clear.

I want to define a command in nrpe.cfg, i need to do stopsrc -s nrpe;startsrc -s nrpe

is there any way i can bypass this step.

Re: restart service nrpe in AIX

Posted: Thu Mar 14, 2013 1:17 pm
by slansing
No you must restart NRPE in order for the new configuration file to take effect, as once the service is started it uses the current flat config file.

Re: restart service nrpe in AIX

Posted: Thu Mar 14, 2013 1:26 pm
by srikanth.kallu
I think i figured this out, i dont think it is acorrect way to do but its working.

I killed the current nrpe process manually
and started nrpe agian by running this
export LIBPATH=/usr/linux/lib:$LIBPATH
/opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d.

I think this reads nrpe.cfg file after i read this.

Re: restart service nrpe in AIX

Posted: Thu Mar 14, 2013 1:42 pm
by sreinhardt
Great, we will leave this unlocked for a little while to let you verify. If you still are having issues with it let us know!