Thursday, May 23rd 2013, 5:51pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

1

Friday, October 22nd 2010, 8:07pm

[solved] rrdcached integration into PNP4Nagios doesn`t work

Hi,

I`m trying to integrate rrdcached support, as described here (http://docs.pnp4nagios.org/pnp-0.6/rrdcached) I added these 2 lines:
RRD_DAEMON_OPTS = unix:/var/run/rrdcached.sock
$conf['RRD_DAEMON_OPTS'] = 'unix:/var/run/rrdcached.sock';

into proper configs and I hoped it will start somehow working. But insted of it, I got red warning instead each graph. That warning is in attachment.

My config:
Debian Lenny @ HP DL 360G3 Proliant server (cca 3800 services [cca 1800 passive checks] and some 900 hosts )
Nagios 3.2.3, PNP4Nagios 0.6.7, rrdtool 1.3.1-4, Apache 2

I know there is "testing" note in config. My question is: Is this error caused because of testing state of rrdcached function in PNP or am I doing some mistake in integration with PNP?

Thank you for help.
Pep.
PepeOnAchair has attached the following image:
  • rrdcached_error.jpg

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

2

Friday, October 22nd 2010, 8:28pm

Your rrdtool version does not support rrdcached.

http://docs.pnp4nagios.org/pnp-0.6/rrdcached
You need svn version 1550 or higher.

Joerg
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

3

Tuesday, October 26th 2010, 11:23am

Thank you for reply.

I installed rrdtool 1.4.4. Just in case I also recompiled PNP4nagios (ver. 0.6.7).

and in config file "process_perfdata.cfg" changed variable "RRDTOOL" to "RRDTOOL = /opt/rrdtool-1.4.4/bin/rrdtool"
in config file "config.php" I updated this line to new rrdtool path "$conf['rrdtool'] = "/opt/rrdtool-1.4.4/bin/rrdtool";"

And now error message tells me diffrenet think, which is attached. I also thought that as rrdcached is supposed to be a daemon I tried "ps xua | grep rrd
" and I got no output, so no rrd cached is runnig. Is this the problem?

Thank you.
Pep.
PepeOnAchair has attached the following image:
  • unable_to_connect_to_rrdcached.jpg

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

4

Tuesday, October 26th 2010, 11:56am

I tried "ps xua | grep rrd
" and I got no output, so no rrd cached is runnig. Is this the problem?


Yes it is.

http://docs.pnp4nagios.org/pnp-0.6/rrdcached
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

5

Tuesday, October 26th 2010, 2:41pm

Thank you, it seems to work now. At least graphs are show now :)

My problem was here:
As I was reading the manual @ http://docs.pnp4nagios.org/pnp-0.6/rrdcached

I was skipping few first lines which optically looked to me as just some explaining of parameters of rrdcached. So I missed I have to manually run this command:
rrdcached -w 1800 -z 1800 -p /tmp/rrdcached.pid -j /tmp -s nagios -m 0660 -l unix:/tmp/rrdcached.sock

Thank you again for great graphs and quick help!
Pep.

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

6

Tuesday, October 26th 2010, 4:05pm

I`m back again.

My graphs are shoving, but last data shown there are before I switched to rrdcached. I`ve triyed a gew suggestions, but with no success.

- when I run rrdcached like this: (I changed -w and -z for better debugging)
/opt/rrdtool-1.4.4/bin/rrdcached -w 60 -z 60 -p /tmp/rrdcached.pid -j /tmp -s nagios -m 0777 -l unix:/var/run/rrdcached.sock

