the Nagios Remote Plugins Executor (NRPE), used to execute Nagios plugins on remote clients
Questions tagged [nrpe]
25 questions
3
votes
0 answers
Nagios - Help with getting NRPE to work with check_fail2ban.sh
I am trying to monitor fail2ban with Nagios so, I found the following check via a Google search:
http://nagios.fm4dd.com/plugins/manual/check_fail2ban.htm
I am trying to get the check to work on a remote host, but I am unable to get it to return…
TB.
- 31
- 2
2
votes
1 answer
Why does this Bash NRPE plugin not return a variable to Nagios?
This script I have here works locally just fine:
#! /bin/bash
volts=`sudo vcgencmd measure_volts core|sed 's/volt=\([0-9\.]*\)V/\1/'`
echo -n "BCM2835 SoC Voltage is ${volts}V "
echo "| volts=$volts;1.5;1.5;0;1.5"
However if Nagios tries to get the…
syss
- 691
- 9
- 20
2
votes
0 answers
shebang with /usr/bin/env and sudo
I have lots of scripts, usually they start with a shebang and /usr/bin/env and the required interpreter (for example "#!/usr/bin/env perl"). This works fine since many years, but for some reason I don't understand I have one script on one FreeBSD…
frank42
- 121
- 2
1
vote
0 answers
Nagios agent not running
Nagios is collecting stats from my RHEL server. I do not see that the nrpe agent nor snmp is running. How is this working?
DonDavis
- 11
- 1
1
vote
1 answer
How to validate NRPE config file?
Nagios itself has the way to check its config file for validity, to ensure it would at least load the config without errors:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Is it possible to do the same thing for the NRPE daemon?…
Nikita Kipriyanov
- 1,398
- 8
- 13
1
vote
1 answer
check_nrpe command doesn't work from nagios server since debian upgrade
Yesterday I upgraded a server from Debian 9 to Debian 10. This server is supervised with nagios. Since the upgrade, I get an alert, status Unknown saying :
"Volumegroup array03-0 wasn't valid or wasn't specified with "-v
Volumegroup", bye.…
JadenBZH
- 23
- 5
1
vote
2 answers
Don't have directory '/usr/lib/x86_64-linux-gnu'. But instructions to install a software says './configure --with-ssl-lib=/usr/lib/x86_64-linux-gnu'
I am trying to install NRPE (nagios remote plugin executor) in a CentOS system. In the configuration step, the document I have been given to refer to says,
./configure --enable-command-args --with-nagios-user=nagios --with-nagios-group=nagios…
Kristada673
- 133
- 1
- 7
1
vote
0 answers
Nagios plugin fails to run a command over NRPE
I have the following plugin whose status is OK on core.
#!/usr/local/bin/bash
if [ "$1" = "-w" ] && [ "$2" -lt "101" ] && [ "$3" = "-c" ] && [ "$4" -lt "101" ] ; then
warn=$2
crit=$4
AVAILMEMPERC=$(free -m | grep mem_avail | awk '{print…
pdns
- 265
- 1
- 3
- 11
1
vote
1 answer
How can I get hostapd_cli to work under sudo on debian stretch?
I have a bash script that runs hostapd_cli all_sta, and the script executes successfully from the command line under both jessie and stretch. The script also works when run under sudo on jessie but not on stretch. On stretch the command times out…
Bob
- 111
- 5
1
vote
2 answers
The receiving of returns by Nagios from script through NRPE
I am using nagios3 and want to collect some information from nrpe_server.
Next script is at nrpe_server:
#!/bin/sh
#set -x
# script for checking disk usage on ZFS
# requires min zpool version 13 or zfs version 4
# example, it's posible to have zfs…
BBK
- 141
- 8
1
vote
1 answer
How do I install the nagios NRPE plugin on CentOS 5 using yum?
How do I install the nagios NRPE plugin on CentOS 5 using yum?
I've tried yum install nagios-plugins but it's only downloading a fraction of a megabyte. Then if I do a search for one of the commands that was supposed to be installed, like…
cwd
- 44,479
- 71
- 146
- 167
1
vote
1 answer
ERROR: CHECK_NRPE: Socket timeout after 10 seconds
getting following error :
# /usr/local/nagios/libexec/check_nrpe -H nagios-server-ip
CHECK_NRPE: Socket timeout after 10 seconds.
But it's working for localhost
# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.15
ps i have checked…
Ashish Karpe
- 292
- 6
- 18
1
vote
1 answer
How is python invocation different when launched by Nagios nrpe?
When invoked with python2 after importing os and sys, the following function runs successfully but acts incorrectly when invoked by Nagios nrpe:
def get_proc1_open_files():
# Set proc1_children list to empty, then run a system command to get a…
MGodby
- 121
- 4
0
votes
0 answers
NRPE service not starting in SUSE linux 15 sp 3
Couldn't start nrpe.service in SUSE linux 15 sp3. I have installed monitoring-plugins-nrpe package but no service shown and when try to start "systemctl start nrpe.service" command then below error shows
"Failed to start nrpe.service: Unit…
0
votes
0 answers
NRPE error: WARNING: my_system() seteuid(0): Operation not permitted
I'm running a probe with no arguments with NRPE v4.0.3 on a RHEL7.9 remote server. I keep getting error:
NRPE: Unable to read output
. When I run:
sudo journalctl -u nrpe --since "1 hour ago"
on the remote server, I always get the same…