Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

kein Executive Report mehr

Hallo zusammen
wir betreiben 2 AGS320 in HA-Betrieb und bekommen keine Reports mehr.
wenn ich den Report von hand starte kommen folgende Fehlermeldungen 

 smtp:/usr/local/bin # ./report_render.plx --type daily
section: web_filtering is all false, deactivating
section: web_usage is all false, deactivating
section: voip_security is all false, deactivating
section: web_security is all false, deactivating
section: p2p_networking is all false, deactivating
section: instant_messaging is all false, deactivating
DEBUG CONFIG:$VAR1 = {
          'resource_usage' => {
                                'cpuusage_graph' => '1',
                                'diskusage_graph' => '1',
                                'memswap_graph' => '1'
                              },
          'intrusion_protection' => {
                                      'ips_graph' => '1',
                                      'top_ips_dst' => '1',
                                      'top_ips_rule' => '1',
                                      'top_ips_src' => '1'
                                    },
          'web_usage' => {},
          'network_security' => {},
          'email_security' => {
                                'mailsec_graph' => '1'
                              },
          'mail_section' => {
                              '1' => 1
                            },
          'summary' => {
                         'webadmin_logins' => '1',
                         'web_filtering' => '0',
                         'nw_security' => '1',
                         'up2date_stats' => '1',
                         'mail_filtering' => '1',
                         'nw_usage' => '1',
                         'system_stats' => '1',
                         'console_logins' => '1'
                       },
          'voip_security' => {},
          'web_security' => {},
          'p2p_networking' => {},
          'email_filtering' => {
                                 'top_spam_country' => '1',
                                 'top_expression' => '1',
                                 'top_virus' => '1',
                                 'top_spam_sender' => '1',
                                 'top_extension' => '1'
                               },
          'network_usage' => {
                               'interface_graphs' => '1',
                               'connection_graph' => '1',
                               'top_services' => '1',
                               'top_servers' => '1',
                               'top_clients' => '1'
                             },
          'web_filtering' => {},
          'email_usage' => {
                             'top_recipient' => '1',
                             'top_sender' => '1'
                           },
          'web_section' => {},
          'nwsec_section' => {
                               '1' => 1
                             },
          'packet_filter' => {
                               'packetfilter_graph' => '1',
                               'top_dropped_svc' => '1',
                               'top_dropped_dst' => '1',
                               'top_dropped_src' => '1'
                             },
          'imp2p_section' => {},
          'instant_messaging' => {}
        };
product: ASG |  Astaro Security Gateway Appliance
running get_summary
DBD:[[:P]]g::st execute failed: ERROR:  could not open relation 20677/16519/16525: No such file or directory
DBD:[[:P]]g::st execute failed: ERROR:  could not open relation 20677/16519/16525: No such file or directory



auch im Dashboard stehen alle täglichen Statistiken komplett auf 0!

Was kann ich tun??


