Skip to main content

Windows File Share (SMB/CIFS)

Checks the contents of a Windows / CIFS file share for size, age and count.

See Folder for a full description.

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: smb-check
spec:
interval: 30
folder:
- path: smb:\\192.168.1.9\Some Public Folder\somedir
name: sample smb check
smbConnection:
username:
valueFrom:
secretKeyRef:
name: smb-credentials
key: USERNAME
password:
valueFrom:
secretKeyRef:
name: smb-credentials
key: PASSWORD
minAge: 10h
FieldDescriptionSchemeRequired
nameName of the checkstringYes
pathA path to a shared windows folder e.g. smb://host/folderstringYes
smbConnectionSMB connection detailsSMB
*All other fields available in the folder checkFolder
FieldDescriptionScheme
host

The SMB host

string

port

integer

domain

Windows Domain

string

username

EnvVar

password

EnvVar