NagiosXI NagVis Weathermap

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Mykhi
Posts: 5
Joined: Tue Nov 20, 2018 3:42 am

NagiosXI NagVis Weathermap

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NagiosXI NagVis Weathermap

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Mykhi
Posts: 5
Joined: Tue Nov 20, 2018 3:42 am

Re: NagiosXI NagVis Weathermap

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NagiosXI NagVis Weathermap

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Mykhi
Posts: 5
Joined: Tue Nov 20, 2018 3:42 am

Re: NagiosXI NagVis Weathermap

Post by Mykhi »

Okay I will try this (I have to use snmpV3).
Thanks.
Mykhi
Posts: 5
Joined: Tue Nov 20, 2018 3:42 am

Re: NagiosXI NagVis Weathermap

Post by Mykhi »

Ok my command is working from the command line as root. :geek:

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.
Mykhi
Posts: 5
Joined: Tue Nov 20, 2018 3:42 am

Re: NagiosXI NagVis Weathermap

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI NagVis Weathermap

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked