nrpe check plugin fails after 4.0 upgrade

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
grafton
Posts: 7
Joined: Wed Jun 12, 2013 8:33 pm

nrpe check plugin fails after 4.0 upgrade

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: nrpe check plugin fails after 4.0 upgrade

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

Re: nrpe check plugin fails after 4.0 upgrade

Post 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.
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.
Locked