Adding custom graph (graphite)

  • Is it possible to add custom graphs to icingaweb/graphite? For example: when using the command check_http you can also check the content:

    Code
    1. /usr/lib/nagios/plugins/check_http -I x.x.x.x -p 80 -u /some/substring -s \"string\":999 -v


    By default check_http shows graph for time and size.



    Lets assume the content of the check contains a string with a value: String:999.

    So is it possible to save this value (999) and add a graph to see how this value has changed in the past?

  • You'd need to modify the plugin's returned performance data (or write your own plugin which returns just that). Ensure that the plugin api's requirements are met and then the GraphiteWriter feature in Icinga 2 will parse the plugin's performance data and forward them to Carbon-Cache (where Graphite Web reads from and as such is integrated into Icinga Web 2).


    https://docs.icinga.com/icinga…ice-monitoring-plugin-api