nrdp and timing out

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post by jssingh »

the check_result_dir in nrdp matches check_result_path in nagios.cfg and it has a bunch of zero length files in it. However, we are not using var/spool/perfdata. Is that required for nrdp?

Code: Select all

$ grep check_results_dir /usr/local/nrdp/server/config.inc.php
$cfg["check_results_dir"]="/usr/local/nagios4/var/spool/checkresults";
$ grep check_result_path /usr/local/nagios4/etc/nagios.cfg
check_result_path=/usr/local/nagios4/var/spool/checkresults
$ ls -agG /usr/local/nagios4/var/spool/checkresults
total 8
drwxrwxr-x 2 4096 Mar 24 13:49 .
drwxr-xr-x 3 4096 Oct 31 13:58 ..
-rw-r--r-- 1    0 Feb 13 11:24 c4A0SsO.ok
-rw-r--r-- 1    0 Feb 13 11:25 c8XTz57.ok
-rw-r--r-- 1    0 Feb 13 08:22 cA1QZZb.ok
-rw-r--r-- 1    0 Feb 13 11:26 caEashj.ok
-rw-r--r-- 1    0 Feb 13 08:22 caUuUl2.ok
-rw-r--r-- 1    0 Feb 20 11:43 cCIE11S.ok
-rw-r--r-- 1    0 Feb 20 11:42 cfpzw7d.ok
-rw-r--r-- 1    0 Feb 20 11:44 ckJ40jd.ok
-rw-r--r-- 1    0 Feb 13 11:24 cs86784.ok
-rw-r--r-- 1    0 Feb 20 09:03 csqzQWe.ok
$ ls -la /usr/local/nagios4/var/spool/perfdata
ls: cannot access /usr/local/nagios4/var/spool/perfdata: No such file or directory
$
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nrdp and timing out

Post by tmcdonald »

jssingh wrote:However, we are not using var/spool/perfdata.
What do you mean? Is it set up in a ramdisk?
Former Nagios employee
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post by jssingh »

I mean we set process_performance_data=0 in nagios.cfg, so there is no perfdata directory.

Code: Select all

# This determines whether or not Nagios will process performance
# data returned from service and host checks.  If this option is
# enabled, host performance data will be processed using the
# host_perfdata_command (defined below) and service performance
# data will be processed using the service_perfdata_command (also
# defined below).  Read the HTML docs for more information on
# performance data.
# Values: 1 = process performance data, 0 = do not process performance data

process_performance_data=0



# HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
# These commands are run after every host and service check is
# performed.  These commands are executed only if the
# enable_performance_data option (above) is set to 1.  The command
# argument is the short name of a command definition that you
# define in your host configuration file.  Read the HTML docs for
# more information on performance data.

#host_perfdata_command=process-host-perfdata
#service_perfdata_command=process-service-perfdata



# HOST AND SERVICE PERFORMANCE DATA FILES
# These files are used to store host and service performance data.
# Performance data is only written to these files if the
# enable_performance_data option (above) is set to 1.

#host_perfdata_file=/usr/local/nagios4/var/host-perfdata
#service_perfdata_file=/usr/local/nagios4/var/service-perfdata
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrdp and timing out

Post by scottwilkerson »

What version of Core 4 are you running?

Would it be possible for you to attach your running nagios.cfg?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post by jssingh »

nagios version 4.0.4

nagios.cfg is attached.
Attachments
nagios.cfg
(43.06 KiB) Downloaded 308 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nrdp and timing out

Post by slansing »

Do you hold all of your configuration files in:

Code: Select all

cfg_dir=/usr/local/nagios4/etc/new_cfgs
That is the only directory currently being read in.

Also, can you provide the host definition for your "alex" passive host, and it's service definitions?

Are you still getting timeout's after 0.00 seconds in the nagios log? Is this only for the Alex host and it's services? Do you have other NRDP passive results coming in properly? Thanks!
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post by jssingh »

Yes, all configs are in that directory. There are 24 files, so I didn't want to list them all.

I've been testing using the localhost/nrdp webpage and I've been using Alex and one of it's services for testing, but I just now tried it with a bunch of other hosts and nothing is coming through. Here is the definitions for the host and the service that I've been testing. (I can get nsca to work fine for this host and services).

And no, I'm not getting the timeout error anymore.

Code: Select all

define host{
    name                            generic-host   
    passive_checks_enabled          1               
    notifications_enabled           1              
    event_handler_enabled           1             
    flap_detection_enabled          0             
    process_perf_data               1               
    retain_status_information       1               
    check_period                    24x7
    max_check_attempts              1 
    notification_interval           144000         
    notification_period             24x7
    notification_options            d,u,r
    contact_groups                  admins
    register                        0               
    }

define host {
    use                             generic-host
    host_name                       alex
    alias                           alex
    check_command                   check_system_state
    address                         alex
    contact_groups                  admins
    notes                           This is a test note
}

define service{
    name                            generic-service 
    active_checks_enabled           0              
    passive_checks_enabled          1              
    parallelize_check               1               
    obsess_over_service             0               
    normal_check_interval           1
    retry_check_interval            1
    max_check_attempts              1
    check_freshness                 0               
    notifications_enabled           1               
    event_handler_enabled           1              
    flap_detection_enabled          0               
    process_perf_data               1               
    retain_status_information       1               
    retain_nonstatus_information    1              
    is_volatile                     0               
    check_period                    24x7
    notification_period             24x7
    notification_interval           0
    notification_options            c,r
    contact_groups                  admins
    register                        0               
    }

define service {
    name                uptime-passive
    use             generic-service-passive
    service_description     uptime
    register                0
}

define service {
    use                             uptime-passive
    host_name                       alex
    servicegroups                   State
    }


tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nrdp and timing out

Post by tmcdonald »

Are there any configs in this working host that are not in the non-working hosts?
Former Nagios employee
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post by jssingh »

I'm sorry ... I don't understand the question.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nrdp and timing out

Post by tmcdonald »

Sorry, are there any config options*?

Code: Select all

    passive_checks_enabled          1               
    notifications_enabled           1             
    event_handler_enabled           1             
    flap_detection_enabled          0 
Are there things like that present in the working host config file, that are not in the other host config files? I want to see if one of the configs would be causing it to work.
Former Nagios employee
Locked