Re: [Nagios-users] Monitoring unmounted partition

2011-03-03 Thread Clyde Jones
Javier Rivera mailto:jriv...@skisa.com wrote: Good Morning, Im having a problem with check_nrpe. Im monitoring a partition /mnt/2 f.e. If i dont have this partition mounted, it just returns the value of / witout sending any error. How can i get an alert when the partition isn`t

[Nagios-users] Monitoring unmounted partition

2011-02-08 Thread Javier Rivera
Good Morning, Im having a problem with check_nrpe. Im monitoring a partition /mnt/2 f.e. If i dont have this partition mounted, it just returns the value of "/" witout sending any error. How can i get an alert when the partition isn`t mounted.

Re: [Nagios-users] Monitoring unmounted partition

2011-02-08 Thread dave stern - e-mail.pluribus.unum
Write a plugin. It could search the output of the command, mount On Tue, Feb 8, 2011 at 6:49 AM, Javier Rivera jriv...@skisa.com wrote: Good Morning, Im having a problem with check_nrpe. Im monitoring a partition /mnt/2 f.e. If i dont have this partition mounted, it just returns the

Re: [Nagios-users] Monitoring unmounted partition

2011-02-08 Thread C. Bensend
Im having a problem with check_nrpe. Im monitoring a partition /mnt/2 f.e. If i dont have this partition mounted, it just returns the value of / witout sending any error. br br How can i get an alert when the partition isn`t mounted.br Oooof, plain text, please. I

Re: [Nagios-users] Monitoring unmounted partition

2011-02-08 Thread Tntteam
Here is my script that you can rewrite to fit ur needs #!/bin/bash disk=/dev/sdb STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATETEXT=( OK WARNING CRITICAL UNKNOWN ) seuil_warn=$1 seuil_crit=$2 STATE=$STATE_UNKNOWN RETURN=UKNOWN STATE declare -a result IFS=$'\n' result=(

Re: [Nagios-users] Monitoring unmounted partition

2011-02-08 Thread Jeffrey Watts
IMHO /proc/mounts is a much better place to look, as NFS problems and so forth can cause 'mount' to hang and hit the NRPE timeout. Jeffrey. On Tue, Feb 8, 2011 at 6:24 AM, dave stern - e-mail.pluribus.unum dit.d...@gmail.com wrote: Write a plugin. It could search the output of the command,