API Call using Alias

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elealyngarcia
Posts: 18
Joined: Sun Apr 28, 2019 6:09 pm

API Call using Alias

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API Call using Alias

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked