OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: henningkessler on January 17, 2020, 11:10:55 PM

Title: Where is the NRPE plugin?
Post by: henningkessler on January 17, 2020, 11:10:55 PM
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
Title: Re: Where is the NRPE plugin?
Post by: fabian on January 18, 2020, 08:28:07 AM
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.
Title: Re: Where is the NRPE plugin?
Post by: mimugmail on January 18, 2020, 08:45:46 AM
You can install via CLI and give it a try. If it works for you we can release it with 20.1
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 18, 2020, 05:03:38 PM
Okay then I certainly will give it try and report back. Thanks for your response @mimugmail @fabian.
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 18, 2020, 11:59:43 PM
Hi,

plugin is installed and is working as expected.

Thank you.

Henning
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 27, 2020, 10:22:34 PM
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
Title: Re: Where is the NRPE plugin?
Post by: mimugmail on January 28, 2020, 05:40:26 AM
I'm not sure what you mean. After adding a command and hitting save it's still not available?
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 28, 2020, 07:55:29 AM
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
Title: Re: Where is the NRPE plugin?
Post by: mimugmail on January 28, 2020, 10:22:10 AM
Can you upgrad to 19.7.10 where nrpe is stable?
I cannot reproduce here .. sorry.
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 28, 2020, 03:48:22 PM
Upgraded to 19.7.10 and still the same. I am on os-nrpe-devel 1.0. Should I probably change to os-nrpe?
Title: Re: Where is the NRPE plugin?
Post by: mimugmail on January 28, 2020, 04:28:36 PM
Yes, via console:

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

It will keep settings (but better do a backup before) :)
Title: Re: Where is the NRPE plugin?
Post by: franco on January 28, 2020, 05:11:35 PM
It should remove -devel automatically on install without having to deinstall it manually :)


Cheers,
Franco
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 28, 2020, 11:35:42 PM
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
Title: Re: Where is the NRPE plugin?
Post by: mimugmail on January 29, 2020, 10:15:05 AM
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
Title: Re: Where is the NRPE plugin?
Post by: henningkessler on January 29, 2020, 10:51:02 AM
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 :-[

Title: Re: Where is the NRPE plugin?
Post by: mimugmail on January 29, 2020, 12:06:52 PM
No worries, glad you test it  8)