7
votes
Nagios - Could not complete SSL handshake
If you are using NSCP-0.4.3.x (rather then NSCP-0.4.2.x) on your Windows Host, then certificate based authentication became the default authentication method. That´s why your check isn´t working. To ...
- 2,848
6
votes
Accepted
nrpe: Host is not allowed to talk to us
Had the same entry in my syslog.
Editing /etc/nagios/nrpe.cfg and enter missing IP will fixed it at all.
allowed_hosts=1.2.3.4/24,127.0.0.1
After editing you have to restart or even reload nrpe ...
- 176
5
votes
NRPE unable to read output, but why?
In my case, only one plugin failed while several others worked okay.
It turned out to be a LOCALE problem.
The plugin was check_mem.sh and it performed a grep for Mem in the output of free. But ...
- 51
4
votes
Accepted
Nagios plugin executes manually but not automatically
You have misled yourself by not comparing apples with apples. The command you are running manually is not the command that you're asking NAGIOS to run automatically. When you run the actual command ...
- 79k
4
votes
Accepted
Nagios check_procs state filter
Looking at the source for check_procs, the behavior you are seeing is by design. Or rather, the behavior depends entirely on the behavior of the ps implementation. (If it works on your RHEL system, ...
- 4,637
4
votes
Accepted
How does nrpe.d order includes?
The issue has been discussed in http://sourceforge.net/p/nagios/mailman/message/27333277/ . Looks like version 2.12 exhibits the problem.
- 4,691
4
votes
Nagios - Could not complete SSL handshake
In my case I had to add under:
; ALLOW INSECURE CHIPHERS and ENCRYPTION - Only enable this if you are using legacy check_nrpe client.
the next two lines:
insecure = true
allow arguments = true
...
- 41
4
votes
SELinux blocks nrpe access to MariaDB
Try this:
setsebool -P nagios_run_sudo 1
On host with NRPE. This option is disabled by default in SELinux policy.
- 361
3
votes
Accepted
NRPE 2.15 - check_procs not showing right value
If you run check_nrpe without passing an actual command (e.g., -c check_procs), it will reply with the NRPE version number just to indicate that NRPE is working correctly.
(This is helpful if you ...
- 4,637
3
votes
Accepted
NRPE: Custom script returns unable to read input, but the script works correctly, what could it be?
The command you're running through nrpe is /usr/lib64/nagios/plugins/check_nfsmounts.sh, but the one you're testing from the command line is /usr/lib64/nagios/plugins/check_nfsmount.sh. You've ...
- 79k
3
votes
nrpe: Host is not allowed to talk to us
A lot of how-to's here and there ask you to allow your monitoring server IP like this in your host's /etc/nagios/nrpe.cfg :
allowed_hosts=127.0.0.1, 1.2.3.4
On some distribs (Ubuntu 14.04 LTS for ...
- 131
3
votes
Nagios remote monitoring: NRPE Vs. SSH
Besides the suggestions given in other answers, have you considering enabling ControlMaster in nagios' .ssh/config file to take full advantage of ssh multiplexing?
In other words your SSH connection ...
- 2,729
3
votes
Accepted
permission denied running check_vmfs.sh through NRPE
Your problem is that the NRPE daemon runs as the user nagios, and that user doesn't have permission to run the command in question.
You will either have to open up permissions so that the user can ...
- 79k
3
votes
Accepted
NRPE allowed_hosts name resolution with IPv6
It seems that when NRPE starts, it looks up bombur.example.com and uses the first (IPv4 in this case) address for the allowed_host entry.
The simplest way around this is to just use two hostnames. E....
- 4,637
3
votes
Nagios bash plugin works correctly locally but not remotely
finally figured this out and was very trivial. What you suggested would've helped if I had seen it in time. But basically the issue was this line:
command[customcheck_bash]=/usr/bin/sudo /usr/lib/...
- 61
3
votes
Accepted
NSClient++ :: Failed to establish secure connection
check_nrpe is for NRPEServer and check_nt is for NSCLientServer
So you need to move your configuration over to the NSClientServer module for check_nt to work or better yet stop using check_nt and ...
- 605
3
votes
nrpe user cant properly execute script remotely using lsof, netstat works
Non-root users don't see any output from lsof -i. (Confirmed on Debian 8 and Cent 7, without SELinux.)
If you wanted to use this in a nagios check, you'd have to run lsof through sudo.
If sudo is ...
- 4,637
3
votes
Accepted
Checking if a programm is running on linux
First of all, in order for your script to work as intended, change your "if statement" to:
if [ $? -eq 0 ]
In addition, it is possible that xinetd is managing your nrpe (it is common) and in that ...
- 10.5k
3
votes
Accepted
Security advantages: check_by_ssh versus check_nrpe
check_nrpe is not secure, unless you configure and use certificates, if not you are using "Anonymous Diffie-Hellman" see OpenSSL wiki for an explanation.
NRPE's security is based on IP whitelisting ...
- 790
3
votes
Accepted
Systemd PrivateTmp=true security implications
I can reproduce this behavior by providing the block device to check_disk instead of the mount point.
For example:
root@cosmic:~# grep check_root /etc/nagios/nrpe.cfg
command[check_root]=/usr/lib/...
- 240k
2
votes
NRPE unable to read output, but why?
This is a permission issue, just give the script execution right and it will be ok :
here an example :
Before / Remote host:
[root@puppet1 nrpe.d]# ls -l /usr/lib/nagios/plugins/check_mem.sh
-rwxr--...
2
votes
SELinux prevents Nagios plugins from running on RHEL6
I noticed that the AVC message contains path="/usr/bin/sudo". This means that NRPE is b0rking when trying to use sudo to invoke a plugin.
The first (but by NO means last!) thing you'll have to do to ...
- 1,172
2
votes
NRPE unable to read output, but why?
In case of custom NRPE plugins, make sure to print some output along with the exit value. If there is no output from the script NRPE will complain saying NRPE unable to read output. You can enable ...
- 114
2
votes
Nagios NRPE: Command “my_command” not defined
Follow these steps for adding a remote client disk check. These steps can be followed for the setup of mysql also.
Client
vi /etc/nagios/nrpe.cfg
allowed_hosts=127.0.0.1,nagios_server_ip_here
...
- 151
2
votes
Accepted
NRPE commands doesn't work when called from remote management host
Oh God, I feel so ashamed right now.
Everything is fine. You need to RESTART nagios-nrpe-server after changing sudoers, reload is not enough. Reload is fine if you only change nrpe.cfg or other config ...
- 121
2
votes
Accepted
check_mysql_slavestatus RPE: Unable to read output
It looks like you don't fully understand how NRPE works. You do not have the check_nrpe plugin installed on your Nagios server, or the path to it is wrong. It's difficult to say for sure, without ...
- 4,637
2
votes
Accepted
Nagios Basic Configuration (for quick addition of new machines)
Not so long ago I wrote a really nice NRPE auto installer script which I believe can assist you if you edit it to suit your needs.
The script includes many built-in checks which are being added to ...
- 10.5k
2
votes
Accepted
Icinga2 unidirectional remote clients
You can use passive checks. See: http://docs.icinga.org/latest/en/passivechecks.html
For example you can use NSCA-ng AddOn on the machine that needs to be monitored. NSCA-ng will send the status of ...
- 16.9k
2
votes
Accepted
NRPE check parameters getting lost
Don't bother separating all of the -a ARGs into separate ARGs in the Nagios conf. You'll drive yourself crazy with the quotes. For simplicity, make your command_line something like:
$PLUGINSDIR$/...
- 4,637
2
votes
Accepted
How does one add commands to nrpe.cfg for Percona MySQL plugins on NRPE client?
To configure percona-nrpe plugins for mysql you will have to do 3 things viz :
1. define commands
2. Define service
3. Add commands on client to nrpe.cfg
First 2 can be easily done for help refer ...
- 277
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
nrpe × 164nagios × 136
linux × 23
monitoring × 23
nsclient++ × 15
icinga × 9
centos × 8
ubuntu × 7
icinga2 × 6
powershell × 5
sudo × 5
ssl × 4
bash × 4
selinux × 4
windows × 3
redhat × 3
centos6 × 3
ubuntu-14.04 × 3
windows-server-2008 × 2
mysql × 2
ssh × 2
security × 2
kvm-virtualization × 2
puppet × 2
scripting × 2