[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

nagios-mysql b0rkage ???



I am running Debian, mostly testing and some unstable.  I installed
nagios from testing, and most of it was working.  I was having problems
with status, as documented here:

    <http://wiki.tryphon.org/LinuxWiki/NagiosInstall>

Those patches appeared to resolve the problem.  I remain confused why
Debian does not show a bug against this:

    <http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=nagios-mysql>

I was going to write the maintainer, when I noticed that unstable has a
newer version:

        # apt-cache policy nagios-mysql
        nagios-mysql:
          Installed: 2:1.2-3.1
          Candidate: 2:1.2-3.1
          Version Table:
         *** 2:1.2-3.1 0
                500 http://mirror.cs.wisc.edu unstable/main Packages
                100 /var/lib/dpkg/status
             2:1.1-11 0
                990 http://mirror.cs.wisc.edu testing/main Packages
             2:1.0-4.bunk 0
                500 http://www.fs.tum.de woody/bunk-1/main Packages

So, I upgraded to that version, which resulted in the five (5) crucial
definition errors documented below.  I _purged_ the entire package, and
installed unstable from scratch -- same problem:

        # sudo /usr/sbin/nagios -v /etc/nagios/nagios.cfg
        Nagios 1.2
        Copyright (c) 1999-2004 Ethan Galstad (nagios@nagios.org)
        Last Modified: 02-02-2004
        License: GPL

        Reading configuration data...
        Running pre-flight check on configuration data...

        Checking services...
        Error: There are no services defined!
                Checked 0 services.
        Checking hosts...
        Error: There are no hosts defined!
                Checked 0 hosts.
        Checking host groups...
        Error: There are no host groups defined!
                Checked 0 host groups.
        Checking contacts...
        Error: There are no contacts defined!
                Checked 0 contacts.
        Checking contact groups...
        Error: There are no contact groups defined!

                Checked 0 contact groups.
        Checking service escalations...
                Checked 0 service escalations.
        Checking host group escalations...
                Checked 0 host group escalations.
        Checking service dependencies...
                Checked 0 service dependencies.
        Checking host escalations...
                Checked 0 host escalations.
        Checking host dependencies...
                Checked 0 host dependencies.
        Checking commands...
                Checked 0 commands.
        Checking time periods...
                Checked 0 time periods.
        Checking for circular paths between hosts...
        Checking for circular service execution dependencies...
        Checking global event handlers...
        Checking obsessive compulsive service processor command...
        Checking misc settings...

        Total Warnings: 0
        Total Errors:   5


Here is my main configuration:

        # grep -v '^\(#\|$\)' nagios.cfg
        log_file=/var/log/nagios/nagios.log
        cfg_file=/etc/nagios/checkcommands.cfg
        cfg_file=/etc/nagios/misccommands.cfg
        cfg_file=/etc/nagios/contactgroups.cfg
        cfg_file=/etc/nagios/contacts.cfg
        cfg_file=/etc/nagios/dependencies.cfg
        cfg_file=/etc/nagios/escalations.cfg
        cfg_file=/etc/nagios/hostgroups.cfg
        cfg_file=/etc/nagios/hosts.cfg
        cfg_file=/etc/nagios/services.cfg
        cfg_file=/etc/nagios/timeperiods.cfg
        resource_file=/etc/nagios/resource.cfg
        status_file=/var/log/nagios/status.log
        nagios_user=nagios
        nagios_group=nagios
        check_external_commands=1
        command_check_interval=-1
        command_file=/var/log/nagios/rw/nagios.cmd
        comment_file=/var/log/nagios/comment.log
        downtime_file=/var/log/nagios/downtime.log
        lock_file=/var/log/nagios/nagios.lock
        temp_file=/var/log/nagios/nagios.tmp
        log_rotation_method=d
        log_archive_path=/var/log/nagios/archives
        use_syslog=1
        log_notifications=1
        log_service_retries=1
        log_host_retries=1
        log_event_handlers=1
        log_initial_states=0
        log_external_commands=1
        log_passive_service_checks=1
        inter_check_delay_method=s
        service_interleave_factor=s
        max_concurrent_checks=0
        service_reaper_frequency=10
        sleep_time=1
        service_check_timeout=60
        host_check_timeout=30
        event_handler_timeout=30
        notification_timeout=30
        ocsp_timeout=5
        perfdata_timeout=5
        retain_state_information=1
        state_retention_file=/var/log/nagios/status.sav
        retention_update_interval=60
        use_retained_program_state=0
        interval_length=60
        use_agressive_host_checking=0
        execute_service_checks=1
        execute_service_checks=1
        accept_passive_service_checks=1
        enable_notifications=1
        enable_event_handlers=1
        process_performance_data=0
        obsess_over_services=0
        check_for_orphaned_services=0
        check_service_freshness=1
        freshness_check_interval=60
        aggregate_status_updates=1
        status_update_interval=15
        enable_flap_detection=0
        low_service_flap_threshold=5.0
        high_service_flap_threshold=20.0
        low_host_flap_threshold=5.0
        high_host_flap_threshold=20.0
        date_format=us
        illegal_object_name_chars=`~!$%^&*|'"<>?,()=
        illegal_macro_output_chars=`~$&|'"<>
        admin_email=nagios
        admin_pager=pagenagios


I made certain that the configuration files were the same between
testing and unstable.  Here is a file listing:

        # ls -al /etc/nagios/
        total 152
        drwxr-xr-x    4 nagios   www-data     4096 Jun  9 15:32 .
        drwxr-xr-x  122 root     root         8192 Jun  9 14:56 ..
        -rw-r--r--    1 nagios   nagios       1139 Mar 27 03:37 apache.conf
        -rw-r--r--    1 nagios   nagios      17835 Jun  9 15:32 cgi.cfg
        -rw-r--r--    1 nagios   nagios       4427 Mar 27 03:37 checkcommands.cfg
        -rw-r--r--    1 nagios   nagios        681 Mar 27 03:37 command.cfg
        -rw-r--r--    1 nagios   nagios       2031 Jun  9 01:14 contactgroups.cfg
        -rw-r--r--    1 nagios   nagios       1894 Jun  9 01:20 contacts.cfg
        -rw-r--r--    1 nagios   nagios       1662 Mar 27 03:37 dependencies.cfg
        -rw-r--r--    1 nagios   nagios       2256 Mar 27 03:37 escalations.cfg
        -rw-r--r--    1 nagios   nagios       2245 Jun  9 01:15 hostgroups.cfg
        -rw-r--r--    1 nagios   nagios       7231 Jun  9 00:57 hosts.cfg
        -rw-r-----    1 nagios   www-data       44 Jun  9 15:21 htpasswd.users
        -rw-r--r--    1 nagios   nagios       4250 Mar 27 03:37 misccommands.cfg
        -rw-r--r--    1 nagios   nagios      21163 Jun  9 14:37 nagios.cfg
        -rw-r--r--    1 nagios   nagios       3365 Jun  8 08:55 resource.cfg
        -rw-r--r--    1 nagios   nagios      21643 Jun  9 14:17 services.cfg
        drwxr-xr-x    2 nagios   nagios       4096 Jun  9 14:36 stylesheets
        -rw-r--r--    1 nagios   nagios       1589 Mar 27 03:37 timeperiods.cfg
        drwxr-xr-x    2 nagios   nagios       4096 Jun  9 15:07 tmp


Where do I go from here?  What am I missing?

What do you think?

-- 
Best Regards,

mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: signature.asc
Description: Digital signature


Reply to: