<commit_before>-module(riak_nagios).
-export([check_riak_up/0, check_repl_server/1, check_repl_client/1]).


check_riak_up() ->
	case length( riak_kv_status:statistics()) > 0 of
		true -> okay("Riak is up");
		_ -> critical("Riak is down")<commit_msg>Verify riak_kv is running in check_riak_up/0 check<commit_after>-module(riak_nagios).
-export([check_riak_up/0, check_repl_server/1, check_repl_client/1]).


check_riak_up() ->
    case lists:member(riak_kv, riak_core_node_watcher:services()) of
		true -> okay("Riak is up");
		_ -> critical("Riak is down")
{'fraction_non_alphanumeric': 0.15053763440860216, 'fraction_numerical': 0.014336917562724014, 'mean_word_length': 5.576470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1160250', 'n_tokens_mistral': 233, 'n_tokens_neox': 224, 'n_words': 38}