virtual void read(boost::shared_ptr<nscapi::settings_proxy> proxy, bool oneliner, bool is_sample) { parent::read(proxy, oneliner, is_sample); nscapi::settings_helper::settings_registry settings(proxy); nscapi::settings_helper::path_extension root_path = settings.path(get_path()); if (is_sample) root_path.set_sample(); add_ssl_keys(root_path); root_path.add_key() ("payload length", sh::int_fun_key<int>(boost::bind(&parent::set_property_int, this, "payload length", _1), 512), "PAYLOAD LENGTH", "Length of payload to/from the NRPE agent. This is a hard specific value so you have to \"configure\" (read recompile) your NRPE agent to use the same value for it to work.", true) ("encryption", sh::string_fun_key<std::string>(boost::bind(&parent::set_property_string, this, "encryption", _1), "aes"), "ENCRYPTION", std::string("Name of encryption algorithm to use.\nHas to be the same as your server i using or it wont work at all." "This is also independent of SSL and generally used instead of SSL.\nAvailable encryption algorithms are:\n") + nscp::encryption::helpers::get_crypto_string("\n")) ("password", sh::string_fun_key<std::string>(boost::bind(&parent::set_property_string, this, "password", _1), ""), "PASSWORD", "The password to use. Again has to be the same as the server or it wont work at all.") ("encoding", sh::string_fun_key<std::string>(boost::bind(&parent::set_property_string, this, "encoding", _1), ""), "ENCODING", "", true) ("time offset", sh::string_fun_key<std::string>(boost::bind(&parent::set_property_string, this, "delay", _1), "0"), "TIME OFFSET", "Time offset.", true) ; settings.register_all(); settings.notify(); }
virtual void read(boost::shared_ptr<nscapi::settings_proxy> proxy, bool oneliner, bool is_sample) { parent::read(proxy, oneliner, is_sample); nscapi::settings_helper::settings_registry settings(proxy); nscapi::settings_helper::path_extension root_path = settings.path(this->path); if (is_sample) root_path.set_sample(); add_ssl_keys(root_path); }