check_disk plugin problem

Gage, Ron ron.gage at handleman.com
Mon Feb 14 19:17:25 CET 2005


Yatrindra:

Not sure what version you are running, but this advice is specific for
1.3

The default command name (unless you changed the command name in
checkcommands.cfg) is check_local_disk.  The default setup has this
command with 3 parameters, -w, -c and -p.  -w is the warning value, -c
is the critical value and -p is path.  Thus, to make your command work,
try the following:

check_command	check_local_disk!85!95!/usr/disk1

This, of course, presumes that the volume you want to check space on is
mounted as /usr/disk1.  Adjust this accordingly...

Ron Gage - IT Support Team (IBM)
Handleman Corp.
Troy, Michigan
(248) 362-4400 x4626
ron.gage at handleman.com
 

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Yatindra
Ranpura
Sent: Monday, February 14, 2005 12:53 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_disk plugin problem

Im not sure if I am doing this the correct way, I have pasted the
services.cfg portion below that isnt correct,

# Service definition
define service{
	use				generic-service		
; Name of service template to use
	host_name			fileServer
	service_description		DISK
	is_volatile			0
	check_period			24x7
	max_check_attempts		3
	normal_check_interval		1
	retry_check_interval		1
	contact_groups			admins
	notification_interval		1
	notification_period		24x7
	notification_options		w,u,c,r
	check_command		check_disk 85%, 95%
	}

I would like to monitor all hard drives on a machine called fileServer
and
set warning and critical alarms at 85% and 95%,

Thanks in advance,

Yatindra

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005
 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&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