nagiosgraph

Having issues? Post them here, and help other users.
Post Reply
tchi59
Junior Member
Posts: 1
Joined: Fri Nov 26, 2021 10:34 am

nagiosgraph

Post 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
LMarr[DK]
Junior Member
Posts: 4
Joined: Wed Nov 03, 2021 10:05 pm

Re: nagiosgraph

Post 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... :-)
Her_Kitty_Daddy
Junior Member
Posts: 1
Joined: Sun Jan 09, 2022 9:56 am

Re: nagiosgraph

Post 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.
LMarr[DK]
Junior Member
Posts: 4
Joined: Wed Nov 03, 2021 10:05 pm

Re: nagiosgraph

Post 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 :-)
howardellis4
Junior Member
Posts: 1
Joined: Mon Apr 11, 2022 10:37 pm

Re: nagiosgraph

Post 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.
LMarr[DK]
Junior Member
Posts: 4
Joined: Wed Nov 03, 2021 10:05 pm

Re: nagiosgraph

Post 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 :-(
Post Reply