Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Re: NRPE/Nagios (Martin Moore)
2. Re: NRPE/Nagios (Martin Moore)
3. Re: NRPE/Nagios (Keith Edmunds)
4. Re: NRPE/Nagios (Martin Moore)
5. Off Topic: Google API's (Fernando Orus)
----------------------------------------------------------------------
Message: 1
Date: Thu, 22 Jan 2015 14:07:39 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <112501d0364c$caaaccf0$600066d0$@co.uk>
Content-Type: text/plain; charset="us-ascii"
Nagios server is Ubuntu 10.04.4 LTS
Not sure where it came from, sources.list
deb http://mirrors.webfusion.com/ubuntu lucid main restricted universe
multiverse
deb http://mirrors.webfusion.com/ubuntu lucid-updates main restricted
universe multiverse
deb http://mirrors.webfusion.com/ubuntu lucid-security main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-backports main restricted
universe multiverse
deb http://archive.canonical.com/ lucid partner
Remotes are both CentOS release 6.5
not use Centos before, I'm guessing the repos are epel and dag from
yum --enablerepo=dag -y install nagios-nrpe nagios-plugins-nrpe
yum --enablerepo=epel -y install nrpe nagios-plugins-all.x86_64
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of David Corking
Sent: 22 January 2015 11:03
To: Bristol and Bath Linux User Group
Subject: Re: [bristol] NRPE/Nagios
Martin, CentOS and Ubuntu version numbers may help too, as well as which
package repo you got Nagios/NPRE from (IME init scripts vary according to
the tastes of the package maintainer.) David
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 2
Date: Thu, 22 Jan 2015 14:19:21 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <112c01d0364e$6cbe1550$463a3ff0$@co.uk>
Content-Type: text/plain; charset="utf-8"
telnet remote1 5666
Trying xx.xx.xx.xx...
Connected to remote1.
Escape character is '^]'.
Connection closed by foreign host.
So doesn't look too good!
Check_nrpe returns the infamous 'CHECK_NRPE: Error - Could not complete SSL handshake.'
Not sure if/what firewall is running. Not shorewall. How can I tell?
Still doesn't explain why the server appears to be connecting to the localhost for all servers though.
I've installed Zabbix on one server but that is having problems connecting to itself...... And looks a bit complex - I like to simple grid in Nagios, but not the config files :(
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk [mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Shane McEwan
Sent: 22 January 2015 11:54
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] NRPE/Nagios
On 22/01/15 09:25, Martin Moore wrote:
> I?ve installed Nagios/NRPE on 3 boxes.
>
>
>
> The Nagios server is on an Ubuntu box, the slaves are Centos.
NRPE might be running via xinetd so there might not be a process running all the time. The best way to check is from the Nagios server run:
telnet nrpe_client_host 5666
If you get a connection then NRPE is probably OK. If you don't get a connection then either NRPE isn't running, xinetd isn't configured correctly (if it's using xinetd), the CentOS firewall is blocking it, or something else. :-)
Also, on the Nagios host there should be a check_nrpe Nagios check command (in the Nagios libexec directory, usually) that you can run:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host
You can also use check_nrpe to check specific items:
/usr/local/nagios/libexec/check_nrpe -H nrpe_client_host -c check_load
When all that is working for you then you need to make sure your Nagios config uses the check_nrpe command for each remote service, otherwise you'll end up just checking the local machine:
define service{
use generic-service
host_name tecmint
service_description CPU Load
check_command check_nrpe!check_load
}
Or . . . do yourself a favour and install Zabbix. :-P
Shane.
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 3
Date: Thu, 22 Jan 2015 18:49:10 +0000
From: Keith Edmunds <kae@midnighthax.com>
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] NRPE/Nagios
Message-ID: <20150122184910.0688b444@ws.the.cage>
Content-Type: text/plain; charset=US-ASCII
On Thu, 22 Jan 2015 10:54:09 -0000, martinm@it-helps.co.uk said:
> However nagios fails to start with check_remote_procs
Have you defined check_remote_procs?
> Not sure if/what firewall is running. Not shorewall. How can I tell?
iptables -L
> Still doesn't explain why the server appears to be connecting to the
> localhost for all servers though.
Check the command definitions.
> I've installed Zabbix on one server but that is having problems
> connecting to itself...... And looks a bit complex - I like to simple
> grid in Nagios, but not the config files :(
OK, what are you trying to achieve? You've started with Nagios, and now
you're looking at Zabbix. Both work, both can be effective, but neither is
a five minute setup. I suggest you define your requirements (a single
sheet of A4 will do for that), then you need to spend some time reading
the docs to see which of Nagios or Zabbix (or any of the other myriad of
monitoring utilities there are) best meets your neeeds. You then start
building up checks from a few local through a few remote to as many checks
as you need.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
------------------------------
Message: 4
Date: Thu, 22 Jan 2015 19:11:49 -0000
From: "Martin Moore" <martinm@it-helps.co.uk>
To: "'Bristol and Bath Linux User Group'" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] NRPE/Nagios
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAFLxZtQqo65Oo+1jhlUB9DvCgAAAEAAAADgmnA/3RsNLtrG1L7cJMNIBAAAAAA==@it-helps.co.uk>
Content-Type: text/plain; charset="us-ascii"
>Have you defined check_remote_procs?
Not sure. I assumed it was part of nagios. I'll check.
>> Not sure if/what firewall is running. Not shorewall. How can I tell?
>iptables -L
Ta.
>> Still doesn't explain why the server appears to be connecting to the
>> localhost for all servers though.
>Check the command definitions.
Will do.
Nagios is perfect for the situation - I tried Zabbix as it was recommended.
I'll stick with Nagios!
Cheers,
Martin.
-----Original Message-----
From: bristol-bounces@mailman.lug.org.uk
[mailto:bristol-bounces@mailman.lug.org.uk] On Behalf Of Keith Edmunds
Sent: 22 January 2015 18:49
To: bristol@mailman.lug.org.uk
Cc: martinm@it-helps.co.uk
Subject: Re: [bristol] NRPE/Nagios
On Thu, 22 Jan 2015 10:54:09 -0000, martinm@it-helps.co.uk said:
> However nagios fails to start with check_remote_procs
Have you defined check_remote_procs?
> Not sure if/what firewall is running. Not shorewall. How can I tell?
iptables -L
> Still doesn't explain why the server appears to be connecting to the
> localhost for all servers though.
Check the command definitions.
> I've installed Zabbix on one server but that is having problems
> connecting to itself...... And looks a bit complex - I like to simple
> grid in Nagios, but not the config files :(
OK, what are you trying to achieve? You've started with Nagios, and now
you're looking at Zabbix. Both work, both can be effective, but neither is a
five minute setup. I suggest you define your requirements (a single sheet of
A4 will do for that), then you need to spend some time reading the docs to
see which of Nagios or Zabbix (or any of the other myriad of monitoring
utilities there are) best meets your neeeds. You then start building up
checks from a few local through a few remote to as many checks as you need.
--
"A champion is someone who gets up when he can't" - Jack Dempsey
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5645 / Virus Database: 4260/8952 - Release Date: 01/18/15
------------------------------
Message: 5
Date: Fri, 23 Jan 2015 01:46:27 +0000
From: Fernando Orus <forus@bts-usa.com>
To: 'Bristol and Bath Linux User Group' <bristol@mailman.lug.org.uk>
Subject: [bristol] Off Topic: Google API's
Message-ID: <9177792.HMG9dXm8d3@fernando-lemur-ultra>
Content-Type: text/plain; charset="us-ascii"
Hi guys,
I realise this is rather off topic but after having spent
quite a long time trying to figure out what I am doing wrong
I've decided to try and ask if any of you have done
something similar before.
I've written a small modification of the GMailAPIQuickStart
sample to try to read the emails with a certain label. Now,
I'd say reading the labels (that works) and reading the
messages (that doesn't) would be allowed with a
"https://www.googleapis.com/auth/gmail.modify" scope but
apparently it is not true or I am doing something else
wrong. This is what I get:
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Delegation denied for ferorus@gmail.com",
"reason" : "forbidden"
} ],
"message" : "Delegation denied for ferorus@gmail.com"
}
Am I in luck? Has any of you had done something like this
before? I'm using java but I would happily use any other
language.
See you on Saturday, anyway.
Cheers,
Fernando
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GmailApiQuickstart.java
Type: text/x-java
Size: 3779 bytes
Desc: not available
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150123/8b9c5553/attachment-0001.java>
------------------------------
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
End of Bristol Digest, Vol 586, Issue 5
***************************************
Tidak ada komentar:
Posting Komentar