PDA

View Full Version : Zabbix & Samba


Honey
18-01-2006, 14:01
How can I add monitoring at the service level, say I want to monitor a Samba server, what parameters need to be set.

Thanks,
Honey

cameronsto
18-01-2006, 16:47
What specifically are you wanting to monitor?

-cameron

Honey
19-01-2006, 11:32
I would like to monitor whether Samba service is up.

Thanks,
Honey

cameronsto
19-01-2006, 16:22
You could use the proc.num item to determine the number of smb processes running. See here, http://www.zabbix.com/manual/v1.1/config_items.php

-cameron

edeus
20-01-2006, 00:18
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.

jsosic
09-04-2012, 16:04
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.

More ideas are welcome.