Alex,
The script provided looks fairly straight forward:
define command {
command_name check_queue_sm
command_line $USER1$/check_queue_sm -H=$HOSTADDRESS$ -P=$ARG1$ -p=$ARG2$ -w=$ARG3$ -c=$ARG4$
}
You'll just need to modify the variables. $USER1$ should be the primary system administrator account for SmarterMail, by default this is 'Admin'
$HOSTADDRESS$ is referring to the host address of your smartermail server, for example mail.domain.com
$ARG1$ appears to be the port used to access the SmarterMail web interface, I'm unaware if this script supports HTTPS calls
$ARG2$ appears to be the password for the systems administrator account
$ARG3$ appears to be the warning limit for Zabbix, if this is set to 200, a warning will be thrown when the spool backs up to 200 messages
$ARG4$ appears to be the critical error limit for Zabbix.
Fully configured the script should resemble the following:
define command {
command_name check_queue_sm
command_line Admin/check_queue_sm -H=mail.smartertools.com -P=PassWordForAdmin -p=80 -w=200 -c=400
}
This appears to be a very primitive script that just tracks the spool count. What you may actually be interested in is a WMI sensor that can monitor file counts and the oldest file in the folder, this way you can set a trigger if any message resides in the spool for longer than X days, hours, minutes, etc. I'm unsure if Zabbix offers this functionality. This functionality does exist in monitoring platforms such as PRTG and SolarWinds.
I hope this helps.