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
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.
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
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
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=(
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,