LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-16-2013, 05:19 AM   #1
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 47

Rep: Reputation: 1
Plugins Missing Problem in Nagios


Hi,

I have installed Nagios in fedora 17(64 bit) through yum install nagios* -y. Nagios version 3.4.3 version has been installed from repos directly after running the yum command. Following are the packages installed:
nagios-devel-3.4.3-1.fc17.x86_64
nagios-plugins-mailq-1.4.16-5.fc17.x86_64
nagios-plugins-nwstat-1.4.16-5.fc17.x86_64
nagios-plugins-nt-1.4.16-5.fc17.x86_64
nagios-plugins-linux_raid-1.4.16-5.fc17.x86_64
nagios-plugins-rpc-1.4.16-5.fc17.x86_64
nagios-plugins-load-1.4.16-5.fc17.x86_64
nagios-plugins-time-1.4.16-5.fc17.x86_64
nagios-plugins-dpm-head-0.9.4-1.fc17.x86_64
nagios-plugins-1.4.16-5.fc17.x86_64
nagios-plugins-fping-1.4.16-5.fc17.x86_64
nagios-plugins-ups-1.4.16-5.fc17.x86_64
nagios-plugins-dhcp-1.4.16-5.fc17.x86_64
nagios-plugins-bdii-1.0.14-2.fc17.x86_64
nagios-plugins-disk_smb-1.4.16-5.fc17.x86_64
nagios-plugins-hpjd-1.4.16-5.fc17.x86_64
nagios-plugins-mrtgtraf-1.4.16-5.fc17.x86_64
nagios-plugins-radius-1.4.16-5.fc17.x86_64
nagios-plugins-wave-1.4.16-5.fc17.x86_64
nagios-plugins-ntp-1.4.16-5.fc17.x86_64
nagios-plugins-log-1.4.16-5.fc17.x86_64
nagios-plugins-ide_smart-1.4.16-5.fc17.x86_64
nagios-plugins-cluster-1.4.16-5.fc17.x86_64
nagios-plugins-game-1.4.16-5.fc17.x86_64
nagios-plugins-dpm-disk-0.9.4-1.fc17.x86_64
nagios-plugins-openmanage-3.7.8-1.fc17.x86_64
nagios-plugins-perl-1.4.16-5.fc17.x86_64
nagios-plugins-file_age-1.4.16-5.fc17.x86_64
nagios-plugins-disk-1.4.16-5.fc17.x86_64
nagios-plugins-by_ssh-1.4.16-5.fc17.x86_64
nagios-plugins-dig-1.4.16-5.fc17.x86_64
nagios-plugins-ssh-1.4.16-5.fc17.x86_64
nagios-plugins-all-1.4.16-5.fc17.x86_64
nagios-plugins-ifoperstatus-1.4.16-5.fc17.x86_64
nagios-plugins-rhev-1.0.0-2.fc16.noarch
nagios-plugins-lcgdm-common-0.9.4-1.fc17.x86_64
nagios-plugins-flexlm-1.4.16-5.fc17.x86_64
nagios-plugins-overcr-1.4.16-5.fc17.x86_64
nagios-plugins-users-1.4.16-5.fc17.x86_64
nagios-plugins-snmp-1.4.16-5.fc17.x86_64
nagios-plugins-dns-1.4.16-5.fc17.x86_64
nagios-plugins-lfc-0.9.4-1.fc17.x86_64
nagios-plugins-snmp-disk-proc-1.2-10.fc17.x86_64
nagios-plugins-nrpe-2.13-1.fc17.x86_64
nagios-plugins-ntp-perl-1.4.16-5.fc17.x86_64
nagios-plugins-pgsql-1.4.16-5.fc17.x86_64
nagios-plugins-oracle-1.4.16-5.fc17.x86_64
nagios-plugins-icmp-1.4.16-5.fc17.x86_64
nagios-plugins-procs-1.4.16-5.fc17.x86_64
nagios-plugins-mysql-1.4.16-5.fc17.x86_64
nagios-plugins-check_sip-1.3-4.fc17.x86_64
nagios-plugins-bacula-5.2.12-3.fc17.x86_64
nagios-common-3.4.3-1.fc17.x86_64
nagios-plugins-nagios-1.4.16-5.fc17.x86_64
nagios-plugins-sensors-1.4.16-5.fc17.x86_64
nagios-plugins-http-1.4.16-5.fc17.x86_64
nagios-plugins-smtp-1.4.16-5.fc17.x86_64
nagios-plugins-check-updates-1.6.0-1.fc17.x86_64
nagios-lcgdm-0.9.4-1.fc17.x86_64
nagios-plugins-tcp-1.4.16-5.fc17.x86_64
nagios-plugins-real-1.4.16-5.fc17.x86_64
nagios-plugins-ldap-1.4.16-5.fc17.x86_64
nagios-plugins-apt-1.4.16-5.fc17.x86_64
nagios-plugins-breeze-1.4.16-5.fc17.x86_64
nagios-plugins-mrtg-1.4.16-5.fc17.x86_64
nagios-plugins-dummy-1.4.16-5.fc17.x86_64
nagios-plugins-ifstatus-1.4.16-5.fc17.x86_64
nagios-3.4.3-1.fc17.x86_64
nagios-plugins-ircd-1.4.16-5.fc17.x86_64
nagios-plugins-ping-1.4.16-5.fc17.x86_64
nagios-plugins-swap-1.4.16-5.fc17.x86_64
nagios-plugins-lcgdm-0.9.4-1.fc17.x86_64
pnp4nagios-0.6.16-4.fc17.x86_64

I have added one hosts and everything is configured correctly in the remote host and also in the nagios server. But still it is showing plugins are missing. I have attached the snapshot of the error.

I have also installed nagios in my CENTOS system. In CentOS, it shows perfectly, but only in fedora it shows plugins are missing. Please help
Attached Images
File Type: png remote host.png (168.6 KB, 12 views)
 
Old 01-16-2013, 05:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
the plugins need to be on the remote box, not the server.
 
Old 01-16-2013, 05:40 AM   #3
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 1
Hi,

I have downloaded the file nagios-plugins-1.4.16.tar.gz and nrpe-2.14.tar.gz. I have extracted the two files. Then in nagios-plugins-1.4.16 folder, i have run the command from root as as ./configure --with-nagios-user=nagios --with-nagios-group=nagios
then next command as sudo make
and then sudo make install

everything went fine

But after extracting nrpe-2.14.tar.gz, i have run the command ./configure
and then in the nrpe-2.14 folder, there is no make file because I have to run the following commands

make all
make install-plugin
make install-daemon
make-install-daemon-config
make-install-xinetd

Since there is no make file inside the nrpe folder, how shall i run the make command, so that the plugins get installed??
 
Old 01-16-2013, 07:14 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Seeing as you're just getting started I would *VERY* strongly urge you NOT to use NRPE (I'd urge you not to use Nagios but that's too late!) use the check_by_ssh plugin instead, and then you don't need to set up any nasty insecure NRPE junk. Just put the scripts in a suitable location and call them via check_by_ssh. there is no need to "install" them, they're just scripts.
 
Old 01-22-2013, 02:31 PM   #5
ludmilmm
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
Could you, please, post your question on the official nagios support forum?

http://support.nagios.com/forum/index.php

This way your issue will get resolved a lot faster. Thanks!

Ludmil Miltchev
XI Support Team
 
Old 01-22-2013, 02:46 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Well seeing as he's not come back for a week, I don't exactly think the forum is the hold up here, IF there even is one. We're doing just fine here, thanks.
 
Old 01-22-2013, 04:09 PM   #7
swilkerson
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
... (I'd urge you not to use Nagios but that's too late!)
Really? Nagios was the clear winner of last year's poll on this site for monitoring with 10X the votes of the next closest monitoring software.
http://www.linuxquestions.org/questi...e-year-919908/

That said,

@rahul.buragohain

Based on your screenshot it looks like you have it installed correctly, you will just need to edit the path to your plugins in your nrpe.cfg at the bottom you should see something like
Code:
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Make sure these are the actual paths to your plugins. Then if you make changes you will need to restart xinetd
Code:
service xinetd restart
If you need further assistance feel free to visit the official Nagios Forum
http://support.nagios.com/forum/viewforum.php?f=7

Last edited by swilkerson; 01-22-2013 at 04:14 PM.
 
Old 01-22-2013, 05:49 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Normally most plugins reside on the server and communicate with remote hosts via snmpd. No need for NRPE unless you really want to avoid snmpd or require some complex data extraction on the remote.
 
Old 01-23-2013, 01:12 AM   #9
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 1
Hi,

All the configuration files are correct, but still I am getting the error as (Return code of 127 is out of bounds - plugin may be missing)
 
Old 01-23-2013, 02:55 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Quote:
Originally Posted by rahul.buragohain View Post
Hi,

All the configuration files are correct, but still I am getting the error as (Return code of 127 is out of bounds - plugin may be missing)
So can you run the plugin on the actual client machine? As Nagios is so ugly and clunky you can at least break into the chain of manual commands being executed, check what command is being run by the nrpe plugin and run it directly on the target, and then also run the check_nrpe commadn directly from the server.
 
Old 01-23-2013, 02:58 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Quote:
Originally Posted by swilkerson View Post
Really? Nagios was the clear winner of last year's poll on this site for monitoring with 10X the votes of the next closest monitoring software.
http://www.linuxquestions.org/questi...e-year-919908/
Hmm, since when did someone in the open source, non-mainstream community think that pure popularity was a marker of quality? Please stop advertising your own commercial interests. Scott, if you wish to officially come here with your colleagues to drive traffic to your own business website, you should speak to Jeremy about the options that may well be open to you.

Last edited by acid_kewpie; 01-23-2013 at 03:04 AM.
 
Old 01-23-2013, 03:20 AM   #12
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 1
Hi,

I have find out the error, and I have resolved. Thanks to all of u.
 
Old 01-23-2013, 03:22 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
some feedback on what it was would be appreciated to potentially help others.
 
Old 01-23-2013, 03:30 AM   #14
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 1
Hi Chris,

As I have mentioned that it is 64 bit system, so I edited the file commands.cfg in nagios server as

define command {
command_name check_nrpe
command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
}

Initially the problem was that I was gving /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$

Now I have edited and made /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$

And It worked. This is the way I solved.
 
1 members found this post helpful.
Old 01-23-2013, 09:27 AM   #15
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,170

Rep: Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585
ludmilmm, Welcome to LQ and thanks for your participation (note that we have an Official Participation program: http://www.linuxquestions.org/questi...-at-lq-612689/). That said, in the future we'd appreciate it if you'd please refrain from simply pointing to different forum without providing any other helpful information in the post. Thanks.

--jeremy
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NRPE/nagios-plugins: Compiling with --enable-perl-modules problem. ripprapp Linux - Software 3 11-05-2012 07:12 AM
Fail to install Nagios Pluggin nagios-plugins-1.4.15.tar.gz fred_xlf Linux - Software 1 11-27-2010 06:09 AM
Problem in installing nagios plugins prak86 Linux - Newbie 1 12-29-2009 02:04 AM
Help with nagios plugins anaigini45 Linux - Newbie 7 12-15-2009 02:29 AM
[SOLVED] digiKam Install Problem - Missing Plugins? BeerIsGood Slackware 7 10-12-2006 06:11 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration