Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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,
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.