For instance:
Code: Select all
MariaDB [nagios]> select * from nagios_objects where name1 like '%DELETED%' ;
+-----------+-------------+---------------+---------------+---------------------------------------------+-----------+
| object_id | instance_id | objecttype_id | name1 | name2 | is_active |
+-----------+-------------+---------------+---------------+---------------------------------------------+-----------+
| 14242 | 1 | 1 | TO-BE-DELETED | | 0 |
| 14243 | 1 | 2 | TO-BE-DELETED | Ping | 0
Code: Select all
MariaDB [nagios]> select * from nagios_hosts where display_name like '%TO-BE-DELETED%' ;
Empty set (0.00 sec)
Code: Select all
MariaDB [nagios]> select * from nagios_objects where name1 like '%centos%' ;
+-----------+-------------+---------------+---------+-------------------------------------------+-----------+
| object_id | instance_id | objecttype_id | name1 | name2 | is_active |
+-----------+-------------+---------------+---------+-------------------------------------------+-----------+
| 12004 | 1 | 1 | centos3 | | 0 |
| 12005 | 1 | 2 | centos3 | Load | 0 |