Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bugreport: Nagios configuration nicht möglich mit aktuellem Revision 3874

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 1 Posters 1.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • _Chekov__ Offline
      _Chekov_
      last edited by

      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

      Chekov is using i-doit v1.6.4 PRO in production & i-doit v1.7 PRO in test

      1 Reply Last reply Reply Quote 0
      • _Chekov__ Offline
        _Chekov_
        last edited by

        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

        Chekov is using i-doit v1.6.4 PRO in production & i-doit v1.7 PRO in test

        1 Reply Last reply Reply Quote 0
        • First post
          Last post