No RRD File - Network Switch Wizard
Posted: Mon Feb 17, 2014 9:53 pm
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 ).
Wizard = Network Switch / Router
Check Command = check_xi_service_mrtgtraf ( which is using "check_rrdtraf" )
Actual Error = /var/lib/mrtg/192.168.20.1_10127.rrd does not exist.
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 …
Found same Issue in forum http://support.nagios.com/forum/viewtop ... 28&p=60431 ( The post didn't reveal a Fix ??? )
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 ?
Appreciate Any Clues before we make a decision about NAGIOSXI ..
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 ).
Wizard = Network Switch / Router
Check Command = check_xi_service_mrtgtraf ( which is using "check_rrdtraf" )
Actual Error = /var/lib/mrtg/192.168.20.1_10127.rrd does not exist.
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 …
Found same Issue in forum http://support.nagios.com/forum/viewtop ... 28&p=60431 ( The post didn't reveal a Fix ??? )
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 ?
Appreciate Any Clues before we make a decision about NAGIOSXI ..