How mod_gearman handle Nagios performance data

475 views
Skip to first unread message

Sherman Chan

unread,
Aug 28, 2013, 3:58:10 AM8/28/13
to mod_g...@googlegroups.com
Hi
I'm a newbie on mod_gearman, hope someone could give me hand to understand how it works

I have a nagios server with pnp4nagios 0.4x version running.  I would like to add a mod_gearman worker to load balance the nagios box, after spent sometime google around, it looks pretty easy to implement, however, I could not find any clear document that tell me how mod_gearman handle those performance data returned by the check results.

so far I understand, but may be incorrect
I need to set
perfdata=yes
and
perfdata_mode=1 or 2

on /etc/mod_gearman/mod_gearman_xxx.conf on both nagios and the worker servers.
the conf file also said

Note: processing of perfdata is not part of
# mod_gearman. You will need additional worker for
# handling performance data. For example: pnp4nagios
# Performance data is just written to the gearman
# queue.

my question is, how I connect pnp4nagios to mod_gearman, will mod_gearman pass' those performance data back
to nagios, and nagios will write to a file as usual.

Also do I need to make sure all the nagios check plugins are available on the worker with the same path?
And how the nagios passing the check requests to the gearman worker,
 /usr/lib64/nagios/plugin/check_icmp -H xxxx  .. etc? 

please forgive me if those questions already been asked.

Regards
Sherman

Ashish

unread,
Sep 11, 2013, 1:04:22 PM9/11/13
to mod_g...@googlegroups.com
Hello Sherman,
 
Please use the pnp worker for mod_gearman which comes with pnp4nagios. the standard mod_gearman worker can not process performance data.
 
-Ashish

Sherman Chan

unread,
Sep 11, 2013, 7:16:03 PM9/11/13
to mod_g...@googlegroups.com
Hi Ashish,

Thank for your great tip, but I ready set up the pnp4nagios as bulk + npcd mode, could both mode work together concurrently?

Cheers
Sherman



--
You received this message because you are subscribed to a topic in the Google Groups "mod_gearman" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod_gearman/ed8V9-s-3Ys/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod_gearman...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


FetchTV Pty Ltd, Level 5, 61 Lavender Street, Milsons Point, NSW 2061


This email is sent by FetchTV Pty Ltd (ABN 36 130 669 500). The contents of this communication may be 
confidential, legally privileged and/or copyright material. If you are not the intended recipient, any use, 
disclosure or copying of this communication is expressed prohibited. If you have received this email in error, 
please notify the sender and delete it immediately.

Reply all
Reply to author
Forward
0 new messages