Issues getting check_nt -v COUNTERS to work...
Arno Lehmann
al at its-lehmann.de
Tue Apr 22 22:28:12 CEST 2008
Hi,
22.04.2008 21:24, mjn wrote:
> All-
>
> For whatever reason, I cannot get a check_nt -v COUNTER check to work
> through nagios itself. I can run this:
> [root at narsil plugins]# sudo -u nagios ./check_nt -H 192.168.110.84
> -p 5667 -v COUNTER -l "\\SQLServer:General Statistics\\User Connections"
>
> And it responds with:
> 53
>
> But with the check defined (details below) and run through nagios, the
> GUI shows critical and "Name or service not known"
>
>
> Any idea what the issue might be? I am sure I've missed something simple...
Yup.
> Here's the grit:
>
> nagios-plugins-nt-1.4.11-2.fc8
> check_nt v1590 (nagios-plugins 1.4.11)
> nagios-2.11-3.fc8
> opmon 2.7.1.0
>
>
> SQL Connections Check:
> define command {
> command_name check_nt_mssql_conns
> command_line $USER1$/check_nt -H %HOSTADDRESS% -p $ARG1$ -v COUNTER
Use $HOSTADDRESS$ and see what happens...
> -l "\\SQLServer:General Statistics\\User Connections"
> }
>
> Service Definition:
> define service {
> use informational-service
> host_name sql
> service_description MS_SQL_User_Connections
> contact_groups windows-admins
> check_command check_nt_mssql_conns!5667
> }
Arno
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
--
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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