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: Custom script returns unable to read input, but the script works correctly, what could it be?

I wrote a Nagios check script which receives a path as argument and checks: if the path is mounted if it is accessible by touching a file in the path. If the mount point directory is empty [root@hadoop-nn1 mass1]# su - nagios [nagios@hadoop-nn1…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
2
votes
1 answer

"CHECK_NRPE: Socket timeout after 10 seconds" HTTPS / SSL

I have configured NAGIOS server on IP address AA.BB.CC.DD (Linux Fedora 20), and Monitoring the host with IP address LL.MM.NN.OO (Linux Fedora 20). I have configured NRPE to run on port # 15666 on both the machines, and configured iptables. I…
user226638
  • 33
  • 1
  • 1
  • 5
2
votes
1 answer

Why isn't nrpe 'check_procs' finding my Passenger process?

I'm trying to use check_procs from NRPE to find out whether Passenger is running on my server. It loads from httpd but appears separately. 32135 ? Sl 0:09 Passenger RackApp: /usr/share/puppet/rack/puppetmasterd 32589 ? Sl …
ethrbunny
  • 2,369
  • 4
  • 41
  • 75
2
votes
1 answer

Nagios check_procs returns wrong value when called from NRPE

I have added the following line in nrpe.conf of a monitored server say named myserver: command[check_mysrv_process]=/usr/lib/nagios/plugins/check_procs -c 1: -C java -a mysrv which works locally as expected: myserver>…
trikelef
  • 518
  • 1
  • 7
  • 26
2
votes
1 answer

Passing arguments to a Powershell Script using Nagios NRPE

Short powershell script for testing: $test = $args[0] echo "this works" echo "I transferred $test" exit 0 nsclient.ini settings: # If you want to fill this file with all avalible options run the following command: # nscp settings --generate…
JustAGuy
  • 639
  • 3
  • 23
  • 38
2
votes
1 answer

NSClient++: external script with optional arguments

I am trying to define an external script which would take optional arguments in NSClient++ 0.4.1 on Windows. Following the nsclient-full.ini example code I have defined mycheck=cmd /C echo C:\mydir\myscript.ps1 %ARGS% | powershell.exe -command…
the-wabbit
  • 40,737
  • 13
  • 111
  • 174
2
votes
3 answers

Is there a way to install just a subset of NRPE checks?

I want to be able to check just a few things on a remote host from within nagios - cpu, memory etc, so, I am looking to install NRPE on the machine. NRPE wants to install Samba along with many other services, which I completely understand. Is there…
wil
  • 195
  • 5
2
votes
1 answer

NRPE: Unable to read output with check_connections plugin

I'm using plugin which gives me warning or crtis with established connections. If I run it on local machine it gives: *root@graber:/usr/lib/nagios/plugins# ./check_connections -w 1 -c 5 -C sshd CRITICAL Established connections: 6* I know, I run…
2
votes
1 answer

sudo nrpe sorry you must have a tty to run sudo

After reading this [root@wcmisdlin02 alexus]# tail -2 /etc/sudoers ## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment) #includedir /etc/sudoers.d [root@wcmisdlin02 alexus]# I now have following: [root@wcmisdlin02 ~]# cat…
alexus
  • 13,112
  • 32
  • 117
  • 174
2
votes
2 answers

Powershell default console size

I'm using NSCLient to run some NRPE checks on Windows Server boxes. The checks run Powershell scripts but the problem I'm having is NSClient is adding random line breaks after 79 characters. I'm guessing this is because the default Powershell/CMD…
user80776
2
votes
0 answers

check_nrpe and non-fixed counter names

For some counters I have noticed Windows convently does provide a stable name for them, for example: \.NET Data Provider for SqlServer(_lm_w3svc_3_root-1-123412341234[6789]\Number of Free Conections Where god knows what 1234 is and 6789 is the PID.…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
2
votes
3 answers

NRPE-like checks from windows-based machines

I am sorry for not being able to come up with a more descriptive question title. For getting remote metrics I use nrpe on linux-based machines and nsclient++ on windows-based machines. If I need to check, for example, if a certain server is…
shylent
  • 812
  • 11
  • 22
1
vote
2 answers

Nagios NRPE won't allow arguments

I am trying to use a Nagios NRPE plugin to communicate with my servers. I have a command definition in /etc/nagios/nrpe_local.cfg to use it: command[check_service]=/usr/lib/nagios/plugins/check_service -s $ARG1$ When I manually run the command in…
Canadian Luke
  • 885
  • 15
  • 44
1
vote
1 answer

Talking to NRPE2 clients from an NRPE3 server

I'm standing up a new Nagios server, and I have run into a bit of a snag. Our existing server is running FreeBSD 11 w/ Nagios 4.3.4 and nrpe2. It can communicate w/ the nrpe2 daemons on our various servers (Ubuntu Xenial boxes, for the most part) as…
Hank Gay
  • 375
  • 3
  • 11
1
vote
0 answers

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 returns: Warning threshold must be float or float…
John
  • 39
  • 4