Agent functions for SambaShare agent

Online

Edits the samba configuration file and adds the shares.

Offline

Removes the shares from the configuration file.

Monitor

Issues the command smbclient to check if the specified shares exist.

Clean

Terminates all ongoing connections with the particular samba share, removes its entry from the samba configuration file and reloads the configuration.