I get this log in syslog:
Oct 26 16:00:18 Nagios-satelit-1 rrdcached[28503]: caught SIGTERM
Oct 26 16:00:18 Nagios-satelit-1 rrdcached[28503]: starting shutdown
Oct 26 16:00:18 Nagios-satelit-1 rrdcached[28503]: expedited shutdown; journals will be used at next startup
Oct 26 16:00:18 Nagios-satelit-1 rrdcached[28503]: goodbye
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: starting up
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: checking for journal files
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: replaying from journal: /tmp/rrd.journal.1288101467.843651
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: Replayed 0 entries (0 failures)
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: replaying from journal: /tmp/rrd.journal.1288101520.683222
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: Replayed 0 entries (0 failures)
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: replaying from journal: /tmp/rrd.journal.1288101577.909141
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: Replayed 0 entries (0 failures)
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: started new journal /tmp/rrd.journal.1288101622.990286
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: journal processing complete
Oct 26 16:00:22 Nagios-satelit-1 rrdcached[2941]: listening for connections

Nagios process is running, checks are running.

RRD journals are created in /tmp (rrd.journal.1288101467.843651, ... and other 3 similar file names [owner root / group root]) But they dont grow, they have only 0 bytes.

Thank you.
Pep.

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

7

Tuesday, October 26th 2010, 5:31pm

Source code

1
grep RRD_DAEMON pnp4nagios/etc/process_perfdata.cfg

Source code

1
grep RRD_DAEMON pnp4nagios/etc/config*.php


please post the output of both commands

Joerg
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

8

Tuesday, October 26th 2010, 5:58pm

grep RRD_DAEMON pnp4nagios/etc/process_perfdata.cfg
RRD_DAEMON_OPTS = unix:/var/run/rrdcached.sock
#RRD_DAEMON_OPTS =

grep RRD_DAEMON pnp4nagios/etc/config*.php
#$conf['RRD_DAEMON_OPTS'] = 'unix:/tmp/rrdcached.sock';
#$conf['RRD_DAEMON_OPTS'] = '';
$conf['RRD_DAEMON_OPTS'] = 'unix:/var/run/rrdcached.sock';


Pep.

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

9

Wednesday, October 27th 2010, 12:21pm

Hello,

any ideas? Where should I search for error messages which could aim me to right direction to solve that?

