latency problem

Olivier JAN ojan at gfi.fr
Thu Sep 25 15:49:36 CEST 2008


It seems that oc[hs]p is the one to blame for performance issue i  
related. I've restarted nagios without those two commands activated.  
Nagios has done so far about 10 000 checks and has now a latency of  
0.055 sec.

So i'm decided to give pnsca module a try. It's already compiled and  
installed in /usr/local/nagios/lib but i would like some precisions  
about how to configure it in nagios.cfg.

Below is what i've already done in it.

obsess_over_services=0
obsess_over_hosts=0
event_broker_options=-1
broker_module=/usr/local/nagios/lib/pnsca.so <send_nsca_command>

Looks correct for you ? Maybe there is a setting more accurate for the  
broker options rather than everything ?

For now, i'm calling send_nsca like that
submit_check_result "$HOSTNAME$" "$SERVICEDESC$" "$SERVICESTATEID$"  
"$SERVICEOUTPUT$ | $SERVICEPERFDATA$"
The submit_check_result script is the usual one with the pipe to  
send_nsca. With those infos, could you give me an example of what is  
expected in <send_nsca_command>. I'd be ready to go with pnsca after  
that and will give the conclusion of the test here.


Thanks for your help and support.


Olivier Jan


Andreas Ericsson <ae at op5.se> a écrit :

> Hendrik Bäcker wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Olivier JAN schrieb:
>>> Hi list,
>>>
>>> I get some latency problems i can't explain. Here's the story.
>>>
>>> Nagios 3.0.3 on Ubuntu 8.0.4. Hardware is an intel quad core with
>>> 10 Go Ram and fast disks. I get 24524 services on 1654 hosts to
>>> check. Services are mostly active-passive with a check intervall of
>>> 6 hours. check_intervall for hosts is 0 so Nagios make them only on
>>> demand. No broker module activated. ocsp and ochp are activated
>>> because this server is part of a distributed system. Nagios debug
>>> is activated. Some configuration options i have.
>> OS[C/H]P in such a big environment might be a bottle neck. The givven
>> commands are executed after every single atomic check. It might be an
>> alternative to build an eventbroker that can do the same job a little
>> bit faster.
>> There was a first step for that on www.op5.org - but actual I can't
>> find it. Please have a look at the nagios-devel archive for a post
>> from Andreas Ericsson past the last 3 or 4 weeks.
>
> You're looking for http://www.op5.org/nagios/merlin.git, which is
> far from ready for production.
>
> In the mean-time, try using the pnsca module. Please note that the
> module is extremely careless with error checking. It was written as
> an example only, but it will most likely reduce your check latency
> to near-zero when it works properly.
>
> You'll find the git repository for the pnsca module at
> git://www.op5.org/nagios/pnsca.git. There are no snapshots for now,
> but at http://www.op5.org/git you'll find instructions for how to
> download the latest code using git.
>
> Once the module is built (just type 'make'), you need to tell
> Nagios about it. Do so by adding this to your nagios.cfg file:
>
>    event_broker_module=/path/to/pnsca.so <send_nsca_command>
>
> Where <send_nsca_command> is what you'd run to get send_nsca
> to accept check-results as input on stdin and send them to
> your master server. You also need to disable your OSCP and
> OHCP commands, as pnsca will take care of sending the results
> instead, thereby reducing the workload of the Nagios server
> and (hopefully) eliminating your latency issues.
>
> Let me know if you run into problems and I'll try to help you as
> best I can.
>
> --
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when   
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list