Page 1 of 1

I want to add services from command-line interface

Posted: Thu May 04, 2017 5:28 pm
by kalyan
Hi guys,

I am using Nagios XI. I want to add new windows hosts and it's service definitions. I am able to add services from GUI mode (from browser) and command-line mode (from putty). Here, If I added any new hosts or services from command-line mode, Its not showing in GUI mode. My one of colleague is not aware in Unix. so, If I edit through commandline, He is getting difficult to edit host or service definitions. some images attached here for your reference. Is there any solution..??

Re: I want to add services from command-line interface

Posted: Fri May 05, 2017 9:09 am
by dwhitfield
It is possible to edit from command line, but not like you are doing it.

You'll either need to use the /usr/local/nagios/etc/static directory or use the API. The documentation on adding services through the API can be found at http://YOURSERVER/nagiosxi/help/api-con ... erence.php. Full API documentation is at http://192.168.4.156/nagiosxi/help/api.php