Nagiosgraph не подымается

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 12:55:21

Всем добрый день.
Сейчас воюю с Nagiosgraph, конечноже все сделал по мануалу.. но графики не отрисовываются
- данные в perfdata.log пишутся
- dirrrd = /usr/nagiosgraph/rrd - пустая
- nagiosgraph.log

Код: Выделить всё

Wed May 19 15:26:49 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
Wed May 19 15:27:10 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
Wed May 19 15:27:15 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
Wed May 19 15:27:17 2010 insert.pl critical Map file eval error: Unrecognized character \x07 in column 68 at (eval 10) line 1.
 in: sub evalrules { $_ = $_[0]; my ($d, @s) = ($_); no strict "subs";&ы May 19 15:29:20 2010 insert.pl debug insert.pl processing started
Wed May 19 15:29:20 2010 insert.pl debug getrules(/usr/local/etc/nagiosgraph/etc)
Wed May 19 15:29:20 2010 insert.pl critical Map file eval error: Unrecognized character \x07 in column 68 at (eval 10) line 1.
 in: sub evalrules { $_ = $_[0]; my ($d, @s) = ($_); no strict "subs";&ы
Нигде не смог найти описания этой ошибки...
Использую Nagios на предприятии, нужно его по максимому развернуть и буду делать проект по нему, как единой системе мониторинга на производстве.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagios

Непрочитанное сообщение editregit » 2010-05-19 13:15:10

Пробую сделать как в мануале хотябы на один сервис CurrentLoad график
localhost.cfg

Код: Выделить всё

define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Load
	check_command			check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
	notes_url                          /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$ SERVICEDESC$&db=load,avg1min,avg5min,avg15min&geom=500x100&rrdopts=%2Dl%200%20%2Du %2010%20%2Dt%20CPU%2DLoad
        }
commands.cfg

Код: Выделить всё

define command {
       command_name  process-service-perfdata
       command_line  /usr/bin/perl /usr/local/libexec/nagios/insert.pl "$*"
     }

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagios

Непрочитанное сообщение hizel » 2010-05-19 13:19:56

что в nagiosgraph.conf?
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagios

Непрочитанное сообщение editregit » 2010-05-19 13:20:48

Забыл уточнить
Nagios 3.0.6
Nagiosgraph 1.4.2

При обращении на страничку скрипт nagiosgraph.js работает (менюшки всплывают и можно их свернуть), но нет осей для графиков. Неделю уже не могу победить Nagiosgraph - начальство кепятиться начинает)) :cz2:

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagios

Непрочитанное сообщение editregit » 2010-05-19 13:24:28

nagiosgraph.conf

Код: Выделить всё

# nagiosgraph configuration file
# Location of nagiosgraph log file.  Debug output ends up here.
logfile = /var/log/nagiosgraph.log

# Optionally keep logging from CGI scripts in a separate file.
#cgilogfile = /var/log/nagiosgraph-cgi.log

# Location of nagios performance data log file. Comment out if not used.
#perflog = /var/nagios/perfdata.log
perflog = /var/spool/nagios/perfdata.log

# Directory to store rrd database files
rrddir = /var/nagiosgraph/rrd
#rrddir = /var/spool/nagiosgraph/rrd

# File containing regular expressions to identify service and perf data
#mapfile = /etc/nagiosgraph/map
mapfile = /usr/local/etc/nagiosgraph/etc

# Nagiosgraph CGI URL.
nagiosgraphcgiurl = /nagiosgraph/cgi-bin

# Nagios CGI URL.  If the Nagiosgraph CGI scripts are in a directory other
# than the Nagios CGI directory, then specify the Nagios CGI URL here.
#nagioscgiurl = /nagios/cgi-bin

# JavaScript: URL to the nagiosgraph javascript file.
javascript = /nagiosgraph/nagiosgraph.js
#javascript = /usr/local/www/nagios/share/nagiosgraph.js

# Stylesheet: URL to the nagiosgraph stylesheet.
stylesheet = /nagiosgraph/nagiosgraph.css

# File containing labels for services and data (optional)
#labelfile = /etc/nagiosgraph/labels.conf

# Location of showhost control file (optional)
#hostdb = /etc/nagiosgraph/hostdb.conf

# Location of showservice control file (optional)
#servdb = /etc/nagiosgraph/servdb.conf

# Location of showgroup control file (required for showgroup.cgi)
#groupdb = /etc/nagiosgraph/groupdb.conf
groupdb = /usr/local/etc/nagiosgraph/etc/groupdb.conf

# File containing data sets that should be selected in queries (optional)
#datasetdb = /etc/nagiosgraph/datasetdb.conf

# Log Levels
# 0 = None
# 1 = Critical
# 2 = Error
# 3 = Warn
# 4 = Info
# 5 = Debug
debug = 5


Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagios

Непрочитанное сообщение hizel » 2010-05-19 13:27:38

да я заметил, что сейчас среднестатистический "системный администратор" встречаясь с задачей требующей более трех шагов с условиями уходит в Segmentation fault с ошибкой переполнения мозго-стека *пичаль*

и да, лучше создать отдельный топик со своей проблемой, зачем простыни растить
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 13:30:08

теперь можно кусок лога показать

тему отделил
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagios

Непрочитанное сообщение editregit » 2010-05-19 13:31:47

hizel писал(а):да я заметил, что сейчас среднестатистический "системный администратор" встречаясь с задачей требующей более трех шагов с условиями уходит в Segmentation fault с ошибкой переполнения мозго-стека *пичаль*
Да уж так и есть наверное.... Поэтому и пишу, потому что Segmentation fault

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 13:33:31

hizel писал(а):теперь можно кусок лога показать
nagios.log или nagiosgraph.log - ?

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 13:50:16

nagiosgraph.log конечно :)
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:24:15

nagiosgraph.log

Код: Выделить всё

