SNMP charts show MBytes not Mbits
Re: SNMP charts show MBits not Mbps
I am so sorry for such a Noob at this but where do i import this script, i tried in the plugins but then it does not show up in the core check command options
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Re: SNMP charts show MBits not Mbps
Just put it in /usr/local/nagios/libexec, if you want it to be used as the default for the switch wizard then go to Configure > Core Config Manager > Commands, edit the check_xi_service_mrtgtraf and change it to:
Then apply config.
NOTE: Again, you will mess up your current bandwidth checks if you do this and will need to delete the associated RRDs in /usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.rrd
Code: Select all
$USER1$/check_rrdtraf_custom -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$NOTE: Again, you will mess up your current bandwidth checks if you do this and will need to delete the associated RRDs in /usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.rrd
Re: SNMP charts show MBits not Mbps
OK so i think that i have this problem sussed out,
It seems that when you probe a Mikrotik with SNMP it returns a number in bytes, Nagios doesn't know this and assumes it is bits.
So now it seems i am looking for a plugin to convert the plugin to convert bytes to bits, which means we shouldnt need to delete the rrd's?
It seems that when you probe a Mikrotik with SNMP it returns a number in bytes, Nagios doesn't know this and assumes it is bits.
So now it seems i am looking for a plugin to convert the plugin to convert bytes to bits, which means we shouldnt need to delete the rrd's?
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Re: SNMP charts show MBits not Mbps
MRTG queries your router/switch which by default gets it thinking it's bytes.
The only way that I can see to resolve the issue would be for you to delete the RRDs (from /var/lib/mrtg and from /usr/local/nagios/share/perfdata) for these Mikrotik devices and add this option to your /etc/mrtg/conf.d/DEVICENAME.cfg
We would then have to look at the script from there since the calculations would be different I believe, maybe not though.
The only way that I can see to resolve the issue would be for you to delete the RRDs (from /var/lib/mrtg and from /usr/local/nagios/share/perfdata) for these Mikrotik devices and add this option to your /etc/mrtg/conf.d/DEVICENAME.cfg
Code: Select all
Options[_]: growright, bitsRe: SNMP charts show MBits not Mbps
ok so that broke mrtg LOL
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Re: SNMP charts show MBits not Mbps
Could you provide more information about how it broke MRTG? What are you seeing?
Former Nagios Employee
Re: SNMP charts show MBits not Mbps
i am seeing no data in the nagios reports... all charts show 0Mbps after making that change.
I run a test on the command and it returns 0Mbps
I run a test on the command and it returns 0Mbps
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Re: SNMP charts show MBits not Mbps
Just to confirm.
You added it to the /etc/mrtg/conf.d/DEVICENAME.cfg file, right?
You removed the RRD files for the bandwidth checks from /usr/local/nagios/share/perfdata/HOSTNAME/ and from /var/lib/mrtg/, right?
You added it to the /etc/mrtg/conf.d/DEVICENAME.cfg file, right?
You removed the RRD files for the bandwidth checks from /usr/local/nagios/share/perfdata/HOSTNAME/ and from /var/lib/mrtg/, right?
Re: SNMP charts show MBits not Mbps
That is correct
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Re: SNMP charts show MBits not Mbps
Ok, follow this process, I've updated the plugin to use the proper logic now.
Edit /etc/mrtg/conf.d/DEVICENAME.cfg and uncomment this line:
Then delete all your MRTG RRDs for that device:
Then take this updated plugin, unzip it, and put it in /usr/local/nagios/libexec with a different name (like check_rrdtraf_bits).
Then go into the web interface and go to Configure > Core Config Manager > Commands and edit the check_xi_service_mrtgtraf command to point to the new plugin (check_rrdtraf_bits) and apply configuration. Doing it this way will allow the wizard to still work properly and should be safe for upgrades.
Now delete all your bandwidth perfdata files for that device (XML and RRD files) in /usr/local/nagios/share/perfdata/DEVICENAME.
It needs to be done in that exact process. Once MRTG runs again and a few bandwidth checks run it should rebuild the performance data graphs and should show the proper data.
Edit /etc/mrtg/conf.d/DEVICENAME.cfg and uncomment this line:
Code: Select all
# Options[_]: growright, bitsCode: Select all
rm -rf /var/lib/mrtg/DEVICENAME*Then go into the web interface and go to Configure > Core Config Manager > Commands and edit the check_xi_service_mrtgtraf command to point to the new plugin (check_rrdtraf_bits) and apply configuration. Doing it this way will allow the wizard to still work properly and should be safe for upgrades.
Now delete all your bandwidth perfdata files for that device (XML and RRD files) in /usr/local/nagios/share/perfdata/DEVICENAME.
It needs to be done in that exact process. Once MRTG runs again and a few bandwidth checks run it should rebuild the performance data graphs and should show the proper data.
You do not have the required permissions to view the files attached to this post.