Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

When using HQApi to create a log track resource the agent log_track plugin isn't enabled

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.5
  • Fix Version/s: 4.6.6
  • Component/s: None
  • Case Links:
    none
  • Regression:
    No

Description

The agent doesn't start tracking the log file until you go into the UI and change the resource. This will init the file tail for the specified log file.

To reproduce

1) set this debug in agent.properties
log4j.logger.org.hyperic.hq.product.LogFileTailPlugin=DEBUG

2) use hqapi.sh:

hqapi.sh resource createService --prototype='FileServer File' --resourceId=<platformId> --name "test log track" path="/path/to/hyperic-hq-agent/log/agent.log" service.log_track.enable=true timeout=30 service.log_track.include="ERROR" service.log_track.level=Error

you should see this in agent.log:

"init file tail"

Activity

Hide
Scott Feldstein added a comment -

fix checked into 4.5.2.x, 4.5.3.x, 4.6.x, 4.6.0.x, 4.6.5.x and master

Show
Scott Feldstein added a comment - fix checked into 4.5.2.x, 4.5.3.x, 4.6.x, 4.6.0.x, 4.6.5.x and master

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    1 year, 49 weeks, 2 days ago