[SOLVED] SNMP or Agents? NRPE problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
keane1981
Posts: 15
Joined: Wed May 22, 2013 1:46 am

[SOLVED] SNMP or Agents? NRPE problem

Post by keane1981 »

Good morning eveyone,

I am new in the forum and also in the nagios world. I installed nagios core in a ubuntu 12.04 and now is running and working with esxi and windows servers.
But I have a lot of problem installing the agent in aix and linux server... Anybody can help me?

During my problem, I thought to work with snmp, but I dont know how to do it, is it easyer?
Any nice howto?

Thanks a lot for your help.
Regards
JL
Last edited by keane1981 on Thu May 23, 2013 4:11 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP or Agents?

Post by slansing »

SNMP will be more difficult by nature, than installing a Agent which does the majority of the work for you. What issues are you running into with the agent? Any specific errors? We can also help guide you with SNMP if that is your choice.
keane1981
Posts: 15
Joined: Wed May 22, 2013 1:46 am

Re: SNMP or Agents?

Post by keane1981 »

Hi slansing,

I am very thankful with your answer, because I was alone against the wind :P
Ok, perfect then, I will forget the snmp, and will try again the agents.

I have a windows monitored correctly and also a esxi, but I tryied with an Ubuntu and I install the nrpe-2.12 but now I dont know the next steps.
I have a folder /etc/nagios with some files, but how to configure that files?

And what perl script I need to check a linux with the nagios?

Thanks for your help!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP or Agents?

Post by slansing »

What did you follow to download and install NRPE? The steps should be similar to that of these:

http://www.omegaprojex.com/index.php/20 ... on-ubuntu/
keane1981
Posts: 15
Joined: Wed May 22, 2013 1:46 am

Re: SNMP or Agents?

Post by keane1981 »

Done, but I dont have the nrpe plugin in the nagios server, it is also an ubuntu server 12.04

I have the nagios-plugins-1.4.15 and 1.4.16 and did:

./configure
make
make install

but I can not find the chech_nrpe in the /usr/local/nagios/libexec folder...

Thanks!!!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SNMP or Agents?

Post by abrist »

Try:

Code: Select all

find / -name check_nrpe
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP or Agents?

Post by slansing »

after you have located the check_nrpe plugin itself, read into the following guide, even through you are installing this on Ubuntu the configuration files follow the same syntax:

http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

I would take a look at the remote host section and verify that you have correctly set the remote server up to be contacted by NRPE.
keane1981
Posts: 15
Joined: Wed May 22, 2013 1:46 am

Re: SNMP or Agents?

Post by keane1981 »

not located..
find / -name check_nrpe
no results

it is very strange... I installed 4.15 and 4.16

any ideas guys?

Thanks!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SNMP or Agents?

Post by abrist »

Download nrpe and build it for check_nrpe:
http://exchange.nagios.org/directory/Ad ... or/details
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
keane1981
Posts: 15
Joined: Wed May 22, 2013 1:46 am

Re: SNMP or Agents?

Post by keane1981 »

Hi guys!!!

Solved!!!

apt-get install nagios-nrpe-plugin

installed the plugin in /usr/lib/nagios/plugins

Thanks a lot abrist and slansing!!!!

:D
Locked