Greetings Everyone,
I recently installed NAV 4.0.2 on Debian (by compiling) using instructions from https://nav.uninett.no/doc/latest/intro/install.html
All dependencies were installed successfully. Python modules were installed using PIP. Graphite and Carbon appear to be installed and working as well (at this point, I launch carbon and graphite using the scripts " carbon-cache.ph" and "run-graphite-devel-server.py" located in "/opt/graphite/bin".
Access to NAV (as well as Graphite's) main page over a web browser present no issues however, Availability under Status reads "Graphite unreachable". In addition, the Graphite web interface presents entries for Carbon and none for NAV.
I am lead to believe that the carbon backend is working given the contents of the folder "/var/lib/graphite/whisper/nav" includes entries for NAV seeded devices.
On that note, any assistance/suggestions that could lead to resolving this issue would greatly be appreciated. I can provide additional information where required.
Thanks, Ukeme
On Tue, 27 May 2014 11:12:37 -0400 Ukeme Noah ukeme.noah@ryerson.ca wrote:
Greetings Everyone,
Hi Ukeme,
All dependencies were installed successfully. Python modules were installed using PIP. Graphite and Carbon appear to be installed and working as well (at this point, I launch carbon and graphite using the scripts " carbon-cache.ph" and "run-graphite-devel-server.py" located in "/opt/graphite/bin".
Access to NAV (as well as Graphite's) main page over a web browser present no issues however, Availability under Status reads "Graphite unreachable".
This error usually means NAV has a problem contacting the Graphite web interface. Is the base URL specified correctly in NAV's `graphite.conf`, and is that IP address/port combination open for for access from the NAV server?
In addition, the Graphite web interface presents entries for Carbon and none for NAV.
That is, however, a bit strange. Did you install all the Graphite components (whisper, carbon, graphite-web) using pip or Debian packages?
I am lead to believe that the carbon backend is working given the contents of the folder "/var/lib/graphite/whisper/nav" includes entries for NAV seeded devices.
If your data is in `/var/lib/graphite/whisper/nav`, it sounds like you installed the graphite-carbon Debian package. Then you say you have `/opt/graphite/bin/run-graphite-devel-server.py`, which sounds like you installed graphite-web from source or using pip.
Is graphite-web correctly configured to look for whisper files in `/var/lib/graphite/whisper/`, or is it looking in `/opt/graphite/storage/whisper`? Under Graphite's typical /opt layout, the webapp's config is found in `/opt/graphite/webapp/graphite/`.
Hi Morten,
Thanks for responding. Graphite-carbon was installed via the Debian package while the graphite-web was installed using pip. I was able to trace the source of the problem to the webapp's config file as suggested. I ended up performing a new install on a different machine in an attempt to save some time.
The new install was successful and Graphite appears to be working properly. NAV on the other hand renders system metrics graphs but returns empty graphs for port metrics even though Graphite (via browser) presents no issues with port metrics rendering. Given this would probably fall under a rendering issue, I'll see what I can find in the archives on this. Will send out an email in the event I'm unable to sort the "port metrics" issue.
Thanks for your time. Sincerely, Ukeme Noah
On Wed, May 28, 2014 at 3:23 AM, Morten Brekkevold < morten.brekkevold@uninett.no> wrote:
On Tue, 27 May 2014 11:12:37 -0400 Ukeme Noah ukeme.noah@ryerson.ca wrote:
Greetings Everyone,
Hi Ukeme,
All dependencies were installed successfully. Python modules were
installed
using PIP. Graphite and Carbon appear to be installed and working as well (at this point, I launch carbon and graphite using the scripts " carbon-cache.ph" and "run-graphite-devel-server.py" located in "/opt/graphite/bin".
Access to NAV (as well as Graphite's) main page over a web browser
present
no issues however, Availability under Status reads "Graphite
unreachable".
This error usually means NAV has a problem contacting the Graphite web interface. Is the base URL specified correctly in NAV's `graphite.conf`, and is that IP address/port combination open for for access from the NAV server?
In addition, the Graphite web interface presents entries for Carbon and none for NAV.
That is, however, a bit strange. Did you install all the Graphite components (whisper, carbon, graphite-web) using pip or Debian packages?
I am lead to believe that the carbon backend is working given the
contents
of the folder "/var/lib/graphite/whisper/nav" includes entries for NAV seeded devices.
If your data is in `/var/lib/graphite/whisper/nav`, it sounds like you installed the graphite-carbon Debian package. Then you say you have `/opt/graphite/bin/run-graphite-devel-server.py`, which sounds like you installed graphite-web from source or using pip.
Is graphite-web correctly configured to look for whisper files in `/var/lib/graphite/whisper/`, or is it looking in `/opt/graphite/storage/whisper`? Under Graphite's typical /opt layout, the webapp's config is found in `/opt/graphite/webapp/graphite/`.
-- Morten Brekkevold UNINETT
On Wed, 28 May 2014 13:41:46 -0400 Ukeme Noah ukeme.noah@ryerson.ca wrote:
The new install was successful and Graphite appears to be working properly. NAV on the other hand renders system metrics graphs but returns empty graphs for port metrics even though Graphite (via browser) presents no issues with port metrics rendering. Given this would probably fall under a rendering issue, I'll see what I can find in the archives on this. Will send out an email in the event I'm unable to sort the "port metrics" issue.
Is your Carbon correctly configured with the `storage-schemas.conf` supplied by NAV? If not, your Whisper files will have been generated with the wrong schemas, and that will impact the port stats worse than the system stats - the default resolution in Carbon's config, I think, is 1 minute interval data points, while NAV port counters are only collected every 5 minutes, and displayed using Graphite's derive-functions. That may cause your graphs to look pretty empty.
If your Whisper files have the wrong schema, the only useful way to fix it is to install the correct Carbon `storage-schemas.conf`, restart Carbon and delete all the Whisper files in the nav subtree.
Hi Morten,
Thanks for replying. I followed your recommendation and we now have data presented on all graphs in NAV. Thanks a lot.
Sincerely, Ukeme Noah
On Mon, Jun 2, 2014 at 4:47 AM, Morten Brekkevold < morten.brekkevold@uninett.no> wrote:
On Wed, 28 May 2014 13:41:46 -0400 Ukeme Noah ukeme.noah@ryerson.ca wrote:
The new install was successful and Graphite appears to be working
properly.
NAV on the other hand renders system metrics graphs but returns empty graphs for port metrics even though Graphite (via browser) presents no issues with port metrics rendering. Given this would probably fall under
a
rendering issue, I'll see what I can find in the archives on this. Will send out an email in the event I'm unable to sort the "port metrics"
issue.
Is your Carbon correctly configured with the `storage-schemas.conf` supplied by NAV? If not, your Whisper files will have been generated with the wrong schemas, and that will impact the port stats worse than the system stats - the default resolution in Carbon's config, I think, is 1 minute interval data points, while NAV port counters are only collected every 5 minutes, and displayed using Graphite's derive-functions. That may cause your graphs to look pretty empty.
If your Whisper files have the wrong schema, the only useful way to fix it is to install the correct Carbon `storage-schemas.conf`, restart Carbon and delete all the Whisper files in the nav subtree.
-- Morten Brekkevold UNINETT
On Thu, 5 Jun 2014 09:30:36 -0400 Ukeme Noah ukeme.noah@ryerson.ca wrote:
Hi Morten,
Thanks for replying. I followed your recommendation and we now have data presented on all graphs in NAV. Thanks a lot.
No prob, glad we could help :)