Nagios XI and Nagvis routeur BW

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ehermouet
Posts: 18
Joined: Tue Mar 03, 2015 5:12 am

Nagios XI and Nagvis routeur BW

Post by ehermouet »

Hello

I try to use Nagvis with BW+% function, change color of line etc...

so i can only see BW value but not % and Colors...

Nagvis said that value must be like this

Code: Select all

The weathermap lines do not require a specific Nagios plugin. Only the provided performance format needs to match one of the cases below:

Percentage usage: four perfdata sets. While the first two sets provide the percentage usage and the second two sets provide the usage in bytes per sec.
One example: inUsage=21103.42%;85;98 outUsage=226363.55%;85;98 inBandwidth=105.52MBs outBandwidth=212.22MBs.
Byte rate usage: needs at least two perfdata sets with the labels "in" and "out" with an empty UOM. It uses the current value and the maximum value to calculate the current percentage usage. The current value should be given as byte rate. The maximum value should provide the network interface bandwidth as bytes per seconds.
One example: in=7196.50566429;;;0;1250000.0 inucast=11.6273564992;;;; innucast=0.017617206817;;;; indisc=0.0;;;; inerr=0.0;0.01;0.1;; out=4044.9635368;;;0;1250000.0 outucast=12.1734899105;;;; outnucast=0.0;;;; outdisc=0.0;;;; outerr=0.0;0.01;0.1;; outqlen=0;;;;.
check from nagiosxi is $USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$

do you have idea how to change this ?

tks advance for any help
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios XI and Nagvis routeur BW

Post by cdienger »

The output should match the second case pretty well except for the UOM. Remove this by changing the command like so:

$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$

You may need to remove the rrd and xml files for the service before new values can be written to the db. Move them out of /usr/local/nagios/share/perfdata/<hostname>/<servicedesc>.[rrd|xml] if needed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ehermouet
Posts: 18
Joined: Tue Mar 03, 2015 5:12 am

Re: Nagios XI and Nagvis routeur BW

Post by ehermouet »

Hello

tks for reply, and help

i try that you said but nothing appear on nagvis
nagios.PNG
tks advance
You do not have the required permissions to view the files attached to this post.
ehermouet
Posts: 18
Joined: Tue Mar 03, 2015 5:12 am

Re: Nagios XI and Nagvis routeur BW

Post by ehermouet »

I think it's because i don't have empty UOM ?

OK - Current BW in: 48.06Kbps Out: 46.60Kbps|in=48.066096Kb/s;3000;3800 out=46.609925Kb/s;3000;3800

it's not like example. well i'm lost :s

in=7196.50566429;;;0;1250000.0 inucast=11.6273564992;;;; innucast=0.017617206817;;;; indisc=0.0;;;; inerr=0.0;0.01;0.1;; out=4044.9635368;;;0;1250000.0 outucast=12.1734899105;;;; outnucast=0.0;;;; outdisc=0.0;;;; outerr=0.0;0.01;0.1;; outqlen=0;;;;


i use check_xi_service_mrtgtraf
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios XI and Nagvis routeur BW

Post by cdienger »

I've dug into this a bit more and it looks like there would need to be changes made to the plugin code. Researching the Nagvis feature, they recommend using a specific plugin for this:

https://exchange.nagios.org/directory/P ... c3/details

The recommendation comes from:

http://docs.nagvis.org/1.5/en_US/lines_ ... style.html

I have yet to try this myself so can't provide step by step instructions, but it appears promising. Try this plugin instead and let me know if you run into any problems.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ehermouet
Posts: 18
Joined: Tue Mar 03, 2015 5:12 am

Re: Nagios XI and Nagvis routeur BW

Post by ehermouet »

It works tks
but i encoured 1 problem.
it's -i "description", but my routeur have the same description for all interface :)

edit:

answer
public -i 2 -B -I 30 -O 30 -u m --32bit -w 80 -c 95

But how to know interface number? so i use SNMPWALK to see i number.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios XI and Nagvis routeur BW

Post by cdienger »

Glad to help and hear that it works!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked