For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

aj1's avatar
aj1
Icon for Nimbostratus rankNimbostratus
Jan 15, 2015

Assign a monitor to an already existing node using iControl

Hello everyone,

I am using the python bigsuds iControl library. I have created a couple of nodes and now trying to assign a monitor to them. Looked at the API reference but it throws the same error overtime. I am not sure what it is expecting in "type".

>>> c.LocalLB.NodeAddressV2.set_monitor_rule(['node1'],['MONITOR_RULE_TYPE_SINGLE', 0L, ['icmp']])
Traceback (most recent call last):
  File "", line 1, in 
  File "build/bdist.macosx-10.10-intel/egg/bigsuds.py", line 412, in wrapped_method
  File "build/bdist.macosx-10.10-intel/egg/bigsuds.py", line 472, in process
  File "build/bdist.macosx-10.10-intel/egg/bigsuds.py", line 478, in _process_args
  File "build/bdist.macosx-10.10-intel/egg/bigsuds.py", line 540, in _process_arg
  File "build/bdist.macosx-10.10-intel/egg/bigsuds.py", line 559, in _process_arg
bigsuds.ArgumentError: "MONITOR_RULE_TYPE_SINGLE" is not a valid value for LocalLB.MonitorRule, expecting: type, quorum, monitor_templates

Also, i think i have to use the set_default_node_monitor after this. Has anyone been in a similar situation. Would really appreciate any help.

Thanks!

1 Reply

  • Shouldn't this;

    ...['MONITOR_RULE_TYPE_SINGLE', 0L, ['icmp']])
    

    Look like this;

    ...['MONITOR_RULE_TYPE_SINGLE', '0L', 'icmp'])
    

    I assume the quorum value can be any old rubbish