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 ..
No RRD File - Network Switch Wizard
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: No RRD File - Network Switch Wizard
We do have a resolution for this, but it will require me to handle some files you may not want to share openly here, can you PM me all of the files you have in:
Also, I'm moving this to the XI - General Support section, as this is pertaining to Nagios XI not Nagios Core.
Code: Select all
/etc/mrtg/-
rwtrialuser
- Posts: 5
- Joined: Sun Feb 02, 2014 11:40 pm
Re: No RRD File - Network Switch Wizard
The fix provided was only temporary .. Once the Wizard is run again the problem reappears.
Is this currently being looked at in terms of a permanent fix, or what is causing it ?
Is this currently being looked at in terms of a permanent fix, or what is causing it ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: No RRD File - Network Switch Wizard
You must also revert your wizard version to the one found here:
http://exchange.nagios.org/directory/Ad ... rd/details
Download that wizard, then remove the one from your installation at Admin > Manage Config Wizards, then re-upload with the one you downloaded.
http://exchange.nagios.org/directory/Ad ... rd/details
Download that wizard, then remove the one from your installation at Admin > Manage Config Wizards, then re-upload with the one you downloaded.
-
rwtrialuser
- Posts: 5
- Joined: Sun Feb 02, 2014 11:40 pm
Re: No RRD File - Network Switch Wizard
Thank You
I will try to revert to that version of the wizard ....
Do you know if this issue is going to be fixed in an upcoming release ?
I will try to revert to that version of the wizard ....
Do you know if this issue is going to be fixed in an upcoming release ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: No RRD File - Network Switch Wizard
It is fixed currently, with Nagios XI 2012 2.9, however if you upgrade your wizard will still be stuck in the broken version until you do the above.
-
rwtrialuser
- Posts: 5
- Joined: Sun Feb 02, 2014 11:40 pm
Re: No RRD File - Network Switch Wizard
OK that wizard has fixed the issue... I am getting graphs with actual correct values ( Not NAN ) coming through.
The mrtg.cfg is also not being overwritten when the wizard is re-run.
Thanks for the help.
The mrtg.cfg is also not being overwritten when the wizard is re-run.
Thanks for the help.