Where is the NRPE plugin?

Started by henningkessler, January 17, 2020, 11:10:55 PM

Previous topic - Next topic
Hello,

I would love to monitor my OPNsense boxes from my Icinga system and have read about the NRPE plugin. But I can't find that plugin in WebGUI on my 19.7.9_1 installation. After logging in via SSH und running pkg search nrpe I only found os-nrpe-devel-0.1 Am I supposed to install this via pkg?

Regards

Henning

The devel suffix means that there is a developer preview but since there is no pkg  without the suffix, there is no stable release. For sure you can install the preview as well.

You can install via CLI and give it a try. If it works for you we can release it with 20.1

Okay then I certainly will give it try and report back. Thanks for your response @mimugmail @fabian.

Hi,

plugin is installed and is working as expected.

Thank you.

Henning

Today I realized two things:
1. At least check_procs is running with "non elevated privileges" meaning the result is one running process. Guess that is the command itself?
/usr/lib/nagios/plugins/check_nrpe -H 10.100.2.251 -c check_procs -a '-c 50 -w 20'
PROCS OK: 1 process | procs=1;;;0;

2. If I tried to add another check I needed to disable NRPE, save and reenable and save it again so that the command was written to nrpe_commands.cfg.

Regards

Henning

I'm not sure what you mean. After adding a command and hitting save it's still not available?

Thats right. After adding the command and saving it the command does not appear in /usr/local/etc/nrpe_commands.cfg. I have to switch to the General tab of the NRPE plugin, deselect the enable NRPE checkbox save it and the selecting the checkbox again save it that again in order to make the command available.

Henning

Can you upgrad to 19.7.10 where nrpe is stable?
I cannot reproduce here .. sorry.

Upgraded to 19.7.10 and still the same. I am on os-nrpe-devel 1.0. Should I probably change to os-nrpe?

Yes, via console:

pkg remove os-nrpe-devel
pkg install os-nrpe

It will keep settings (but better do a backup before) :)

It should remove -devel automatically on install without having to deinstall it manually :)


Cheers,
Franco

Installing os-nrpe from the GUI removed os-nrpe-devel but unfortunately my issue persists. I even removed and reinstalled it completely.

Regards and appreciating your help

Henning

So, again, you navigate to Services : NRPE : Configuration, the service icon on the upper right is green, you go to tab "Commands", clone an existing one and change the name, hit Save in the popup and hit Save on Commands page, you see the spinner and when it stops the service icon upper right still green?
cat /usr/local/etc/nrpe_commands.cfg doesn't list the new command?
What's the content of:

tail -f /var/log/nrpe.log

when hitting save?

I still can't reproduce

OMG. This is so embarrassing. I total oversaw the second SAVE Button in that window. Pressed it. Works. ARRRRRRGH :o :-[

I am so sorry to have bothered you with this.

I will triple check now about point 1.

Henning :-[