You could try parsing the output of icinga2 object list It lists all objects with the files where something was defined - by grepping after the name of the file in question you might be able to restore it. (if it wasn't too big)
good luck with that! Am 29.06.2016 um 01:32 schrieb Michael Martinez: > Hi, > > I'm running Icinga2. I was editing one of my config files > (template/service definitions, etc) and something got messed up and I > blew away the file by accident. And, of course, I don't have a backup > because I'm stupid. > > But Icinga is still running with the old, good working copy of the > file. is there a way I can recover the file from my running instance? > Maybe it keeps a cache of the file somewhere on the filesystem? Or is > there a command I can issue to icinga to make it dump it's > configuration? > -- Klaus Muth Hagos eG EDV Tel: 0711/78805-7085 Zentrale Stuttgart Industriestr. 62 Fax: 0711/78805-7035 http://www.hagos.de 70565 Stuttgart m...@hagos.de Hagos eG Sitz: Stuttgart Rechtsform: Genossenschaft Registergericht: Stuttgart GnR 77 Vorstände: Guido Eichel, Ralf Tigges Aufsichtsratsvorsitzender: Thomas Müller USt.-ID-Nr.: DE 147799748 _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users