Warning: Table './drupal6/drupal_cache_page' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM drupal_cache_page WHERE cid = 'http://ged.korshunov.ru/taxonomy/term/151' in /usr/local/www/drupal6/includes/database.mysql.inc on line 135

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/bootstrap.inc on line 736

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/bootstrap.inc on line 737

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/bootstrap.inc on line 738

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/bootstrap.inc on line 739
памятка | Ged KORSHUNOV.RU

памятка

  • warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/common.inc on line 163.
  • warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/common.inc on line 163.
  • warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/common.inc on line 163.
  • warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/drupal6/includes/database.mysql.inc:135) in /usr/local/www/drupal6/includes/common.inc on line 163.
  • warning: Creating default object from empty value in /usr/local/www/drupal6/modules/taxonomy/taxonomy.pages.inc on line 33.

Создание из dhcpd.leases usertab для sarg

Потребовалось тут как-нить из ip адресов получить сколь-нить осмысленные имена в Sarg. Соответственно нужно подготовить файл соответствия и по возможности не ручками.

Самое простое это из базы DHCP получить выданные IP адреса и полученные имена компьютеров. Итого имеем простенькую строчку.

cat dhcpd.leases | grep -B10 -E "host" | grep -E "lease|hostname" | xargs -n5 echo | awk '{print $2" "$5}' | sed 's/;//'

Соответственно результат запихиваем в какой-нибудь файл, а в sarg.conf usertab прописываем путь к файлу.

0
Your rating: Нет
Ленты новостей