Nagiosgraph only works for services in localhost.cfg

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Hans van Leeuwen
Posts: 4
Joined: Mon Jan 04, 2016 7:27 am

Nagiosgraph only works for services in localhost.cfg

Post by Hans van Leeuwen »

Hi,

We use Nagios 4.1.1
In the directory /usr/local/nagios/etc/objects we have several ".cfg" files like localhost.cfg, printer.cfg, firewall.cfg and switch.cfg.
Most services are defined in the localhost.cfg file.
For services that are defined in the localhost.cfg file Nagiosgraph works correct.
In the directory /usr/local/nagiosgraph/var/rdd/<hostname> are file like:
CPU%20load___cpu_used.rrd
HTTP___size.rrd
Memory%20LOAD___buffer.rrd
PING___pl.rrd
SSH%20port%208022___time.rdd
For services that are defined in another .cfg file like firewall.cfg, no files are created in the directory:
/usr/local/nagiosgraph/var/rdd/<firewallname>
In the directory /usr/local/nagiosgraph/var/rdd/<firewallname> we only see file for ping like PING___pl.rrd
We expect also rrd files for cpu_load, interface_load and active_sessions.
When we press the Nagiosgraph button in the Nagios website we get the error message:
"No data available: host=firewall service=firewall_interface_load db="

How can I get the Nagiosgraph data for services that are defined in another .cfg file as localhost.cfg?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagiosgraph only works for services in localhost.cfg

Post by tgriep »

Nagiosgraph is was not written by Nagios so there is limited support we can offer.
Have you taken a look at the forum's at Nagiosgraph to see if there is a possible solution for what you are seeing?
https://sourceforge.net/p/nagiosgraph/discussion/394748

Or, take a look at the Nagiosgraph Wiki at the link below. It looks like that is the issue you are having.
https://sourceforge.net/p/nagiosgraph/w ... up-why-not
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked