Hi,
does anyone know how to pass parameters to a function?
I'd like to write a single custom function (e.g.: disk_free_space) and pass to it a parameter, in order to use it into different probes using different values:
a) Probe: server_disk_warning
disk_free_space(2000)
b) Probe: server_disk_alert
disk_free_space(500)
In probe a) I would set the limit threshold to 2000 MB, in probe b) to 500.
Does anybody know if that's possible and eventually some sample to share the syntax to use into the function?
TKS.