Solved

nagios 3.0.3 error- return code of 127 is out of bounds-plugin may be missing

Posted on 2009-07-15
17
4,317 Views
Last Modified: 2012-05-07
Hello Experts
To configure the server i followed file name  How to install nagios in RHEL which is in the attachment
I followed this guid to configure the client windows machine.
http://www.thegeekstuff.com/2008/07/how-to-monitor-remote-windows-machine-using-nagios-
on-linux/

Everything i configured step by step but look at the error in screenshot.png file.
I dont know why erery thing its giving in critical.
Another strange thing I just noticed is /usr/local/nagios/libexec is empty

Thanks
Screenshot.png
How-to-install-nagios-in-RHEL.doc
0
Comment
Question by:ibu1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 5
  • 3
17 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24858310
Hi,

Do you have your personal Firewall enabled on the target system? If so please edit it to allow the port TCP 12489. The nagios Server communicates with the NsClient++ over this port so it should be reachable at all times. You can verify that. Go to your NAgios Server and issue :

terlnet <windows_ip> 12489

If the connection is open it is OK. If not try the same over the Target (Windows System) locally to see if this is a firewall issue or because  NsClient+ is not running.

Cheers,
K.
0
 
LVL 12

Author Comment

by:ibu1
ID: 24858631
the port is already open and NSClient++ (Win32) service is also running.This is the output of the command from the server
[root@clone root]# telnet 192.168.0.41 12489
Trying 192.168.0.41...
Connected to oracle7 (192.168.0.41).
Escape character is '^]'.

Thanks for the prompt response.
0
 
LVL 12

Author Comment

by:ibu1
ID: 24858651
why also the status of localhost is also showing down ?
0
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 24858919
Please check the below link
http://support.nagios.com/knowledge-base/faq/index.php?option=com_content&view=article&id=52&catid=35&faq_id=17&expand=false&showdesc=true

/usr/local/nagios/libexec is the default location where you will have nagios plugins, it can be change either during installation process.
Open /etc/nagios/resource.cfg and edit the MACRO variable to the plugin folder u configured

$USER1$=
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24858973
You have defined only one host called oracle7 you don't monitor the localhost. What local host are you talking about ?
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24858986
If the port is open then it must be something to do with your nsclient++ installation over the windows.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24859079
In your guide

allowed_hosts contains only your network you need to include your localhost too:

allowed_hosts=127.0.0.1/32,192.168.0.41/24

I'll suggest you to enable these:

use_fle=1
debug=1
file=NSC.log

then restart your service and check the NSC.log to see if there are any reported errors.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24859096
you might also like to include
password=<your_password>

under [NCSA-Agent] section.
0
 
LVL 12

Author Comment

by:ibu1
ID: 24859408
OUTPUT of the /usr/local/nagios/etc/resource.cf file
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/nagios/libexec
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 24859483
so make sure check_nt plugin is in the same folder and it have execute permission for nagios user.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24921566
Hi,

The reason you get this error is:
- You've installed the Nagios
- You've forgot to install Nagios-Plugins. Without Nagios Plugins installed Nagios cannot be able to check even the localhost. But nagios still does not come with any plugins and the inatallation manual does not mention about plugin installation.
- Error 127 is a result of there's no way to access any checks.
- Only after you install the plugins you'll be abl e to check your Windows server.
- If plugins were there you'd be getting data errors even if your plugin installation does not work at the Nagios Plugin Server (=your nagios client)
- Don't forget to edit nsc.ini and enable your port, allowed hosts etc. The default installation does not enable port. It only enables allowed hosts and password.

Cheers,
K.
 
0
 
LVL 12

Accepted Solution

by:
ibu1 earned 0 total points
ID: 25067945
ther is no perfect solution.I want my points back.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 25068008
I've told you You've installed "nagios" but did not install "nagios-plugins" This is why you get this error.
This is your solution. Install "nagios-plugins" and the error will stop.

BTW if you want to close the question you need to apply for the community support but since I've given you the answer you need I don2t think it is possible. Please do what I suggest first .

Cheers,
K.
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 25068747
Even I am behind the solution guide for this question I deserve points I prefer splitting points between KeremE and me.

"so make sure check_nt plugin is in the same folder and it have execute permission for nagios user."
0
 
LVL 12

Author Comment

by:ibu1
ID: 25075879
I already the applied the solution which u tried to provide me before asking this question by googling around.
Thanx
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 25355008
There are two components which might cause the error:

The first is:
- Nagios-plugins (which provides check_nt)
- NSSClient++ Which will talk to the checknt

The second is a responsive asker. Instead of trying to cancel the question try to cooperate with us experts.

I see that both are lacking in the question. Thus it is not possible to solve the problem under these circumstances. You are right to cancel the question. But I'll suggest you to be more cooperative in the further questions if you really need an answer.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 25355019
I am aware of at least 2 experts here aprt from here who are supporting very large professional networks through Nagios including both windows, linux servers and several different communications hardware.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question