this command always returns critical and the free , used values are wrong also It seems it doesn't check a specific path(/var):
[root@nms ~]# /usr/local/nagios/libexec/check_nrpe -H 10.103.200.63 -t 120 -c check_disk -a 80% 90% /var
DISK CRITICAL - free space: / 109522 MB (90% inode=99%);| /=11891MB;24282;12141;0;121414
check_disk
Re: check_disk
Hanya,
My command looks like this and seems to work fine.
Grtz
Willem
My command looks like this and seems to work fine.
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_nrpe -H servername -t 120 -c check_disk -a '-w 15% -c 10% -p /'
OUTPUT: DISK OK - free space: / 35105 MB (80% inode=97%);| /=8492MB;39040;41337;0;45930Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
Re: check_disk
I change the command to:
/usr/local/nagios/libexec/check_nrpe -H 10.103.200.63 servername -t 120 -c check_disk -a '-w 15% -c 10% -p /'
DISK OK - free space: / 109522 MB (90% inode=99%); /etc/svc/volatile 14733 MB (99% inode=99%); /lib/libc.so.1 109522 MB (90% inode=99%); /tmp 14733 MB (99% inode=99%); /var/run 14733 MB (99% inode=99%); /export 109522 MB (99% inode=99%); /export/home 109522 MB (92% inode=99%); /rpool1 109522 MB (99% inode=99%);| /=11892MB;121414;121414;0;121414 /etc/svc/volatile=0MB;14734;14734;0;14734 /lib/libc.so.1=11892MB;121414;121414;0;121414 /tmp=19MB;14753;14753;0;14753 /var/run=0MB;14734;14734;0;14734 /export=0MB;109522;109522;0;109522 /export/home=9305MB;118827;118827;0;118827 /rpool1=0MB;109522;109522;0;109522
/usr/local/nagios/libexec/check_nrpe -H 10.103.200.63 servername -t 120 -c check_disk -a '-w 15% -c 10% -p /'
DISK OK - free space: / 109522 MB (90% inode=99%); /etc/svc/volatile 14733 MB (99% inode=99%); /lib/libc.so.1 109522 MB (90% inode=99%); /tmp 14733 MB (99% inode=99%); /var/run 14733 MB (99% inode=99%); /export 109522 MB (99% inode=99%); /export/home 109522 MB (92% inode=99%); /rpool1 109522 MB (99% inode=99%);| /=11892MB;121414;121414;0;121414 /etc/svc/volatile=0MB;14734;14734;0;14734 /lib/libc.so.1=11892MB;121414;121414;0;121414 /tmp=19MB;14753;14753;0;14753 /var/run=0MB;14734;14734;0;14734 /export=0MB;109522;109522;0;109522 /export/home=9305MB;118827;118827;0;118827 /rpool1=0MB;109522;109522;0;109522
Re: check_disk
Do those numbers look accurate? If so I'd like to close up this thread.
Former Nagios employee
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
Re: check_disk
all of things are Ok, please close it