Wed May 19 15:26:49 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
Wed May 19 15:27:10 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
Wed May 19 15:27:15 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
Wed May 19 15:27:17 2010 insert.pl critical Map file eval error: Unrecognized character \x07 in column 68 at (eval 10) line 1.
 in: sub evalrules { $_ = $_[0]; my ($d, @s) = ($_); no strict "subs";&ы May 19 15:29:20 2010 insert.pl debug insert.pl processing started
Wed May 19 15:29:20 2010 insert.pl debug getrules(/usr/local/etc/nagiosgraph/etc)
Wed May 19 15:29:20 2010 insert.pl critical Map file eval error: Unrecognized character \x07 in column 68 at (eval 10) line 1.
 in: sub evalrules { $_ = $_[0]; my ($d, @s) = ($_); no strict "subs";&ы
это весь лог который сформировался.

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 14:28:11

ошибки в map файле
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:30:05

hizel писал(а):ошибки в map файле
Я map файл не менял... там все по умолчанию.. Пробовал его подменить map файлом из examples, но такаяже ошибка

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:33:32

Причем nagiosgraph.log больше не наполняется.. Если удалить все записи в нем, то при ребуте nagios в лог ложиться все тоже самое.

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 14:35:36

а вi в конфигурации nagios кроме того что привели более ничего не делали?
там еще шаги необходимо предпринимать:
/usr/local/share/doc/nagiosgraph/INSTALL#Batch Processing
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:43:38

hizel писал(а):а вi в конфигурации nagios кроме того что привели более ничего не делали?
там еще шаги необходимо предпринимать:
/usr/local/share/doc/nagiosgraph/INSTALL#Batch Processing
относительно Batch Processing все сделано.. Эти куски кода я привел выше..

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:45:47

я сейчас удалил содержимое nagiosgraph.log и полность перезапустил машину... лог теперь другой, но с той же ошибкой

Код: Выделить всё

Wed May 19 17:36:30 2010 showgraph.cgi debug setlabels(avg1min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, 13)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor(1)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor: returning color = FF0066
Wed May 19 17:36:30 2010 showgraph.cgi debug setdata(avg1min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, , 34560000)
Wed May 19 17:36:30 2010 showgraph.cgi debug setlabels(avg5min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, 13)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor(1)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor: returning color = 990066
Wed May 19 17:36:30 2010 showgraph.cgi debug setdata(avg5min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, , 34560000)
Wed May 19 17:36:30 2010 showgraph.cgi debug setlabels(avg15min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, 13)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor(1)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor: returning color = 6600FF
Wed May 19 17:36:30 2010 showgraph.cgi debug setdata(avg15min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, , 34560000)
Wed May 19 17:36:30 2010 showgraph.cgi debug RRDs::graph = [
  '-',
  '-a',
  'PNG',
  'DEF:load_avg1min=/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd:avg1min:AVERAGE',
  'LINE2:load_avg1min#FF0066:load,avg1min ',
  'GPRINT:load_avg1min:MAX:Max\\:%7.2lf%s',
  'GPRINT:load_avg1min:AVERAGE:Avg\\:%7.2lf%s',
  'GPRINT:load_avg1min:MIN:Min\\:%7.2lf%s\\n',
  'DEF:load_avg5min=/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd:avg5min:AVERAGE',
  'LINE1:load_avg5min#990066:load,avg5min ',
  'GPRINT:load_avg5min:MAX:Max\\:%7.2lf%s',
  'GPRINT:load_avg5min:AVERAGE:Avg\\:%7.2lf%s',
  'GPRINT:load_avg5min:MIN:Min\\:%7.2lf%s\\n',
  'DEF:load_avg15min=/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd:avg15min:AVERAGE',
  'LINE1:load_avg15min#6600FF:load,avg15min',
  'GPRINT:load_avg15min:MAX:Max\\:%7.2lf%s',
  'GPRINT:load_avg15min:AVERAGE:Avg\\:%7.2lf%s',
  'GPRINT:load_avg15min:MIN:Min\\:%7.2lf%s\\n',
  '-w',
  500,
  '-h',
  '100 ',
  '-l',
  '0',
  '-u',
  '10',
  '-t',
  'CPU-Load',
  '-snow-34560000',
  '-enow-0'
];
Wed May 19 17:36:30 2010 showgraph.cgi debug rrdline params = {
  'geom' => '500x100',
  'db' => [
    'load,avg1min,avg5min,avg15min'
  ],
  'graphonly' => '',
  'showtitle' => '',
  'showdesc' => '',
  'group' => '',
  'fixedscale' => '',
  'expand_period' => '',
  'offset' => 0,
  'expand_controls' => '',
  'rrdopts' => '-l 0 -u  10 -t CPU-Load -snow-118800 -enow-0',
  'period' => '',
  'hidelegend' => '',
  'service' => '$ SERVICEDESC$',
  'host' => 'localhost',
  'showgraphtitle' => '',
  'label' => []
};
Wed May 19 17:36:30 2010 showgraph.cgi debug graphinfo: host=localhost service=$ SERVICEDESC$
Wed May 19 17:36:30 2010 showgraph.cgi debug graphinfo: db = [
  'load,avg1min,avg5min,avg15min'
];
Wed May 19 17:36:30 2010 showgraph.cgi debug graphinfo: Specified localhost/%24%20SERVICEDESC%24___ db files in /var/nagiosgraph/rrd: localhost/%24%20SERVICEDESC%24___load.rrd
Wed May 19 17:36:30 2010 showgraph.cgi debug graphinfo: rrd = [
  {
    'file' => 'localhost/%24%20SERVICEDESC%24___load.rrd',
    'line' => {
      'avg1min' => 1,
      'avg15min' => 1,
      'avg5min' => 1
    },
    'dbname' => 'load'
  }
];
Wed May 19 17:36:30 2010 showgraph.cgi debug rrdline: this graphinfo entry = {
  'file' => 'localhost/%24%20SERVICEDESC%24___load.rrd',
  'line' => {
    'avg1min' => 1,
    'avg15min' => 1,
    'avg5min' => 1
  },
  'dbname' => 'load'
};
Wed May 19 17:36:30 2010 showgraph.cgi debug setlabels(avg1min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, 13)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor(1)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor: returning color = FF0066
Wed May 19 17:36:30 2010 showgraph.cgi debug setdata(avg1min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, , 118800)
Wed May 19 17:36:30 2010 showgraph.cgi debug setlabels(avg5min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, 13)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor(1)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor: returning color = 990066
Wed May 19 17:36:30 2010 showgraph.cgi debug setdata(avg5min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, , 118800)
Wed May 19 17:36:30 2010 showgraph.cgi debug setlabels(avg15min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, 13)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor(1)
Wed May 19 17:36:30 2010 showgraph.cgi debug hashcolor: returning color = 6600FF
Wed May 19 17:36:30 2010 showgraph.cgi debug setdata(avg15min, load, /var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd, $ SERVICEDESC$, , 118800)
Wed May 19 17:36:30 2010 showgraph.cgi debug RRDs::graph = [
  '-',
  '-a',
  'PNG',
  'DEF:load_avg1min=/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd:avg1min:AVERAGE',
  'LINE2:load_avg1min#FF0066:load,avg1min ',
  'GPRINT:load_avg1min:MAX:Max\\:%7.2lf%s',
  'GPRINT:load_avg1min:AVERAGE:Avg\\:%7.2lf%s',
  'GPRINT:load_avg1min:MIN:Min\\:%7.2lf%s',
  'GPRINT:load_avg1min:LAST:Cur\\:%7.2lf%s\\n',
  'DEF:load_avg5min=/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd:avg5min:AVERAGE',
  'LINE1:load_avg5min#990066:load,avg5min ',
  'GPRINT:load_avg5min:MAX:Max\\:%7.2lf%s',
  'GPRINT:load_avg5min:AVERAGE:Avg\\:%7.2lf%s',
  'GPRINT:load_avg5min:MIN:Min\\:%7.2lf%s',
  'GPRINT:load_avg5min:LAST:Cur\\:%7.2lf%s\\n',
  'DEF:load_avg15min=/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd:avg15min:AVERAGE',
  'LINE1:load_avg15min#6600FF:load,avg15min',
  'GPRINT:load_avg15min:MAX:Max\\:%7.2lf%s',
  'GPRINT:load_avg15min:AVERAGE:Avg\\:%7.2lf%s',
  'GPRINT:load_avg15min:MIN:Min\\:%7.2lf%s',
  'GPRINT:load_avg15min:LAST:Cur\\:%7.2lf%s\\n',
  '-w',
  500,
  '-h',
  '100 ',
  '-l',
  '0',
  '-u',
  '10',
  '-t',
  'CPU-Load',
  '-snow-118800',
  '-enow-0'
];
Wed May 19 17:36:30 2010 showgraph.cgi debug getimg(opening '/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd': No such file or directory)
Wed May 19 17:36:30 2010 showgraph.cgi debug getimg(opening '/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd': No such file or directory)
Wed May 19 17:36:30 2010 showgraph.cgi debug getimg(opening '/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd': No such file or directory)
Wed May 19 17:36:30 2010 showgraph.cgi debug getimg(opening '/var/nagiosgraph/rrd/localhost/%24%20SERVICEDESC%24___load.rrd': No such file or directory)
Wed May 19 17:37:46 2010 insert.pl debug insert.pl processing started
Wed May 19 17:37:46 2010 insert.pl debug getrules(/usr/local/etc/nagiosgraph/etc)
Wed May 19 17:37:46 2010 insert.pl critical Map file eval error: Unrecognized character \x07 in column 68 at (eval 10) line 1.
 in: sub evalrules { $_ = $_[0]; my ($d, @s) = ($_); no strict "subs";&ы
права на всю дерикторю /nagiosgraph/rrd/localhost
выставлены 7777 тфпшщы [181]

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 14:48:39

не вижу, где?
- In nagios.cfg set:

Код: Выделить всё

     process_performance_data=1
     service_perfdata_file=/var/nagios/perfdata.log
     service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
     service_perfdata_file_mode=a
     service_perfdata_file_processing_interval=30
     service_perfdata_file_processing_command=process-service-perfdata
текущая ошибка у вас из-за некоректного map файла, вы его трогали?

непонятно зачем он до ru трансляции докапался и вы не полный nagiosgraph.conf привели
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 14:49:50

in: sub evalrules { $_ = $_[0]; my ($d, @s) = ($_); no strict "subs";
FFUUU~~
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:57:47

hizel писал(а): текущая ошибка у вас из-за некоректного map файла, вы его трогали?

непонятно зачем он до ru трансляции докапался и вы не полный nagiosgraph.conf привели
Map я не трогал..

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 14:59:16

nagios.cfg

Код: Выделить всё

# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# You can split your object definitions across several config files
# if you wish (as shown below), or keep them all in a single config file.

# You can specify individual object config files as shown below:
cfg_file=/usr/local/etc/nagios/objects/commands.cfg
cfg_file=/usr/local/etc/nagios/objects/contacts.cfg
cfg_file=/usr/local/etc/nagios/objects/timeperiods.cfg
#cfg_file=/usr/local/etc/nagios/objects/templates.cfg

# Definitions for monitoring the local (FreeBSD) host
cfg_file=/usr/local/etc/nagios/objects/localhost.cfg

############################################################
##############   CONFIGURATION   FOR   SYS-CONFIG   ########
############################################################

cfg_dir=/usr/local/etc/nagios/sys-configs/hosts/

cfg_dir=/usr/local/etc/nagios/sys-configs/hostgroups/

cfg_dir=/usr/local/etc/nagios/sys-configs/services/

cfg_dir=/usr/local/etc/nagios/sys-configs/servicegroups

cfg_dir=/usr/local/etc/nagios/sys-configs/templates/host

cfg_dir=/usr/local/etc/nagios/sys-configs/templates/service

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/etc/nagios/ndomod.cfg
event_broker_options=-1

#cfg_dir=/usr/local/etc/nagios/nagiosgraph

     process_performance_data=1
     service_perfdata_file=/var/spool/nagios/perfdata.log
     service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
     service_perfdata_file_mode=a
     service_perfdata_file_processing_interval=30
     service_perfdata_file_processing_command=process-service-perfdata
#process_performance_data=0

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 15:04:01

интересная строчка

Код: Выделить всё

Wed May 19 17:36:29 2010 show.cgi warn No translations for 'ru' (/usr/local/etc/nagiosgraph/etc/nagiosgraph_ru.conf)
у меня в директории /usr/local/etc/nagiosgraph/etc/ имеется:
nagiosgraph.conf
nagiosgraph_de.conf
nagiosgraph_es.conf
nagiosgraph_fr.conf

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Nagiosgraph не подымается

Непрочитанное сообщение hizel » 2010-05-19 15:11:13

editregit писал(а):
hizel писал(а): текущая ошибка у вас из-за некоректного map файла, вы его трогали?

непонятно зачем он до ru трансляции докапался и вы не полный nagiosgraph.conf привели
Map я не трогал..
<телепат>
трогали
</телепат>

и я вам показал где ошибка
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 15:17:12

hizel писал(а):
editregit писал(а):
hizel писал(а): текущая ошибка у вас из-за некоректного map файла, вы его трогали?

непонятно зачем он до ru трансляции докапался и вы не полный nagiosgraph.conf привели
Map я не трогал..
<телепат>
трогали
</телепат>

и я вам показал где ошибка
))) да я понимаю что по логам ошибка в map, но я его не конфигурил воопще... У Вас случайно не завалялся "рабочий" map? буду признателен.. :"":

editregit
рядовой
Сообщения: 38
Зарегистрирован: 2010-05-19 12:43:25

Re: Nagiosgraph не подымается

Непрочитанное сообщение editregit » 2010-05-19 15:18:21

мой полный nagiosgraph.conf

Код: Выделить всё

# nagiosgraph configuration file
#
# $Id: nagiosgraph.conf 331 2010-03-11 06:36:38Z mwall $
# License: OSI Artistic License
#          http://www.opensource.org/licenses/artistic-license.php
# Author:  (c) 2005 Soren Dossing
# Author:  (c) 2008 Alan Brenner, Ithaka Harbors
# Author:  (c) 2010 Matthew Wall

# Location of nagiosgraph log file.  Debug output ends up here.
logfile = /var/log/nagiosgraph.log

# Optionally keep logging from CGI scripts in a separate file.
#cgilogfile = /var/log/nagiosgraph-cgi.log

# Location of nagios performance data log file. Comment out if not used.
#perflog = /var/nagios/perfdata.log
perflog = /var/spool/nagios/perfdata.log

# Directory to store rrd database files
rrddir = /var/nagiosgraph/rrd
#rrddir = /var/spool/nagiosgraph/rrd
#rrddir = /var/nagiosgraph/rrd/localhost

# File containing regular expressions to identify service and perf data
#mapfile = /etc/nagiosgraph/map
mapfile = /usr/local/etc/nagiosgraph/etc

# Nagiosgraph CGI URL.
nagiosgraphcgiurl = /nagiosgraph/cgi-bin

# Nagios CGI URL.  If the Nagiosgraph CGI scripts are in a directory other
# than the Nagios CGI directory, then specify the Nagios CGI URL here.
#nagioscgiurl = /nagios/cgi-bin

# JavaScript: URL to the nagiosgraph javascript file.
javascript = /nagiosgraph/nagiosgraph.js
#javascript = /usr/local/www/nagios/share/nagiosgraph.js

# Stylesheet: URL to the nagiosgraph stylesheet.
stylesheet = /nagiosgraph/nagiosgraph.css

# File containing labels for services and data (optional)
#labelfile = /etc/nagiosgraph/labels.conf

# Location of showhost control file (optional)
#hostdb = /etc/nagiosgraph/hostdb.conf

# Location of showservice control file (optional)
#servdb = /etc/nagiosgraph/servdb.conf

# Location of showgroup control file (required for showgroup.cgi)
#groupdb = /etc/nagiosgraph/groupdb.conf
groupdb = /usr/local/etc/nagiosgraph/etc/groupdb.conf

# File containing data sets that should be selected in queries (optional)
#datasetdb = /etc/nagiosgraph/datasetdb.conf

# Access control configuration (optional)
# The authorization method can be one of nagios3 or nagiosgraph.  If no
# method is defined, access will be granted to all hosts and services.
# For access control via nagios, specify the nagios configuration files.
#authzmethod = nagios3
#authznagios_cfg = /etc/nagios/nagios.cfg
#authzcgi_cfg = /etc/nagios/cgi.cfg
# For access control via nagiosgraph, specify a single access control file.
#authzmethod = nagiosgraph
#authzfile = /etc/nagiosgraph/access.conf


# Logging can be enabled for a specific CGI script and/or specific hosts or
# services.  When level is set to 5, the logs will see a lot of extra output,
# so be sure to reset the level when you have finished debugging.

# Log Levels
# 0 = None
# 1 = Critical
# 2 = Error
# 3 = Warn
# 4 = Info
# 5 = Debug
debug = 5

### log level for specific scripts
# log level for insert.pl
#debug_insert = 5
# if this is set to a hostname, then only log for this host
#debug_insert_host = host1
# if this is set to a service, then only log for this service
#debug_insert_service = PLW
# *_host and *_service together for a specific service on a specific host.
# log level for show.cgi
#debug_show = 5
#debug_show_host = host1
#debug_show_service = ping
# log level for showhost.cgi
#debug_showhost = 5
#debug_showhost_host = host1
#debug_showhost_service = ping
# log level for showservice.cgi
#debug_showservice = 5
#debug_showservice_host = host1
#debug_showservice_service = ping
# log level for showgroup.cgi
#debug_showgroup = 5
#debug_showgroup = host1
#debug_showgroup_service = ping
# log level for showgraph.cgi
#debug_showgraph = 5
#debug_showgraph_host = host1
#debug_showgraph_service = ping
# log level for testcolor.cgi
#debug_testcolor = 5

# graph sizes
geometries = 650x50,800x100,1000x200,2000x100

# default graph size (optional)
#default_geometry = 600x100

# Color scheme for graphs.  There are 8 pre-defined schemes (1-8) and one
# custom scheme (9).  Use testcolor.cgi to see what the color schemes
# look like and how they apply to specific service and data set names.
colorscheme = 1

# Custom color scheme is defined by a comma-separated list of RGB hex colors.
# rainbow: reddish, orange, yellow, green, light blue, dark blue, purple, grey
colors = D05050,D08050,D0D050,50D050,50D0D0,5050D0,D050D0,505050
# light/dark pairs: blue, green, purple, orange
#colors = 90d080,30a030,90c0e0,304090,ffc0ff,a050a0,ffc060,c07020
# green from light to dark
#colors = 80d080,50a050,308030

# Colors for the maximum and minimum values, applied to the data for services
# in withmaximums and withminimums
#colormax = 888888
#colormin = BBBBBB

# Default line style (LINE1, LINE2, LINE3, AREA, TICK); see rrdgraph_graph
plotas = LINE2

# Line styles for specific data sets.  Comma-separated list of data source
# names.  Any source with a name assigned to plotasX will get line style X.
plotasLINE1 = avg5min,avg15min
plotasLINE2 = 
plotasLINE3 =
plotasAREA =
plotasTICK = 

# Specify line formats per data source (ds-name,linestyle,color).  For example,
# this plots every data source called 'crit' as a thin red line:
#lineformat = crit,LINE1,D05050
lineformat = warn,LINE1,D0D050;crit,LINE1,D05050;losswarn,LINE1,D0D050;losscrit,LINE1,D05050;rtawarn,LINE1,D0D050;rtacrit,LINE1,D05050

# Graphs to show in host-service page (day, week, month, quarter, year)
timeall = day,week,month,year
# Graphs to show in host page
timehost = day,week,month
# Graphs to show in service page
timeservice = day,week
# Graphs to show in group page
timegroup = day,week

# Time periods that should default to expanded state.  If not specified here,
# the period will default to a collapsed state.
expand_timeall = day,week,month,year
expand_timehost = week
expand_timeservice = week
expand_timegroup = day

# Formats for time and date.
timeformat_now = %H:%M:%S %d %b %Y %Z
timeformat_day = %H:%M %e %b
timeformat_week = %e %b
timeformat_month = Week %U
timeformat_quarter = Week %U
timeformat_year = %b %Y

# Set this to refresh the web page.  Value is number of seconds.
#refresh = 300

# Set this to hide the nagiosgraph title (useful when nagiosgraph is
# embedded in the nagios frame).
#hidengtitle = true

# Set this to show in the footer the time spent generating the page.
#showprocessingtime = true

# Set this to display a title for each graph in html.  When appropriate, the
# title also includes links to other views of each host and/or service.
showtitle = true

# Set this to display a description for each graph in html.  The description
# is typically a list of the data sources.
#showdesc = true

# Set this to put a title in each graph.
#showgraphtitle = true

# Set this to hide the legend in each graph.
#hidelegend = true

# Set this to display only the graph data - no axes, grid, or legend.
#graphonly = true

# These list services that should follow the maximum or minimum value returned,
# instead of the average. The values must match the service_description values
# in the Nagios configuration.
maximums = Current Load,PLW,Procs: total,Procs: zombie,User Count
minimums = APCUPSD,Mem: free,Mem: swap

# These list services that should have additional data saved and graphed.
# For services listed here, graphs that contain averages (e.g. weekly, monthly)
# will include maximum/minimum values as well.
withmaximums = PING
withminimums = PING

# Data sources whose value should be negated.  Comma-separated list of names.
#negate = byte-received,drop-received,error-received,multi-received,packet-received

# This lists data that need to go into separate rrd files.  This is used
# when creating new rrd files when a change to the map is not possible.
# Use this to segregate a value that differs greatly from other returned values
# for a specific host (separating for all hosts should be done in the map).
# Each entry consists of a comma separated set of host,service,value.  Separate
# each set with a semicolon.
#hostservvar = server1,service1,val1;server2,service2,val2
#hostservvar = host2,PLW,smtp_error

# Scaling parameters, see the rrdgraph documentation for use
# Separate multiple services to add the -A option to by commas
#altautoscale = service1,service2
# Separate multiple services to add the -J option to by semicolons, and use a
# command to separate the service name from the desired value
#altautoscalemin = service1,min1;service2,min2
# Separate multiple services to add the -M option to by semicolons, and use a
# command to separate the service name from the desired value
#altautoscalemax = service1,max1;service2,max2
# Separate multiple services to add the -N option to by commas
#nogridfit = service1,service2
# Separate multiple services to add the -o option to by commas
#logarithmic = service1,service2

# Specify rrd graph options that apply to all graphs
#rrdopts=--border 0 --color BACK#ffffff

# Optional - define rrdopts override file, this enables you to specify
# particular rrdgraph options against each service.
#rrdoptsfile=/etc/nagiosgraph/rrdopts.conf

# If perfloop is set, insert.pl will loop waiting for input data. Otherwise it
# expects to be run by Nagios for every data event.
#perfloop = 1

# The heartbeat, stepsize, and resolution are rrdtool parameters.  They are
# used when RRD files are created.  Changes to these values have no effect
# on existing RRD files.  See the rrdtool documentation for details.
# (warning: do not modify unless you know what you are doing)

# RRD heartbeat. In seconds, twice the size of servicecheck intervals.
#heartbeat = 600

# RRD step size.  300 seconds is the rrdtool default.
#stepsize = 300

# RRD resolution controls the number of data values and thus RRD file size.
#resolution = 600 700 775 797
#resolution = 17280 17520 32850 1095

# Organization of RRD files
# _ = all files in a single directory, use _ to separate host/service/database
# subdir = directory for each host, use ___ to separate service/database
dbseparator = subdir

# Optionally force the language.  If no language is specified, the language
# is determined from the browser environment or explicit cgi argument.  The
# possible values are standard language/country codes such as es, fr, de,
# en_US, en_UK, ...  If there is no corresponding language file, the language
# reverts to english.
#language = es