WG: check_disk for paths which are no mountpoints

Schaffranneck, Sven (K-DOI-5/4) sven.schaffranneck at volkswagen.de
Tue Apr 13 11:16:28 CEST 2004



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: Schaffranneck, Sven (K-DOI-5/4) 
Gesendet: Dienstag, 13. April 2004 10:10
An: 'Urrutia Rafael'
Betreff: AW: [Nagios-users] check_disk for paths which are no
mountpoints


Hi,

as long as <path> is no mountpoint, i get "not found"

-----------
debian:/usr/local/nagios/libexec# ./check_disk -w 20% -c 10% -p /var -m
DISK CRITICAL - free space:| [/var not found]
-------------
debian:/usr/local/nagios/libexec# ./check_disk -w 20% -c 10% -p / -m
DISK OK - free space: / 1326 kB (47%);| /=1326kB;2252;2534;0;2816
-------------
debian:/usr/local/nagios/libexec# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
---------------


> checking by NRPE I use:
> command[check_disk_var]=/usr/local/monitor/libexec/check_disk 
> -w 20% -c 10% -p /var -m
> 
> > 
> > 
> > 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,


-------------------------------------------------------
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