NSClient
VanZee, Timothy
T-VANZEE at govst.edu
Thu Mar 13 21:16:53 CET 2003
When running from the command line are you logged in as nagios or root? Do a su nagios and then try command line.
Tim Van Zee
ITS Network Specialist
Governors State University
-----Original Message-----
From: Shawn Wallis [mailto:swallis at ittc.ukans.edu]
Sent: Thursday, March 13, 2003 12:14 PM
To: Gert; rubiyz1047 at swyz.com
Cc: Nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] NSClient
I am having a similar problem on Solaris.
I am using plugins Beta 3, (I had problems compiling check_nt with Beta 2)...
The problem is similar, I can query the machine from the command line, and get a response. I have the password set to "None"
This is the response I get:
/usr/local/nagios/libexec/check_nt -H 10.1.1.25 -p 1248 -v MEMUSE -l
-w 80 -c 90
Memory usage: total:1562.33 Mb - used: 240.69 Mb (15%) - free: 1321.64 Mb
(85%)
However, the nagios console reports "Warning - No Output"..
...
I am wondering, if the return codes are not working correctly?
Is anyone else using the nsclient/check_nt successfully under Solaris?
My configuration is as follows:
define command{
command_name check_nt_memuse
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$ -c $ARG2$
}
services:
define service{
use generic-service
host_name test1
service_description Memory
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups test
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_memuse!80!95
}
Thanks..
- Shawn
On 12 Mar 2003, Gert wrote:
>
> Hello.
> I hope you can help me out here.
>
> I am trying to use nsclient in Nagios. It works fine from the command
> line getting the data från the W2K server but in Nagios i get an"Could
> not parse arguments" error.
>
> Here are my configs.
> >From checkcommands
> # 'check_nt_disk' command definition
> define command{
> command_name check_nt_disk
> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s $USER5$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
> }
>
> from services
> # Service definition for checking Disk C Free Disk Space on Windows
> 2000 system
> define service{
> use generic-service
> host_name vanserv
> service_description Drive C Space
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 1
> retry_check_interval 1
> contact_groups nt-admins
> notification_interval 120
> notification_period 24x7
> notification_options c,w,r
> check_command check_nt_disk!C!85!90
> }
>
> Regards
> Gert
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> 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
>
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
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
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
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