Nagiosgraph only works for services in localhost.cfg
Posted: Wed May 10, 2017 3:14 am
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?
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?