AW: AW: AW: check_disk for paths which are no moun tpoi nts

Andreas Koch a.koch at eurodata.de
Wed Apr 14 07:52:44 CEST 2004


Hello Group,

check_disk in the Plugin-Version 1.4.0alpha1 can't check /var, when /var
is not a mountpoint and is in the / Partition.

Example:

mount

/dev/hda1 on / type ext3

./check_disk -w 10% -c 5% --path=/var
DISK CRITICAL - free space:| [/var not found]

In the new Version check-disk look in the /etc/mtab and search the
tested Partition. When the Partition is not in the /etc/mtab check-disk
end with error.

Andreas

Am Di, den 13.04.2004 schrieb Schaffranneck, Sven (K-DOI-5/4) um 14:51:
> Hallo Andreas,
> 
> welche Version von dem Plugin setzt du ein? Mit der Version
> -- check_disk (nagios-plugins 1.3.0) 1.7
> klappts einwandfrei.
> Dahingegen 
> -- check_disk (nagios-plugins 1.4.0alpha1) 1.38
> und neuer macht diesen Ärger.
> 
> Mit freundlichen Grüssen,
> Sven Schaffranneck
> K-DOI-5/4
> 
> Volkswagen AG
> Brieffach 1883
> 38436 Wolfsburg
> 
> Telefon: +49 (5361) 9-3 88 58
> http://www.volkswagen.de
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Andreas Koch [mailto:a.koch at eurodata.de]
> > Gesendet: Dienstag, 13. April 2004 14:41
> > An: Schaffranneck, Sven (K-DOI-5/4)
> > Betreff: Re: AW: AW: [Nagios-users] check_disk for paths which are no
> > mountpoi nts
> > 
> > 
> > Hallo Sven,
> > 
> > bitte rufe follgendes auf:
> > 
> > debian:/tmp# strace ./check_disk -w 10% -c 5% --path=/var >>
> > /tmp/var.log 2>&1
> > 
> > Dann schicke mir bitte die Datei var.log zu.
> > 
> > Ich schaue mal nach, wo er hängen bleibt.
> > 
> > Bei mir funktioniert es nämlich ohne Probleme.
> > 
> > Grüße, Andreas
> > 
> > Am Di, den 13.04.2004 schrieb Schaffranneck, Sven (K-DOI-5/4) 
> > um 11:15:
> > > Hallo Andreas,
> > > 
> > > habs nur auf der einen Debian-Kiste und einer Solaris 
> > getestet, bei beiden
> > > tritt das Problem auf. Habs eben auch nochmal mit der 
> > neusten CVS-Version
> > > getestet, leider der gleiche Ärger.
> > > 
> > > Ein Beispielaufruf:
> > > debian:/tmp# ./check_disk -w 10% -c 5% --path=/var
> > > DISK CRITICAL - free space:| [/var not found]
> > > 
> > > oder auch:
> > > debian:/tmp# ./check_disk -w 10% -c 5% -p /usr
> > > DISK CRITICAL - free space:| [/usr not found]
> > > 
> > > aber wenn der Pfad ein Mountpoint is, gehts:
> > > debian:/tmp# ./check_disk -w 10% -c 5% -p /
> > > DISK OK - free space: / 1325 MB (47%);| /=1324MB;2534;2675;0;2816
> > > 
> > > 
> > > Mit freundlichen Grüssen,
> > > Sven Schaffranneck
> > > K-DOI-5/4
> > > 
> > > Volkswagen AG
> > > Brieffach 1883
> > > 38436 Wolfsburg
> > > 
> > > Telefon: +49 (5361) 9-3 88 58
> > > http://www.volkswagen.de
> > > 
> > > 
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Andreas Koch [mailto:a.koch at eurodata.de]
> > > > Gesendet: Dienstag, 13. April 2004 11:11
> > > > An: Schaffranneck, Sven (K-DOI-5/4)
> > > > Betreff: Re: AW: [Nagios-users] check_disk for paths which are no
> > > > mountpoints
> > > > 
> > > > 
> > > > Hallo Sven,
> > > > 
> > > > hast du auf allen Systemen das Problem, oder funktioniert es auf
> > > > anderen.
> > > > 
> > > > Wie ist denn dein Aufruf des check_disk command?
> > > > 
> > > > Grüße, Andreas
> > > > 
> > > > Am Di, den 13.04.2004 schrieb Schaffranneck, Sven (K-DOI-5/4) 
> > > > um 11:02:
> > > > > Hello Andreas,
> > > > > 
> > > > > here it comes:
> > > > > Linux debian 2.4.24-1-686 #1 Wed Feb 18 21:59:13 EST 2004 
> > > > i686 GNU/Linux
> > > > > check_disk (nagios-plugins 1.4.0alpha1) 1.38
> > > > > 
> > > > > The same problem under Solaris:
> > > > > SunOS xxx-20 5.8 Generic_108528-27 sun4u sparc 
> > SUNW,Sun-Blade-1000
> > > > > check_disk (nagios-plugins 1.4.0alpha1) 1.38
> > > > > 
> > > > > Greets,
> > > > > Sven Schaffranneck
> > > > > 
> > > > > > Hwhat System do you have? Linux - Redhat, Suse, 
> > > > Debian...? And what is
> > > > > > your Versions Number and kernel Version on the System who 
> > > > the check
> > > > > > don't work?
> > > > > > 
> > > > > > Am Di, den 13.04.2004 schrieb Schaffranneck, Sven (K-DOI-5/4) 
> > > > > > um 08:49:
> > > > > > > Hello,
> > > > > > > 
> > > > > > > i would like to monitor much hosts and their filesystems. 
> > > > > > > 
> > > > > > > /home
> > > > > > > /usr
> > > > > > > /var
> > > > > > > 
> > > > > > > On some hosts these are mountpoints, on some these 
> > > > directorys are no
> > > > > > > mountpoints. If i use check_disk (over ssh), there is only 
> > > > > > an error because
> > > > > > > it doesn't find "/usr" for example. 
> > > > > > > 
> > > > > > > i don't want to define each check for each hosts. how can i 
> > > > > > check a path,
> > > > > > > even if it is no mountpoint?
> > > > > > > 
> > > > > > > Greets,
> > > > > > > Sven Schaffranneck
> > > > > > > K-DOI-5/4
> > > > > > > 
> > > > > > > Volkswagen AG
> > > > > > > Brieffach 1883
> > > > > > > 38436 Wolfsburg
> > > > > > > 
> > > > > > > Telefon: +49 (5361) 9-3 88 58
> > > > > > > http://www.volkswagen.de
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > -------------------------------------------------------
> > > > > > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > > > > > Free Linux tutorial presented by Daniel Robbins, President 
> > > > > > and CEO of
> > > > > > > GenToo technologies. Learn everything from fundamentals 
> > > > to system
> > > > > > > 
> > > > > > 
> > > > 
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > > > > > _______________________________________________
> > > > > > > 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
> > > > > > -- 
> > > > > > 
> > > > -- 
> > > > 
> > -- 
> > 
-- 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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