Problem with custom performance graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
stns-system
Posts: 2
Joined: Tue Dec 15, 2020 3:04 am

Problem with custom performance graphs

Post by stns-system »

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!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problem with custom performance graphs

Post by ssax »

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
stns-system
Posts: 2
Joined: Tue Dec 15, 2020 3:04 am

Re: Problem with custom performance graphs

Post by stns-system »

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problem with custom performance graphs

Post by ssax »

Send us the output of all the commands if you have issues again.