Page 1 of 1

API Call using Alias

Posted: Wed Nov 27, 2019 9:20 pm
by elealyngarcia
Hi
We are trying to have an automation in NagiosXI using API, when we try to use the server alias, we have this error

==> /usr/local/nagios/var/nagios.log <==
[1574907199] Error: External command failed -> SCHEDULE_HOST_DOWNTIME;lnpnprcobuc001v;1574907198;1606443198;1;0;0;
[1574907199] External command error: Command failed
[1574907199] Error: External command failed -> SCHEDULE_HOST_SVC_DOWNTIME;lnpnprcobuc001v;1574907198;1606443198;1;0;0;
[1574907199] External command error: Command failed


But when using the server name, it pushes through. So Alias can not be used for any of the API call?

Re: API Call using Alias

Posted: Mon Dec 02, 2019 8:40 am
by scottwilkerson
elealyngarcia wrote: But when using the server name, it pushes through. So Alias can not be used for any of the API call?
No they cannot, you must use the host_name