On 22/01/2019 21:11, Xavier Humbert wrote: > On 22/01/2019 18:00, Ivo Kidze wrote: >> Hi Xavier, >> >> Try the following as system sudo user or system root user >> >> 1. ICINGA2_API_PASSWORD=api_user_password icinga2 console --connect >> 'https://api_user@localhost:5665/' >> 2. s = >> get_service("hostname","icinga_internal_servicename").last_check_result.command >> 3. s >> >> Post your result if you can't see what is wrong. >> >> Kind Regards, >> Ivo Kidze [...] >> Thanks Ivo, I'll take look tomorrow >> >> Regards, >> >> Xavier
OK, tried your command : ICINGA2_API_PASSWORD=xxxxxxxxxxxxx icinga2 console --connect 'https://root@localhost:5665/' Icinga 2 (version: r2.10.2-1) Type $help to view available commands. <1> => s = get_service("hostname","icinga_internal_servicename").last_check_result.command null <2> => s null Thanks for your help -- Xavier Humbert CRT Supervision et Exploitation de Niveau 1 Rectorat de Nancy-Metz 03 83 86 27 39
signature.asc
Description: OpenPGP digital signature
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users