Is it possible (and how) to filter a specific sensor from a specific group in a custom report? I'm trying to get a top 10 from the cpuloadsensor but just for group "hosted". My custom report is based on the stats loop hilo
Below is what I have now, but it doesn't show what I want.
<div><#report type="statstable" filter="filter_tags=@tag(%2bhosted,%2bcpuloadsensor)" columns="device,sensor,average,minimum,maximum" count="10" avg="3600" sortby="-average" showposition="true" clgid="<@clgid>"></div>
Can anyone help me out? Thanks
Article Comments
Ola, Nope, that doesn't work for me. It seems that it does an OR statement. So it will show a top 10 of systems in the hosted group with forinstance a PING sensor and also systems in another group with the cpuloadsensor. I'm trying to get the top 10 systems in the hosted group with the highest cpuload.
Any other suggestions? Thanks a lot!
Jun, 2017 - Permalink
I found the solution. By setting up the rapport, I add the sensors by tag that I want to report on (cpuloadsensor, memorysensor, diskspacesensor, etc.) Then in the custom code I put the filter like below:
filter="filter_tags=@tag(hosted,-cpuloadsensor,-diskspacesensor)"
In this example I get all the memorysensor output for each device in the hosted group.
Jun, 2017 - Permalink
Hi there,
Great that it is working now and thank your for sharing the solution. :)
Best regards.
Jun, 2017 - Permalink
Hi there,
You are currently using the following filter:
Please remove the plus signs (%2b), so it should look like:
Does that work for you?
May, 2017 - Permalink