Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nrpe]

NRPE - Nagios Remote Plugin Executor, used to remotely execute Nagios plugins.

1
vote
1answer
180 views

Systemd PrivateTmp=true security implications

I monitor the available disk space on Ubuntu servers using Nagios Core, NRPE and check_disk. With previous Ubuntu versions, I used to get an output similar to this: DISK OK - free space: / 43754 MB (...
0
votes
1answer
25 views

Nagios notifications coming from NRPE client machine (NOT the Nagios server)

I have Nagios running on a Debian Jessie master server, with NRPE running on a Debian client. The root@localhost is getting a slew of emails - apparently originating from Nagios (NRPE) on the client, ...
0
votes
1answer
70 views

Security advantages: check_by_ssh versus check_nrpe

The question is which is more secure - as opposed to which is better from a configuration standpoint. I have a number of Centos and Debian systems. The NRPE daemon is installed and working on all ...
1
vote
0answers
34 views

NRPE agent works on 1 server, but not on the other, exactly same command

I have a very strange issue. It seems that when I execute a check_nrpe command to check the load on remote machines, it works on server1, but exactly the same command does not work on server2, and it ...
0
votes
1answer
30 views

nagios/nrpe user confined to certain dir on ubuntu [closed]

I am confused. Not that is difficult to get me in a confused state, but I am so confused, that I don't know what my name is or where I live (like Baldrick!). Anyway, I have nrpe installed on a client ...
0
votes
1answer
90 views

Nagio NRPE - Always return 0

I'm trying to execute a bash script in nagios by using nrpe client, but it is always returning "0" value as output. If i'm using this command in the script: _VAR=$(atop -r file.atop | grep '^DSK' |...
0
votes
1answer
78 views

Nagios Docker Stack Plugin works locally but not remote

I have a plugin to check the services running on docker. I've gone through all of the suggestions from the dozens of posts I have seen here, but I'm still not able to get this to work. The commands ...
1
vote
1answer
86 views

NRPE: Command substitution in nrpe.cfg

I would like to check the size of a log file created day earlier. In nrpe.cfg I have tried to achieve this through command: command[example_command] =/usr/lib64/nagis/plugins/check_file_age -w 172800 ...
-1
votes
1answer
59 views

Checking if a programm is running on linux

i'm trying to check if a program on a linux server is running and start it if not. But i get strange errors: #!/bin/sh SERVICE=nrpe ps -ef | grep -v grep | grep $SERVICE | wc -l if [ $? -gt 1 ] ...
-2
votes
1answer
291 views

How to monitor an AWS instance (Linux system) using nagios in local machine as server via nrpe plugin [closed]

I have my nagios core installed in an local machine(linux 16.04), which is perfectly monitoring my local remote machines. But i want to monitor an AWS instance (linux machine) using the same local ...
0
votes
1answer
1k views

NRPE: Unable to read output - Permissions issues

I am trying to be as clear as possible: my brain is going to explode, like those explodding kittens. Both machines Centos 7: [root@192.168.10.2]# cat /proc/version Linux version 3.10.0-693.11.6.el7....
-3
votes
1answer
184 views

Python script doesn't work when executed from NRPE

I have developed a Nagios plugin using Python3 for checking some backups. If I run the script from the client, everything works fine, but when I run it from the Nagios server using NRPE, it doesn't ...
0
votes
1answer
144 views

Nagios in Docker - Source IP SNAT for NRPE isue

Nagios Server is running in a docker container. It's reaching out for host checks through NRPE running on various hosts within the network. The docker host is 10.10.100.100 Iptables ONLY allows ...
1
vote
1answer
346 views

Running plugins with NRPE as root: NRPE unable to read output

I have a problem with nagios and NRPE and I can't resolve it. I've already tried. # grep "nrpe_user=" /etc/nagios/nrpe.cfg nrpe_user=nrpe NRPE is running as the user nrpe. So I added this lines to ...
0
votes
0answers
283 views

SELinux prevents NRPE to run properly in RHEL 6.8: Could not complete SSL handshake with

I downloaded nrpe-3.2.0.tar.gz and nagios-plugins-2.2.1.tar.gz, extracted, compiled and installed in a RHEL 6.8 64-bit box. It runs fine when SELinux status is Permissive, but it does not work in ...
1
vote
1answer
178 views

NRPE daemon turns ::1 into 52.0.0.0/14 subnet

I configured NRPE daemon (/usr/local/nagios/etc/nrpe.cfg) in debug mode because of some startup problems and I realized that the ::1 found by default in the allowed_hosts directive: allowed_hosts=127....
1
vote
0answers
67 views

Error while Checking the KMS service count using Nsclient

I'm getting following error. NSClient version: 0.5.0.65 2016-11-13 nsclient.ini: [/modules] CheckWMI = enabled Syntax: ./check_nrpe -H 10.122.33.96 -c check_wmi -a "query=Select * from ...
0
votes
1answer
209 views

Need Critical alert for Particular Event id is not generated with in 24 hours

I am using CheckEventLog of NSClient++ 0.5.0.62 2016-09-14 how to use syntax for , if particular event id is not generated with in 24 hours i need critical alert , if event id generated i need ...
0
votes
1answer
100 views

Automated NRPE checks yield warnings but work when performed manually

I'm monitoring several hosts using Nagios. This works fine when I use "normal" checks that are executed on the monitoring host (say, check_http). However, I'm having troubles with NRPE-based checks ...
1
vote
0answers
79 views

Nagios/NRPE work on some nodes only

I wrote a custom check in bash, and run it on 4 different servers. Two of them work fine, and the other two fail when checking if a file exists with: if [ ! -f $LOGFILE ] By "fail" I mean that on ...
1
vote
0answers
88 views

getting NRPE: Unable to read output when running from server

I am getting NRPE: Unable to read output when trying to connect to the docker container using nagios. When I run this script directly on the client machine it is successfully returning me the number ...
0
votes
1answer
529 views

Nagios3 to Icinga migration breaks nrpe checks

I have upgraded a server from Debian 8 to Debian 9. The server was running Nagios 3 to do some checks but that has been discontinued. The natural replacement is Icinga (version 1). I've installed it ...
0
votes
1answer
197 views

Monitor JMX with Nagios for space on name

We are trying to monitor JMX with Nagios XI and using check_jmx Plugin. Its working fine for Heap memory, thread count etc..We re facing issue on while using the following: obj": "java.lang:type=...
1
vote
1answer
122 views

Unable to get vm-list for KVM using nrpe check

I created check in KVM virtualized host to get list of available VM's in KVM hypervisor using below command. $ cat /usr/local/nagios/libexec/check_kvm #!/bin/sh val=`virsh list --all | sed '1,2d' | ...
1
vote
1answer
292 views

Occassional or Frequent CHECK_NRPE: Error – Could not complete SSL handshake

My Nagios/NRPE is configured and working as expected for a few years now. Occasionally or sometimes even very frequently in a day I get "CHECK_NRPE: Error – Could not complete SSL handshake". Is ...
0
votes
0answers
369 views

Is installing NRPE on an ESXi for monitoring purpose a good idea?

I am using Centreon to monitore our VMs. I've also VM backups done on the ESXi (5.5.0) with ghettoVCB and sent to a NAS mounted on NFS. Now I would like to monitore those backups with a home made ...
0
votes
1answer
624 views

nagios-plugins - check_ntp_time not detecting an incorrect offset

I have the following ntp check on my server for Nagios via NRPE /usr/local/nagios/nrpe_plugins/check_ntp_time -H localhost -w 0.5 -c 1 -q When changing the date manually via the date command to a ...
0
votes
1answer
92 views

How do I monitor the NRPE daemon on remote Icinga servers

Our network has one Icinga master and 23 Icinga satellites. NRPE runs on every satellite as well as the master. Is there a Nagios plugin I can run on the master to monitor whether nrpe is running on ...
1
vote
2answers
775 views

No output returned from plugin but services shows ok

I'm trying to check the system memory by using check_memory.pl and the following command setup: In the nrpe.cfg on the remote host command[check_mem]=/usr/lib/nagios/plugins/check_mem -f -w 20 -...
0
votes
2answers
352 views

Check_nrpe unable to read output from script

Script is at Server: #!/bin/bash if [ ! $# == 1 ]; then echo "Usage check_cluster " fi; clu_srv=$1 error="stopped" error1="disabled" error2="recoverable" host1=`sudo /usr/sbin/clustat|grep $1| awk {'...
3
votes
2answers
16k views

Nagios/nrpe giving “Return code of 255 is out of bounds”

I have the following service set up for nagios: define service { hostgroup_name LNX service_description /tmp Disk Usage check_command check_nrpe!check_disk!-a '-...
1
vote
2answers
3k views

Passing argument to nrpe

Remote hosts nrpe.conf command[check_users]=/usr/lib64/nagios/plugins/check_users -w $ARG1$ -c $ARG2$ Monitoring host: define command{ command_name check_nrpe command_line /usr/...
-2
votes
2answers
119 views

NRPE error when using check_nrpe

I have 2 centos server Server 1 - centos 6.8 Server 2 - centos 6.7 Originaly I had the issue on Server 1 but was able to fix the issue I had with the fix explained here NRPE unable to read output,...
0
votes
1answer
715 views

check_nrpe: ssocket time out after 10 seconds

I have a Nagios core setup in my environment for monitoring Windows, Linux servers etc. Recently i have configured a physical and swap memory monitoring using the plugin ./check_nrpe for windows ...
0
votes
1answer
359 views

icinga NRPE vs. SNMP

Is there a list of the pro/s and con/s of NRPE vs. SNMP when using icinga? I have no idea what's the best way to handle the returned data of plugins back to my icinga monitoring machine. Usage of ...
0
votes
1answer
385 views

NRPE Firewall blocking xinetd

From one side, my nagios server, IP 10.1.1.232. Here is my Nagios's xinetd's NRPE config : # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = ...
1
vote
1answer
314 views

nrpe user cant properly execute script remotely using lsof, netstat works

I created a simple script for nagios to check a port on a remote server. Originally, I tried to use lsof. #!/bin/bash RESULT=$(lsof -i :8080 | grep LISTEN) if [ -n "$RESULT" ] then echo "$...
1
vote
3answers
493 views

SELinux blocks nrpe access to MariaDB

I have a few virtual machines in the same LAN monitored by Icinga2 via NRPE. [Machine A] CentOS 6 Icinga2. [Machine B] CentOS 6 MariaDB v10.1.12 properly running Datadir and socket settings in ...
0
votes
2answers
1k views

Nagios define service for nrpe command in Windows environment

I'm trying to configure Nagios to monitor our network which is all Windows based. I'm totally new to it, so please forgive my naiveness. Fact is: I'm banging my head over a task. What I want to ...
0
votes
1answer
5k views

NSClient++ :: Failed to establish secure connection

Trying to get active checks of a Windows host from my nagios server. At this point I'm not even using nagios, and just running check_nt from the command line. Verified that the port is open, it ...
2
votes
1answer
369 views

Nagios plugin to monitor FreeSWITCH

I am trying to configure Nagios to monitor FreeSWITCH as mentioned at https://github.com/kjhosein/nagios-freeswitch-plugin . I have downloaded the script from git and followed listed steps. On ...
1
vote
2answers
613 views

Passing argument in a .py script for nrpe plugin

Machine A = nagios master, Machine B = edge machine. In machine A's host.cfg I have: define command { command_name check_tok command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -...
2
votes
1answer
2k views

CentOS7: KVM: error: Cannot create user runtime directory '/run/user/0/libvirt': Permission denied

Been trying to resolve an issue I found by having our Nagios installation use a plugin for KVM, check_kvm, I found. I think my problem boils down to a permissions issue with the nagios/nrpe user. ...
2
votes
2answers
3k views

Run check_nrpe on remote server

I am trying to monitor a small service on a dummy server via Icinga2 the check_nrpe plugin. I have setup both correctly as I can do the following: when I run /usr/lib/nagios/plugins/check_nrpe -H ...
2
votes
1answer
891 views

Nagios bash plugin works correctly locally but not remotely

I wrote a bash script for a custom nagios plugin that passes two command arguments for the warning and critical thresholds. When I run the bash script locally while passing the two arguments it works ...
0
votes
1answer
387 views

nrpe: Connection has taken too long to establish. Exiting

It has been several months that I have setup nrpe and it was working well till yesterday, there is a continuous log output from nrpe saying: nrpe: Connection has taken too long to establish. ...
2
votes
1answer
5k views

Nagios Notification interval and first notification delay

I have used in past these two parameters in Nagios ( first_notification_delay, notification_interval ) and until now worked perfect for me. Now that I have added new checks which use nrpe command. the ...
3
votes
1answer
2k views

NRPE allowed_hosts name resolution with IPv6

A fully IPv6 dual stack enabled network is monitored by Nagios 3.5.1 installed from EPEL on a CentOS 6.7 server. Monitored hosts run NRPE agents, all of which are configured to run as daemons (not via ...
1
vote
1answer
1k views

NRPE Works From Command Line; “Incorrect command line arguments” from Nagios

I'm trying to setup NRPE with a basic example as a first step towards deploying it. For simplicity, I'm running both NRPE and Nagios locally. NRPE and Nagios both seem to be working, but using ...
1
vote
1answer
465 views

NSCA passive stale --> multiple hanging nrpe processes?

shinken 2.0.3 nrpe 2.15 We are using nsca to perform passive checks. define service { name salt-service register 0 active_checks_enabled 0 passive_checks_enabled 1 ...