Interface Bandwidth Graphs in b/s measurements

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Interface Bandwidth Graphs in b/s measurements

Post by hhlodge »

Hi,

I see this subject brought up over a year ago and the thread is hard to follow, but it don't see that anyone resolved it and it's surely an issue with the latest release. My graphs for Cisco interface bandwidth is in b/s versus Mb/s.
graph1.png
If I set $ARG4$ to G, the increment measurement says mb/s, which makes no sense, and of course the values are invalid. If I change it back to M, they go back to b/s. Is this resolvable? If not, the graphs are of little use. Thanks.
graph2.png
- Kyle
You do not have the required permissions to view the files attached to this post.
- Kyle
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Interface Bandwidth Graphs in b/s measurements

Post by tonyyarusso »

Yeah, this is all the result of PNP's code. I'm hoping that switching to PHP version 0.6 might fix it, and we're in the process of investigating that, but with quite a few changes to how it works it takes a while to rework the necessary XI parts.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Interface Bandwidth Graphs in b/s measurements

Post by hhlodge »

In an attempt to work around this for now, can you tell me the process that is doing the polling and creating the rrd files in /var/lib/mrtg and can I change the increments from Mb to Kb?
- Kyle
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Interface Bandwidth Graphs in b/s measurements

Post by tonyyarusso »

That would be MRTG. Its configuration lives in /etc/mrtg, and you'll find the documentation for it on http://oss.oetiker.ch/mrtg/doc/index.en.html.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Interface Bandwidth Graphs in b/s measurements

Post by hhlodge »

Where would XI store the configuration files from the output of cfgmaker, which I assume is run once when the wizard is used. I want to change the graphs for existing bandwidth checks. I found configs in /usr/local/nagiosxi/tmp but the directory named "tmp" leads me to believe it's not these and a change made there didn't change the graphs. Thanks.
- Kyle
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Interface Bandwidth Graphs in b/s measurements

Post by tonyyarusso »

/etc/mrtg
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Interface Bandwidth Graphs in b/s measurements

Post by hhlodge »

If I look at /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php, it looks like the wizard puts the output of cfgmaker in these tmp files.

$tmp_dir=get_tmp_dir();
$outfile=$tmp_dir."/mrtgscan-".$address;
$cmd=$cfgmaker_cmd." > ".$outfile." ; touch ".$donefile." > /dev/null &";

What is appending the these tmp config files to /etc/mrtg/mrtg.cfg? I'd like to manually add checks/graphs for Windows and Linux systems interfaces throughput as needed but don't want to stomp on anything. Thanks.
- Kyle
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Interface Bandwidth Graphs in b/s measurements

Post by tonyyarusso »

It's in that same file actually, look for this:

Code: Select all

        // open the mrtg file for appending
        $fo=fopen($mrtg_cfg,"a+");
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Interface Bandwidth Graphs in b/s measurements

Post by hhlodge »

Ah, thanks. So I should be able to just run cfgmaker >> /etc/mrtg/mrtg.cfg and be safe?
- Kyle
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Interface Bandwidth Graphs in b/s measurements

Post by tonyyarusso »

I believe so. Test first. :P
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked