Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-29-2008, 10:49 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Configuring Nagios to monitor a Windows service

I am running Nagios 3.x on a RHEL box. It's able to do the default ntcheck stuff like CPU utilization and see the NSClient++ version, but I can't verify that a specific service is running (shows up as unknown). Here's the entry in the host's cfg file for the service:
define service{
        use                     generic-service
        host_name               gsovmacs01
        service_description     Cisco Secure WWW Server
        check_command           check_nt!SERVICESTATE!-d SHOWALL -l CSAdmin
The weird thing is I *can* telent into the Windows box on the Nagios client port and when I open the NSCLient++ command injector and do the CheckServiceState for csadmin it comes back happy. What am I missing?

Cisco Secure WWW Server

WARNING 07-29-2008 10:42:07 0d 0h 52m 12s 4/4 CSAdmin: Unknown
Old 07-29-2008, 11:43 AM   #2
LQ Newbie
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0

For anyone interested it's because I'm stupid

I've been cp the template file and then doing a %s/oldname/newname/g on it...but never changed the IP address. So suprisingly enough the "error" I was getting about the service not being found was actually accurate. All is now well, except I need to figure out how to stop my default group from showing up in the CGI.
Old 01-13-2009, 10:10 AM   #3
LQ Newbie
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
What does the -d parameter do? and can i have it check a single service such as Oracle instead of using SHOWALL?
Old 01-13-2009, 10:19 AM   #4
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Running the check_nt with --help (via the CLI) will give you a good explanation of what to use it for.

You get a lot more flexibility using NRPE rather than check_nt. Check out the NSClient++ website for more info.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
start und stop windows service using nagios cccc Debian 1 03-11-2008 08:43 AM
Shown Invalid Service Status Value using Nagios sureshkumar.repaka Programming 1 04-19-2007 06:34 AM
LXer: Complex service checks with Nagios LXer Syndicated Linux News 0 04-06-2007 08:02 PM
nagios check service noir911 Linux - Networking 5 07-24-2006 06:12 PM
Problem when Nagios Monitoring runs ping service sanfran49 Linux - Software 0 08-22-2003 01:12 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration