LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2010, 03:11 AM   #1
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 1
Nagiosgraph -- RRD directory is empty


Hello

I am having some problems to generate rrd files automatically.
I've installed nagios 3.2.1 together with nagiosgraph 1.4.2. When i try to generate graph from the webinterface, the rrd directory doesn't get populated. However, when i run the perf script 'insert.pl' from the linux console as follows ( perl /usr/local/lib/insert.pl) the rrd directory is populated and i can view the graphs.

Anyone could please help?
I want to generate rrd files automatically.

Regards
 
Old 06-03-2010, 11:46 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Check the permissions on the directory, can the webserver user write to there?

Last edited by rweaver; 06-03-2010 at 11:48 AM.
 
Old 06-04-2010, 12:50 AM   #3
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 1
RRD not getting populated

I've created the rrd directory as follows
mkdir rrd
chown nagios.nagios rrd
chmod 777 rrd
 
Old 06-04-2010, 07:11 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I've not used Nagiosgraph yet.

However, when using an earlier graphing plugin on an earlier version of Nagios the RRD files had to be manually created with rrdtool before the graphing plugin would start writing Nagios checks into them. I'm wondering if that isn't also the case for Nagiosgraph?
 
Old 06-07-2010, 01:06 AM   #5
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 1
No Idea
I've installed nagios and nagiosgraph for the first time and am really stuck..for weeks am struggling..
Any idea how to proceed?
 
Old 06-08-2010, 02:28 AM   #6
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 1
Hi MensaWater.

This is not the case with nagiosgraph. The rrd files are generated when the perl script is run manually for the first time, however they are not updated when subsequent data are generated,

Any clue how to solve this issue?
 
1 members found this post helpful.
Old 06-09-2010, 06:30 AM   #7
matthew wall
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
check nagios config and nagiosgraph log

what is in the nagiosgraph log file?

first check the nagios configuration. are you using batch mode or immediate mode to initiate nagiosgraph data processing? ensure that your nagios configuration matches what is described in the 'Configuring Data Processing' section of INSTALL. batch mode is usually the better choice.

then turn up the log level for data processing by setting debug_insert to 5 in nagiosgraph.conf. look at the contents of the nagiosgraph log file to see what is happening. you should see nagiosgraph being invoked periodically to process the nagios perfdata.

then look for a specific service in the log file. ensure that data are being processed properly. the log file should indicate any problems that prevent data processing.

be sure to turn the log level back to 3 or less after you find the problem.
 
Old 06-15-2010, 01:50 AM   #8
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 1
Hi Mathew

please find below the contents of the log file.
I am using batch mode to initiate data processing.

Tue Jun 15 11:07:32 2010 insert.pl debug insert.pl processing started
Tue Jun 15 11:07:32 2010 insert.pl debug getrules(/etc/nagiosgraph/map)
Tue Jun 15 11:07:32 2010 insert.pl debug inputdata()
Tue Jun 15 11:07:32 2010 insert.pl debug insert.pl processing complete
Tue Jun 15 11:08:02 2010 insert.pl debug insert.pl processing started
Tue Jun 15 11:08:02 2010 insert.pl debug getrules(/etc/nagiosgraph/map)
Tue Jun 15 11:08:02 2010 insert.pl debug inputdata()
Tue Jun 15 11:08:02 2010 insert.pl debug insert.pl processing complete
Tue Jun 15 11:08:32 2010 insert.pl debug insert.pl processing started
Tue Jun 15 11:08:32 2010 insert.pl debug getrules(/etc/nagiosgraph/map)
Tue Jun 15 11:08:32 2010 insert.pl debug inputdata()
Tue Jun 15 11:08:32 2010 insert.pl debug insert.pl processing complete
Tue Jun 15 11:08:45 2010 show.cgi debug getdebug(show, localhost, Current Load)
Tue Jun 15 11:08:45 2010 show.cgi debug getdebug found debug_show
Tue Jun 15 11:08:45 2010 show.cgi critical No data in rrd directory /var/nagios/
rrd


any idea how to debug?
 
Old 06-15-2010, 12:40 PM   #9
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
What are your permissions on /var and /var/nagios?
 
Old 06-17-2010, 01:06 AM   #10
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 1
Hi rweaver

The permissions for var and var/nagios are

drwxrwxrwx 16 root root 416 Jun 15 14:42 var

drwxr-xr-x 3 root root 104 Jun 15 14:58 nagios

regards
 
Old 06-17-2010, 02:10 PM   #11
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Try chowning -R /var/nagios to nagios:nagios and restart all the daemons related to rrd generation. It's also possible that they're writing their data to different locations and you need to point both to the same location.
 
Old 06-18-2010, 01:13 AM   #12
vms
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 1
Hello

Hello ,

I've changed the access rights on var/nagios as follows

drwxr-xr-x 3 nagios nagios 104 Jun 15 14:58 nagios

still not working.
 
Old 07-05-2010, 06:48 AM   #13
matthew wall
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by vms View Post
Hi Mathew

please find below the contents of the log file.
I am using batch mode to initiate data processing.

Tue Jun 15 11:07:32 2010 insert.pl debug insert.pl processing started
Tue Jun 15 11:07:32 2010 insert.pl debug getrules(/etc/nagiosgraph/map)
Tue Jun 15 11:07:32 2010 insert.pl debug inputdata()
Tue Jun 15 11:07:32 2010 insert.pl debug insert.pl processing complete

any idea how to debug?

it looks like there is no pattern in the map file that matches your plugin output. /etc/nagiosgraph/map contains patterns that match plugin output/perfdata and associated rules for putting the results into RRD files.

please run one of your plugins directly then post the output. from that we can create a pattern for the output and/or performance data.
 
Old 08-12-2011, 06:00 AM   #14
ctibak
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Nagiosgraph -- RRD directory is empty

HI,

insert this lines into nagios.cfg

#-nagiosgraph
process_performance_data=1
service_perfdata_file=/tmp/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph
 
Old 07-03-2014, 01:09 PM   #15
keziacp
LQ Newbie
 
Registered: Mar 2014
Posts: 22

Rep: Reputation: Disabled
Exclamation rrdtool core dumped

Hi all,
Plese could someone help me?
I need to install nagiosgraph, but I cant do this, I am trying this for about 1 month. Actually I am trying to do the libary works, rrdtool.

It is installed when i put on my server: rrdtool -v I can see it.

root@nagios:/opt# rrdtool -v
RRDtool 1.4.8 Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Jun 20 2014 10:05:43

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages


But I dont know to do it work. Look:

root@nagios:/opt# rrdtool create temperature.rrd --step 300 \
> DS:temp:GAUGE:600:-273:5000 \
> RRA:AVERAGE:0.5:1:1200 \
> RRA:MIN:0.5:12:2400 \
> RRA:MAX:0.5:12:2400 \
> RRA:AVERAGE:0.5:12:2400
Bus Error (core dumped)


I dont know now what to do. Some idea?
I am actually workink on a Solaris 11 on a Sun SPARC T3.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rm: cannot remove directory `ff': Directory not empty blancs Linux - General 17 08-29-2011 01:47 PM
NagiosGraph RRD is not getting populated. knockout_artist Linux - Newbie 1 03-16-2010 03:49 AM
Empty a directory fhsm Linux - Newbie 3 04-16-2009 11:19 PM
The postgresql data directory content in the pgsql directory is lost (empty data dir) kisembo Linux - Software 1 02-13-2006 01:11 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration