[SOLVED] grafana graphs error Database not reachable or empty result #465
-
So it took me some time to recall how to even switch from the (default) pnp4nagios/rrdcache to grafana/influxdb arrangement. As a note to others trying to do this, probably the best route is to shutdown omd and run "omd config," select "Addons," and then disable PNP4NAGIOS and enable GRAFANA and INFLUXDB. Save and exit "omd" and then restart omd. The problem is that I don't actually see graphs, at least not right away. I get an error "Database not reachable or empty result." (This error comes up other queries, such as on the WWW, but none seem to answer the question.) When I restarted omd, it did indeed indicate that influxdb was setting up the database for the first time, so I figured all is well. I am thinking that either I have forgotten a step, or I just need to wait until the system has gathered enough data points to begin making graphs. If it is the latter, maybe a message more indicative of the situation (as a reminder to those of us not familiar with omd innards) could be given, because at this point, it would seem the database really does exist and is (or should be) reachable. I hope I am not expecting too much of a solution such as OMD, which I am liking very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Heheheh. Stupid me. In my perfdata, I had used all semicolons. (e.g., XYZ;1;2;3;4;5) The problem is that the first item in the list is the name of the data; the rest of the data must be separated by an equals sign, not semicolons. (e.g., XYZ=1;2;3;4;5) Once I fixed that, all was good again. (I had been refactoring a lot of code, so I must have overlooked this detail.) |
Beta Was this translation helpful? Give feedback.
Heheheh. Stupid me.
In my perfdata, I had used all semicolons. (e.g., XYZ;1;2;3;4;5) The problem is that the first item in the list is the name of the data; the rest of the data must be separated by an equals sign, not semicolons. (e.g., XYZ=1;2;3;4;5) Once I fixed that, all was good again. (I had been refactoring a lot of code, so I must have overlooked this detail.)