Sean,<br><br>Thanks a lot for your help.<br><br>It is now working fine.<br><br>Regards.<br><br><div class="gmail_quote">2010/6/17 Sean McAfee <span dir="ltr"><<a href="mailto:smcafee@collaborativefusion.com">smcafee@collaborativefusion.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">Gustavo Araujo wrote:<br>
> Hello everyone.<br>
><br>
> I´m using ubuntu-server 10.4 with nagios 3.2 (from repository)<br>
><br>
> Follow down my configurations.<br>
><br>
> /etc/nagios-plugins/config/nt.cfg:<br>
><br>
> define command {<br>
>         command_name    check_nt<br>
>         command_line    /usr/lib/nagios/plugins/check_nt -H<br>
> '$HOSTADDRESS$' -v '$ARG1$'<br>
> }<br>
><br>
> define command {<br>
>         command_name    check_nscp<br>
>         command_line    /usr/lib/nagios/plugins/check_nt -H<br>
> '$HOSTADDRESS$' -p 12489 -v '$ARG1$'<br>
> }<br>
><br>
><br>
> /etc/nagios3/conf.d/conf_nagios_afis.cfg<br>
><br>
> define service{<br>
>         host_name               dpfmas01<br>
>         service_description     check_space<br>
>         use                     generic-service<br>
>         check_command           check_nscp!USEDDISKSPACE! -l c -w 80 -c 90<br>
> }<br>
<br>
</div></div>Command, not service, definitions contain the switches.<br>
<br>
Service definition's check_commands can only take !-delimited arguments,<br>
which are then used to populate the switches from the command definition.<br>
<br>
You can hardcode the drive, warning/critical levels, and port into the<br>
command definition, but I'd do the following:<br>
<br>
define command {<br>
          command_name    check_nt_disk<br>
<div class="im">          command_line    /usr/lib/nagios/plugins/check_nt -H<br>
</div>  '$HOSTADDRESS$' -p '$ARG1$' -v 'USEDDISKSPACE' -l '$ARG2$' -w '$ARG3$'<br>
-c '$ARG4$'<br>
}<br>
<br>
Which would mean your service definition should look like:<br>
<div class="im"><br>
define service{<br>
          host_name               dpfmas01<br>
          service_description     check_space<br>
          use                     generic-service<br>
</div>          check_command           check_nt_disk!12489!c!80!90<br>
}<br>
<br>
Hope this helps,<br>
<br>
--<br>
Sean McAfee<br>
Senior Systems Engineer<br>
<br>
------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit.  See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br><br clear="all"><br>-- <br>Gustavo Campos Araujo<br>