nrpe | installation instructions and information on the design | Continuous Deployment library
kandi X-RAY | nrpe Summary
kandi X-RAY | nrpe Summary
For installation instructions and information on the design overview of the NRPE addon, please read the PDF documentation that is found in this directory: docs/NRPE.pdf. If you are upgrading from a previous version, you’ll want to check the [Changelog] CHANGELOG.md) and then run ./update-cfg.pl to add the new SSL parameters to your config file. TL;DR: You can jump straight to [Compiling] #compiling) and [Installing] #installing). You’ll want to read up on the [Security] SECURITY.md) document regarding NRPE, no doubt. And make sure to check out the [SSL Readme] README.SSL.md) as well, if you plan on using encryption methods to transmit nrpe data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nrpe
nrpe Key Features
nrpe Examples and Code Snippets
Community Discussions
Trending Discussions on nrpe
QUESTION
I wrote a plugin that would check to see if two hosts are online at the same time and if so, return a critical. When I run this command locally at the command line the logic works correctly and the echo statements all match up depending on the state of the hosts checked (e.g. "CRITICAL - Both testbed controllers online" or "OK - $VM1 is the only testbed controller online." etc). The problem is that when I run these commands via ./check_nrpe -H -c "controller_check"
(the same values also show up on the Nagios webpage) It always returns the same value no matter what the status of the hosts: "CRITICAL - Both testbed controllers currently offline" echoing the actual values of $VM1 and $VM2 shows that the initial if check is always being set to 0.
The script works by creating binary values from a ping -c 1 -W 1 $HOSTNAME
if check first and then using those values to create the actual alert/exit value. Here's the if statements creating binary values for host online states:
ANSWER
Answered 2020-Jun-16 at 16:57Turns out SELinux was preventing /usr/bin/ping from being executed by the NRPE daemon. Rather than attempt to write an SELinux policy to allow this I used the Nagios plugin check_ping and piped output to /dev/null. Final logic of the NRPE plugin looks like this:
QUESTION
I have been tasked with making a custom python script (since i'm bad with Bash) to run on a remote NRPE client which recursively counts the number of files in the /tmp directory. This is my script:
...ANSWER
Answered 2018-Aug-22 at 15:18systemd service file, maybe this var is set to true :)
PrivateTmp=
Takes a boolean argument. If true, sets up a new file system namespace for the executed processes and mounts private /tmp
and /var/tmp
directories inside it that is not shared by processes outside of the namespace.
This is useful to secure access to temporary files of the process, but makes sharing between processes via /tmp
or /var/tmp
impossible. If this is enabled, all temporary files created by a service in these directories will be removed after the service is stopped. Defaults to false. It is possible to run two or more units within the same private /tmp
and /var/tmp
namespace by using the JoinsNamespaceOf= directive, see systemd.unit(5) for details.
This setting is implied if DynamicUser=
is set. For this setting the same restrictions regarding mount propagation and privileges apply as for ReadOnlyPaths=
and related calls, see above. Enabling this setting has the side effect of adding Requires= and After= dependencies on all mount units necessary to access /tmp
and /var/tmp
.
Moreover an implicitly After= ordering on systemd-tmpfiles-setup.service(8) is added. Note that the implementation of this setting might be impossible (for example if mount namespaces are not available), and the unit should be written in a way that does not solely rely on this setting for security.
QUESTION
I make custom bash script to monitor ssh failed logins - which locally runs ok - on nagios server and remote hosts.
...ANSWER
Answered 2020-May-19 at 06:27You have an error in your definition.
Replace check_bruteforce_attack
in nrpe.cfg
with check_bruteforce_ssh
and it will work ;-)
QUESTION
I have a problem with an NRPE check that I wrote.
It's a simple shell script that run "systemctl is-active [service_name]" and return the value to our Thruk.
When I run the script directly with the user nrpe, it works :
...ANSWER
Answered 2020-Apr-23 at 07:17Okay, similar to cron
jobs, it may be that NRPE (the server) runs with a different environment to your shell, and that distinct environment is somehow not running systemctl
properly.
An easy way to see this is to modify the:
QUESTION
I've gotten this error before where the cause was obvious, but I'm having trouble with this snippet below.
...ANSWER
Answered 2020-Jan-09 at 13:15Maybe you should:
QUESTION
For supervision system, I need to return 2 values about latency to my supervisor server thru nrpe.
Here the values that I'm working on (I put this in a file : test.txt) :
...ANSWER
Answered 2019-Dec-10 at 10:14Use jq for parsing JSON, for example:
QUESTION
On a linux server I am running following command with any error and getting the result.
...ANSWER
Answered 2019-Nov-27 at 12:40You can do that putting that on an inline-script ("Script" step) or call an external script with the command content ("Script file or URL" step).
Another way is to use cat tool to print the file and capture the output using log filter (Click on the tiny Gear icon at the left of the step > Click on "Add Log Filter" > Select "Key/value data" and in pattern use with this regex: .*(-w .*%).*
, put a name of the data - eg: diskdata
- and click on "Log data" checkbox) and you get the output that you want, you can print that value using echo ${data.diskdata}
in next step. Check.
QUESTION
I am facing on connection problem when I run NRPE checks from Nagios Server.. "Connection refused".
Environment : - Nagios Server - Linux Centos 7 Client
From Client side, seems working :
...ANSWER
Answered 2019-Oct-13 at 18:24The log shows the following:
Oct 13 14:06:55 client nrpe[4027]: Server listening on 127.0.0.1 port 5666.
If the server is listening on the localhost IP address (127.0.0.1), it will only be able to accept connections on port 5666 which originate on the same server. If you try to connect from a different server, the connection will fail.
QUESTION
I'm new to Chef world, currently trying to write a cookbook with a single recipe to install a Nagios NRPE on windows server. where I included a bash script in the recipe to execute a set of commands.
However when I run kitchen converge, I constantly receive the below error. I tried lot of variations in "recipie", going through stack-overflow and other online forums which didn't work
please help.
Please let me know if any additional details required
Recipe
...ANSWER
Answered 2019-Oct-14 at 17:25make sure that you state your cookbook dependencies within your cookbook metadata.rb
, such as
QUESTION
Out of curiosity I'll run nmap localhost
periodically to see which ports are open on my host. A moment ago I ran this command and got the following output:
ANSWER
Answered 2019-Oct-09 at 21:18These are not open ports. The STATE
column shows filtered
, which means "prevented from communicating." This state often means a firewall is blocking traffic using those port numbers, but it can also mean that a probe or response was dropped and no response was received at all. This is most likely the case for you: the Nmap scan was too fast for your system at the moment you ran it and a probe was dropped. Since localhost scans are usually very reliable and fast, Nmap gets very aggressive in terms of short timeouts and few to no reattempts to determine a port's status.
Nmap is a great tool, but for checking listening ports on your local system it is usually better to use netstat
(or ss
on modern Linux systems). This queries the kernel directly to determine what processes are registered to receive traffic on each port, so unless you have been thoroughly hacked (rootkitted), it will always be more accurate than Nmap for local results. If you are going to use Nmap as a 2nd opinion, be sure to use the -p -
option to check all 65535 ports, not only the 1000 most-frequently-used ones that it scans by default.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nrpe
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page