RRD File generation error.
Posted: Wed Feb 19, 2014 1:38 am
Hello,
We have been trialling the VMware Appliance version of NAGIOSXI, with a view to consolidating our existing Nagios Core and MRTG in house monitoring. I have stumbled on road block with our tests ….
When adding a router from the Monitoring Wizard the Graphs aren’t being displayed. ( Graphs are working for SNMP and other checks ).
The error is saying that the RRD file doesn't exist ... Which is correct , no RRD files are being generated.
I have narrowed it down to a couple of issues with the MRTG configuration file and consequently lack of RRD files. In the first Instance the config file gets overwritten and doesn’t add a “WORKDIR” entry effectively stopping MRTG from running. If I manually add this option the following output occurs when running a check command …
----------------------------------------------------------------------------------------------------------------------------------------------------
[root@dc1comvadmn02 mrtg]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_1][_IN_] ' $target->[0]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_1][_OUT_] ' $target->[0]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_5][_IN_] ' $target->[1]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_5][_OUT_] ' $target->[1]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_21][_IN_] ' $target->[2]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_21][_OUT_] ' $target->[2]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_23][_IN_] ' $target->[3]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_23][_OUT_] ' $target->[3]{$mode} c' (warn): (Missing operator before c?)
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Steps Taken …
Checked Forum ( Unable to Post a request even when registered and Logged in ? )
Found same Issue in forum http://support.nagios.com/forum/viewtop ... 28&p=60431
Upgraded to latest release xi-2012r2.9.tar.gz. ( Also another issue in running the backup script .. I had to run it from within the actual directory )
Deleted Device and Service Checks from Web Interface.
Removed Device Entries from mrtg.cfg
Removed the Temporary mrtgscan* files.
Re-added Device .. same Result ( No Workdir then the errors above )
Obviously I can change the Check to another one that will work ( ie check_snmp_int.pl ) but seeing as this is a core wizard I was wondering if this is a known issue or Is it operator error ?
Any clues would help our ongoing trial of your software. Thanks
We have been trialling the VMware Appliance version of NAGIOSXI, with a view to consolidating our existing Nagios Core and MRTG in house monitoring. I have stumbled on road block with our tests ….
When adding a router from the Monitoring Wizard the Graphs aren’t being displayed. ( Graphs are working for SNMP and other checks ).
The error is saying that the RRD file doesn't exist ... Which is correct , no RRD files are being generated.
I have narrowed it down to a couple of issues with the MRTG configuration file and consequently lack of RRD files. In the first Instance the config file gets overwritten and doesn’t add a “WORKDIR” entry effectively stopping MRTG from running. If I manually add this option the following output occurs when running a check command …
----------------------------------------------------------------------------------------------------------------------------------------------------
[root@dc1comvadmn02 mrtg]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_1][_IN_] ' $target->[0]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_1][_OUT_] ' $target->[0]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_5][_IN_] ' $target->[1]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_5][_OUT_] ' $target->[1]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_21][_IN_] ' $target->[2]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_21][_OUT_] ' $target->[2]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_23][_IN_] ' $target->[3]{$mode} c' (warn): (Missing operator before c?)
2014-02-17 13:38:07: ERROR: Target[192.168.20.1_23][_OUT_] ' $target->[3]{$mode} c' (warn): (Missing operator before c?)
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Steps Taken …
Checked Forum ( Unable to Post a request even when registered and Logged in ? )
Found same Issue in forum http://support.nagios.com/forum/viewtop ... 28&p=60431
Upgraded to latest release xi-2012r2.9.tar.gz. ( Also another issue in running the backup script .. I had to run it from within the actual directory )
Deleted Device and Service Checks from Web Interface.
Removed Device Entries from mrtg.cfg
Removed the Temporary mrtgscan* files.
Re-added Device .. same Result ( No Workdir then the errors above )
Obviously I can change the Check to another one that will work ( ie check_snmp_int.pl ) but seeing as this is a core wizard I was wondering if this is a known issue or Is it operator error ?
Any clues would help our ongoing trial of your software. Thanks