If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
I would suggest using `smbstatus` or smbtree on the server as a user parameter. Then either parse through a script to get a 1 or 0 value or whatever floats your boat.
Personally, presence of smbd/nmbd isnt a guarantee. At the end of the day, the best way is to have a script to: mount > copy a file > umount. But that is if your pedantic.
I monitor smbd, nmbd and winbindd processes number and memory sum with graphs. I could provide XML template if anyone is interested.
I'm also thinking about getting number of users from /etc/passwd and if it is equal to the number of users from 'getent passwd' then winbind is not working correctly - but this is OK only for Samba servers connected to Active Directory.
Comment