Forum Discussion

S_Herdejurgen's avatar
9 years ago

Need way to create VCS group attributes

We have long been able to create new VCS resource attributes using hatype and haattr commands.  We would like to be able to create new group attributes.  In our particular use case, we would like to create a temporary group attribute called SleepMonitor that someone with operator privileges can update.  (similar to the TFrozen group attribute)  We would set SleepMonitor to an integer time() value that specifies when our custom monitoring script will stop ignoring the state of a service group and alert the GroupOwner when something is wrong.  We want this attribute to be temporary so that it doesn't clutter up main.cf or require main.cf to be updated when a user wants to sleep monitoring.  The group attribute UserIntGlobal could work if it wasn't a permanent attribute requiring the VCS configuration to be open to modify it using administrator privileges.

From time to time we come up with other ideas of things we could do that require new group attributes to be created.  Having the ability to create new group attributes would be phenomenal.

-Seann

  • I would just use a dummy resource, so create a resource named something like <sg_name>_attrs of type FileOnOff and then create temporary attributes on resource.  So if you use a consistent naming convention for resource, then you can script updating the attribute for any service group.

     

    Mike

  • I would just use a dummy resource, so create a resource named something like <sg_name>_attrs of type FileOnOff and then create temporary attributes on resource.  So if you use a consistent naming convention for resource, then you can script updating the attribute for any service group.

     

    Mike