check_nt via NSCx Errors
bru1n at comcast.net
bru1n at comcast.net
Wed May 4 17:32:25 CEST 2005
I see these messages in my Nagios logs, and on the web-console; check_nt: Could not parse arguments
[05-03-2005 14:49:11] SERVICE ALERT: xptest;check-win-disk;UNKNOWN;SOFT;1;check_nt: Could not parse arguments
[05-04-2005 00:00:00] CURRENT SERVICE STATE: xptest;check-win-disk;UNKNOWN;HARD;4;check_nt: Could not parse arguments
I've tried 2 different versions of NSClient. The stable 2.0.1, and the new ++. From my nagios box (miata) the command line works, and returns the correct RC. It does not return an OK|WARNING|CRITICAL, and the monitor shows an unknown status. It is not only USEDDISKSPACE (in my examples of the problem), but all of the -v options that require a w, c , or l have trouble. I've pasted the relevant CLI stuff below.
There was a thread in nagiosplug-devel; not so much help.
https://sourceforge.net/mailarchive/message.php?msg_id=5394287
And this thread; but the solution (website) there doesn't exist any longer or is down atm.
https://sourceforge.net/mailarchive/message.php?msg_id=6715070
Other than the advice to use the correct versions, there does not seem to be much info from sourceforge lists, or straight up googlage.
Admittedly, this is my first attempt at getting windows boxes monitored. Do you folks have any ideas what my next step is, or steps to correct?
<--- start paste --->
C:\temp\nscp>hostname
xptest
C:\temp\nscp>ver
Microsoft Windows XP [Version 5.1.2600]
nagios @ miata: uname -a
SunOS miata 5.10 Generic sun4u sparc SUNW,Sun-Fire-V210
nagios @ miata: ./nagios -v
Nagios 2.0b3
Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
Last Modified: 04-03-2005
C:\temp\nsc\Win_2k_XP_Bin>net start nsclient
The Nagios Agent service is starting.
The Nagios Agent service was started successfully.
nagios @ miata: ./check_nt -V
check_nt (nagios-plugins 1.4) 1.39
nagios @ miata: ./check_nt -H xptest -v CLIENTVERSION
2.0.1.0
nagios @ miata: ./check_nt -H xptest -v USEDDISKSPACE -l c -w 10% -c 5%
c:\ - total: 37.26 Gb - used: 13.44 Gb (36%) - free 23.82 Gb (64%) | 'c:\ Used Space'=13.44Gb;3.73;1.86;0.00;37.26
nagios @ miata: echo $?
2
nagios @ miata: ./check_nt -H xptest -v USEDDISKSPACE -l c -w 90% -c 95%
c:\ - total: 37.26 Gb - used: 13.44 Gb (36%) - free 23.82 Gb (64%) | 'c:\ Used Space'=13.44Gb;33.53;35.40;0.00;37.26
nagios @ miata: echo $?
0
nagios @ miata:
C:\temp\nsc\Win_2k_XP_Bin>net stop nsclient
The Nagios Agent service is stopping.
The Nagios Agent service was stopped successfully.
C:\temp\nsc\Win_2k_XP_Bin>cd ../../nscp
C:\temp\nscp>NSClient++.exe /start
Starting NSClient++
nagios @ miata: ./check_nt -H xptest -p 12489 -s <masked> -v CLIENTVERSION
NSClient++ 0.0.9 rc1 2005-04-19
nagios @ miata: ./check_nt -H xptest -p 12489 -s <masked> -v USEDDISKSPACE -l c -w 10% -c 5%
c:\ - total: 37.26 Gb - used: 13.44 Gb (36%) - free 23.82 Gb (64%) | 'c:\ Used Space'=13.44Gb;3.73;1.86;0.00;37.26
nagios @ miata: echo $?
2
nagios @ miata: ./check_nt -H xptest -p 12489 -s <masked> -w 90% -c 95% -v USEDDISKSPACE -l c
c:\ - total: 37.26 Gb - used: 13.44 Gb (36%) - free 23.82 Gb (64%) | 'c:\ Used Space'=13.44Gb;33.53;35.40;0.00;37.26
nagios @ miata: echo $?
0
nagios @ miata: ./check_nt -H xptest -p 12489 -s <masked> -v USEDDISKSPACE -l c -w 90% -c 95%
c:\ - total: 37.26 Gb - used: 13.44 Gb (36%) - free 23.82 Gb (64%) | 'c:\ Used Space'=13.44Gb;33.53;35.40;0.00;37.26
nagios @ miata: echo $?
0
nagios @ miata:
Note: I tried changing the order of the w, c, and l parms to see if it made a difference there. It didn't.
#checkcommand.cfg
define command{
command_name check_win_disk
command_line $USER1$/check_nt -H $HOSTADDRESS -p 12489 -v USEDDISKSPACE -l c -w 90% -c 95%
}
#services.cfg
define service{
host_name xptest
service_description check-win-disk
servicegroups win-disk-cdrive
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups windows-admins
notification_interval 960
notification_period 24x7
check_command check_win_disk
}
<--- End paste ----->
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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