Mode Gearman

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Mode Gearman

Postby FranckB1 » Tue Apr 10, 2018 2:09 am

Hi,

Thanks for your advices, but I think there's one final point that I misunderstand (see below).

Your last post about the distributed architecture, you have to think of the checks being run on the remote gearman worker and the IP address that have to be checked have to be accessible from that system.

I aggree, but how do I configure these hosts on the central server in order to be able to supervise them in Nagios.

When configuring a host, Nagios want at least a host name and an address. If a remote host is supervised by a distant worker, in my architecture it will surely mean that it's not accesible from the central server (behind a router and/or a firewall, in another LAN with a private IP address).
So, what would my host configuration look like in Nagios central server ?

Thanks four your responses.
FranckB1
 
Posts: 25
Joined: Mon Feb 19, 2018 3:06 am

Re: Mode Gearman

Postby tgriep » Tue Apr 10, 2018 2:29 pm

The host entry would look like any other host entry.
You would give it a host name and an IP address like any other host but the IP address would have to be accessible from the remote Gearman Worker.
Then you would add that Host entry to the Hostgroup that is configured to run on the remote Gearman worker.
That way, it will only run on that system.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6884
Joined: Thu Oct 30, 2014 9:02 am

Re: Mode Gearman

Postby FranckB1 » Wed Apr 11, 2018 2:16 am

Ok, I understand. This means that I can have several hosts with a same private IP address in my Nagios hosts' configuration. Just have to take care that they are in different hostgroups, and each hostgroup handled by a different worker.

But this means, as hosts configuration is centralized on the Nagios Server, that workers must get the informations about the hosts (namely IP addresss) from the server.
And what if, like I said when I was talking about distributed architecture, the host on which a worker is running, is unreachable from the Nagios server ? Understand that it's on a private customer network in which I'm not granted to have any access.

I think this is the last point to really understand how mod_gearman works.

Thanks for your responses.
FranckB1
 
Posts: 25
Joined: Mon Feb 19, 2018 3:06 am

Re: Mode Gearman

Postby tgriep » Wed Apr 11, 2018 9:34 am

The Nagios server does not need to access the remote network, only the remote worker needs to access the Nagios Gearman server.
What happens is the Gearman Worker, connects to the Gearman Server and retrieves the jobs from the queue and runs them.
The gearman server only queues the jobs on the server, the workers has to retrieve them and run them.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6884
Joined: Thu Oct 30, 2014 9:02 am

Re: Mode Gearman

Postby FranckB1 » Thu Apr 12, 2018 9:28 am

Ok now I think it's completly clear !

Thanks a lot for your help.

Now I'm trying to install a worker on a centOS virtual host. But when issuing the command "yum install mod-gearman-worker", I get a "No available packets" message.

If ever, does somone know on which repository I can find this packet.

Thanks.
FranckB1
 
Posts: 25
Joined: Mon Feb 19, 2018 3:06 am

Re: Mode Gearman

Postby tgriep » Thu Apr 12, 2018 11:39 am

Depending on which Yum Repository you have enabled on your system, the Gearman package could be called mod_gearman so run the following on your system to see if it is available.
Code: Select all
yum install mod_gearman
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6884
Joined: Thu Oct 30, 2014 9:02 am

Re: Mode Gearman

Postby FranckB1 » Mon Apr 16, 2018 10:18 am

Thanks for responding...

I have two additional demands :
- Does anybody know the average number of metrics I can monitor on a raspberry (Pi 3 1gb/16gb), without overload issues ?
- Is there somewhere any documentation about the way mode gearman encrypt datas. Is this a light or heavy encryption method ?
I made some researches on the web (including www.mode-gearman.org)...didn't find anything relevant.

Thanks.
FranckB1
 
Posts: 25
Joined: Mon Feb 19, 2018 3:06 am

Re: Mode Gearman

Postby tgriep » Tue Apr 17, 2018 4:59 pm

Your welcome. I'll leave the post open in case someone has any information on your questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6884
Joined: Thu Oct 30, 2014 9:02 am

Previous

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 14 guests