Bugreport: Nagios configuration nicht möglich mit aktuellem Revision 3874
-
Hallo zusammen,
ich wollte heute zum spass eine neue Remote Nagios schnittstelle konfigurieren
weil mir langweilig ist.
Unten Module -> Nagios stehen unter anderem ein feld dass "DB Prefix"
hies und was Standardmässig leer ist wenn man was erstmal konfiguriert.Da habe ich "nagios_" gegeben was verursacht den folgenden fehler:
(!) i-doit system error
Message:
isys_exception_database : Query error: 'UPDATE isys_nagios_ndo SET isys_nagios_ndo__ndodb_active = '1', isys_nagios_ndo__ndodb_ip = 'xxx.xxx.xxx.xxx', isys_nagios_ndo__ndodb_port = '3306', isys_nagios_ndo__ndodb_schema = 'nagios_ndo', isys_nagios_ndo__ndodb_prefix = 'nagios_', isys_nagios_ndo__ndodb_user = 'nagios', isys_nagios_ndo__ndodb_pass = 'xxxxxxxxxxx' WHERE isys_nagios_ndo__ndodb_id = 1':
Unknown column 'isys_nagios_ndo__ndodb_prefix' in 'field list' (Extended Information: array (
'server' => '5.0.32-Debian_7etch8-log',
'host' => 'Localhost via UNIX socket',
'client' => '5.0.32',
'proto' => 10,
))mysql> describe isys_nagios_ndo;
+–-----------------------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------------------+------------------+------+-----+---------+----------------+
| isys_nagios_ndo__ndodb_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| isys_nagios_ndo__ndodb_active | int(1) | NO | | | |
| isys_nagios_ndo__ndodb_ip | varchar(255) | NO | | | |
| isys_nagios_ndo__ndodb_port | varchar(255) | NO | | | |
| isys_nagios_ndo__ndodb_schema | varchar(255) | NO | | | |
| isys_nagios_ndo__ndodb_user | varchar(255) | NO | | | |
| isys_nagios_ndo__ndodb_pass | varchar(255) | NO | | | |
+-------------------------------+------------------+------+-----+---------+----------------+Wie man sieht, da fehlt die Spalte isys_nagios_ndo__ndodb_prefix komplett und dementsprechend
wird Fehler gezeigt beim Speichern die Nagios konfiguration.Cheers,
Chekov
-
Ich liebe Monologe und Selbstironie,
eine Workaround zu behoben dieses Problem:
Einbinden mit den richtigen Mandanten Datenbank und Tabelle
isys_nagios_ndo aktivieren.mysql > use idoit_mandant_db1;
Eine neue Datenbankfeld hinzufügen, bzw. eine neue Spalte das
isys_nagios_ndo__ndodb_prefix heisst (Typ VARCHAR mit
Länge 255) und Speichern.Unter MySQL command Shell geht es folgendermassen:
mysql > ALTER TABLE isys_nagios_ndo ADD COLUMN isys_nagios_ndo__ndodb_prefix VARCHAR(255);
Dann nochmal durch die Nagios Konfiguration gehen und die passende werte eintippen
und Speichern.Das wars!
Cheers,
Chekov
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login