TheFlyingCorpse / check_iis

A plugin written in C# to monitor IIS Sites and AppPools on the local machine
GNU General Public License v2.0
15 stars 8 forks source link

Key is specified twice and reference issues #4

Open gh-ttgo opened 2 years ago

gh-ttgo commented 2 years ago

The key "M" is specified twice in Program.cs. I changed the line to "N" and observed it to be working. p.Setup<bool>('N', "perfdata-mbytes") .Callback(value => do_perfdata_mbytes = value) .WithDescription("\tArgument used to specify use of Megabytes rather than bytes in perfdata output") .SetDefault(false);

I also had to change the dependentAssembly lines in App.config as follows to get it running: `

  <dependentAssembly>
    <assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.0" />
  </dependentAssembly>
</assemblyBinding>`
TheFlyingCorpse commented 2 years ago

I'll gladly accept a PR to give you the credit