Sni-pnp-database not connecting with pnp4nagios

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?

  • click on save and test on sni-pnp-database

  • How are you trying to achieve it?
    configuring url to https://xx.xxx.xxx.xx:xxxx/pnp4nagios
    selecting Basic Auth
    entered user and password
    skip TLS verify

  • What happened?
    Datasource not connected
    400 Bad request

  • What did you expect to happen?
    connect successfully

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    grafana.log Authentication to data source failed 401 Unauthorized
    This serve could not verify that you are authorized t access the document requested. Either you supplied the wrong credentials (e.g. bad password) or your browser doesn’t understand to supply the credentials required.

“request Completed” method=GET path=/api/datasources/proxy/uid/xxxxxxx/index.php/api

It is important to note that a curl with the associated userid and password works perfectly and return a response as expected.

  • Did you follow any online instructions? If so, what is the URL?
    All instructions were followed from both the nagios pnp4 nagios install and I can get all the metrics displayed correctly when I attempt to view through a browser.

Here are the directions I used
Nagios Core - Using Grafana With PNP4Nagios

Nagios Core - Performance Graphs Using PNP4Nagios

PNP plugin for Grafana | Grafana Labs

Any help appreciated. No matter what parameters I put in the plugin I cannot get the datasource to save and test
I am using sni-pnp-datasource-2.1.0