This template retrieves the status of a Samba server.
Prerequisites: SSH and Perl installed on the target server. SNMP installed on the target server and permission to monitor smbd, nmbd, winbindd processes.
Credentials: Root credentials on the target server.
Monitored Components
Process: smbd
This monitor returns CPU and memory usage of smbd. It provides SMB/CIFS services to clients.
Process: nmbd
This monitor returns CPU and memory usage of nmbd. This is NetBIOS name server which provides NetBIOS over IP naming services to clients.
Process: winbindd
This monitor returns CPU and memory usage of nmbd. This is Name Service Switch daemon which resolves names from NT servers.
Note: This monitor is disabled by default
TCP Port: NetBIOS Session
This component monitor tests the ability of a NetBIOS Session to accept incoming sessions. It monitors TCP port 139.
TCP Port: SMB Over TCP
This component monitor tests the ability of a SMB over TCP to accept incoming sessions. It monitors TCP port 445.
TCP Port: Kerberos
This component monitor tests the ability of a Kerberos to accept incoming sessions. It monitors TCP port 88.
Note: This monitor is disabled by default
TCP Port: DCE/RPC Locator Service
This component monitor tests the ability of a DCE/RPC Locator Service to accept incoming sessions. It monitors TCP port 135.
Note: This monitor is disabled by default
TCP Port: LDAP
This component monitor tests the ability of a LDAP to accept incoming sessions. It monitors TCP port 389.
Note: This monitor is disabled by default
TCP Port: Global Catalog
This component monitor tests the ability of a Global Catalog to accept incoming sessions. It monitors TCP port 3268.
Note: This monitor is disabled by default
TCP Port: Global Catalog SSL
This component monitor tests the ability of a Global Catalog SSL to accept incoming sessions. It monitors TCP port 3269.
Note: This monitor is disabled by default
Active Connections
This monitor returns current number of active connections to Samba.
Note: This monitor requires the following argument:
perl ${SCRIPT} smbstatus_cmd
where
smbstatus_cmd - This is full path to the smbstatus command.
Below is an example using the Scripts Arguments field:
perl ${SCRIPT} /usr/bin/smbstatus
Shared folder size (MB)
This monitor returns specific shared folder size in MB.
Note: This monitor is disabled by default
Note: This monitor requires the following argument:
perl ${SCRIPT} shared_folder
where
shared_folder - This is full path to the shared folder.
Below is an example using the Scripts Arguments field:
perl ${SCRIPT} /home/samba
Portions of this template are based on the following articles: http://wiki.samba.org/index.php/Samba_port_usage, https://www.samba.org/samba/docs/man/manpages/.
Last updated: 7/2/2014