Page 1 of 1

nrpe check plugin fails after 4.0 upgrade

Posted: Fri Oct 18, 2013 5:05 pm
by grafton
Hola,

First of all, I couldn't find this issue anywhere else in the forum. If you know of another thread talking about this could you please direct me to it? :)

I had a core install of 3.5.1 that checked in on several servers (~10) using NRPE. I installed a few plugins on those remote servers to check in on mysql, apache, and memory usage. Then I upgraded to 4.0 and all those custom plugins broke… I re-ran the installer for 3.5.1, copied back over most of the contents of my /usr/local/nagios/etc folder and things are working just as they were.

My initial thought is that something within the 4.0 update changed how it handles plugins and everything I pulled off of exchange.nagios.org is using old plugin architecture. But then I wondered why Nagios would release an update that didn't contain plugin backwards compatibility to some of the most popular plugins.

Any thoughts? Could anyone offer help for tracking down the issue here?

Thanks for your time!

Best,

Grafton

Re: nrpe check plugin fails after 4.0 upgrade

Posted: Sun Oct 20, 2013 5:24 pm
by jsmurphy
I haven't played with v4.0 much yet, but I'm pretty sure the embedded perl interpreter was removed... so it may sound like a silly question... but are the plugins written in perl and is perl installed?

v4.0 has made some pretty sweeping changes to check execution

Re: nrpe check plugin fails after 4.0 upgrade

Posted: Mon Oct 21, 2013 11:37 am
by abrist
To build off of what jsmurphy said: If your plugins use perl, you will need to add the full path to the perl binary before the check in your nrpe.cfg or your object config file, as well as make sure the system in question has perl installed.