C:\ Drive Space wrong CRITICAL alarm
Marc Powell
marc at ena.com
Wed Aug 12 19:44:01 CEST 2009
On Aug 12, 2009, at 12:02 PM, arly arly wrote:
> Hi all,
>
> 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
> }
Build the command_line --
$ARG1$ == USEDDISKSPACE
$ARG2$ = -l C -w 90 -c 95
$ARG3$ = <NULL>
Command nagios is running -
/usr/lib/naigos/plugins/check_nt -H 'some.ip.address' -p 12489 -v
'USEDDISKSPACE' -l C -w '-l C -w 90 -c 95' -c ''
http://nagios.sourceforge.net/docs/3_0/macros.html - Example 2.
--
Marc
------------------------------------------------------------------------------
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