One option is to use another plugin that does not need to gather the Bandwidth using the MRTG rrd files.
If you want to continue to use the RRD files, you will have to install and configure MRTG on each of the workers and create the MRTG config files for the devices on that network so the plugin can access the RRD files.
A quick way to install MRTG is to use the installer from the XI source installer.
Run this in the Nagios server to download and extract the files
Code: Select all
cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.11.tar.gz
tar xzf xi-5.5.11.tar.gz
Copy the /tmp/nagiosxi/subcomponents/mrtg folder and it's contents to the remote worker.
Go to the mrtg folder and run the install script.
You would have to install some prerequisite packages on the server before hand.
Code: Select all
Net-SNMP
perl-Net-SNMP
rrdtool
librrds-perl
Create a cron file called
/etc/cron.d/mrtg and put the following line in to to run the MRTG processes every 5 minutes.
Code: Select all
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok
Save the file and restart cron.
Then you would have to manually run the cfgmaker to create the MRTG config files and them put them in the /etc/mrtg/conf.d folder.
See this for how to run the command.
https://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html
That should setup the rrd files for the checks but since the Wizard was not used to create the commands in XI, you will have to create them manually.