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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.