Peter Berghold
2013-Jul-22 01:20 UTC
[Puppet Users] wyrie/puppet-nagiosql -- anyone have experience with this module?
I made two decisions this afternoon that are now related to each other. 1. Use more of the modules that exist in the Forge 2. Rebuild my monitoring server As I perused the various modules that help with managing monitoring packages my eyes fell upon a module that reported to be able to manage nagiosql, a setup that I had been planning on migrating my nagios monitoring to. So I installed the module, rebuilt my Debian based (wheezy) server that will be used for monitoring, installed puppet and ran the puppet agent for the first time. Backing up for a second, I noticed that when I installed the wyrie/puppet-nagiosql module it brought with it apache, concat, inifile and mysql as well. So the issue I am seeing may be in any one of the modules. Right now when I run puppet agent on the target host I see: # puppet agent --test Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb Info: Caching catalog for stldmonitor.stl.sharkrivertech.com Info: Applying configuration version ''1374452165'' Notice: /Stage[preamble]/Testsite/Exec[update aptget]/returns: executed successfully Error: Execution of ''/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install apache2-mpm-worker'' returned 100: Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libapache2-mod-php5 : Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or apache2-mpm-itk but it is not going to be installed E: Broken packages Error: /Stage[main]/Apache::Mod::Worker/Package[apache2-mpm-worker]/ensure: change from purged to present failed: Execution of ''/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install apache2-mpm-worker'' returned 100: Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libapache2-mod-php5 : Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or apache2-mpm-itk but it is not going to be installed E: Broken packages Error: Command mysql is missing Error: /Stage[main]/Nagiosql/Mysql::Db[db_nagiosql]/Database[db_nagiosql]/ensure: change from absent to present failed: Command mysql is missing Error: /Stage[main]/Nagiosql/Mysql::Db[db_nagiosql]/Database_user[nagiosql_user@localhost]: Provider mysql is not functional on this host Error: Could not prefetch database_grant provider ''mysql'': Command mysql is missing Notice: /Stage[main]/Nagiosql/Mysql::Db[db_nagiosql]/Database_grant[nagiosql_user@localhost/db_nagiosql]: Dependency Database[db_nagiosql] has failures: true Notice: /Stage[main]/Nagiosql/Mysql::Db[db_nagiosql]/Database_grant[nagiosql_user@localhost/db_nagiosql]: Dependency Database_user[nagiosql_user@localhost] has failures: true Warning: /Stage[main]/Nagiosql/Mysql::Db[db_nagiosql]/Database_grant[nagiosql_user@localhost/db_nagiosql]: Skipping because of failed dependencies Notice: /Stage[main]/Nagiosql/Exec[nagiosql_dbimport]: Dependency Database_user[nagiosql_user@localhost] has failures: true Notice: /Stage[main]/Nagiosql/Exec[nagiosql_dbimport]: Dependency Database[db_nagiosql] has failures: true Warning: /Stage[main]/Nagiosql/Exec[nagiosql_dbimport]: Skipping because of failed dependencies Notice: /Stage[main]/Nagiosql/Exec[nagiosql_sqlsettings]: Dependency Database_user[nagiosql_user@localhost] has failures: true Notice: /Stage[main]/Nagiosql/Exec[nagiosql_sqlsettings]: Dependency Database[db_nagiosql] has failures: true Warning: /Stage[main]/Nagiosql/Exec[nagiosql_sqlsettings]: Skipping because of failed dependencies Notice: /Stage[main]/Nagiosql/File[/var/www/nagiosql/install]: Dependency Database_user[nagiosql_user@localhost] has failures: true Notice: /Stage[main]/Nagiosql/File[/var/www/nagiosql/install]: Dependency Database[db_nagiosql] has failures: true Warning: /Stage[main]/Nagiosql/File[/var/www/nagiosql/install]: Skipping because of failed dependencies Notice: Finished catalog run in 7.70 seconds libapache2-mod-php5, apache2-mpm-prefork and apache2-mpm-itk are all installed so I''m not sure what is being gretzed about here. Mysql has not been installed (client or common) and I have yet to rewind that. I''ve also filed a bug report on this but I figured I''d reach out to the community to see if I''m missing something. -- Peter L. Berghold Salty.Cowdawg@gmail.com http://blog.berghold.net -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.