Page 1 of 1

Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Tue Oct 07, 2014 10:04 am
by krobertson71
Is there a way to turn this into an RPM, or does one already exist that I am unable to find?

We are very big on RPM distribution here.

Any feedback here would make my life much easier.

Our Unix guys are already saying how they do no like the fact that it is just an installer with no clear uninstall path.

If there is an uninstall feature that we have missed that may suffice as well.

Thanks,

Kris Robertson
Duke Clinical Research Institute

Re: Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Tue Oct 07, 2014 1:04 pm
by abrist
Our custom linux agent does not come in rpm form. You could install the nrpe rpm but use our plugins and config that ship with the agent. That would get you much closer to an rpm-like install.

Re: Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Tue Oct 07, 2014 5:31 pm
by krobertson71
abrist wrote:Our custom linux agent does not come in rpm form. You could install the nrpe rpm but use our plugins and config that ship with the agent. That would get you much closer to an rpm-like install.
Is there a documented way to remove the agent the way it is? If there is a way to remove the agent after install that would also work for me.

Re: Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Wed Oct 08, 2014 7:55 am
by krobertson71
krobertson71 wrote:
abrist wrote:Our custom linux agent does not come in rpm form. You could install the nrpe rpm but use our plugins and config that ship with the agent. That would get you much closer to an rpm-like install.
Is there a documented way to remove the agent the way it is? If there is a way to remove the agent after install that would also work for me.
Let me ask this a different way in hopes that it will make things a tad clearer.

Let's say we install the packaged linux agent that comes with Nagios XI. Great agent, works well.

Well now let's say NCPA has come to a point where we now want to use this across all our infrastructure so we have one heterogeneous agent.

How would I go about cleaning out the old Linux agent and installing the new NCPA agent so there would be no overlap or two agents trying to run together?

Re: Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Wed Oct 08, 2014 10:40 am
by lmiltchev
How would I go about cleaning out the old Linux agent and installing the new NCPA agent so there would be no overlap or two agents trying to run together?
We don't haven an "uninstall script" for NRPE but you can run:

Code: Select all

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios
then proceed with installing NCPA.

Re: Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Wed Oct 08, 2014 1:56 pm
by krobertson71
lmiltchev wrote:
How would I go about cleaning out the old Linux agent and installing the new NCPA agent so there would be no overlap or two agents trying to run together?
We don't haven an "uninstall script" for NRPE but you can run:

Code: Select all

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios
then proceed with installing NCPA.
Just for clarification. This would work for the Linux Agent supplied with Nagios XI? I would assume we would have to delete the nagcmd groups and also remove the sudoers file changes made by the initial install.

Re: Nagiox XI Linux Agents out-of-box question regarding RPM

Posted: Wed Oct 08, 2014 2:06 pm
by lmiltchev
This is correct.