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

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
LVL 12
ibu1System AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kerem ERSOYPresidentCommented:
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
ibu1System AdministratorAuthor Commented:
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
ibu1System AdministratorAuthor Commented:
why also the status of localhost is also showing down ?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Deepak KosarajuDevOps EngineerCommented:
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
Kerem ERSOYPresidentCommented:
You have defined only one host called oracle7 you don't monitor the localhost. What local host are you talking about ?
0
Kerem ERSOYPresidentCommented:
If the port is open then it must be something to do with your nsclient++ installation over the windows.
0
Kerem ERSOYPresidentCommented:
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
Kerem ERSOYPresidentCommented:
you might also like to include
password=<your_password>

under [NCSA-Agent] section.
0
ibu1System AdministratorAuthor Commented:
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
Deepak KosarajuDevOps EngineerCommented:
so make sure check_nt plugin is in the same folder and it have execute permission for nagios user.
0
Kerem ERSOYPresidentCommented:
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
ibu1System AdministratorAuthor Commented:
ther is no perfect solution.I want my points back.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kerem ERSOYPresidentCommented:
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
Deepak KosarajuDevOps EngineerCommented:
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
ibu1System AdministratorAuthor Commented:
I already the applied the solution which u tried to provide me before asking this question by googling around.
Thanx
0
Kerem ERSOYPresidentCommented:
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
Kerem ERSOYPresidentCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Management

From novice to tech pro — start learning today.