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 |
Check the permissions on the directory, can the webserver user write to there?
|
RRD not getting populated
I've created the rrd directory as follows
mkdir rrd chown nagios.nagios rrd chmod 777 rrd |
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? |
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? |
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? |
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. |
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? |
What are your permissions on /var and /var/nagios?
|
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 |
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.
|
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. |
Quote:
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. |
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 |
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 |
All times are GMT -5. The time now is 05:27 PM. |