oh gosh, i just work around for this problem since 2 days ago. i revisited this article many times but i was understood the article that u give me. Before i was delete the icinga2.conf
for uncomment and recomment the include_recursive conf.d
& include conf.d/api-users.conf
too.
Here what i did that make the hosts and services back.
-
Delete the
icinga2.conf
onetc/icinga2/icinga2.conf
-
Copy
icinga2.conf.orig
then paste it, then it become toicinga2.conf(copy).orig
-
Rename
icinga2.conf(copy).orig
toicinga2.conf
-
Then run
icinga2 node wizard
, and don’t forget to typen
for
Do you want to disable the inclusion of the conf.d directory [Y/n]:
Many thanks @yhabteab for helping me realize the step.