From: ankush g. <gro...@gm...> - 2011-01-31 07:23:28
|
Hi Friends, Any help for me on this issue? Thanks & Regards Ankush On Fri, Jan 28, 2011 at 2:41 PM, ankush grover <gro...@gm...> wrote: > Hi Friends, > > > > I have installed Nagios3 and nrdp server on Centos 5 machine. The > issue I am facing is that I am able to submit passive results through > the Nagios Interface but through NRDP client script that is > send_nrdp.php I am not able to send the passive check results. > > > > Passive checks configuration in Nagios.cfg file > > > > log_passive_checks=1 > > accept_passive_service_checks=1 > > accept_passive_host_checks=1 > > check_service_freshness=1 > > service_freshness_check_interval=60 > > check_host_freshness=0 > > host_freshness_check_interval=60 > > additional_freshness_latency=15 > > > > define service{ > > use generic-service > > host_name test2-1.test.com > > service_description MoLog Checks > > check_command check_dummy!3 "No Data from passive check" > > max_check_attempts 1 > > active_checks_enabled 0 > > check_freshness 1 > > freshness_threshold 300 > > flap_detection_options n > > contact_groups ankush.grover > > stalking_options n > > } > > > > > > generic-service template > > > > define service{ > > name generic-service ; The 'name' > of this service template, referenced in other service definitions > > active_checks_enabled 1 ; Active service > checks are enabled > > passive_checks_enabled 1 ; Passive service > checks are enabled/accepted > > parallelize_check 1 ; Active service > checks should be parallelized (disabling this can lead to major > performance problems) > > obsess_over_service 1 ; We should obsess > over this service (if necessary) > > check_freshness 1 ; Default is to NOT > check service 'freshness' > > notifications_enabled 1 ; Service > notifications are enabled > > event_handler_enabled 1 ; Service event > handler is enabled > > flap_detection_enabled 1 ; Flap detection is enabled > > process_perf_data 1 ; Process performance data > > retain_status_information 1 ; Retain status > information across program restarts > > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > > > > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > notification_interval 120 > > notification_period 24x7 > > notification_options c,r > > } > > > > NRDP server/config.inc.php > > <?php > > $cfg['authorized_tokens'] = array( > > "testingoftoken", > > "90dfs7jwn3", > > ); > > > > $cfg["require_https"]=false; > > $cfg["require_basic_auth"]=false; > > > > $cfg["nagios_command_group"]="nagios"; > > $cfg["command_file"]="/var/nagios/rw/nagios.cmd"; > > $cfg["check_results_dir"]="/var/nagios/spool/checkresults"; > > $cfg["tmp_dir"]="/var/nagios/tmp"; > > > > $cfg['product_name']='nrdp'; > > $cfg['product_version']='1.0' > > ?> > > > > nrdp client script send_nrdp.php > > > > /usr/bin/php -e send_nrdp.php --url="http://172.18.40.69/nrdp/" > --token=testingoftoken --host=test2-1.test.com --service=MoLog Checks > --state=1 --output="testing" > > > > > > ls -ld /var/nagios/rw > > drwxr-sr-x 2 nagios nagios 4096 Jan 28 13:01 /var/nagios/rw > > > > ls -l /var/nagios/rw > > > > prw-rw---- 1 nagios nagios 0 Jan 27 17:13 nagios.cmd > > > > Nagios Group Information and Apache user is part of Nagios group > > nagios:x:105:apache > > > > nrdp.conf file for Apache > > <Directory "/usr/local/nrdp"> > > Options None > > AllowOverride None > > Order allow,deny > > Allow from all > > </Directory> > > > > Alias /nrdp "/usr/local/nrdp/server" > > > > > > Nagios.conf file for Apache > > ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" > > > > <Directory "/usr/lib/nagios/cgi"> > > Options ExecCGI > > AllowOverride None > > Order allow,deny > > Allow from all > > AuthName "Nagios Access" > > AuthType Basic > > AuthUserFile /etc/nagios/htpasswd.users > > Require valid-user > > </Directory> > > > > Alias /nagios "/usr/share/nagios" > > > > <Directory "/usr/share/nagios"> > > Options None > > AllowOverride None > > Order allow,deny > > Allow from all > > AuthName "Nagios Access" > > AuthType Basic > > AuthUserFile /etc/nagios/htpasswd.users > > Require valid-user > > </Directory> > > > > I am not able to understand what exactly is wrong with the above > settings that nrdp is not able to send the information to the Nagios > server. > > > > > > Thanks & Regards > > > > Ankush Grover > |