You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
449 B
6 lines
449 B
[validation:savedsearch]
|
|
# Require serverip to be set if snmp action is enabled
|
|
action.snmp = case('action.snmp' != "1", null(), 'action.snmp.param.serverip' == "action.snmp.param.serverip" OR 'action.snmp.param.serverip' == "", "No Server IP specified", 1==1, null())
|
|
|
|
# Verify serverip is good
|
|
action.snmp.param.serverip = validate( match('action.snmp.param.serverip', "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"), "SNMP Server IP is invalid") |