|
Hi,all
I have been used nagios monitor our web site two years! Now about 500 hosts and
3,000 services on my nagios system. because
now my nagios server load is very high. I have to use distribution system to
reduce pressure.I found if nsca server work at inetd or single mode can’t deal with about 300 request per second. Only run at daemon mode
can do it. But still deley much. Any
device for me? Another
question is I have done some Optimize by Nagios
Documents: /bin/mkdir -p /dev/shm/tmp /cache /bin/chmod 1777 /dev/shm/tmp /cache /bin/mount --bind /dev/shm/tmp /cache Then
modify nagios.cfg, change path of status.dat and nagios.log to /cache. Now
visit status.cgi often show web page like below: The server encountered an internal error or
misconfiguration and was unable to complete your request. Please contact the server administrator,
[EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have caused the error. More information about this error may be
available in the server error log. Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the
request I
check apache’s error_log,can find: [Wed May 17 16:02:37 2006] [error] [client
10.0.77.203] Premature end of script headers: status.cgi How can I do with it ? Attach diff of my nagios.cfg and
sample-config/nagios.cfg 19, < #
log_file=/usr/local/nagios/var/nagios.log < log_file=/cache/nagios.log --- Ø
log_file=/usr/local/nagios/var/nagios.log < #
status_file=/usr/local/nagios/var/status.dat < status_file=/cache/status.dat --- >
status_file=/usr/local/nagios/var/status.dat < check_external_commands=1 --- > check_external_commands=0 < #
nebmodule=<modulepath> [moduleargs] --- > #
broker_module=<modulepath> [moduleargs] < use_syslog=0 --- Ø
use_syslog=1 < max_service_check_spread=10 --- > max_service_check_spread=30 < max_host_check_spread=10 --- > max_host_check_spread=30 < service_reaper_frequency=5 --- > service_reaper_frequency=10 < service_check_timeout=20 < host_check_timeout=5 --- > service_check_timeout=60 > host_check_timeout=30 < notification_timeout=10 --- > notification_timeout=30 < retention_update_interval=5 --- > retention_update_interval=60 < use_retained_scheduling_info=1 --- > use_retained_scheduling_info=0 < interval_length=10 --- > interval_length=60 < execute_service_checks=0 --- > execute_service_checks=1 < service_freshness_check_interval=10 --- > service_freshness_check_interval=60 < check_host_freshness=1 --- > check_host_freshness=0 < aggregate_status_updates=0 --- > aggregate_status_updates=1 < status_update_interval=10 --- > status_update_interval=15 Best wishes, sysit.chen |
