Hello There, Guest!  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to configure NRPE with Nconf?


I would like to monitor some Linux servers with NRPE.
Is there a tutorial available somewhere on how to configure NRPE with Nconf?


PS: I do have a strange issue when I ssh into nems: the system messages show up in some cyrillic language...
See attachment.

As I am using a non-us keyboard I had to change the default keyboard layout (which is not in a cyrillic language obviously!

The only NRPE documentation so far is here: https://docs.nemslinux.com/usage/nrpe_on_linux

If you have specific questions, perhaps I can add more documentation to answer that... doing my best to expand the docs before NEMS 1.3's release in November.

Regarding the language you're seeing... are you sure you selected the correct language settings when you ran sudo nems-init?

All the best,
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
I've installed the nrpe server package on the target machine using dnf (I'm using Fedora).

From the nems machine I can run commands such as:

[email protected]:/usr/lib/nagios/plugins $ ./check_nrpe -H -c check_root
DISK OK - free space: /var/tmp 34435 MB (72.20% inode=91%);| /var/tmp=13257MB;40214;45241;0;50268

So the machines can communicate.
What is not clear to me at the moment is what steps I need to take in Nconf to tell nems to monitor disk space, etc on that particular machine.

As far as the installed language is concerned:

[email protected]:/usr/lib/nagios/plugins $ echo $LANG

Which is the language I want.

By setting your locale to Belarus, you are changing the system language which is what is resulting in the Belarusian (Russian) output of some system text. As you say, this is the language that you want, so it is not a concern. NEMS itself is English only since that's all I'm able to speak, but the underlying system (Debian) supports Russian. So you'll end up with a bit of a mix-match between language outputs Smile

Sounds like you know your way around Nagios - so that's great. The key thing will be learning to adapt that knowledge to NEMS, which does away with the old "text file" scripts and instead places your hosts and services in a web-based GUI (NEMS NConf).

I haven't written documentation for the individual check commands yet. You should be able to get a sense of how NEMS NConf works by reviewing the samples I've included, or get started with the legacy NConf wiki, which fortunately is still active even though the original developer stopped building NConf.

I will do my best to have check_nrpe (and other check commands) documented this quarter. It's a huge undertaking.

Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
I now realize my mistake. I was under the impression that be_BY.UTF-8 was the language code for Belgium![Image: blush.gif]
I'v checked the language setting on my other machines and there it is nl_BE.UTF-8...
I ran raspi-config and now it is sorted!

[email protected]:/usr/lib/nagios/plugins $ ls something
ls: cannot access 'something': No such file or directory

Actually I'm a complete newbie as far as Nagios is concerned.
I just googled around to find some guidance...
I'll have a look at the examples.

Oh - haha! Well that's that then! Glad I could help you sort that out.

It seems you've got your head around some of the basic stuff regardless, so just be sure you note that as you look at any "Nagios" tutorials, you'll be looking at the text-based script stuff. You need to adapt that knowledge to our GUI to make it make sense.

It is very straightforward -- especially for someone who knows Nagios inside and out -- but as a self-professed NagiosN00b (ha!) you may have a bit more work cut out for you.

Do keep in mind, NEMS 1.3 is slated for a November release. Part of wrapping up the 1.2.x development cycle is completion of the documentation to make way for the upcoming NEMS 1.3 features (and subsequent documentation) - so if you're stuck with any particular point, please let me know and I'll do my best to add it to the official docs.

For now, I've added check_nrpe to the list.

Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
Forum Jump:

Users browsing this thread: 1 Guest(s)