Guest User

Untitled

a guest
Jun 23rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. #Define recursive directory that sync's custom plugins
  2. file { "/usr/local/share/munin-plugins" :
  3. ensure => directory,
  4. source => "puppet:///files/apps/munin/plugins",
  5. recurse => "true",
  6. mode => 755,
  7. }
  8.  
  9. #These plugins work fine
  10. munin::plugin { "mysql_bytes": }
  11. munin::plugin { "mysql_queries": }
  12. munin::plugin { "mysql_slowqueries": }
  13. munin::plugin { "mysql_threads": }
  14. munin::plugin { "mysql_slave_delay": }
  15.  
  16. #This set fails whether defined singularly or in this giant {}
  17. munin::plugin {
  18. mysql_bin_relay_log: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  19. mysql_commands: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  20. mysql_connections: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  21. mysql_files_tables: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  22. mysql_innodb_bpool: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  23. mysql_innodb_bpool_act: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  24. mysql_innodb_insert_buf: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  25. mysql_innodb_io: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  26. mysql_innodb_io_pend: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  27. mysql_innodb_log: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  28. mysql_innodb_rows: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  29. mysql_innodb_semaphores: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  30. mysql_innodb_tnx: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  31. mysql_myisam_indexes: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  32. mysql_network_traffic: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  33. mysql_qcache: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  34. mysql_qcache_mem: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  35. mysql_replication: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  36. mysql_select_types: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  37. mysql_slow: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  38. mysql_sorts: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  39. mysql_table_locks: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/";
  40. mysql_tmp_tables: ensure => "mysql_", script_path => "/usr/local/share/munin-plugins/"; }
  41.  
  42. #Puppet output:
  43.  
  44. [root@gnshard2a ~]# puppetd -tv
  45. info: Loading fact vlan3002_address
  46. info: Loading fact network_address
  47. notice: Ignoring --listen on onetime run
  48. info: Retrieving facts
  49. info: Loading fact vlan3002_address
  50. info: Loading fact network_address
  51. err: Could not retrieve catalog: Invalid parameter 'script_path' for type 'Munin::Plugin' at /etc/puppet/manifests/classes/mysql_server.pp:65 on node gnshard2a.gaggle.net
  52. warning: Not using cache on failed catalog
Add Comment
Please, Sign In to add comment