This thread was automatically locked due to age.
  • Hi 
    da gibts im Reporting schon ein paar Threads dazu. Ich hatte auch das Problem, daß keine täglichen Statistiken mehr auftauchten und folgendes hat bei mir geholfen:
    1.) /etc/init.d/ulog stop
    2.) /etc/init.d/syslogng stop
    3.) /var/storage/pgsql/init/reporting_db_init.sh
    4.) /etc/init.d/syslogng start
    5.) /etc/init.d/ulog start

    Zitat Andreas (Moderator): 
    The easy alternative, if you don't mind lost reporting data, is to just run /var/storage/pgsql/init/reporting_db_init.sh which will drop the reporting database and create everything from scratch. It's advisable to stop the reporting processes and the ulog daemon while operating on the databases, use /etc/init.d/ulog stop, /etc/init.d/syslogng stop, do database operations, start services again.

    Damit werden die Reporting-DB's neu aufgebaut, die nach der Umstellung auf die 7.3 bei einigen nicht mehr korrekt funktioniert hatten.
    Robert
  • Wenn ich das probiere kommen leider nur Fehlermeldungen und nichts ändert sich!!


    createdb: database creation failed: ERROR:  database "reporting" already exists
    createlang: language "plpgsql" is already installed in database "reporting"
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:21: ERROR:  relation "accounting" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:23: ERROR:  relation "accounting_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:39: ERROR:  relation "accounting_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:41: ERROR:  relation "accountingarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:52: ERROR:  relation "auth" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:54: ERROR:  relation "auth_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:62: ERROR:  relation "ipscount" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:76: ERROR:  relation "ips" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:78: ERROR:  relation "ips_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:92: ERROR:  relation "ips_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:94: ERROR:  relation "ipsarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:108: ERROR:  relation "imp2p" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:110: ERROR:  relation "imp2p_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:124: ERROR:  relation "imp2p_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:126: ERROR:  relation "imp2parc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:144: ERROR:  relation "mailsec" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:146: ERROR:  relation "mailsec_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:164: ERROR:  relation "mailsec_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:166: ERROR:  relation "mailsecarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:178: ERROR:  relation "pfilter" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:180: ERROR:  relation "pfilter_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:181: ERROR:  relation "pfilter_srcidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:193: ERROR:  relation "pfilter_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:195: ERROR:  relation "pfilterarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:196: ERROR:  relation "pfilterarc_srcidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:210: ERROR:  relation "websec_aud" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:212: ERROR:  relation "websec_aud_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:213: ERROR:  relation "websec_aud_idx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:226: ERROR:  relation "websec_aud_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:228: ERROR:  relation "websec_audarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:229: ERROR:  relation "websec_audarc_idx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:241: ERROR:  relation "websec_au" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:243: ERROR:  relation "websec_au_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:244: ERROR:  relation "websec_au_idx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:255: ERROR:  relation "websec_au_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:257: ERROR:  relation "websec_auarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:258: ERROR:  relation "websec_auarc_idx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:275: ERROR:  relation "websec_bud" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:277: ERROR:  relation "websec_bud_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:278: ERROR:  relation "websec_bud_idx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:294: ERROR:  relation "websec_bud_archive" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:296: ERROR:  relation "websec_budarc_dayidx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:297: ERROR:  relation "websec_budarc_idx" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:326: ERROR:  relation "accounting_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:343: ERROR:  relation "imp2p_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:362: ERROR:  relation "ips_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:385: ERROR:  relation "mailsec_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:411: ERROR:  relation "mailsec_addresses" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:440: ERROR:  relation "mailsec_contacts" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:458: ERROR:  relation "pfilter_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:479: ERROR:  relation "websec_aud_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:500: ERROR:  relation "websec_au_data" already exists
    psql:/usr/share/postgresql/contrib/astaro_reporting_tables.sql:525: ERROR:  relation "websec_bud_data" already exists
  • Hi, 
    Hast du das eigentlich als "root" ausgeführt oder unterwelchem User ?
    ich hab mal nachgesehen und was in einem anderen Thread gefunden. 
    Allerdings alles auf eigene Gefahr [:)]

    # sudo su

    # /etc/init.d/ulog stop
    # /etc/init.d/syslogng stop

    # cd /var/log/reporting/pgsql/ 
    # mv 16*** /home


    # su - postgres

    > /var/storage/pgsql/init/reporting_db_init.sh

    # su root
    # /etc/init.d/syslogng start
    # /etc/init.d/ulog start

    # test -x /usr/local/bin/snort-cleanup && /usr/local/bin/snort-cleanup
    # /usr/local/bin/report_render.plx --sendmail

    # reboot
  • hi,

    ja, man sollte die vorhandenen Reporting files wegschieben, sonst läuft die Neuinitialisierung auf Fehler.

    siehe hier:
    # cd /var/log/reporting/pgsql/ 
    # mv 16*** /home

    wobei /home auch ein beliebig anderes Verzeichnis sein kann

    Allerdings einen Haken hat die Sache.
    Man verliert alle Report-Daten. Und ich weiß nicht, ob man die wegkopierten Files wieder importieren kann

    CU
    Thomas
  • So habe alles so gemacht wie beschrieben von euch.
    beim ausführen des scripts unter dem user post

    erscheint dann aber diese Fehlermeldung


    createdb: database creation failed: ERROR:  database "reporting" already exists
    createlang: language "plpgsql" is already installed in database "reporting"

    Bin bisschen ratlos!
  • Sorry mein Fehler!!
    Report läuft wieder!!

    Vielen Dank für die Hilfe!