Issues getting check_nt -v COUNTERS to work...

mjn mjn at umn.edu
Tue Apr 22 22:41:32 CEST 2008


Thanks Arno and Gary for catching my Twiki-inflicted typo!

--  
____________________________________
Mike Neuharth <mjn[AT]umn[DOT]edu>
Server Operations Manager
phn: 612.625.1957
cal: http://tinyurl.com/3jc2v
=====================================
College of Food, Agricultural, and Natural Resource Sciences
University of Minnesota
http://www.cfans.umn.edu/






On Apr 22, 2008, at 3:28 PM, Arno Lehmann wrote:

> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2405 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080422/275ca52a/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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