Bandwidth report

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Bandwidth report

Post by mejokj »

Hello,

I have created one custom service now I need to show it under the report> Bandwidth Usage. kindly provide the steps to do the same.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Bandwidth report

Post by vtrac »

Hi,
How are you doing?
I looked at my Nagios XI and it said you must use "Network Switch / Router Config Wizard" to use this report.
T1.png

Best Regards,
Vinh
You do not have the required permissions to view the files attached to this post.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Bandwidth report

Post by mejokj »

I am fine thanks and how are you?
I need to show my service which is custom one not added from the nagios network wizard. IS it possible to show it under the bandwidth?
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Bandwidth report

Post by vtrac »

Hi,
I'm good, thanks!!

Is your data a rrd files and resides under "/var/lib/mrtg" filder?

May I see your command used and the screenshot of your graph?


Best Regards,
Vinh
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Bandwidth report

Post by mejokj »

Hello,

Please find the below plugin which we used.


#!/bin/bash
text=`curl -s 'http://194.126.33.66/stat' | grep -A 2 '<name>12345</name>' | grep bw_in | cut -d'_' -f 2 `
bandwidth=`echo $text | tr -dc '0-9'`
if [[ $? -eq 0 ]]; then
echo "input bandwidth: $bandwidth bytes| bw=$bandwidth"
else
echo "input bandwidth: 0 | bw=0"
fi
You do not have the required permissions to view the files attached to this post.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Bandwidth report

Post by vtrac »

Hi,
Hope that your day is going well!! ... :-)

Looks like your script does not generate the ".rrd" files that reside in the "/var/lib/mrtg" folder.

Sorry, but I don't think this will works in the Bandwidth report.

The requirement is that you must use the "Network Switch / Router Config Wizard".


Best Regards,
Vinh