Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-07-15
17
Medium Priority
?
4,355 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
Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

609 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