nrpe

Why does ps only return one line of output in my Perl script when I call it with Nagios?

I have this running: if (open(PS_ELF, "/bin/ps -eLf|")) { while (<PS_ELF>) { if ($_ =~ m/some regex/) { # do some stuff } } } If called locally, the loop runs just fine, once for every output line of ps -eLf Now if the same script is called from Nagios via NRPE, PS_ELF does only contain one line (the first line outp...

Error: The requested service provider could not be loaded or initialized. - socket(2)

I am running a ruby script that uses Ruby/MySQL and net/ftp. The script is running on a Windows Vista box and is trying to create a database and ftp connection to the same remote Solaris server. Here is the gist of the code: require 'mysql' require 'net/ftp' dbh = Mysql.real_connect(db["host"], db["user"], db["pass"], db["name"]) ftp ...

Problem connecting NRPE monitoring server to monitored server via a BSD gateway

As part of my job I need to be kept aware of the availability of a server within my client's corporate network. Just to make my life hard, their entire network is hidden behind a pair of gateway machines (for this, we can just pretend there is only one machine) running FreeBSD 7.1-PRERELEASE (no, I have no idea why they are running an o...

Nagios/NRPE giving a "No output returned from plugin" error

Hi, Getting a "No output returned from plugin" error message from a Nagios/NRPE script 1) Running Nagios v3.2.3 and NRPE v2.12 2) The script: OK_STATE=0 UNAME=/bin/uname -r echo "OK: Kernel Version=$UNAME" exit $OK_STATE 2) Command line results on the Nagios Server using NRPE Same OK results for both the root and nagios user...