Addition of default username and password in the monitor

This commit is contained in:
Mark Riddoch
2013-07-23 10:02:47 +02:00
parent f559871e7f
commit d536ca1c2c
8 changed files with 103 additions and 30 deletions

View File

@ -114,3 +114,17 @@ monitorAddServer(MONITOR *mon, SERVER *server)
{
mon->module->registerServer(mon->handle, server);
}
/**
* Add a default user to the monitor. This user is used to connect to the
* monitored databases but may be overriden on a per server basis.
*
* @param mon The monitor instance
* @param user The default username to use when connecting
* @param passwd The default password associated to the default user.
*/
void
monitorAddUser(MONITOR *mon, char *user, char *passwd)
{
mon->module->defaultUser(mon->handle, user, passwd);
}