Announcement

Collapse
No announcement yet.

Reporting 100% undeterminated until nagios restart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reporting 100% undeterminated until nagios restart

    Oreon Reporting shows 100% undeterminated status of all our hosts for the current day while these all have host status UP. Only after executing "nagios stop && nagios start" oreon begins to count the UP time. All time of the day before the nagios restart is counted as status undeterminated.

    Aditionally, choosing another time period e.g. "Last 7 Days" only time of current day after nagios restart is counted correctly. Rest of the time period always is counted as undetermined.

    Debian Etch
    nagios2 2.6-2+etch1
    oreon 1.4.1
    php 5.2.0-8+etch7

    /etc/cron.d/oreon uses php5, but shows no error messages in logs

  • #2
    set "Initial state logging option" to 1 in nagios.cfg
    and restart your cron with "-d" option

    Oreon-DevTeam

    Comment


    • #3
      Initial state logging was and is set to 1, but it does not work.
      which -d option do you mean? I cannot find any -d option. cron? nagios?

      Code:
      # 'Nagios CFG 1'
      # Default Nagios.cfg Generated by Oreon Auto Setup
      cfg_file=/etc/nagios2/hosts.cfg
      [...]
      cfg_file=/etc/nagios2/meta_timeperiod.cfg
      resource_file=/etc/nagios2/resource.cfg
      log_file=/var/log/nagios2/nagios.log
      object_cache_file=/var/cache/nagios2/objects.cache
      temp_file=/var/tmp/nagios.tmp
      status_file=/var/cache/nagios2/status.dat
      p1_file=/usr/lib/nagios2/p1.pl
      aggregate_status_updates=1
      status_update_interval=15
      nagios_user=nagios
      nagios_group=nagios
      enable_notifications=1
      execute_service_checks=1
      accept_passive_service_checks=1
      enable_event_handlers=1
      log_rotation_method=d
      log_archive_path=/var/log/nagios2/archives/
      check_external_commands=1
      command_check_interval=1s
      command_file=/var/lib/nagios2/rw/nagios.cmd
      downtime_file=/var/lib/nagios2/downtime.dat
      comment_file=/var/lib/nagios2/comments.dat
      lock_file=/var/run/nagios2/nagios2.pid
      retain_state_information=1
      state_retention_file=/var/lib/nagios2/retention.dat
      retention_update_interval=60
      use_retained_program_state=1
      use_syslog=0
      log_notifications=1
      log_service_retries=1
      log_host_retries=1
      log_event_handlers=1
      log_initial_states=1
      log_external_commands=1
      sleep_time=1
      service_interleave_factor=s
      max_concurrent_checks=20
      service_reaper_frequency=10
      interval_length=60
      use_agressive_host_checking=1
      enable_flap_detection=0
      low_service_flap_threshold=25.0
      high_service_flap_threshold=50.0
      low_host_flap_threshold=25.0
      high_host_flap_threshold=50.0
      soft_state_dependencies=0
      service_check_timeout=60
      host_check_timeout=60
      event_handler_timeout=60
      notification_timeout=60
      ocsp_timeout=1
      perfdata_timeout=5
      obsess_over_services=0
      process_performance_data=1
      service_perfdata_command=process-service-perfdata
      service_perfdata_file=/var/lib/nagios2/service-perfdata
      check_for_orphaned_services=0
      check_service_freshness=1
      date_format=euro
      illegal_object_name_chars=~!$%^&*"|'<>?,()=
      illegal_macro_output_chars=`~$^&"|'<>
      admin_email=admin
      [email protected]
      Code:
      /etc/cron.d/oreon
      
      0 0 * * * nagios php -q /usr/local/oreon/cron/inventory_update.php >> /usr/local/oreon/log/ArchiveLogInDB_log 2>> /usr/local/oreon/log/ods_parsing_log
      0 0 1-31 * * nagios php -q /usr/local/oreon/cron/reporting/ArchiveLogInDB.php >> /usr/local/oreon/log/ArchiveLogInDB_log 2>> /usr/local/oreon/log/ods_parsing_log
      * * * * * nagios /usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status
      * * * * * nagios /usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log
      Last edited by BenjaminH; 11 September 2007, 13:59. Reason: added some config info

      Comment

      Working...
      X