Graphite give The requested URL returned error: 404 Not Found

after configure graphite module i got the following error for each service check
“The requested URL returned error: 404 Not Found”

also i got error “icinga2: Can’t send external Icinga command to the local command file “/var/run/icinga2/cmd/icinga2.cmd”: Permission denied.”

for your information :
/etc/icingaweb2/modules/graphite/config.ini
[graphite]
url = “http://public_IP”
user = “admin”
password = “xxxxx”
insecure = “0”

/etc/icinga2/features-enabled/graphite.conf
/**
* The GraphiteWriter type writes check result metrics and
* performance data to a graphite tcp socket.
*/

object GraphiteWriter "graphite" {
  host = "public_IP"
  port = 2003
  } 

please advice what missing permissions in this situation ?

I have the same Error, I’m installing graphite for the first time with IcingaWeb2 2.8, and php7.4.

At first, I had other error:
Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed ‘CURLOPT_SSL_VERIFYPEER’ (this will throw an Error in a future version of PHP)

I fixed it enabling php7.4 instead of php7.2 in apache, but now I have the commented error 404 Not Found.

any suggestion?

Hi whether the Graphite Web URL is accessible by your machine ?

for this - also i got error “icinga2: Can’t send external Icinga command to the local command file “/var/run/icinga2/cmd/icinga2.cmd”: Permission denied.”

Can you please show us the output of icinga2 feature list and ls -l /var/run/icinga2/cmd ?

1 Like

I realized that NOT, I can’t access to graphite, it is a new installation so probably first I need to configure properly all graphite stack, which is quite complicated,

thank you.