Iristyle / PerfTap

A Windows PerfMon monitoring service that pushes data to a graphite server
MIT License
123 stars 32 forks source link

Service don't start if format is defined in configuration file #1

Open DanielLuning opened 12 years ago

DanielLuning commented 12 years ago

I tried to add the format setting to PerfTap configuration file but with it the service refuses to start. I have done a manual installation, also tried to use the Local Installation Script with config parameters but that doesn't work either.

Iristyle commented 12 years ago

Interesting -- will try and check this out soon. Thanks for the report.

singhman13 commented 12 years ago

I can confirm the same. By default it seems PerfTap is sending in statsite formatted data and I am trying to change it to StatsD format for use with bucky/graphite.

Service cannot be started. System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'format'. Note that attribute names are case-sensitive. (C:\...\PerfTap\PerfTap.WindowsServiceHost.exe.Config line 24)
   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requ...

Using the 0.1.1 package from the downloads page.

I'm using the following XML configuration:

  <perfTapPublishing prefixKey="perftap"
                     port="8125"
                     server="perftap"
                     Key="StatsD"
    />
Iristyle commented 12 years ago

Ok -- thanks for the follow-up guys. I will try to look at this today.

singhman13 commented 12 years ago

Did you have any luck?

fonziesherman commented 12 years ago

I have the same issue starting the service but it complains about hostname:

Service cannot be started. System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'hostName'. Note that attribute names are case-sensitive. (C:\Program Files\PerfTap\PerfTap.WindowsServiceHost.exe.Config line 23)

<perfTapPublishing prefixKey="PerfTap" port="8125" hostName="qalog" format="StatsD" />

This will be a great utility when it works for me, thanks for your effort!

Iristyle commented 12 years ago

Yeah, I realized that I updated the readme docs, but failed to update the actual code yet... I will let you know as soon as I get this straightened out. I just returned from vacation, but it's high on my agenda.

mathiear commented 11 years ago

Hi,

I still have the same issue... did you manage to find the time to update the actual code ?

tomcooley commented 11 years ago

Also having this issue. Any word on an ETA for the fix?

tomcooley commented 11 years ago

I have fixed this issue for myself locally and have a pull request pending so that my changes can be available to others.

mathiear commented 11 years ago

Hi Tom,

Any chance you could post your fix here while we wait for the pending request?

Cheers,

Arnaud

gardart commented 11 years ago

Hi

Has this bug been fixed ? I was trying this out today but ran into this problem too.

Best regards

Gardar

Iristyle commented 11 years ago

Man.. 10 months.

Sorry guys... this project has been in a bit of neglect mode here, since I've been tied up with a ton of other stuff.

If someone wants to send a PR fixing this I would take a look and ship a new version.

The next step for this project was to integrate NanoTube and yank out any of the network client code, relying on that library instead.

francoisbouchard commented 11 years ago

Having the same issue after default install... System.ConfigurationErrorsException: unrecognized attribute 'hostname'. Note that attribute names are case-sensitive. (C:\Program Files\PerfTap\PerfTap\WindowsServiceHost.exe.Config line 18)

Would be nice to get this working - Thank you