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.
NagiosXI NagVis Weathermap
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: NagiosXI NagVis Weathermap
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:
https://exchange.nagios.org/directory/P ... c3/details
This is the plugin that they're referring to: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.
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.
Re: NagiosXI NagVis Weathermap
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.
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
@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.
First, please put the check_iftraffic64.pl into the /usr/local/nagios/libexec/ folder and give it the permissions.
Next, let's run a test command from the command line to make sure this plugin is working:chmod +x check_iftraffic64.pl
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../check_iftraffic64.pl -H switch_ip -C community -i interface_name
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NagiosXI NagVis Weathermap
Okay I will try this (I have to use snmpV3).
Thanks.
Thanks.
Re: NagiosXI NagVis Weathermap
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
Any idea ?
Thanks.
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.plThanks.
Re: NagiosXI NagVis Weathermap
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.
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
Let us know if you have any further questions.I still have a problem of bandwidth display (in B). I will investigate tomorrow.
Be sure to check out our Knowledgebase for helpful articles and solutions!