API Call using Alias
Posted: Wed Nov 27, 2019 9:20 pm
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?
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?