When I comment "$conf['RRD_DAEMON_OPTS'] = 'unix:/var/run/rrdcached.sock';" and "RRD_DAEMON_OPTS = unix:/var/run/rrdcached.sock" back to defaul state, graphs are generated again. But not witch rrdchached, I guess :(

Pep.

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

10

Wednesday, October 27th 2010, 12:24pm

Source code

1
ps -ef | grep rrdcached

Source code

1
ls -la /var/run/rrdcached.sock
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

11

Wednesday, October 27th 2010, 3:04pm

Hi, here are the outputs:

ps -ef | grep rrdcached
root 24655 1 0 12:03 ? 00:00:00 /opt/rrdtool-1.4.4/bin/rrdcached -w 60 -z 60 -p /tmp/rrdcached.pid -j /tmp -s nagios -m 0777 -l unix:/var/run/rrdcached.sock

ls -la /var/run/rrdcached.sock
srwxrwxrwx 1 root nagios 0 27. říj 12.03 /var/run/rrdcached.sock


Thank you
Pep.

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

12

Wednesday, October 27th 2010, 3:35pm

running rrdcached as root is not a good idea ...
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

13

Wednesday, October 27th 2010, 6:45pm

now I run rrdcached under nagios user, but no diffrence except that I had to change "-j directory" because of the access rights:

ps -ef | grep rrdcached
nagios 29833 1 0 18:32 ? 00:00:00 /opt/rrdtool-1.4.4/bin/rrdcached -w 60 -z 60 -p /tmp/rrdcached.pid -j /tmp -s nagios -m 0777 -l unix:/tmp/rrdcached.sock

ls -la /tmp/rrdcached.sock
srwxrwxrwx 1 nagios nagios 0 27. říj 18.32 /tmp/rrdcached.sock

I also changed path /tmp/rrdcached.sock in variables "$conf['RRD_DAEMON_OPTS']" and "RRD_DAEMON_OPTS", of course.

Is that OK, that "rrd.journal..." files are only 0 bytes big? Should I search why they are not filled with data?

I still can see recently created graphs, but wihout data measure after switching to use "rrdcached.sock"

uff, Pep.

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

14

Wednesday, October 27th 2010, 7:33pm

please set LOG_LEVEL = 2 in etc/process_perfdata.cfg and check var/perfdata.log for errors.

i dont know whats going on here.
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

15

Wednesday, October 27th 2010, 8:27pm

Justy to be sure, this is my rrdcached version:
/opt/rrdtool-1.4.4/bin/rrdcached -help
RRDCacheD 1.4.4
Copyright (C) 2008,2009 Florian octo Forster and Kevin Brintnall

(I Just downloaded the last version of RRDtool in its homepage, hoping that it will fit my needs. After all I don`t know how to get exactly SVN version 1550 or higher because on rrdtool homepage I haven`t found anything like SVN versions in download section)

In log level 2 I can see the message "...update ERROR unknown option..." now. It is the same error message, as I saw for the firts time instead the graph, but now it`s in log, as you can see in the attachment. So it looks like I still don`t have correct version of RRDtool :( Am I right?

Pep.
PepeOnAchair has attached the following image:
  • perfdatalog_error.jpg

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

16

Wednesday, October 27th 2010, 8:30pm

In log level 2 I can see the message "...update ERROR unknown option..." now. It is the same error message, as I saw for the firts time instead the graph, but now it`s in log, as you can see in the attachment. So it looks like I still don`t have correct version of RRDtool :( Am I right?


Please show the complete log messages.
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

17

Wednesday, October 27th 2010, 8:32pm

I forgot to attach the log, I edited my ast post few secs ago. sorry

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

18

Wednesday, October 27th 2010, 8:36pm

The RRDs perl modules are not based on rrdtool 1.4.4
Did you build rrdtool with perl bindings?

Please check your rrdtool installation.
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution

Posts: 68

Gender: male

Number of monitoring servers: 5

Nagios Version: 3.4.4

Distributed monitoring: Ja

Redundant monitoring: Nein

Number of hosts: 1100

Number of services: 8500

OS: Debian and Ubuntu server

Plugin Version: 1.4.16

NagVis Version: 1.5.10

NDO Version: 5

Other Addons: PNP4Nagios

19

Wednesday, October 27th 2010, 8:53pm

Before I tried to install rrdcached support in PNP4nagios I use rrdtool installed by Aptitude only. Than, after you told my to upgrade rrdtool, I downloaded it and I did this:

installed these packages: libcairo2-dev, libglib2.0-dev, ibsdl-pango-dev, libxml2-dev
and then:
./configure
make
make install

Nothing else.

My experiences are not such big to be able to answer you your question "Did you build rrdtool with perl bindings?", sorry

I attached the output of ./configure of rrdtool.

Pep.
PepeOnAchair has attached the following image:
  • rrdtool_configure_output.jpg

pitchfork

Administrator

Posts: 18,450

Location: Kassel

Occupation: Sysadmin SAP / Linux / AIX

Number of monitoring servers: 2

Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios Version: 3.2.3 ( OMD )

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 360

Number of services: 6700

OS: Debian 6.0

Plugin Version: 1.4.x

Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk

20

Wednesday, October 27th 2010, 8:59pm

./configure
make
make install

Nothing else.


and thats the problem.

Please read the rrdtool install instructions.
./configure --help will give you also some informations how to build the perl bindings

Also the pnp4nagios ./configure summary will show you the detected rrdtool AND perl RRDs version.

The pnp4nagios configure scripts provide a --help option and some hints to point PNP to the correct perl RRDs Libs

Joerg
+++ PNP Developer +++ PNP 0.6.21 ist online ! +++
Hilfreiche Infos gefunden? Dann schnell ein paar Cent flattrn
OMD - Open Monitoring Distribution