[icinga-users] Icinga Classic Authentication Issue

Conan Van Staden conan at sonictelecoms.co.za
Wed Nov 11 12:25:00 CET 2015


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:   conan at sonicwireless.co.za  |  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:icinga-users-bounces at lists.icinga.org] On Behalf
Of icinga-users-request at lists.icinga.org
Sent: Wednesday, November 11, 2015 1:00 PM
To: icinga-users at lists.icinga.org
Subject: icinga-users Digest, Vol 23, Issue 20

Send icinga-users mailing list submissions to
	icinga-users at lists.icinga.org

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
	icinga-users-request at lists.icinga.org

You can reach the person managing the list at
	icinga-users-owner at lists.icinga.org

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 <formorer at formorer.de>
To: Icinga User's Corner <icinga-users at lists.icinga.org>
Subject: Re: [icinga-users] Icinga Classic Authentication Issue
Message-ID: <20151110133944.GA27359 at formorer.de>
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 <lstroobant at gmail.com>
To: icinga-users at lists.icinga.org
Subject: [icinga-users] Icinga2 - Ansible - Vagrant
Message-ID: <564242E5.6030702 at gmail.com>
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 <Michael.Friedrich at netways.de>
To: "icinga-users at lists.icinga.org" <icinga-users at lists.icinga.org>
Cc: Valentino Gagliardi <valentino.g at servermanaged.it>
Subject: Re: [icinga-users] Icinga2 - Ansible - Vagrant
Message-ID: <306DEAFF-2F4A-4669-AE40-E186576D0249 at netways.de>
Content-Type: text/plain; charset="utf-8"


> On 10 Nov 2015, at 20:17, Luc Stroobant <lstroobant at gmail.com> 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
> icinga-users at lists.icinga.org
> 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 |
Michael.Friedrich at netways.de

** 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 <mgochhait at juniper.net>
To: "icinga-users at lists.icinga.org" <icinga-users at lists.icinga.org>
Subject: [icinga-users] Question about icinga2 api dynamically added
	hosts	and hostgroups
Message-ID: <14F42A8D-7DDA-44FB-8D1E-7B21F0D08134 at juniper.net>
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 <Gunnar.Beutner at netways.de>
To: "icinga-users at lists.icinga.org" <icinga-users at lists.icinga.org>
Subject: Re: [icinga-users] Question about icinga2 api dynamically
	added hosts and hostgroups
Message-ID: <25641E91-A4F9-493E-8650-D4E31BA5A72F at netways.de>
Content-Type: text/plain; charset="utf-8"






On 11/11/15 00:20, "icinga-users on behalf of Madhusmita Gochhait"
<icinga-users-bounces at lists.icinga.org on behalf of mgochhait at juniper.net>
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 |
Gunnar.Beutner at netways.de

** OSMC 2015 - November - netways.de/osmc **
** OSDC 2016 - April ? netways.de/osdc **

------------------------------

Subject: Digest Footer

_______________________________________________
icinga-users mailing list
icinga-users at lists.icinga.org
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



More information about the icinga-users mailing list