Hi Alex I first created the user in the /usr/local/icinga/etc/htpasswd.users file. Afterwards I've added the new user to the same sections as icingaadmin in the /usr/local/icinga/etc/cgi.cfg file.
I'm able to authenticate the user at first but when clicking on Host Detail etc, it wants the same credentials. Is there a way I can avoid this as it can become quite annoying. Kind Regards Conan van Staden Network Support Email: [email protected] | Tel: 021 201 0220 | Fax: 0866 503 691 5 Aska House, Marconi Road, Montague Gardens, Cape Town, 7405 Visit our web: www.sonicwireless.co.za -----Original Message----- From: icinga-users [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, November 11, 2015 1:00 PM To: [email protected] Subject: icinga-users Digest, Vol 23, Issue 20 Send icinga-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.icinga.org/mailman/listinfo/icinga-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of icinga-users digest..." Today's Topics: 1. Re: Icinga Classic Authentication Issue (Alexander Wirt) 2. Icinga2 - Ansible - Vagrant (Luc Stroobant) 3. Re: Icinga2 - Ansible - Vagrant (Michael Friedrich) 4. Question about icinga2 api dynamically added hosts and hostgroups (Madhusmita Gochhait) 5. Re: Question about icinga2 api dynamically added hosts and hostgroups (Gunnar Beutner) ---------------------------------------------------------------------- Message: 1 Date: Tue, 10 Nov 2015 14:39:44 +0100 From: Alexander Wirt <[email protected]> To: Icinga User's Corner <[email protected]> Subject: Re: [icinga-users] Icinga Classic Authentication Issue Message-ID: <[email protected]> Content-Type: text/plain; charset=us-ascii On Tue, 10 Nov 2015, Conan Van Staden wrote: > Hi All > > > > I have recently granted another user access in the > /usr/local/icinga/etc/cgi.cfg file. > > > > I am able to successfully log in with the relevant username and > password but when clicking on e.g Host Detail, I keep on receiving the following: Unless you are left something out in the description you forgot to add the user to the htpasswd file. Alex ------------------------------ Message: 2 Date: Tue, 10 Nov 2015 20:17:57 +0100 From: Luc Stroobant <[email protected]> To: [email protected] Subject: [icinga-users] Icinga2 - Ansible - Vagrant Message-ID: <[email protected]> Content-Type: text/plain; charset=iso-8859-15; format=flowed Icinga has some Ansible examples on their github, but I didn't find them very useful. It's most of the time only a basic installation and you still have to execute manual steps to finish the installation. So I spent some time to automate the full installation of an Icinga2 master, the Icinga classic ui and Icingaweb2. The playbook also installs Icinga2 on another "monitored" boxs and configures it in the master. I really like Icinga and thought it was a good opportunity to share something with the community, so I cleaned up the code and pushed it to github: <https://github.com/stroobl/icinga2-ansible-vagrant> Feel free to try or to reuse the code if you want to deploy Icinga2. Questions, comments, pull request etc welcome. :) Luc ------------------------------ Message: 3 Date: Tue, 10 Nov 2015 19:54:19 +0000 From: Michael Friedrich <[email protected]> To: "[email protected]" <[email protected]> Cc: Valentino Gagliardi <[email protected]> Subject: Re: [icinga-users] Icinga2 - Ansible - Vagrant Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" > On 10 Nov 2015, at 20:17, Luc Stroobant <[email protected]> wrote: > > Icinga has some Ansible examples on their github, but I didn't find them very useful. It's most of the time only a basic installation and you still have to execute manual steps to finish the installation. To be fair - that?s not a matter of the modules but additional configuration steps being done manually. IIRC the puppet modules don?t setup or upgrade your database schema as well. > > So I spent some time to automate the full installation of an Icinga2 master, the Icinga classic ui and Icingaweb2. The playbook also installs Icinga2 on another "monitored" boxs and configures it in the master. I really like Icinga and thought it was a good opportunity to share something with the community, so I cleaned up the code and pushed it to github: > <https://github.com/stroobl/icinga2-ansible-vagrant> > > Feel free to try or to reuse the code if you want to deploy Icinga2. > Questions, comments, pull request etc welcome. :) AWESOME! It might be a good idea to 1) patch icinga2-ansible allowing its usage 2) incorporate the module into a dedicated vagrant box at github.com/icinga/icinga-vagrant In terms of 1) it is a good idea to talk with Valentino being the maintainer of the Ansible playbook. In terms of 2), it?s me but I?ll happily grant git access to you willing to maintain the boxes and becoming a member of the packages & tools team on Icinga :) Cheers, Michael PS: I?d personally go for the master deploying the configuration to the satellite until the service auto-discovery is re-evaluated in 2016. > > Luc > > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users --? Michael Friedrich, DI (FH) Senior Developer NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | [email protected] ** OSMC 2015 - November - netways.de/osmc ** ** OSDC 2016 - April ? netways.de/osdc ** ------------------------------ Message: 4 Date: Tue, 10 Nov 2015 23:20:48 +0000 From: Madhusmita Gochhait <[email protected]> To: "[email protected]" <[email protected]> Subject: [icinga-users] Question about icinga2 api dynamically added hosts and hostgroups Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" I am using the snapshot version of icinga2 for the api feature . Dynamically add hosts and host groups. Here is what i am doing : To add hostgroup : curl -k -s -u icingaadmin:icinga 'https://localhost:5665/v1/objects/hostgroups/testgrp' -X PUT -d '{ "attrs": { "name" : "testgrp" ,"display_name" : "testgrp" , "state_loaded" :true }}' To add host : curl -k -s -u icingaadmin:icinga 'https://localhost:5665/v1/objects/hosts/<https://localhost:5665/v1/objects/ hosts/8.8.8.8>testhost' -X PUT -d '{ "templates": [ "generic-host" ], "attrs": { "address": "8.8.8.8" , "groups" : [ "testgrp" ]} }' It gets successfully added and I am also able to query them through the api . But in UI , I am seeing only the host and no hostgroup . The host group gets displayed once I restart/reload icinga . Since , we have a large setup (>1000 hosts ) , we don?t want to reload /restart everytime we add hostgroups . Is there any way it can be done in same way as the host , so that both host and host groups shows in UI without restart everytime ? Thanks, mgochhait <http://stackoverflow.com/questions/tagged/icinga> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20151110/9cf73ae 9/attachment-0001.html> ------------------------------ Message: 5 Date: Wed, 11 Nov 2015 07:35:32 +0000 From: Gunnar Beutner <[email protected]> To: "[email protected]" <[email protected]> Subject: Re: [icinga-users] Question about icinga2 api dynamically added hosts and hostgroups Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" On 11/11/15 00:20, "icinga-users on behalf of Madhusmita Gochhait" <[email protected] on behalf of [email protected]> wrote: >I am using the snapshot version of icinga2 for the api feature . Dynamically add hosts and host groups. >Here is what i am doing : >To add hostgroup : curl -k -s -u icingaadmin:icinga 'https://localhost:5665/v1/objects/hostgroups/testgrp' -X PUT -d '{ "attrs": { "name" : "testgrp" ,"display_name" : "testgrp" > , "state_loaded" :true }}' You really shouldn?t set ?state_loaded? - that?s an internal attribute (in fact, the latest snapshot isn?t even showing that attribute for /v1/objects/<type> anymore). I?ve created a ticket for this: https://dev.icinga.org/issues/10601 >To add host : >curl -k -s -u icingaadmin:icinga >'https://localhost:5665/v1/objects/hosts/ <https://localhost:5665/v1/objects/hosts/8.8.8.8>testhost' -X PUT -d '{ "templates": [ "generic-host" ], "attrs": { "address": "8.8.8.8" , "groups" : [ "testgrp" ]} }' >It gets successfully added and I am also able to query them through the api . >But in UI , I am seeing only the host and no hostgroup . Can you create a ticket for this problem please? >The host group gets displayed once I restart/reload icinga . >Since , we have a large setup (>1000 hosts ) , we don?t want to reload /restart everytime we add hostgroups . >Is there any way it can be done in same way as the host , so that both host and host groups shows in UI without restart everytime ? > > >Thanks, >Mgochhait Kind regards, Gunnar Beutner > > > > <http://stackoverflow.com/questions/tagged/icinga> > > --? Gunnar Beutner Senior Developer NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | [email protected] ** OSMC 2015 - November - netways.de/osmc ** ** OSDC 2016 - April ? netways.de/osdc ** ------------------------------ Subject: Digest Footer _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users ------------------------------ End of icinga-users Digest, Vol 23, Issue 20 ******************************************** --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
