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
2
votes
1 answer

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.0.0.1,::1,10.252.1.134 is magically turned into…
Jdamian
  • 285
  • 3
  • 19
2
votes
2 answers

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/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c…
Seena E
  • 21
  • 1
  • 2
2
votes
1 answer

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 "$RESULT" exit 0 else echo "Check application port…
user53029
  • 629
  • 3
  • 14
  • 36
2
votes
1 answer

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 remote (NRPE) server I have added below line in nrpe.cfg…
Rutu
  • 21
  • 1
2
votes
2 answers

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 remote-server-ip from the main server I get NRPE…
Beginner
  • 211
  • 2
  • 4
  • 6
2
votes
1 answer

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 correctly (also tested by su to nrpe user and…
user322111
  • 21
  • 2
2
votes
1 answer

NRPE : Unable to read output

I've installed an Incinga 2 server and I'm trying to monitor Linux server. So my server Icinga is working well. And last week I've installed the NRPE agent on one of our Server. It's a Red Hat Enteprise Linux 6.5. So the install is ok, i made the…
Arc_Jsc
  • 21
  • 1
2
votes
1 answer

NRPE check parameters getting lost

I'm running Shinken and have a pack which includes several commands that run bash scripts on the monitored host via NRPE. I have a check on the host which runs a bash script that takes 4 parameters. When it runs only 1 of the 4 parameters I pass in…
2
votes
1 answer

NRPE 2.15 - check_procs not showing right value

I've got Nagios Core Version 4.1.0rc2 configured server-side with a client running NRPE 2.15. I've got the two devices properly communicating using the check_nrpe command, but for whatever reason the Nagios web-portal isn't showing the right value…
Andrew
  • 2,142
  • 2
  • 19
  • 25
2
votes
2 answers

Icinga2 unidirectional remote clients

I'd like to monitor some hosts on which I can't allow an income connection. Is there a away to achieve that while using "Icinga 2 Client" or "by_ssh"? I can't find anything about that in the official documentation:…
2
votes
0 answers

UNKNOWN: No handler for that command

I have the check_task.vbs placed in C:\nsclient++\scripts on a Windows Server 2008 R2. I defined in the NSC.ini a NRPE Handler like this: [NRPE Handlers] check_task=cscript.exe //NoLogo scripts\check_task.vbs $ARG1$ $ARG2$ In the commands.cfg the…
paraDice
  • 21
  • 1
  • 4
2
votes
0 answers

nagios check fails on nagios host but works locally

I wrote a small bash script to use with nagios to check if nrpe is running. The check works locally when run as root, but fails from the monitoring host. From the host I'm trying to monitor, I have this line in my nrpe.conf: …
user99201
  • 287
  • 2
  • 8
  • 22
2
votes
1 answer

check_mysql_slavestatus RPE: Unable to read output

i am using Nrpe plugin on Ubuntu from nagios exchange check_mysql_slavestatus. Manually its working from : root@Bastion-01:/usr/local/nagios/libexec# ./check_mysql_slavestatus -H Slave-ip -P 3306 -u root -p xxxxx -w 10 -c 20 OK: Slave SQL running:…
Ashish Karpe
  • 277
  • 2
  • 5
  • 19
2
votes
2 answers

Nagios Basic Configuration (for quick addition of new machines)

I recently started to use Nagios to monitor about 25 servers (mainly virtual, with some standalone). Them majority of the servers (including the Nagios host itself) are running Ubuntu 14.04 LTS, with a few running 12.04 LTS. Thus, I thought I could…
Harsha K
  • 123
  • 4
2
votes
1 answer

How does nrpe.d order includes?

I'm running the following version of the nagios-nrpe-server: nagios-nrpe-server: Installed: 2.12-5ubuntu1.2 Candidate: 2.12-5ubuntu1.2 Version table: *** 2.12-5ubuntu1.2 0 500 http://se.archive.ubuntu.com/ubuntu/ precise-updates/main…
span
  • 163
  • 2
  • 7
1 2
3
10 11