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..??
I want to add services from command-line interface
I want to add services from command-line interface
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: I want to add services from command-line interface
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
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