"Could not parse arguments " on check_nt
Jack M
mwanikij at yahoo.com
Mon Aug 30 23:22:52 CEST 2004
Thanks for your help. I re-compiled the nagios plugins
and after a couple of attempt, I can now get reults
from Check_nt plugin but only on the command prompt.
for example:
/usr/nagios/libexec/check_nt -H 10.14.0.19 -w 75 -c 90
-v USEDDISKSPACE -l c:
Return : (c::\ - total: 7.83 Gb - used: 6.34 Gb (81%)
- free 1.49 Gb (19%))
Unforfotunately I cannot get the same to work from
nagios. I still get the UNKNOWN status and status
information:
"Could not parse arguments"
Current Status: UNKNOWN
Status Information: Could not parse arguments
command and service files are:
# 'check_nt_disk' command definition
define command{
command_name check_nt_disk
command_line $USER1$/check_nt -H $HOSTADDRESS$
-p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
}
and
define service{
use
generic-service
host_name SRV0021
service_description Drive_C_Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups srv-admins
notification_interval 240
notification_period 24x7
notification_options c,w,r
check_command
check_nt_disk!C:!90!75
}
Anyone ever sorted a similar problem before?
--- Andreas Ericsson <ae at op5.se> wrote:
> Mwaniki jack wrote:
> > All check_nt checks are returning "Could not parse
> > arguments" from both the command line and nagios.
> >
> > I have installed NSClient on the W2K servers but
> still
> > no luck.
> >
> > Anyone experienced this before?
> >
>
> Yes. It's a butterfinger-problem. Read the --help
> output on how to
> properly use the plugin, and make sure you type what
> you think you
> should type. If it spits the same line out again,
> repeat as necessary.
>
> --
> Andreas Ericsson
> andreas.ericsson at op5.se
> OP5 AB www.op5.se
> Lead Developer
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic
> Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1
> today.
>
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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