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
nagiosgraph
Re: nagiosgraph
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... :-)
I am just waiting for 1.6 .... If it ever comes... :-)
-
- Junior Member
- Posts: 1
- Joined: Sun Jan 09, 2022 9:56 am
Re: nagiosgraph
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 (post configure) are these definitions at the top of the file:
These are the problems. The actual values for what I've found so far should be:
And I figured out that the javascript and stylesheets files are in the directories that are links as shown below.
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
That's it from me for now. I've gotta run.
Thanks for everyone's hard work on this.
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
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
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
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
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
Thanks for everyone's hard work on this.
Re: nagiosgraph
Cool, thanx :-)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.
I will try these changes and see what happens :-)
-
- Junior Member
- Posts: 1
- Joined: Mon Apr 11, 2022 10:37 pm
Re: nagiosgraph
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
I haven't found a solution and is (still) waiting for an update from 1.5.2 or a fix :-(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.