NRPE on Linux

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
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

NRPE on Linux

Post by kwhogster »

Running Nagios Core 4.3.4
I use NRPE to check my Windows machines and Linux machines.

I just installed two new Linux Servers

One is Vmwares VCSA appliance which runs Photon v1.0

The other is HP StoreOnce VSA not sure what version that is?

I have Nagios doing a few checks on both no problem.

I have some NRPE checks that I would like to do on both.

Any ideas on how I can do this?

Happy New Year

Tom
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE on Linux

Post by dwhitfield »

Have you installed NRPE on the two new servers? If it's a supported version, https://assets.nagios.com/downloads/nag ... _Agent.pdf is going to be the easiest. There is nothing XI-specific about that document except the branding.

What are the checks you want to run? Some checks require different permissions, so we'll need to know to be able to provide full steps. It might be worth opening a new thread for each check, so we get work on each check individually without getting confused.

What version of Linux are the two machines running? cat /etc/*lease should help answer that. If they are different versions of Linux, please separate the threads.

Once you get NRPE installed, it's worth providing your nrpe.cfg from the two remote hosts. Also, please provide the common.cfg from both hosts.

While we are out of the office today and tomorrow, I would suggest taking a look at https://support.nagios.com/kb/article/n ... s-629.html
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE on Linux

Post by kwhogster »

Thanks

On the one Linux box I can access to console and run commands

The HP Appliance I can not very strange
kyang

Re: NRPE on Linux

Post by kyang »

Did you install NRPE through source? Or is it running under xinetd?

Which checks are you running?

When you run the commands on the HP server, is there any error message? Could you show us the commands and any details after running the command?

Also, it would be helpful if you could provide us with some of the information @dwhitfield asked for.

What version of Linux are the two machines running?

Code: Select all

cat /etc/*lease
It's worth providing your nrpe.cfg from the two remote hosts. Also, please provide the common.cfg from both hosts.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE on Linux

Post by kwhogster »

Have not installed NRPE yet on either one.

Server 1.

root@tgcs-vc65 [ ~ ]# cat /etc/*-release
DISTRIB_ID="VMware Photon"
DISTRIB_RELEASE="1.0"
DISTRIB_CODENAME=Photon
DISTRIB_DESCRIPTION="VMware Photon 1.0"
NAME="VMware Photon"
VERSION="1.0"
ID=photon
VERSION_ID=1.0
PRETTY_NAME="VMware Photon/Linux"
ANSI_COLOR="1;34"
HOME_URL="https://vmware.github.io/photon/"
BUG_REPORT_URL="https://github.com/vmware/photon/issues"
VMware Photon Linux 1.0
PHOTON_BUILD_NUMBER=13c08b6
root@tgcs-vc65 [ ~ ]#


Server 2

Welcome to the HPE StoreOnce Command Line Interface.
Type 'help' at the prompt for context-sensitive help.

Management interface is 10.2.8.54

Product class : HPE StoreOnce VSA Software
Software version : 3.16.3-1730.1

The system has unacknowledged events:
Alerts: 217
Warnings: 1
You can view these events from the command 'log show events'
You can also view and acknowledge these events by navigating to the Events page in the Management GUI


# help

Global Commands
---------------
help - List commands or get help for a specific command.
home - Go to the root level.
exit - Log out
up - Go up one level


Paths currently available
-------------------------------------------
accounts - manage user accounts.
alerts - commands related to display and settings of alerts and events.
config - commands related to save and restore of the configuration.
hardware - manage Backup System hardware.
license - manage Backup System licenses.

logs - commands related to the logs generated by the Backup System.
net - commands related to the Backup System network configuration.
serviceset - provides information on the D2D serviceset.
snmp - manage snmp related functions.
support - create, delete or show support tickets.
system - commands related to configuration and system setup.
time - manage time related functions.
vtl - manage vtl related functions.
nas - manage NAS shares.
nfs - manage NFS server.
cifs - manage CIFS server.
keymanager - commands related to enrolment with the External KeyManager.

Commands currently available
-------------------------------------------
hpsupport - provides access to the HP support account with the HP support authority level.

#

On server 2 do not know how to get to bash

On server 1 not sure how to install nrpe no yum command found
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE on Linux

Post by kwhogster »

VMware Photon is currently not supported

root@tgcs-vc65 [ /temp ]# wget http://assets.nagios.com/downloads/nagi ... ent.tar.gz
--2018-01-09 03:30:56-- http://assets.nagios.com/downloads/nagi ... ent.tar.gz
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/nag ... ent.tar.gz [following]
--2018-01-09 03:30:56-- https://assets.nagios.com/downloads/nag ... ent.tar.gz
Connecting to assets.nagios.com|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3560392 (3.4M) [application/x-gzip]
Saving to: ‘linux-nrpe-agent.tar.gz’

linux-nrpe-agent.tar.g 100%[===========================>] 3.39M 3.46MB/s in 1.0s

2018-01-09 03:30:57 (3.46 MB/s) - ‘linux-nrpe-agent.tar.gz’ saved [3560392/3560392]

root@tgcs-vc65 [ /temp ]# ls
linux-nrpe-agent.tar.gz
root@tgcs-vc65 [ /temp ]# tar xzf linux-nrpe-agent.tar.gz
root@tgcs-vc65 [ /temp ]# ls
linux-nrpe-agent linux-nrpe-agent.tar.gz
root@tgcs-vc65 [ /temp ]# cd linux-nrpe-agent
root@tgcs-vc65 [ /temp/linux-nrpe-agent ]# ./fullinstall
VMware Photon is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, CloudLinux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.
root@tgcs-vc65 [ /temp/linux-nrpe-agent ]#
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE on Linux

Post by dwhitfield »

kwhogster wrote: On server 2 do not know how to get to bash
You'll have to ask HP how to get to the command line.
On server 1 not sure how to install nrpe no yum command found
You'll have to ask VMWare how to install packages on their OS, but you could try dnf or apt.

You may need to compile gcc glibc glibc-common openssl openssl-devel and perl from source to compile NRPE. We do not have photon instructions at https://support.nagios.com/kb/article.php?id=515 and it's possible we never will.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: NRPE on Linux

Post by kwhogster »

Lock this the Linux version do not work with NRPE
Locked