One strange thing to note is that I continue to get objects written to /tmp/ by the apache process despite having change config to point to /usr/local/nagios/var/tmp/
Nagios Core 4.0.2
nagios user = nagios
uid=1111(nagios) gid=1111(nagios) groups=1111(nagios)
apache user = apache
uid=2222(apache) gid=1111(nagios) groups=1111(nagios)
nagios.cfg
temp_file=/usr/local/nagios/var/nagios.tmp
temp_path=/usr/local/nagios/var/tmp
accept_passive_service_checks=1
drwxrwxr-x 2 nagios nagios 4096 Mar 16 13:24 /usr/local/nagios/var/tmp
prwxrwxrwx 1 nagios nagios 0 Mar 16 12:55 /usr/local/nagios/var/rw/nagios.cmd
drwxrwxr-x 2 nagios nagios 4096 Mar 16 14:33 /usr/local/nagios/var/spool/checkresults
/usr/local/nrdp/server/config.inc.php
Code: Select all
<?php
$cfg['authorized_tokens'] = array(
"xxxxxxxx",
);
$cfg["require_https"]=false;
$cfg["require_basic_auth"]=false;
$cfg["valid_basic_auth_users"]=array();
$cfg["nagios_command_group"]="nagios";
$cfg["command_file"]="/usr/local/nagios/var/rw/nagios.cmd";
$cfg["check_results_dir"]="/usr/local/nagios/var/spool/checkresults";
$cfg["tmp_dir"]="/usr/local/nagios/var/tmp";
$cfg['product_name']='nrdp';
$cfg['product_version']='1.0'
?>
Code: Select all
<Directory "/usr/local/nrdp">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /nrdp "/usr/local/nrdp/server"
Code: Select all
define host {
name generic_host
check_command check-host-alive
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 60
notification_period 24x7
notifications_enabled 1
register 0
}
define host {
name passive_host
check_command check_dummy!0!"No data received yet."
use generic_host
max_check_attempts 1
active_checks_enabled 0
passive_checks_enabled 1
register 0
}
define host {
host_name nrdp-core-centos-65
use passive_host
address nrdp-core-centos-65
initial_state u
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
notification_interval 60
stalking_options n
register 1
}
Code: Select all
define service {
name generic_service
check_command check_dummy!0!"No data received yet."
is_volatile 0
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 60
notification_period 24x7
notifications_enabled 1
register 0
}
define service {
name passive_service
service_description Passive Service
use generic_service
check_command check_dummy!0!"No data received yet."
is_volatile 0
initial_state o
max_check_attempts 1
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
stalking_options o,w,u,c
register 0
}
define service {
host_name nrdp-core-centos-65
service_description chef-client
use passive_service
max_check_attempts 1
check_interval 1
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
stalking_options n
register 1
}