LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-17-2012, 07:50 AM   #1
bhargav123
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Rep: Reputation: Disabled
unable to monitor windows system through nagios server


Hi, I am unable to monitor windows system through nagios server it's showing error that name or service not known.

THINGS THAT I HAVE DONE

CLIENT: Installed nsclient++ and edited .ini filea and started the service.

SERVER: Edited windows.cfg file,commands.cfg,nagios.cfg. In commands.cfg file I have metioned the hostaddress and password of the system in check_nt. Please help me in resolving the issue.
 
Old 08-17-2012, 09:19 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You haven't really provided enough information.

I've seen issues with this to a variety of reasons including misconfigured NSC.ini on the windows client, firewall blocking the port from Nagios master on the windows client, incorrect entries on the Nagios server etc...

For troubleshooting I'd suggest:
1) First verify your host is resolving the client IP correctly from Nagios master:
host <client>
Verify that the IP returned is the same one you defined for the client in hosts.cfg.

2) On the Nagios master from command line attempt to connect to the port on the windows client to verify you can. This will help you determine if issue is networking/firewall - often folks turn on the Windows firewall and forget to open up the port.
e.g. of you're using nsclient++ in NRPE mode and standard port then try "telnet <client> 5666".

3) From command line on the Nagios master attempt the command to the client.
e.g./usr/local/nagios/libexec/check_nrpe -H <client> -p 5666 -c CheckCPU -a warn=85 crit=90 time=30
This will help you see if the command you think is running is working and bypass all the the rest of the Nagios setup. If it works then you know your issue is the Nagios configuration - if it doesn't then it is likely something on the client side.

4) Review the NSClient++ log on the client. Usually it gives rather good indications as to where the issue is so long as networking/firewall allowed the master to talk to the client.

Failing all that you'd need to provide your NSC.ini, your hosts.cfg for this client, your services.cfg for this client and your commands.cfg for the commands used for this client for anyone to intelligently tell you what issues you might have.
 
1 members found this post helpful.
Old 08-20-2012, 03:07 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
sanitize (the IPs?) and post the contents of the nsclient.ini please.
 
  


Reply


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
i am unable to monitor or connect remote linux server uning nagios 3.3 on nagios linn nandunay Linux - Server 2 05-09-2012 04:56 AM
Windows server monitorig by nagios: The system cannot find the path specified. sarajevo Linux - Software 2 06-06-2009 12:38 AM
Configuring Nagios to monitor a Windows service JeremyInNC Linux - Server 3 01-13-2009 09:19 AM
Monitor windows mount points with Nagios creatorrr Linux - Software 1 08-15-2008 05:23 PM
Unable to start XFree86 server on new dual monitor system gothgeek84 Linux - Hardware 1 02-21-2004 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:41 AM.

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