Advertisement
P3ter

shinken-specific.cfg

Oct 17th, 2012
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.16 KB | None | 0 0
  1. define module {
  2.   modules Apache_passwd,ActiveDir_UI,Cfg_password,PNP_UI,Mongodb
  3.   manage_acl 1
  4.   play_sound 0
  5.   host 0.0.0.0
  6.   module_type webui
  7.   allow_html_output 0
  8.   max_output_length 100
  9.   module_name WebUI
  10.   auth_secret CHANGE_ME
  11.   port 7767
  12. }
  13.  
  14. define module {
  15.   username user
  16.   basedn DC=google,DC=com
  17.   module_type ad_webui
  18.   mode ad
  19.   module_name ActiveDir_UI
  20.   password password
  21. }
  22.  
  23. define module {
  24.   username user
  25.   basedn DC=google,DC=com
  26.   module_type openldap_webui
  27.   module_name OpenLDAP_UI
  28.   password password
  29. }
  30.  
  31. define module {
  32.   passwd /usr/local/shinken/etc/htpasswd.users
  33.   module_name Apache_passwd
  34.   module_type passwd_webui
  35. }
  36.  
  37. define module {
  38.   module_name Graphite-Perfdata
  39.   host localhost
  40.   module_type graphite_perfdata
  41.   port 2003
  42. }
  43.  
  44. define module {
  45.   module_name GRAPHITE_UI
  46.   module_type graphite_webui
  47.   uri http://YOURSERVERNAME/
  48.   templates_path /usr/local/shinken/share/templates/graphite/
  49. }
  50.  
  51. define module {
  52.   module_name PNP_UI
  53.   module_type pnp_webui
  54.   uri http://YOURSERVERNAME/pnp4nagios/
  55. }
  56.  
  57. define module {
  58.   synchronise_database_id 0
  59.   database ndo
  60.   prefix nagios_
  61.   port 3306
  62.   host localhost
  63.   module_type ndodb_mysql
  64.   user root
  65.   module_name ToNdodb_Mysql
  66.   password root
  67.   character_set utf8
  68. }
  69.  
  70. define module {
  71.   oracle_home /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
  72.   database XE
  73.   module_type ndodb_oracle
  74.   user system
  75.   module_name ToNdodb_Oracle
  76.   password password
  77. }
  78.  
  79. define module {
  80.   database merlin
  81.   host localhost
  82.   module_type merlindb
  83.   user root
  84.   module_name ToMerlindb_Mysql
  85.   password root
  86.   character_set utf8
  87.   backend mysql
  88. }
  89.  
  90. define module {
  91.   modules logsqlite
  92.   host *
  93.   module_type livestatus
  94.   module_name Livestatus
  95.   port 50000
  96. }
  97.  
  98. define module {
  99.   max_logs_age 3m
  100.   module_name logsqlite
  101.   module_type logstore_sqlite
  102.   database_file /usr/local/shinken/var/livelogs.db
  103. }
  104.  
  105. define module {
  106.   module_name mongologs
  107.   module_type logstore_mongodb
  108.   mongodb_uri mongodb://localhost/?safe=true
  109. }
  110.  
  111. define module {
  112.   module_name nulllogs
  113.   module_type logstore_null
  114. }
  115.  
  116. define module {
  117.   module_name NPCDMOD
  118.   module_type npcdmod
  119.   config_file /usr/local/pnp4nagios/etc/npcd.cfg
  120. }
  121.  
  122. define module {
  123.   password guest
  124.   maxqueuelength 50000
  125.   exchange_name canopsis.events
  126.   host localhost
  127.   module_type canopsis
  128.   user guest
  129.   virtual_host canopsis
  130.   module_name Canopsis
  131.   identifier shinken-1
  132.   port 5672
  133.   queue_dump_frequency 300
  134. }
  135.  
  136. define module {
  137.   module_name MongodbRetention
  138.   module_type mongodb_retention
  139.   uri mongodb://localhost/?safe=true
  140.   database shinken
  141. }
  142.  
  143. define module {
  144.   module_name MemcacheRetention
  145.   module_type memcache_retention
  146.   port 11211
  147.   server 127.0.0.1
  148. }
  149.  
  150. define module {
  151.   module_name RedisRetention
  152.   module_type redis_retention
  153.   server 127.0.0.1
  154. }
  155.  
  156. define module {
  157.   uri http://localhost/glpi/plugins/webservices/xmlrpc.php
  158.   tag
  159.   module_type glpi
  160.   login_password glpi
  161.   module_name GLPI
  162.   login_name glpi
  163. }
  164.  
  165. define module {
  166.   database glpi
  167.   host localhost
  168.   module_type glpidb
  169.   user root
  170.   module_name glpidb
  171.   password root
  172. }
  173.  
  174. define module {
  175.   module_name Mongodb
  176.   module_type mongodb
  177.   uri mongodb://localhost/?safe=true
  178.   database shinken
  179. }
  180.  
  181. define module {
  182.   module_name SQLitedb
  183.   module_type sqlitedb
  184.   uri /usr/local/shinken/var/webui.db
  185. }
  186.  
  187. define module {
  188.   encryption_method 1
  189.   host *
  190.   module_type nsca_server
  191.   module_name NSCA
  192.   password helloworld
  193.   port 5667
  194. }
  195.  
  196. define module {
  197.   module_name TSCA
  198.   host *
  199.   module_type tsca_server
  200.   port 9090
  201. }
  202.  
  203. define module {
  204.   username anonymous
  205.   host 0.0.0.0
  206.   module_type ws_arbiter
  207.   module_name WS_Arbiter
  208.   port 7760
  209. }
  210.  
  211. define module {
  212.   mapping_file /tmp/vmware_mapping_file.json
  213.   module_type hot_dependencies
  214.   mapping_command_timeout 300
  215.   mapping_command_interval 60
  216.   module_name VMWare_auto_linking
  217.   mapping_command /usr/local/shinken/libexec/link_vmware_host_vm.py -x '/usr/local/shinken/libexec/check_esx3.pl' -V 'vcenter.mydomain.com' -u 'admin' -p 'secret' -r 'lower|nofqdn' -o /tmp/vmware_mapping_file.json
  218. }
  219.  
  220. define module {
  221.   mapping_file /tmp/external_mapping_file.json
  222.   module_type hot_dependencies
  223.   mapping_command_timeout 300
  224.   mapping_command_interval 60
  225.   module_name External_auto_linking
  226.   mapping_command /usr/local/shinken/libexec/external_mapping.py -i /tmp/shinken_flat_mapping -o /tmp/external_mapping_file.json
  227. }
  228.  
  229. define module {
  230.   module_name HackCommandsPollerTag
  231.   module_type hack_commands_poller_tag
  232.   cmd_line_match (.*)check_esx3(.*)
  233.   poller_tag esx3
  234. }
  235.  
  236. define module {
  237.   host_macro_name _poller_tag
  238.   module_name HackPollerTagByMacros
  239.   service_macro_name _poller_tag
  240.   module_type hack_poller_tag_by_macros
  241. }
  242.  
  243. define module {
  244.   reqreactionners SELECT reactionner_name, address, port, spare, realm, manage_sub_realms, modules FROM reactionners
  245.   reqhosts SELECT host_name, alias, realm, address, template AS 'use' FROM hosts
  246.   password pass
  247.   reqservices SELECT host_name, service_description, normal_check_interval, check_command, template AS 'use' FROM services
  248.   reqservicedependencies SELECT host_name, service_description, dependent_host_name, dependent_service_description, execution_failure_criteria, notification_failure_criteria FROM servicedependencies
  249.   database supervision
  250.   reqbrokers SELECT broker_name, address, port, spare, realm, manage_sub_realms, modules FROM brokers
  251.   reqhostdependencies SELECT host_name, dependent_host_name, notification_failure_criteria FROM hostdependencies
  252.   reqpollers SELECT poller_name, address, port, spare, realm, manage_sub_realms, poller_tags, modules FROM pollers
  253.   reqrealms SELECT realm_name, realm_members, `default` FROM realms
  254.   host localhost
  255.   module_type mysql_import
  256.   module_name MySQLImport
  257.   reqcontactgroups SELECT contactgroup_name, members FROM contactgroups
  258.   login root
  259.   reqschedulers SELECT scheduler_name, address, port, spare, realm, modules FROM schedulers
  260.   reqcontacts SELECT contact_name, email, template AS 'use' FROM contacts
  261.   reqreceivers SELECT receiver_name, address, port, spare, realm, manage_sub_realms, modules FROM receivers
  262. }
  263.  
  264. define module {
  265.   value LOCAL
  266.   module_type ip_tag
  267.   ip_range 127.0.0.0/30
  268.   module_name IpTag
  269.   property poller_tag
  270.   method replace
  271. }
  272.  
  273. define module {
  274.   archive_path archives/
  275.   module_name Simple-log
  276.   module_type simple_log
  277.   path nagios.log
  278. }
  279.  
  280. define module {
  281.   status_update_interval 15
  282.   object_cache_file objects.cache
  283.   module_type status_dat
  284.   status_file status.dat
  285.   module_name Status-Dat
  286. }
  287.  
  288. define module {
  289.   module_name Service-Perfdata
  290.   module_type service_perfdata
  291.   path service-perfdata
  292. }
  293.  
  294. define module {
  295.   module_name Host-Perfdata
  296.   module_type host_perfdata
  297.   path host-perfdata
  298. }
  299.  
  300. define module {
  301.   module_name PickleRetention
  302.   module_type pickle_retention_file_generic
  303.   path /tmp/retention.dat
  304. }
  305.  
  306. define module {
  307.   module_name PickleRetentionBroker
  308.   module_type pickle_retention_file_generic
  309.   path /tmp/retention_broker.dat
  310. }
  311.  
  312. define module {
  313.   module_name PickleRetentionArbiter
  314.   module_type pickle_retention_file_generic
  315.   path /tmp/retention_arbiter.dat
  316. }
  317.  
  318. define module {
  319.   module_name NagiosRetention
  320.   module_type nagios_retention_file
  321.   path /tmp/retention-nagios.dat
  322. }
  323.  
  324. define module {
  325.   command_file rw/nagios.cmd
  326.   module_name CommandFile
  327.   module_type named_pipe
  328. }
  329.  
  330. define module {
  331.   module_name NrpeBooster
  332.   module_type nrpe_poller
  333. }
  334.  
  335. define module {
  336.   module_name Syslog
  337.   module_type syslog
  338. }
  339.  
  340. define module {
  341.   module_name Cfg_password
  342.   module_type cfg_password_webui
  343. }
  344.  
  345. define module {
  346.   module_name AndroidSMS
  347.   module_type android_sms
  348. }
  349.  
  350. define poller {
  351.   poller_name poller-1
  352.   data_timeout 120
  353.   timeout 3
  354.   address localhost
  355.   modules
  356.   port 7771
  357.   manage_sub_realms 0
  358.   max_workers 0
  359.   check_interval 60
  360.   polling_interval 1
  361.   realm All
  362.   max_check_attempts 3
  363.   min_workers 0
  364.   processes_by_worker 256
  365. }
  366.  
  367. define realm {
  368.   default 1
  369.   realm_name All
  370. }
  371.  
  372. define reactionner {
  373.   data_timeout 120
  374.   timeout 3
  375.   address localhost
  376.   modules
  377.   reactionner_name reactionner-1
  378.   manage_sub_realms 0
  379.   max_workers 15
  380.   spare 0
  381.   check_interval 60
  382.   polling_interval 1
  383.   realm All
  384.   max_check_attempts 3
  385.   min_workers 1
  386.   port 7769
  387. }
  388.  
  389. define broker {
  390.   broker_name broker-1
  391.   data_timeout 120
  392.   timeout 3
  393.   modules Livestatus, Simple-log, WebUI
  394.   manage_arbiters 1
  395.   manage_sub_realms 1
  396.   spare 0
  397.   check_interval 60
  398.   address localhost
  399.   realm All
  400.   max_check_attempts 3
  401.   port 7772
  402. }
  403.  
  404. define arbiter {
  405.   modules ,PickleRetentionArbiter
  406.   spare 0
  407.   address localhost
  408.   port 7770
  409.   arbiter_name Arbiter-Master
  410. }
  411.  
  412. define scheduler {
  413.   data_timeout 120
  414.   timeout 3
  415.   weight 1
  416.   skip_initial_broks 0
  417.   modules ,PickleRetention
  418.   spare 0
  419.   check_interval 60
  420.   address localhost
  421.   scheduler_name scheduler-1
  422.   max_check_attempts 3
  423.   realm All
  424.   port 7768
  425. }
  426.  
  427. define receiver {
  428.   data_timeout 120
  429.   timeout 3
  430.   direct_routing 0
  431.   modules
  432.   port 7773
  433.   spare 0
  434.   check_interval 60
  435.   address localhost
  436.   realm All
  437.   max_check_attempts 3
  438.   receiver_name receiver-1
  439. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement