nrpe check_disk
Posted: Tue Aug 13, 2019 4:38 am
Hello.
I have a ubuntu-server that I want to use as a monitoring server.
I installed nagios and nrpe on it.
I need to check the remaining disk space on remote PCs.
Locally, the command looks something like this:
However, on the remote host (with nagios + nrpe installed):
Wherein:
That is, nrpe on the remote pc responds on server's requests.
I think that the matter is in the disk check command. How exactly does the check_disk call happen? Do I need an alias for this? Or what?
Thank you in advance.
I have a ubuntu-server that I want to use as a monitoring server.
I installed nagios and nrpe on it.
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.15
Locally, the command looks something like this:
Code: Select all
# /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
DISK OK - free space: / 14223 MB (72.35% inode=94%);| /=5433MB;15738;17705;0;19673
Code: Select all
# ./check_nrpe -H remotehost -t 30 -c check_disk -a '30 10 /'
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H remotehost
NRPE v2.15
I think that the matter is in the disk check command. How exactly does the check_disk call happen? Do I need an alias for this? Or what?
Thank you in advance.