Hello,
I have a problem with custom performance graphs.
We have a script that retrieves data for s3 usage per tenant, this is working great even if we add new tenants (I found a workaround to update the datasources) but it fails when we delete a tenant with the classic error that X datasources were expected.
I've also transform the graph from single to multiple which generates a rrd file per user but this doesn't look anymore as a graph is more a speedometer graph which doesn't look good.
Do you know if there is a workaround for graphs where datasources are not static?
Thanks!
Problem with custom performance graphs
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Problem with custom performance graphs
Currently there isn't a workaround for this (as much as I'd like one as well). Development would need to rewrite the graphing functionality to support it, we have previously requested this functionality and development is aware of the need. The intention is to have RRDs go away and use a DB for this but development still needs to write that functionality for a future version.
You could write some type of cron job that would check the XML files in /usr/local/nagios/share/perfdata for that "datasources were expected" that would run this on it but nothing exists to do this today and the check may take a loong time depending on how many XML files you have to parse through (one per service):
https://support.nagios.com/kb/article/n ... e-497.html
You could write some type of cron job that would check the XML files in /usr/local/nagios/share/perfdata for that "datasources were expected" that would run this on it but nothing exists to do this today and the check may take a loong time depending on how many XML files you have to parse through (one per service):
https://support.nagios.com/kb/article/n ... e-497.html
-
- Posts: 2
- Joined: Tue Dec 15, 2020 3:04 am
Re: Problem with custom performance graphs
Thanks a lot for the clarification. Yeah, kind of sad that we don't have such a thing already in our hands.
Being honest, when the problem first raised; I followed that document about deleting the datasource but I was not able to make it. I will give it another try then.
Being honest, when the problem first raised; I followed that document about deleting the datasource but I was not able to make it. I will give it another try then.
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Problem with custom performance graphs
Send us the output of all the commands if you have issues again.