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.
restart service nrpe in AIX
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: restart service nrpe in AIX
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.
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
Re: restart service nrpe in AIX
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: restart service nrpe in AIX
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.
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
Re: restart service nrpe in AIX
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: restart service nrpe in AIX
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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.