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.
Bandwidth report
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Bandwidth report
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.
Best Regards,
Vinh
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.
Best Regards,
Vinh
You do not have the required permissions to view the files attached to this post.
-
- Posts: 353
- Joined: Mon Jul 22, 2013 10:31 pm
Re: Bandwidth report
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?
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?
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Bandwidth report
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
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
-
- Posts: 353
- Joined: Mon Jul 22, 2013 10:31 pm
Re: Bandwidth report
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
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.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Bandwidth report
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
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