check_nrpe question

Werner Flamme werner.flamme at ufz.de
Thu Jan 7 17:18:36 CET 2016


Hi everyone,

I have a problem with the execution of one certain command via nrpe. Other nrpe checks from the same monitoring host to this database host work fine.

The nrpe service is provided via xinetd and runs as user nagios, group nagios.

When I am logged in as user nagios and execute the command given in nrpe.cfg manually, everything works.

When I look at the nrpe debug output, I only see:

---snip---
Handling the connection...
Host is asking for command 'check_asm_usedspace' to be run...
Running command: HOME=~nagios /usr/bin/sudo -u oracle /usr/local/nagios/libexec/check_oracle_asm --asm_home=/u01/app/12.1.0.2/grid --action=usedspace --threshold DATA=85:99 --threshold REDO=85:99
Command completed with return code 1 and output:
Return Code: 1, Output: NRPE: Unable to read output
---pins---

Run interactively, I get:

[nagios at oradevelop ~]$ HOME=~nagios /usr/bin/sudo -u oracle /usr/local/nagios/libexec/check_oracle_asm --asm_home=/u01/app/12.1.0.2/grid --action=usedspace --threshold DATA=85:99 --threshold REDO=85:99
[OK] Diskgroup used space: (RECO: 13.22%: OK) (REDO: 17.88%: OK) (DATA: 32.54%: OK)

Why is the output coming interactively, but is unreadable for nrpe?

I found by searching the web that there might be an environment setting COLUMN or COLUMNS, but this is not set as far as I can see. On another database host with the same operating system (Oracle Linux 6) this very check runs without any problems. The complete directory /usr/local/nagios has been copied over from that host to the host that has the problems.

The used check script has been downloaded from <https://exchange.nagios.org/directory/Plugins/Databases/Oracle/check_asm/details>.

Can I get some usable debug info from nrpe? If so, how?

Regards,
Werner

-- 
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5511 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20160107/65d18625/attachment.bin>


More information about the Help mailing list