NC_Net

Lacayo, Luis F lflacayo at cps.k12.il.us
Thu Dec 28 18:44:00 CET 2006


Hello, 

 

I was wondering if you can help me.  I am trying to check a Microsoft
Ishare service with Nagios. 

 

When I run the check_nt command from the command line the service check
work just fine. 

 

./check_nt -H 10.129.162.187 -p 1248 -v SERVICESTATE -l
'mssql$sharepoint' -d SHOWALL

 mssql$sharepoint: Started

 

I have tried several way of checking, with a \ before the dollar sign,
in dowuble quotes etc.

 

However when I look at the service check via the web there is a trailing
$

Host  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=1&sortoption=1>  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=2&sortoption=1> 

Service  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=1&sortoption=2>  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=2&sortoption=2> 

Status  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=1&sortoption=3>  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=2&sortoption=3> 

Last Check  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=1&sortoption=4>  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=2&sortoption=4> 

Duration  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=1&sortoption=6>  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=2&sortoption=6> 

Attempt  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=1&sortoption=5>  
<http://co-log01/nagios/cgi-bin/status.cgi?hostgroup=ISHARE&style=detail
&servicestatustypes=4&sorttype=2&sortoption=5> 

Status Information

co-spdb <http://co-log01/nagios/cgi-bin/extinfo.cgi?type=1&host=co-spdb>


  <http://co-log01/nagios/cgi-bin/extinfo.cgi?type=1&host=co-spdb> 

DatabaseServices
<http://co-log01/nagios/cgi-bin/extinfo.cgi?type=2&host=co-spdb&service=
DatabaseServices> 

 

WARNING

12-28-2006 11:30:42

35d 22h 28m 56s

3/3

mssql$sharepoint$: Unknown 

 

 

Here is my service definition:

 

 

define service{

        use                             ping-service

        host_name                       co-spdb

        service_description             DatabaseServices

        contact_groups                  ishare

        check_command
check_nt_service!'mssql$sharepoint'

        }

 

 

Here is my command definition: 

 

 

# 'check_nt_service' command definition

define command{

        command_name    check_nt_service

        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$ -d SHOWALL

        }

 

Any help will be appreciated. 

 

Thanks, 

 

Luis

 

Luis Lacayo

Sr. UNIX Admin

Chicago Public Schools

Office of Technology Services

125 S. Clark Street - Suite 300

Chicago, IL 60603

Direct:773-553-3835

Office: 773-553-1300

FAX:773-553-1363

lflacayo at cps.k12.il.us

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061228/7be1169a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 833 bytes
Desc: image001.gif
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061228/7be1169a/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 833 bytes
Desc: image002.gif
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061228/7be1169a/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 855 bytes
Desc: image004.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061228/7be1169a/attachment.jpg>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- 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