On 05/31/2017 06:11 PM, Emmanuel DECAEN wrote: > Le 31/05/2017 à 17:04, Bas Couwenberg a écrit : >> On 2017-05-31 16:52, Jan Wagner wrote: >>> Am 31.05.17 um 12:06 schrieb Emmanuel DECAEN: >>>> In nrpe, system wide /var/tmp is no more reachable >>>> $ grep "/var/tmp" /proc/11489/mountinfo >>>> 115 113 254:2 / /var/tmp/mysql rw,noatime,nodiratime shared:65 >>>> master:32- xfs /dev/mapper/v1-tmp rw,attr2,inode64,noquota >>>> 121 113 8:5 >>>> /tmp/systemd-private-b35c254c031041979d3126e02a0c5c51-nagios-nrpe-server.service-7xjqpw/tmp >>>> >>>> /var/tmp rw,relatime shared:66 master:28 - ext4 /dev/sda5 >>>> rw,data=ordered >>> As you traced the problem yourself to nrpe, you might want to reassign >>> the bug to nagios-nrpe-plugin with appropriate version? >> >> If NRPE cannot execute the checkcommand that implies that the nagios >> user doesn't have the required permissions. > > Command run as nagios user: > nagios@server:~$ /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p > /var/tmp/mysql > DISK OK - free space: /var/tmp/mysql 10187 MB (99% inode=99%);| > /var/tmp/mysql=42MB;8184;9207;0;10230
This is what NRPE executes, so this is not a problem in NRPE. >> The given checkcommand is not part of the default configuration: >> >> /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /var/tmp/mysql >> >> Which suggests that this is a configuration issue to be resolved by >> the administrator of the system. (e.g use sudo to execute the plugin >> as a users with the required permissions). > > (It was working before upgrade) > > Using sudo : > $ sudo -u nagios /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p > /var/tmp/mysql > DISK OK - free space: /var/tmp/mysql 10187 MB (99% inode=99%);| > /var/tmp/mysql=42MB;8184;9207;0;10230 What is the output of the check_nrpe command when you execute it (as the nagios user) from the monitoring host? And what does nagios-nrpe-server log on the system where the check_disk command you claim fails? Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1