check_iis icon indicating copy to clipboard operation
check_iis copied to clipboard

check_iis with checkmk

Open gh-ttgo opened this issue 3 years ago • 1 comments

In order to use the performance counters of check_iis with checkmk's implementation of NRPE ("MRPE"), the performance counters are not allowed to contain spaces. So all site- and app pool names as well as the counter names need to be changed to not contain spaces if anybody wants to use check_iis together with checkmk.

Maybe there is some one out there who has similar issues and was wondering how to solve this, or someone wants to add a flag to create the output in checkmk's MRPE format...

In my installation, I simply used prefix = prefix.Replace(' ', '_'); and manually changed the listPerfData.Add-lines in the PerfCounterAppPools and PerfCounterSites functions e.g. instead of listPerfData.Add(" '" + prefix + "Total Worker Processes Created'=" + total_worker_processes_created.NextValue() + "c;;;;"); I used listPerfData.Add(" '" + prefix + "TotalWorkerProcessesCreated'=" + total_worker_processes_created.NextValue() + "c;;;;");

gh-ttgo avatar Mar 11 '22 12:03 gh-ttgo

I'll gladly accept a PR for this if you make it into an argument

TheFlyingCorpse avatar Mar 15 '22 20:03 TheFlyingCorpse