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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
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.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

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

Post 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.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

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

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

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

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

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

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

Post by lmiltchev »

This is correct.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked