LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   [NAGIOS] can't find check_nrpe after 'yum install check_nrpe' (http://www.linuxquestions.org/questions/linux-software-2/%5Bnagios%5D-cant-find-check_nrpe-after-yum-install-check_nrpe-888850/)

di11rod 06-28-2011 05:20 PM

[NAGIOS] can't find check_nrpe after 'yum install check_nrpe'
 
I've run 'yum install check_nrpe' which appeared to have completed successfully. If I re-run that command, I get:

Code:

Package nagios-plugins-nrpe-2.12-16.fc14.x86_64 already installed and latest version
But there is no check_nrpe in the /usr/local/nagios/libexec directory. I've tried a which and a whereis and a find and that turns up nothing for 'check_nrpe'.

Here's what's in my libexec directory:

Code:

check_apt
check_breeze
check_by_ssh
check_clamd
check_cluster
check_dhcp
check_dig
check_disk
check_disk_smb
check_dns
check_dummy
check_file_age
check_flexlm
check_ftp
check_http
check_icmp
check_ide_smart
check_ifoperstatus
check_ifstatus
check_imap
check_ircd
check_jabber
check_ldap
check_ldaps
check_load
check_log
check_mailq
check_mrtg
check_mrtgtraf
check_nagios
check_nntp
check_nntps
check_nt
check_ntp
check_ntp_peer
check_ntp_time
check_nwstat
check_oracle
check_overcr
check_ping
check_pop
check_procs
check_real
check_rpc
check_sensors
check_simap
check_smtp
check_spop
check_ssh
check_ssmtp
check_swap
check_tcp
check_time
check_udp
check_ups
check_users
check_wave
negate
urlize
utils.pm
utils.sh

Any ideas on how I can find check_nrpe? Do I need to compile from source?

Thanks in advance for any advice.

di11rod

acid_kewpie 06-29-2011 10:54 AM

run "rpm -ql check_nrpe"

nrpe is *HORRIBLE* though, I would REALLY suggest using a secure mechanism like func or SSH instead of this awful hack.

di11rod 06-29-2011 11:12 AM

Quote:

Originally Posted by acid_kewpie (Post 4399236)
run "rpm -ql check_nrpe"

Thank you for this suggestion. RPM doesn't register check_nrpe as being installed:

Code:

rpm -ql check_nrpe
package check_nrpe is not installed

Quote:

Originally Posted by acid_kewpie (Post 4399236)
nrpe is *HORRIBLE* though, I would REALLY suggest using a secure mechanism like func or SSH instead of this awful hack.

On the remote machine, I'm running nsclient++ (windows server 2008). On this Fedora server, I'm running Nagios to monitor all the Windows servers. If there is some documentation on replacing nrpe with func, I'd love to see it and consider going in that direction.

As for security, each of these machines are behind a firewall in a data center with no access from the internet. Even the machines on the intranet that can talk to these servers are limited to a few servers (no desktops).

I just ran this command and yum is still telling me that check_nrpe is installed:


Code:

yum install nrpe nagios-common nagios-plugins nagios-plugins-{disk,dns,users,load,procs}
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
updates/metalink                                                                                  |  18 kB    00:00
updates                                                                                            | 4.7 kB    00:00
updates/primary_db                                                                                | 5.9 MB    00:29
Setting up Install Process
Package nrpe-2.12-16.fc14.x86_64 already installed and latest version
Package nagios-common-3.2.3-8.fc14.x86_64 already installed and latest version
Package nagios-plugins-1.4.15-2.fc14.x86_64 already installed and latest version

Should I remove nrpe and install with rpm?

-- dillrod

acid_kewpie 06-29-2011 01:31 PM

duh, sorry... "rpm -ql nagios-plugins-nrpe"

you don't need documentation on how to replace it, nrpe isn't integrated into nagios at all in the first place. If you want I can provide a script I wrote that uses func with an ssh fallback, there is also a check_ssh module that can be literally dropped in instead of check_nrpe, just set up preshared keys and off you go.

but then TBH, I was assuming this was linux to linux...

di11rod 06-29-2011 01:52 PM

Chris,

Thanks a LOT! The mystery is solved. Every resource I consulted indicated that check_nrpe would be in usr/local/nagios/libexec. Thanks to the rpm syntax you helped me with, I found that on our Fedora 14 x64 environment, the binary was placed in:

/usr/lib64/nagios/plugins/check_nrpe

I'll edit the title of this post to include '[SOLVED]'.

Thanks again,

Seth


All times are GMT -5. The time now is 07:41 PM.