Error activating Graphite on new icinga2 install

ubuntu
icinga2

(Thor Hammer Time) #1

I built a new ubuntu machine to show off icinga as an alternative to our current monitoring option. One requirement is “pretty graphs” which is why I wanted to use the graphite module.

While following the instructions I altered “/etc/icinga2/features-enabled/graphite.conf”, after restarting icinga2 I get this error:

Jan 09 13:11:52 uicx02p icinga2[9908]: [2019-01-09 13:11:52 -0500] critical/config: Error: Object 'graphite' of type 'GraphiteWriter' re-defined: in /etc/icinga2/features-enabled/graphite.conf:
Jan 09 13:11:52 uicx02p icinga2[9908]: Location: in /etc/icinga2/features-enabled/graphite.conf: 3:1-3:32
Jan 09 13:11:52 uicx02p icinga2[9908]: /etc/icinga2/features-enabled/graphite.conf(1): library "perfdata"
Jan 09 13:11:52 uicx02p icinga2[9908]: /etc/icinga2/features-enabled/graphite.conf(2):
Jan 09 13:11:52 uicx02p icinga2[9908]: /etc/icinga2/features-enabled/graphite.conf(3): object GraphiteWriter "graphite" {
Jan 09 13:11:52 uicx02p icinga2[9908]:                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 09 13:11:52 uicx02p icinga2[9908]: /etc/icinga2/features-enabled/graphite.conf(4):   host = "192.0.2.42"
Jan 09 13:11:52 uicx02p icinga2[9908]: /etc/icinga2/features-enabled/graphite.conf(5):   port = 2003
Jan 09 13:11:52 uicx02p systemd[1]: icinga2.service: Main process exited, code=exited, status=1/FAILURE
Jan 09 13:11:52 uicx02p systemd[1]: Failed to start Icinga host/service/network monitoring system.

(Thor Hammer Time) #2

I removed “graphite” from graphite.conf and this appears to have cleared the error.