C:\ Drive Space wrong CRITICAL alarm
Sean McAfee
smcafee at collaborativefusion.com
Wed Aug 12 19:42:09 CEST 2009
arly arly wrote:
> I have an easy but confusing question. Command for checking hard disk
> on my system is defined as
>
> define command {
> command_name check_nt_disks
> command_line /usr/lib/nagios/plugins/check_nt -H
> '$HOSTADDRESS$' -p 12489 -v '$ARG1$' -l C -w '$ARG2$' -c '$ARG3$'
> }
>
>
> and in windows.cfg for this check I have
>
>
> define service{
> use generic-service
> host_name Windows_1
> service_description C:\ Drive Space
> check_command check_nt_disks!USEDDISKSPACE!-l C -w 90 -c 95
> }
You've already specified the switches in the command definition , so
your service definition should read something like:
define service{
use generic-service
host_name Windows_1
service_description C:\ Drive Space
check_command check_nt_disks!USEDDISKSPACE!90!95
}
You've also hardcoded the drive letter in your command definition, but
left the type of check as a variable. Since check_nt_disks will always
be running USEDDISKSPACE, it should really look like:
define command {
command_name check_nt_disks
command_line /usr/lib/nagios/plugins/check_nt -H
'$HOSTADDRESS$' -p 12489 -v USEDDISKSPACE -l '$ARG1$' -w '$ARG2$' -c
'$ARG3$'
}
with a service definition of:
define service{
use generic-service
host_name Windows_1
service_description C:\ Drive Space
check_command check_nt_disks!C!90!95
}
--
Sean McAfee
System Engineer
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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