Forum Discussion

spirrello_22970's avatar
spirrello_22970
Icon for Nimbostratus rankNimbostratus
Mar 08, 2016

Assign Monitor to Node

Hi,

 

I'm trying to assign a monitor to a node via Python with bigsuds. I've seen other postings with no solution, can someone please help?

 

lb_obj.LocalLB.NodeAddressV2.set_monitor_rule(['SVR1-192.168.2.250'],['MONITOR_RULE_TYPE_SINGLE', 0, ['icmp']]) Traceback (most recent call last):

 

Error message:

 

bigsuds.ArgumentError: "MONITOR_RULE_TYPE_SINGLE" is not a valid value for LocalLB.MonitorRule, expecting: type, quorum, monitor_templates