Questions tagged [nrpe]

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

NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines. This allows you to monitor remote machine metrics (disk usage, CPU load, etc.). NRPE can also communicate with some of the Windows agent addons, so you can execute scripts and check metrics on remote Windows machines as well.

164 questions
1
vote
1 answer

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 -c 172800 -W 250 -C 250 -f /path/to/file/$(date…
GoodDog
  • 33
  • 4
1
vote
1 answer

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.x86_64 (builder@kbuilder.dev.centos.org) (gcc…
Tango_gr
  • 11
  • 1
  • 3
1
vote
1 answer

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 visudo: Defaults:nrpe !requiretty nrpe ALL=(ALL)…
Typerek
  • 11
  • 1
  • 3
1
vote
0 answers

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 SoftwareLicensingService" "critical=15" "warning=25"…
1
vote
0 answers

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 those two servers the script decided that $LOGFILE…
ilvidel
  • 111
  • 3
1
vote
0 answers

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 of rows in mongo db. But when I run it remotely…
1
vote
1 answer

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' | sed '/^$/d'| awk '{print $2":"$3}'` echo "VM List…
Paul Jany Godwin
  • 81
  • 1
  • 1
  • 8
1
vote
1 answer

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 there a way to ignore this error as Nagios starts…
Senthil
  • 11
  • 1
1
vote
2 answers

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 -c 10 Service on the Nagios server: define…
l3_08
  • 13
  • 6
1
vote
3 answers

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…
Ciprian Stoica
  • 147
  • 2
  • 10
1
vote
2 answers

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$ -c check_tok 123 } define service use…
1
vote
1 answer

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 check_nrpe from Nagios fails mysteriously. Edit: I'm…
Nir Friedman
  • 121
  • 1
  • 4
1
vote
1 answer

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 check_freshness 1 freshness_threshold 600 …
quanta
  • 51,413
  • 19
  • 159
  • 217
1
vote
1 answer

permission denied running check_vmfs.sh through NRPE

we have a nagios monitoring system already running and I was after monitor our vmware datastores using the following plugin I installed vmware cli and tested with no issues: [root@nrpe-relay ~]# /usr/lib64/nagios/plugins/check_vmfs.sh -C…
masber
  • 205
  • 2
  • 6
  • 17
1
vote
2 answers

check_nrpe ssl couldnt complete handshake, in both master and client server it works fine individually

I am getting this check_nrpe ssl couldnt complete handshake error in master server when I try executing the below command. /usr/local/nagios/libexec/check_nrpe -H 10.192.122.234 10.192.122.234 --> nagios client machine but when I use…
Nishanth
  • 83
  • 3
  • 8