On 03/17/2014 06:11 PM, Gunnar Beutner wrote:

I have a question about Icinga2. I've not used Icinga/Nagios since the
SATAN days. So it's really nice to see all the amazing development.
That being said, I'm a complete n00b. So forgive my general lack of
understand here. I can't find much docs about Icinga2. So I thought
I'd ask around.

When I edit a host configuration and remove a service, it still
remains in the web interface. I assume that is because it still is in
the database. Is there a way to purge these? I'm thinking that perhaps
my set up is missing something if this is not happening.
Which versions of icinga2 (icinga2 --version) and icinga-web are you
using? Also, can you show us the output of "SELECT * FROM icinga_objects
WHERE objecttype_id = '2'"?

# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon. (Version: jenkins-DIST=wheezy-9)
Copyright (c) 2012-present Icinga Development Team (http://www.icinga.org)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


mysql> SELECT * FROM icinga_objects WHERE objecttype_id = '2' and name1 like 'gateway';
+-----------+-------------+---------------+---------+----------------+-----------+
| object_id | instance_id | objecttype_id | name1   | name2 | is_active |
+-----------+-------------+---------------+---------+----------------+-----------+
|       189 |           1 |             2 | gateway | dhcp |         1 |
|       190 |           1 |             2 | gateway | dns |         1 |
|       191 |           1 |             2 | gateway | load |         1 |
|       192 |           1 |             2 | gateway | ntp |         1 |
|       193 |           1 |             2 | gateway | ping4 |         1 |
| 194 | 1 | 2 | gateway | root_partition | 1 |
|       195 |           1 |             2 | gateway | ssh |         1 |
|       200 |           1 |             2 | gateway | swap |         1 |
| 196 | 1 | 2 | gateway | total_procs | 1 |
|       197 |           1 |             2 | gateway | users |         1 |
|       198 |           1 |             2 | gateway | web_ui |         1 |
| 199 | 1 | 2 | gateway | zombie_procs | 1 |
+-----------+-------------+---------------+---------+----------------+-----------+
12 rows in set (0.00 sec)

All the other records also have 'is_active = 1'.

Just as a test I tried 'UPDATE icinga_objects set is_active = 0 WHERE object_id = 198;' which changed nothing.

Simon

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to