New service graphs are not automatically generated

Hi,

I am using the latest icinga2 and icingaweb2 at ubuntu 20.04 LTS. I´ve set up a speed test service with centreon plugins:

object CheckCommand "centreon-speedtest" {
   import "plugin-check-command"

   command = [ "/home/nagios/centreon-plugins/centreon_plugins.pl" ]
   arguments = {
        "--plugin" = "apps::monitoring::speedtest::plugin"
        "--mode" = "internet-bandwidth"
        "--warning-bandwidth-download" = "$warn_download$"
        "--critical-bandwidth-download" = "$crit_download$"
        "--warning-bandwidth-upload" = "$warn_upload$"
        "--critical-bandwidth-upload" = "$crit_upload$"
        "--range-perfdata" = "1"
        "--filter-uom" = "ms"
        }
}

This service check has generated a single graphite graph for the ping time, but not for upload or download speed, although the perfdata values look fine:

perl centreon_plugins.pl --plugin=apps::monitoring::speedtest::plugin --mode=internet-bandwidth --filter-uom=ms
OK: speedtest ping time: 12 ms, download: 70.38 Mb/s, upload: 59.74 Mb/s | 'ping.time.milliseconds'=12.738ms;;;0; 'internet.bandwidth.download.bitspersecond'=70378258;;;0; 'internet.bandwidth.upload.bitspersecond'=59736763;;;0;

The service is implemented at /etc/icinga2/conf.d/services as it is added to the main node of icinga2:

apply Service "speed-test" {
    import "speedtest-service"
    vars.warn_download = "20:"
    vars.crit_download = "15:"
    vars.warn_upload = "25:"
    vars.crit_upload = "20:"
    check_command = "centreon-speedtest"
  assign where host.name == NodeName
}

I don´t know what causes the problem. Has anyone a hint?

I looked a little further: the whisper files exists, also I´ve found the graphs at graphite itself. I don´t know why icingaweb2 doesn´t recognize these graphs.

hi ben,

have you made progress on your problem? I have exactly the same problem.

no graph in icinga but data in graphite for centreon_plugins.pl

thanks

No, I´ve no idea, what could be wrong :frowning:

1 Like

Hi.

I have created a dummy service which justs outputs your performance data.

The following happened:

  1. No graphs were displayed in icingaweb2
  2. Graphs existed in the graphite-browser

This was a bit confusing.

So I changed the labels for the performance-data to one-worded values (without dots) and all graphs were displayed almost instantly.

I don’t have an idea what the reason for this is, maybe some sort of sub-pathing “thing”.

Maybe this helps you in some way.
It could be a possibility to wrap the output and change the labels if nothing else works.

Greetings,
Homerjay