Re: [Nagios-users] monitoring for IO in Nagios

2006-10-18 Thread Alexander Harvey
Ok well in case anyone else is wondering, here's the solution I came up with:# cat /usr/local/nagios/libexec/check_io.pl #!/usr/bin/perl# author: alex harvey # email: [EMAIL PROTECTED] # definitionsuse constant OK => 0; use constant WARNING => 1;use constant CRITICAL => 2; # read in config file req

Re: [Nagios-users] monitoring for IO in Nagios

2006-10-17 Thread Andreas Ericsson
Alexander Harvey wrote: > That doesn't look like a Solaris script to me but as far as your coding is > concerned, my thoughts are > [ excellent and non-disputed points removed ] > (iv) for security you ought to use full paths to all of your binaries: > i.e. > /usr/bin/echo > instead of > echo >

Re: [Nagios-users] monitoring for IO in Nagios

2006-10-16 Thread August Simonelli
Alex,Thanks for the info ... sorry I wasn't any help to you but I came out learning a lot! :-)AugustOn 10/16/06, Alexander Harvey < [EMAIL PROTECTED]> wrote:That doesn't look like a Solaris script to me but as far as your coding is concerned, my thoughts are (i) get yourself a book on the k-shell '

Re: [Nagios-users] monitoring for IO in Nagios

2006-10-16 Thread Alexander Harvey
That doesn't look like a Solaris script to me but as far as your coding is concerned, my thoughts are(i) get yourself a book on the k-shell 'cause it's a lot more powerful that the bourne (/bin/sh) shell.(ii) you can say vmstat -dp | awk '/sda/ {print $2}' instead ofvmstat -dp | grep sda | awk '{pr

Re: [Nagios-users] monitoring for IO in Nagios

2006-10-15 Thread August Simonelli
Hi Alexander and list folks,I set up two little shell scripts for disk i/o calculations for mrtg which i hope to use for nagios down the track. I'm still learning shell scripting /nagios / etc so i welcome corrections to my logic, coding, anything! :-) It's not really fancy, just uses vmstat to get

[Nagios-users] monitoring for IO in Nagios

2006-10-15 Thread Alexander Harvey
Hi All,I wonder if anyone out there is using Nagios to monitor disk I/O on UNIX servers and if so I'm curious as to how they're doing it, what plugins they're using, are they calling iostat from a shell script? What options of iostat are they calling etc? Many thanks in advance,Alex HarveyUNIX Admi