Hi!
You can use filter scripts to do advanced filtering. Event SYS_SERVICE_DOWN contains 3 parameters:
1: service name;
2: service object id;
3: service type.
So, for example, if you wish to execute action only for service named "httpd", you can use the following script:
or, in full form
Best regards,
Victor
You can use filter scripts to do advanced filtering. Event SYS_SERVICE_DOWN contains 3 parameters:
1: service name;
2: service object id;
3: service type.
So, for example, if you wish to execute action only for service named "httpd", you can use the following script:
Code Select
$1 == "httpd"
or, in full form
Code Select
sub main()
{
return $1 == "httpd";
}
Best regards,
Victor
(