# Postfix Monitoring With Mailgraph And pflogsumm

# openvz_template_add($session_id, $client_id, $params);

Description:

Adds a new openvz template.

Input Variables:

$session_id, $client_id, $params

Parameters (in $params):

template_name (varchar(255))

diskspace (int(11))

traffic (int(11))

bandwidth (int(11))

ram (int(11))

ram_burst (int(11))

cpu_units (int(11))

cpu_num (int(11))

cpu_limit (int(11))

io_priority (int(11))

active (varchar(255))

description (text)

numproc (varchar(255))

numtcpsock (varchar(255))

numothersock (varchar(255))

vmguarpages (varchar(255))

kmemsize (varchar(255))

tcpsndbuf (varchar(255))

tcprcvbuf (varchar(255))

othersockbuf (varchar(255))

dgramrcvbuf (varchar(255))

oomguarpages (varchar(255))

privvmpages (varchar(255))

lockedpages (varchar(255))

shmpages (varchar(255))

physpages (varchar(255))

numfile (varchar(255))

avnumproc (varchar(255))

numflock (varchar(255))

numpty (varchar(255))

numsiginfo (varchar(255))

dcachesize (varchar(255))

numiptent (varchar(255))

swappages (varchar(255))

hostname (varchar(255))

nameserver (varchar(255))

create_dns (varchar(1))

capability (varchar(255))

Output:

Returns the ID of the newly added openvz template.