Page 1 of 1

NRDS and other checks

Posted: Wed Aug 07, 2013 9:33 am
by BanditBBS
Ok, so we have ~100 AIX servers and ~300 Linux servers. Those numbers are goign to grow to ~200 and ~1000+. If I need to make a change to config, I don't want to have to update nrpe.cfg on all the servers and restart the service. That would just take forever and is just crazy to ask the admins to do that.

Am I able to use NRPE for the "standard" checks, like drives, mem, cpu, etc and then use NRDS to add anything extra? Meaning, I can use both on servers, right? What is best practice in this situation?

Thanks

Re: NRDS and other checks

Posted: Wed Aug 07, 2013 9:58 am
by BanditBBS
I answered my own first question with an "of course" but I now have a second question.

I looked at the install script and see that it REQUIRES bash is installed. We do not have it installed on any of our AIX servers. Is there a reason you are requiring bash?

Re: NRDS and other checks

Posted: Wed Aug 07, 2013 10:02 am
by abrist
BanditBBS wrote: Am I able to use NRPE for the "standard" checks, like drives, mem, cpu, etc and then use NRDS to add anything extra? Meaning, I can use both on servers, right? What is best practice in this situation?
You can use both agents just fine. Alternatively, many of our clients in dynamic environments push their nrpe configs with puppet/chef. So that is an option as well, though nrds offers much of the same functionality (though nagios specific).

If you do end up using nrds extensively, it may make sense to migrate most of your checks to the nrds agent just for simplicity's sake as a single unified agent is usually easier to manage. Any of these scenarios are could be considered best practice depending on the environment.

Re: NRDS and other checks

Posted: Wed Aug 07, 2013 10:28 am
by abrist
BanditBBS wrote: Is there a reason you are requiring bash?
The send_nrdp portion of nrds uses a bash shell script (send_nrdp.sh) to send the checks back to nagios. Now there are a couple of other sending options, but understand that these are under-tested and may require some hacking depending on the environment. Your nrds config includes an additional setting for "send_nrdp", this is where the bash shell script is defined. You could try to change the sha-bang line to your shell, or prepend the the field with the full path to your shell, i.e.

Code: Select all

/bin/ksh /usr/local/nrdp/clients/send_nrdp.sh
This may not work out of the box as some of the shell logic may be different, though you may be able to hack it out. Alternatively, the agent tarball includes a python script that could be used instead, though this again, is under-tested. There is also a php script, though it will have even more issues as the switches/arguments are in a different format and would require changing the underlying implementation of the nrds component.

There was some work done a while ago to attempt to migrate the entire agent to perl, unfortunately, the person that was working on it is out of the office for the next few weeks. My apologies for the lack of a clearly defined solution, but maybe one of the above methods will work on your AIX boxes. By all means, if you hack out a solution, share it with us, but if you run into problems, remember that we are here to help.