Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_iis with checkmk #5

Open
gh-ttgo opened this issue Mar 11, 2022 · 1 comment
Open

check_iis with checkmk #5

gh-ttgo opened this issue Mar 11, 2022 · 1 comment

Comments

@gh-ttgo
Copy link

gh-ttgo commented Mar 11, 2022

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;;;;");

@TheFlyingCorpse
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants