How can this be set
Posted: Fri Jan 24, 2020 5:56 am
On one of the client machines following is the disk command defined in nrpe.cfg file
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -e -l -x /dev/shm
I tried the following at command prompt on client machine and following is the output.
Where can we define the file systems and where can we set the threshold values.
[root@host1 ]# /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -e -l -x /dev/shm
DISK CRITICAL - free space: /u01/app/nebdev6/datafile 108370 MB (15.57% inode=100%); /u01/app/nebdev 70099 MB (10.15% inode=96%); /u01/app/nebdev8/datafile 43650 MB (5.66% inode=100%); /u01/app/nebdev5/datafile 98700 MB (14.38% inode=100%); /u01/app/nebdev2/datafile 108370 MB (15.57% inode=100%); /u01/app/nebdev9/datafile 98802 MB (14.39% inode=100%); /u01/app/nebdev7/datafile 89133 MB (13.17% inode=100%); /u01/app/nebdev10/datafile 98802 MB (14.39% inode=100%); /u01/app/nebdev3/datafile 33878 MB (4.45% inode=100%); /u01/app/nebdev11/datafile 98802 MB (14.39% inode=100%); /u01/app/nebdev4/datafile 108370 MB (15.57% inode=100%);| /=13835MB;24175;27197;0;30219 /boot=161MB;396;446;0;496 /u01/app/nebdev6/temp=8836MB;16024;18027;0;20030 /u01/app/nebdev3/temp=67MB;24087;27098;0;30109 /u01/app/nebdev10/temp=2133MB;16024;18027;0;20030 /u01/app/nebdev6/datafile=587376MB;580464;653022;0;725580 /u01/app/nebdev7/temp=1212MB;16024;18027;0;20030 /u01/app/nebdev=620094MB;576432;648486;0;720540 /u01/app/nebdev8/datafile=726655MB;642552;722871;0;803191 /u01/app/nebdev11/temp=891MB;16024;18027;0;20030 /u01/app/nebdev5/datafile=587376MB;572400;643950;0;715501 /u01/app/nebdev2/datafile=587376MB;580464;653022;0;725580 /u01/app/nebdev9/datafile=587376MB;572400;643950;0;715501 /u02/oradata/nebdev13=576348MB;644971;725592;0;806214 /u02/oradata/nebdev12=588368MB;644971;725592;0;806214 /u01/app/nebdev1/temp=1308MB;16024;18027;0;20030 /u01/app/nebdev7/datafile=587376MB;564336;634878;0;705421 /u01/app/nebdev5/temp=1744MB;24087;27098;0;30109 /u01/app/nebdev10/datafile=587376MB;572400;643950;0;715501 /u01/app/nebdev3/datafile=726655MB;634488;713799;0;793111 /u01/app/nebdev11/datafile=587376MB;572400;643950;0;715501 /u01/nebdev/archives=347103MB;564336;634878;0;705421 /u01/app/nebdev8/temp=67MB;16024;18027;0;20030 /u03/oradata/nebdev12=28910MB;241800;272025;0;302250 /u01/app/nebdev4/datafile=587376MB;580464;653022;0;725580 /u01/app/nebdev4/temp=1499MB;24087;27098;0;30109 /u02/app/oracle=1991MB;7960;8955;0;9951 /u01/app/nebdev2/temp=1074MB;24087;27098;0;30109 /u01/app/nebdev9/temp=891MB;16024;18027;0;20030 /u03/oradata/nebdev13=50860MB;241800;272025;0;302250 /mnt/resource=41020MB;206320;232110;0;257901
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -e -l -x /dev/shm
I tried the following at command prompt on client machine and following is the output.
Where can we define the file systems and where can we set the threshold values.
[root@host1 ]# /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -e -l -x /dev/shm
DISK CRITICAL - free space: /u01/app/nebdev6/datafile 108370 MB (15.57% inode=100%); /u01/app/nebdev 70099 MB (10.15% inode=96%); /u01/app/nebdev8/datafile 43650 MB (5.66% inode=100%); /u01/app/nebdev5/datafile 98700 MB (14.38% inode=100%); /u01/app/nebdev2/datafile 108370 MB (15.57% inode=100%); /u01/app/nebdev9/datafile 98802 MB (14.39% inode=100%); /u01/app/nebdev7/datafile 89133 MB (13.17% inode=100%); /u01/app/nebdev10/datafile 98802 MB (14.39% inode=100%); /u01/app/nebdev3/datafile 33878 MB (4.45% inode=100%); /u01/app/nebdev11/datafile 98802 MB (14.39% inode=100%); /u01/app/nebdev4/datafile 108370 MB (15.57% inode=100%);| /=13835MB;24175;27197;0;30219 /boot=161MB;396;446;0;496 /u01/app/nebdev6/temp=8836MB;16024;18027;0;20030 /u01/app/nebdev3/temp=67MB;24087;27098;0;30109 /u01/app/nebdev10/temp=2133MB;16024;18027;0;20030 /u01/app/nebdev6/datafile=587376MB;580464;653022;0;725580 /u01/app/nebdev7/temp=1212MB;16024;18027;0;20030 /u01/app/nebdev=620094MB;576432;648486;0;720540 /u01/app/nebdev8/datafile=726655MB;642552;722871;0;803191 /u01/app/nebdev11/temp=891MB;16024;18027;0;20030 /u01/app/nebdev5/datafile=587376MB;572400;643950;0;715501 /u01/app/nebdev2/datafile=587376MB;580464;653022;0;725580 /u01/app/nebdev9/datafile=587376MB;572400;643950;0;715501 /u02/oradata/nebdev13=576348MB;644971;725592;0;806214 /u02/oradata/nebdev12=588368MB;644971;725592;0;806214 /u01/app/nebdev1/temp=1308MB;16024;18027;0;20030 /u01/app/nebdev7/datafile=587376MB;564336;634878;0;705421 /u01/app/nebdev5/temp=1744MB;24087;27098;0;30109 /u01/app/nebdev10/datafile=587376MB;572400;643950;0;715501 /u01/app/nebdev3/datafile=726655MB;634488;713799;0;793111 /u01/app/nebdev11/datafile=587376MB;572400;643950;0;715501 /u01/nebdev/archives=347103MB;564336;634878;0;705421 /u01/app/nebdev8/temp=67MB;16024;18027;0;20030 /u03/oradata/nebdev12=28910MB;241800;272025;0;302250 /u01/app/nebdev4/datafile=587376MB;580464;653022;0;725580 /u01/app/nebdev4/temp=1499MB;24087;27098;0;30109 /u02/app/oracle=1991MB;7960;8955;0;9951 /u01/app/nebdev2/temp=1074MB;24087;27098;0;30109 /u01/app/nebdev9/temp=891MB;16024;18027;0;20030 /u03/oradata/nebdev13=50860MB;241800;272025;0;302250 /mnt/resource=41020MB;206320;232110;0;257901