Monday 26 September 2011

Check_MK clustered services

The documentation for check is old!
Following the clustered services docs won't work, so what you have to do is this:

1/ Define your clusters in main.mk, Don't define it in a separate clustered_services.mk file
2/ Define clusters like so:

clusters.update({
'lon-stasql02.vm.prod|win|mssql': ['lon-sta02a.vm.prod','lon-sta02b.vm.prod'],
})

3/ Defline clustered services like so:
clustered_services_of ['lon-stasql02.vm.prod'] = [( ALL_HOSTS,[ 'fs_D:/', 'fs_E:/','fs_F:/','fs_G:/','fs_H:/','fs_I:/','fs_J:/','fs_K:/','fs_L:/','fs_M:/','fs_N:/','fs_O:/','fs_P:/','fs_Q:/','fs_X:/','fs_Y:/','fs_Z:/', 'proc_SQL Agent', 'service_MSSQLSERVER']),]

4/ Then when inventorying, you MUST inventory all nodes in one shot, otherwise it will not add them to the cluster.

check_mk -uII lon-sta02a.vm.pro lon-sta02b.vm.prod
check_mk -O

5/ Note that this must all be defined in your main.mk
Done!

2 comments:

  1. Thanks for the article. Can you specify which version of Check_MK does this pertain to?

    ReplyDelete
    Replies
    1. This was working for at least v1.0.9 (if I remember correctly), am currently running 1.1.9

      Delete