Page 1 of 1

nagiosgraph

Posted: Fri Nov 26, 2021 10:37 am
by tchi59
Hi,

I installed nems on my pi4
i wanted to graph the perfs of my internet connection unfortunatly when i click on nagiosgraph i catch that

Cannot read rrd directory /var/nagiosgraph/rrd

Thanks for your help

Re: nagiosgraph

Posted: Thu Dec 02, 2021 5:31 am
by LMarr[DK]
The problem is old.... has been an issue for many many months, but there is no respons, or solution, on this forum :-(

I am just waiting for 1.6 .... If it ever comes... :-)

Re: nagiosgraph

Posted: Sun Jan 09, 2022 10:14 am
by Her_Kitty_Daddy
New guy here. Hi all.

I did some experimenting and what I've found is that the configuration process after the first boot is where the errors are introduced.

In the file

Code: Select all

/usr/local/nagios/nagiosgraph/etc
(post configure) are these definitions at the top of the file:

Code: Select all

logfile = /var/nagiosgraph/nagiosgraph.log
cgilogfile = /var/nagiosgraph/nagiosgraph-cgi.log
perflog = /var/nagios/perfdata.log
rrddir = /var/nagiosgraph/rrd
mapfile = /etc/nagiosgraph/map
nagiosgraphcgiurl = /nagiosgraph/cgi-bin
javascript = /nagiosgraph/nagiosgraph.js
stylesheet = /nagiosgraph/nagiosgraph.css
These are the problems. The actual values for what I've found so far should be:

Code: Select all

logfile = /usr/local/nagios/nagiosgraph/var/nagiosgraph.log
cgilogfile = /usr/local/nagios/nagiosgraph/var/
perflog = /usr/local/nagios/var/perfdata.log
rrddir = /usr/local/nagios/nagiosgraph/var/rrd
mapfile = /usr/local/nagios/nagiosgraph/etc/map
And I figured out that the javascript and stylesheets files are in the directories that are links as shown below.

Code: Select all

/var/www/html/share/nagios -> /var/www/html/share/nagios_themes/nems-1.3
/var/www/html/share/nagios3 -> /var/www/html/share/nagios_themes/nems-1.3
/var/www/html/share/nagios_themes
I tried patching it (patch file below) and only fixed some of it. I've run out of time for working on it for the next couple of weeks and I'm hoping someone can add to what I've done here.

patchfile: nagiosgraph.conf.patch

Code: Select all

--- nagiosgraph.conf.orig       2022-01-09 08:45:38.308890652 -0500
+++ nagiosgraph.conf    2022-01-09 09:11:43.860745051 -0500
@@ -8,20 +8,25 @@
 # Author:  (c) 2010 Matthew Wall
 
 # Location of output from nagiosgraph data processing
-logfile = /var/nagiosgraph/nagiosgraph.log
+# logfile = /var/nagiosgraph/nagiosgraph.log
+logfile = /usr/local/nagios/nagiosgraph/var/nagiosgraph.log
 
 # Location of output from nagiosgraph CGI scripts
-cgilogfile = /var/nagiosgraph/nagiosgraph-cgi.log
+# cgilogfile = /var/nagiosgraph/nagiosgraph-cgi.log
+cgilogfile = /usr/local/nagios/nagiosgraph/var/
 
 # Location of nagios performance data log file.
-perflog = /var/nagios/perfdata.log
+# perflog = /var/nagios/perfdata.log
+perflog = /usr/local/nagios/var/perfdata.log
 
 # Directory in which to store RRD files
 # rrddir = /var/nagiosgraph/rrd
-rrddir = /usr/local/nagios/nagiosgraph/var/rrd
+# rrddir = /usr/local/nagios/nagiosgraph/var/rrd
+rrddir = /usr/local/nagios/nagiosgraph/rrd
 
 # File containing regular expressions to identify service and perf data
-mapfile = /etc/nagiosgraph/map
+# mapfile = /etc/nagiosgraph/map
+mapfile = /usr/local/nagios/nagiosgraph/etc/map
 
 # Nagiosgraph CGI URL.
 nagiosgraphcgiurl = /nagiosgraph/cgi-bin
@@ -31,10 +36,10 @@
 #nagioscgiurl = /nagios/cgi-bin
 
 # JavaScript: URL to the nagiosgraph javascript file.
-javascript = /nagiosgraph/nagiosgraph.js
+javascript = /var/www/html/share/nagios/nagiosgraph.js
 
 # Stylesheet: URL to the nagiosgraph stylesheet.
-stylesheet = /nagiosgraph/nagiosgraph.css
+stylesheet = /var/www/html/share/nagios/nagiosgraph.css
 
 # File containing labels for services and data (optional)
 #labelfile = /etc/nagiosgraph/labels.conf
That's it from me for now. I've gotta run.

Thanks for everyone's hard work on this.

Re: nagiosgraph

Posted: Sat Feb 12, 2022 7:50 am
by LMarr[DK]
Her_Kitty_Daddy wrote: Sun Jan 09, 2022 10:14 am I did some experimenting and what I've found is that the configuration process after the first boot is where the errors are introduced.
Cool, thanx :-)
I will try these changes and see what happens :-)

Re: nagiosgraph

Posted: Mon Apr 11, 2022 10:47 pm
by howardellis4
Damm, even I am having a similar kind of issue, I have searched all over the internet and even have posted io games on the number of threads on a different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now.

Re: nagiosgraph

Posted: Sun Apr 17, 2022 10:27 am
by LMarr[DK]
howardellis4 wrote: Mon Apr 11, 2022 10:47 pm Damm, even I am having a similar kind of issue, I have searched all over the internet and even have posted io games on the number of threads on a different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now.
I haven't found a solution and is (still) waiting for an update from 1.5.2 or a fix :-(