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,202 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
  • 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
 
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now