incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Diachenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-2871) Nagios start fails due to invalid configs
Date Mon, 12 Aug 2013 15:04:48 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-2871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleksandr Diachenko updated AMBARI-2871:
----------------------------------------

    Attachment: AMBARI-2871.patch
    
> Nagios start fails due to invalid configs
> -----------------------------------------
>
>                 Key: AMBARI-2871
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2871
>             Project: Ambari
>          Issue Type: Bug
>          Components: agent
>    Affects Versions: 1.4.0
>            Reporter: Oleksandr Diachenko
>            Assignee: Oleksandr Diachenko
>             Fix For: 1.4.0
>
>         Attachments: AMBARI-2871.patch
>
>
> Steps to reproduce:
> 1) Deploy HDP-2.0.5 cluster with Nagios.
> 2) Start of Nagios failed, puppet log:
> {code}
> notice: /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln
32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully
> notice: /Stage[2]/Hdp-nagios::Server::Enable_snmp/Exec[enable_snmp]/returns: executed
successfully
> notice: /Stage[2]/Hdp-nagios::Server::Config/Hdp-nagios::Server::Configfile[hadoop-hostgroups.cfg]/Hdp::Configfile[/etc/nagios/objects/hadoop-hostgroups.cfg]/File[/etc/nagios/objects/hadoop-hostgroups.cfg]/content:
content changed '{md5}873d2be7b9f78137e0740223944d93af' to '{md5}780117e3c2407e9d02b37eab93159149'
> notice: /Stage[2]/Hdp-nagios::Server::Config/Hdp-nagios::Server::Configfile[nagios]/Hdp::Configfile[/etc/init.d//nagios]/File[/etc/init.d//nagios]/content:
content changed '{md5}3990694abc37617c79e2ea5276d71089' to '{md5}c4c4454911c0c6c1ba29d9d0dc2aa28c'
> notice: /Stage[2]/Hdp-nagios::Server::Config/Hdp-nagios::Server::Configfile[hadoop-hosts.cfg]/Hdp::Configfile[/etc/nagios/objects/hadoop-hosts.cfg]/File[/etc/nagios/objects/hadoop-hosts.cfg]/content:
content changed '{md5}7979396ff0b495e40901acdd2ecc457c' to '{md5}fa5ec3a93a4827cc6a691e0b8e22b4f6'
> notice: /Stage[2]/Hdp-nagios::Server::Config/Hdp-nagios::Server::Configfile[hadoop-services.cfg]/Hdp::Configfile[/etc/nagios/objects/hadoop-services.cfg]/File[/etc/nagios/objects/hadoop-services.cfg]/content:
content changed '{md5}06c9d0bb0aa3b1e7b30b19fb1bb30b5a' to '{md5}934241156b5489483dab8018f9cecd22'
> notice: /Stage[2]/Hdp-nagios::Server::Web_permisssions/Hdp::Exec[htpasswd -c -b  /etc/nagios/htpasswd.users
nagiosadmin p]/Exec[htpasswd -c -b  /etc/nagios/htpasswd.users nagiosadmin p]/returns: executed
successfully
> notice: /Stage[2]/Hdp-nagios::Server::Web_permisssions/Hdp::Exec[apache_permissions_htpasswd.users]/Exec[apache_permissions_htpasswd.users]/returns:
executed successfully
> notice: /Stage[2]/Hdp-nagios::Server::Services/Exec[nagios]/returns: nagios is stopped
> notice: /Stage[2]/Hdp-nagios::Server::Services/Exec[nagios]/returns: Configuration validation
failed[FAILED]
> err: /Stage[2]/Hdp-nagios::Server::Services/Exec[nagios]/returns: change from notrun
to 0 failed: service nagios start returned 1 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp-nagios/manifests/server.pp:284
> notice: /Stage[2]/Hdp-nagios::Server::Services/Exec[nagios]/returns: nagios is stopped
> notice: /Stage[2]/Hdp-nagios::Server::Services/Exec[nagios]/returns: Configuration validation
failed[FAILED]
> err: /Stage[2]/Hdp-nagios::Server::Services/Exec[nagios]: Failed to call refresh: service
nagios start returned 1 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp-nagios/manifests/server.pp:284
> notice: /Stage[2]/Hdp-nagios::Server::Services/Anchor[hdp-nagios::server::services::end]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-nagios::Server::Services/Anchor[hdp-nagios::server::services::end]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Anchor[hdp::package::httpd::begin]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Anchor[hdp::package::httpd::begin]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Package[httpd]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Package[httpd]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Anchor[hdp::java::package::httpd::begin]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Anchor[hdp::java::package::httpd::begin]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Exec[mkdir
-p /tmp/HDP-artifacts/ ; curl -kf --retry 10 http://dev01.hortonworks.com:8080/resources//jdk-6u31-linux-x64.bin
-o /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin httpd]: Dependency Exec[nagios] has failures:
true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Exec[mkdir
-p /tmp/HDP-artifacts/ ; curl -kf --retry 10 http://dev01.hortonworks.com:8080/resources//jdk-6u31-linux-x64.bin
-o /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin httpd]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Exec[mkdir
-p /usr/jdk ; chmod +x /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin; cd /usr/jdk ; echo A |
/tmp/HDP-artifacts//jdk-6u31-linux-x64.bin -noregister > /dev/null 2>&1 httpd]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Exec[mkdir
-p /usr/jdk ; chmod +x /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin; cd /usr/jdk ; echo A |
/tmp/HDP-artifacts//jdk-6u31-linux-x64.bin -noregister > /dev/null 2>&1 httpd]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/File[/usr/jdk/jdk1.6.0_31/bin/java
httpd]: Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/File[/usr/jdk/jdk1.6.0_31/bin/java
httpd]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Anchor[hdp::java::package::httpd::end]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Hdp::Java::Package[httpd]/Anchor[hdp::java::package::httpd::end]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Anchor[hdp::package::httpd::end]:
Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Package[httpd]/Hdp::Package::Process_pkg[httpd]/Anchor[hdp::package::httpd::end]:
Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Exec[monitor webserver restart]/Anchor[hdp::exec::monitor
webserver restart::begin]: Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Exec[monitor webserver restart]/Anchor[hdp::exec::monitor
webserver restart::begin]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Exec[monitor webserver restart]/Exec[monitor
webserver restart]: Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Exec[monitor webserver restart]/Exec[monitor
webserver restart]: Skipping because of failed dependencies
> notice: /Stage[2]/Hdp-monitor-webserver/Hdp::Exec[monitor webserver restart]/Anchor[hdp::exec::monitor
webserver restart::end]: Dependency Exec[nagios] has failures: true
> warning: /Stage[2]/Hdp-monitor-webserver/Hdp::Exec[monitor webserver restart]/Anchor[hdp::exec::monitor
webserver restart::end]: Skipping because of failed dependencies
> {code}
> 3) Run checkconfig:
> {code}
> [root@dev02 ~]# /usr/sbin/nagios -v /etc/nagios/nagios.cfg 
> Nagios Core 3.5.0
> Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 03-15-2013
> License: GPL
> Website: http://www.nagios.org
> Reading configuration data...
>    Read main config file okay...
> Processing object config file '/etc/nagios/objects/commands.cfg'...
> Processing object config file '/etc/nagios/objects/contacts.cfg'...
> Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
> Processing object config file '/etc/nagios/objects/templates.cfg'...
> Processing object config file '/etc/nagios/objects/hadoop-hosts.cfg'...
> Processing object config file '/etc/nagios/objects/hadoop-hostgroups.cfg'...
> Processing object config file '/etc/nagios/objects/hadoop-servicegroups.cfg'...
> Processing object config file '/etc/nagios/objects/hadoop-services.cfg'...
> Processing object config file '/etc/nagios/objects/hadoop-commands.cfg'...
> Error: Could not find any servicegroup matching 'MAPREDUCE' (config file '/etc/nagios/objects/hadoop-services.cfg',
starting on line 67)
>    Error processing object config files!
> ***> One or more problems was encountered while processing the config files...
>      Check your configuration file(s) to ensure that they contain valid
>      directives and data defintions.  If you are upgrading from a previous
>      version of Nagios, you should be aware that some variables/definitions
>      may have been removed or modified in this version.  Make sure to read
>      the HTML documentation regarding the config files, as well as the
>      'Whats New' section to find out what has changed.
> [root@dev02 ~]# 
> {code}
> It seems we have invalid condition for generation of MAPREDUCE Nagios checks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message