AW: check_disk for paths which are no mountpoints

Schaffranneck, Sven (K-DOI-5/4) sven.schaffranneck at volkswagen.de
Tue Apr 13 12:50:32 CEST 2004


Hi,

i've tested the 1.7-release and it works fine. there seems to be a problem
in newer releases.

debian:/usr/src/nagios-plugins-1.3.0/plugins# ./check_disk -w 20% -c 10% -p
/var
DISK OK [1354268 kB (49%) free on /dev/hda1]

Greets Sven

> -----Ursprüngliche Nachricht-----
> Von: Urrutia Rafael [mailto:rafael.urrutia at smhi.se]
> Gesendet: Dienstag, 13. April 2004 12:13
> An: 'Schaffranneck, Sven (K-DOI-5/4)'
> Betreff: SV: [Nagios-users] check_disk for paths which are no
> mountpoints
> 
> 
> Hi,
> The version I use is "check_disk (nagios-plugins 1.3.0) 
> 1.7"... and works for me.
> 
> ./check_disk -w 20% -c 10% -p /var -m
> DISK OK [4627216 kB (96%) free on /var]
> 
> 
> > -----Ursprungligt meddelande-----
> > Från: Schaffranneck, Sven (K-DOI-5/4)
> > [mailto:sven.schaffranneck at volkswagen.de]
> > Skickat: den 13 april 2004 10:10
> > Till: 'Urrutia Rafael'
> > Ämne: 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