Page 1 of 1
NagiosXI NagVis Weathermap
Posted: Tue Nov 20, 2018 4:17 am
by Mykhi
Hi all,
I am trying to implement weathermap lines on NagVis included in a fresh NagiosXI (5.4.13) installation.
I use Network Switch/Router Wizard to add my hosts (ISP routers).
But when i create lines in NagVis I encouter several problems :
- % lines are showing Bandwidth
- % BW lines are generating a javascript error
- Bandwidth has to many decimals (6 after the .)
- lines are not coloring
What am I doing wrong ?
Thanks.
Re: NagiosXI NagVis Weathermap
Posted: Tue Nov 20, 2018 3:48 pm
by npolovenko
Hello,
@Mykhi. The problem is that services created with the Network Switch/Bandwidth wizard are not fully compatible with Nagvis weather maps. They do not return perfdata percentages either. According to Nagvis:
The new lines are focused on bandwidth visualization. Since NagVis needs to parse the performance data to gather the current colour for the line there are special requirements on the performance data contents. There is a bandwidth measurement plugin for Nagios which comes with the correct performance data information out of the box. It is downloadable from Nagios Exchange.
This is the plugin that they're referring to:
https://exchange.nagios.org/directory/P ... c3/details
Re: NagiosXI NagVis Weathermap
Posted: Wed Nov 21, 2018 4:34 am
by Mykhi
Hello npolovenko,
Thanks for your reply. I understood that yesterday. The point now is how to fix it permanently.
By the wizard, the check command used is "check_xi_service_mrtgtraf" with check_rrdtraf.
Do I have to modify the "native" check command or create a new check command to use check_iftraffic64.pl
If I create a new check command can I modify the Wizard Network Switch/Router to use it ?
Is there an example for the usage of check_iftraffic64.pl with correct arguments ?
Thanks.
Re: NagiosXI NagVis Weathermap
Posted: Wed Nov 21, 2018 1:10 pm
by npolovenko
@Mykhi, No, you can't change the wizard to use a different plugin. It's already set up to use the check_mrtgtraf plugin and create configs with specific arguments to work with that particular plugin.
First, please put the check_iftraffic64.pl into the /usr/local/nagios/libexec/ folder and give it the permissions.
chmod +x check_iftraffic64.pl
Next, let's run a test command from the command line to make sure this plugin is working:
./check_iftraffic64.pl -H switch_ip -C community -i interface_name
if the output looks good we should create a new check_command in the CCM and then replace the command and arguments for every bandwidth service.
Re: NagiosXI NagVis Weathermap
Posted: Thu Nov 22, 2018 3:51 am
by Mykhi
Okay I will try this (I have to use snmpV3).
Thanks.
Re: NagiosXI NagVis Weathermap
Posted: Thu Nov 22, 2018 9:43 am
by Mykhi
Ok my command is working from the command line as root.
But when I su nagios it is not working anymore (no output on stdout in NagVis and no output on the command line)
I have set the same permissions on check_iftraffic64 than the permissions on the native plugin check_mrtgtraf
Code: Select all
-rwxrwxr-x 1 apache nagios 145282 Mar 13 2018 check_mrtgtraf
-rwxrwxr-x 1 apache nagios 40055 Nov 20 10:26 check_iftraffic64.pl
Any idea ?
Thanks.
Re: NagiosXI NagVis Weathermap
Posted: Thu Nov 22, 2018 12:03 pm
by Mykhi
It's working !
In fact the command needs to write its output in inside files under /usr/local/nagios/libexec/traffic and permissions were not sufficient for user nagios.
Thanks for your help since lines are now coloring well.
I still have a problem of bandwidth display (in B). I will investigate tomorrow.
Re: NagiosXI NagVis Weathermap
Posted: Mon Nov 26, 2018 2:28 pm
by lmiltchev
I still have a problem of bandwidth display (in B). I will investigate tomorrow.
Let us know if you have any further questions.