Hi Andrei,

getting rrdcached working took me a little effort.

Two important points, the rrdcached socket must me accessible by the user your webserver is running as. This is most easily achieved by add '-s www-data' before the -l option, (substitute www-data for your webserver gid).

You can test this by switching user to www-data and running socat against the rrdcache socket.

www-data@host:~$ socat - unix:/var/run/rrdcached.sock
HELP
10 Command overview
UPDATE <filename> <values> [<values> ...]
FLUSH <filename>
FLUSHALL
PENDING <filename>
FORGET <filename>
QUEUE
STATS
HELP [<command>]
BATCH
QUIT


Secondly you need to configure rrd's to be at a location such as /var/lib/rrdcached/db/observium, I have...

//  rrdcached settings
$config['rrdcached']    = "unix:/var/run/rrdcached.sock";
$config['rrd_dir'] = "/var/lib/rrdcached/db/observium";


Hope this helps.

Regards,

Rob


On Fri, Feb 28, 2014 at 12:15 AM, Andrei Stana <andrei.stana@rcs-rds.ro> wrote:
Hello Dennis ,
 
I stopped the rrdcached and removed the rrdcache line from config.php and
all is working fine .
 
Thx a lot.
 
 
 
 
Andrei Stana
Team Leader 3G RAN Pitesti
Rcs & Rds Pitesti
Office : 0348-400425
Vodafone : 0720-956507
Digi.Mobil : 0770 048196
Digi.Oriunde: 0770048196
----------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or responsible
for delivery of the message to such person), you may not copy or
deliver this message to anyone. In such a case, you should destroy
this message and kindly notify the sender by reply e-mail.
----------------------------------------------------------------------
 
 
 
------ Original Message ------
From: "Dennis Kruyt" <d.kruyt@capitar.com>
To: "'Andrei Stana'" <andrei.stana@rcs-rds.ro>; "'Observium Network Observation System'" <observium@observium.org>
Sent: 2/27/2014 1:13:14 PM
Subject: RE: [Observium] Observium Graph Issue . Draw Error .
 

Did you disable rrdchached in config.php, just stopping rrdchaced is not enough?

 

 

Van: observium [mailto:observium-bounces@observium.org] Namens Andrei Stana
Verzonden: donderdag 27 februari 2014 9:27
Aan: Adam Armstrong; Observium Network Observation System
Onderwerp: Re: [Observium] Observium Graph Issue . Draw Error .

 

Hello Adam ,

 

I stopped rrdcahed but when i execut the pooler i

receive the folowing error :

 

root@host:/opt/observium# ./poller.php -h all -d | grep ERROR
stdout[ERROR: Unable to connect to rrdcached: No such file or directory
ERROR: Unable to connect to rrdcached: No such file or directory
ERROR: Unable to connect to rrdcached: No such file or directory
ERROR: Unable to connect to rrdcached: No such file or directory]
stdout[ERROR: Unable to connect to rrdcached: No such file or directory]
stdout[ERROR: Unable to connect to rrdcached: No such file or directory]
stdout[ERROR: Unable to connect to rrdcached: No such file or directory]
stdout[ERROR: Unable to connect to rrdcached: No such file or directory]
stdout[ERROR: Unable to connect to rrdcached: No such file or directory]

 

it is a very strange issue  and my not figure it out where is the problem !

 

 

 

Andrei Stana

Team Leader 3G RAN Pitesti

Rcs & Rds Pitesti

Office : 0348-400425

Vodafone : 0720-956507

Digi.Mobil : 0770 048196

Digi.Oriunde: 0770048196

----------------------------------------------------------------------

Privileged/Confidential Information may be contained in this message.

If you are not the addressee indicated in this message (or responsible

for delivery of the message to such person), you may not copy or

deliver this message to anyone. In such a case, you should destroy

this message and kindly notify the sender by reply e-mail.

----------------------------------------------------------------------

 

 

 

------ Original Message ------

From: "Adam Armstrong" <adama@memetic.org>

To: "Andrei Stana" <andrei.stana@rcs-rds.ro>; "Observium Network Observation System" <observium@observium.org>

Sent: 2/27/2014 10:03:34 AM

Subject: Re: [Observium] Observium Graph Issue . Draw Error .

 

Why are you trying to use rrdcache?

 

Didn't you think of trying to make it work without rrdcached first?

 

Rrdcached is not part of the installation instructions.

 

adam.

 

 

On 2014-02-26 09:20, Andrei Stana wrote:

Hello Tom ,

 

I remove the jobs from cron by editing crontab -e .

Now i have just one cron job from observium .

 

ROOT@HOST:/OPT/OBSERVIUM# cat /etc/cron.d/observium

33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1

*/5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1

*/5 * * * * www-data /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1

 

thx.

 

Andrei Stana

Team Leader 3G RAN Pitesti

Rcs & Rds Pitesti

Office : 0348-400425

Vodafone : 0720-956507

Digi.Mobil : 0770 048196

Digi.Oriunde: 0770048196

----------------------------------------------------------------------

Privileged/Confidential Information may be contained in this message.

If you are not the addressee indicated in this message (or responsible

for delivery of the message to such person), you may not copy or

deliver this message to anyone. In such a case, you should destroy

this message and kindly notify the sender by reply e-mail.

----------------------------------------------------------------------

 

------ Original Message ------

From: "Tom Laermans" <tom.laermans@powersource.cx>

To: "Andrei Stana" <andrei.stana@rcs-rds.ro>; "Observium Network

Observation System" <observium@observium.org>

Sent: 2/26/2014 5:10:30 PM

Subject: Re: [Observium] Observium Graph Issue . Draw Error .

 

Why do you have every cronjob set up twice?

 

On 02/26/2014 03:52 PM, Andrei Stana wrote:

 

Hello again ,

 

after i dig once again into Graph Issue i notice that

 

ROOT@HOST:/ETC/CRON.D# cat observium

33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1

*/5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1

*/5 * * * * www-data /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1

 

but when i execute

 

33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1

*/5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1

*/5 * * * * root /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1

 

the user is root instad of www-data

 

But rrd/ is used pe the user www-data

ROOT@HOST:/OPT/OBSERVIUM# ls -alh

drwxr-xr-x 3 www-data www-data 4.0K Feb 24 16:20 rrd

 

After that when i run :

 

ROOT@HOST:/OPT/OBSERVIUM# ./poller.php -h all -d

 

I saw that a receive some lines with the following error :

[ERROR: rrdcached: Permission denied ]

 

I not figure it out where is the problem !

 

Andrei Stana

Team Leader 3G RAN Pitesti

Rcs & Rds Pitesti

Office : 0348-400425

Vodafone : 0720-956507

Digi.Mobil : 0770 048196

Digi.Oriunde: 0770048196

----------------------------------------------------------------------

Privileged/Confidential Information may be contained in this message.

If you are not the addressee indicated in this message (or responsible

for delivery of the message to such person), you may not copy or

deliver this message to anyone. In such a case, you should destroy

this message and kindly notify the sender by reply e-mail.

----------------------------------------------------------------------

 

------ Original Message ------

From: "Andrei Stana" <andrei.stana@rcs-rds.ro>

Sent: 2/26/2014 10:52:04 AM

Subject: Observium Graph Issue . Draw Error .

 

Hello everyone ,

 

I have a problem regarding the drawing of the graph in observium .

 

Snmpd is running , rrdcached is running .

 

When i run : root@host:/opt/observium# ./poller.php -h all -d

i saw that a receive some lines with the following error :

[ERROR: rrdcached: Permission denied ]

 

The rrdcached daemon is running like this :

 

root@host:/opt/observium# ps fax | grep rrdcached

26356 pts/0 S+ 0:00 | _ grep --color=auto rrdcached

15833 ? Ssl 0:01 /usr/bin/rrdcached -l unix:/var/run/rrdcached.sock -j

/var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db -B / -p

/var/run/rrdcached.pid

 

if i go and edit the rrdcached and remove -B option and then i restart

de rrdcached

service i do not get anymore ERROR after i run ./poller.php -h all -d .

 

Suggetions anyone ?

 

Multumesc.

Andrei.

 

Andrei Stana

Team Leader 3G RAN Pitesti

Rcs & Rds Pitesti

Office : 0348-400425

Vodafone : 0720-956507

Digi.Mobil : 0770 048196

Digi.Oriunde: 0770048196

----------------------------------------------------------------------

Privileged/Confidential Information may be contained in this message.

If you are not the addressee indicated in this message (or responsible

for delivery of the message to such person), you may not copy or

deliver this message to anyone. In such a case, you should destroy

this message and kindly notify the sender by reply e-mail.

----------------------------------------------------------------------

 

_______________________________________________

observium mailing list

 

 

 

Links:

------

 

_______________________________________________

observium mailing list


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium