Monitor disk space on Sun Solaris

Edwin Zoeller Edwin.Zoeller at ama-assn.org
Thu Apr 5 17:03:12 CEST 2012


I use the command check disk command this way. I check against the filesystem and not the mount point. The way it will show me the percent free also, I have listed this blelow.

Ed


/apps/nrpe/2.0/libexec/check_disk -w 8% -c 5% -p /dev/vx/dsk/t31-ess/apps



DISK OK [6257755 kB (23%) free on /dev/vx/dsk/t31-ess/apps]



tsts31 @ /apps/nrpe/2.0/libexec > df -k /apps

Filesystem            kbytes    used   avail capacity  Mounted on

/dev/vx/dsk/t31-ess/apps

                     27238400 20709575 6257755    77%    /apps


From: James Pratt [mailto:jpratt at norwich.edu]
Sent: Wednesday, April 04, 2012 7:28 PM
To: Nagios Users List
Subject: Re: [Nagios-users] MOnitor disk space on Sun Solaris

There is always this too - I use these plugins extensively (alas, I'm out of solaris boxes for a few years now sorry)!, as snmp checks need minimal client setup compared to nrpe etc etc

http://nagios.manubulon.com/snmp_storage.html

From: Theo Bogatsu [mailto:theo.bogatsu at mascom.bw]
Sent: Wednesday, April 04, 2012 5:46 AM
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] MOnitor disk space on Sun Solaris

Hi I'm trying to monitor disk space on my Sun solaris server, I want it to give me a warning when it reaches 80% usage and critical when over 90%. I have used the below plugin:
check_disk
with these arguments:
--w 20% -c 10% -p /opt/

But on the status information I get a:
DISK OK - free space: / 128187 MB (93% inode=98%)

I'm expecting to see output similar to the output of df -kh (when run on the server) which currently is:
Filesystem                      size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s5       19G   6.8G    12G    36%    /opt

So in essence I think there should be like 64% free disk space?? Please HELP.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120405/f2d9c19b/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list