Page 2 of 3
Re: check_nwc_plugin interface-availability output html
Posted: Tue Dec 06, 2016 12:37 am
by liangwh
Hi,
I have added -v and the output is still truncated.
=( .. is there other things i can look into
thanks
Re: check_nwc_plugin interface-availability output html
Posted: Tue Dec 06, 2016 4:13 pm
by nietonoshana
Hello, this way of seeing the availability of the interfaces I like so try to get it obtaining the same results, but verifying a little I can comment something, the output I have complete in the database, where it is lost is in step In the status view, the output is complete until it passes through the function xmlentities in the file utilsx.inc.php, I suppose it is cut to be of a length greater than 4000, but to correct this file escapes my possibilities.
I think the nagios development team could verify this
Re: check_nwc_plugin interface-availability output html
Posted: Tue Dec 06, 2016 4:39 pm
by ruffsense
which version of the plugin?
Re: check_nwc_plugin interface-availability output html
Posted: Tue Dec 06, 2016 6:04 pm
by Nagios Support
We will have our developers look into this and will get back to you within the next 24 hours. Thank you!
Re: check_nwc_plugin interface-availability output html
Posted: Wed Dec 07, 2016 1:39 pm
by rkennedy
As it's working in Core, but no XI, I filed a bug report for this. ID #10355. I suspect it's still being truncated somewhere at this point.
Re: check_nwc_plugin interface-availability output html
Posted: Wed Dec 07, 2016 5:30 pm
by lmiltchev
@liangwh
Make a backup of the "original" utilsx.inc.php file:
Code: Select all
cp -p /usr/local/nagiosxi/html/includes/utilsx.inc.php /usr/local/nagiosxi/html/includes/utilsx.inc.php.backup
Download the zip file below:
utilsx.inc.php.zip
unzip it, and copy the extracted "utilsx.inc.php" to "/usr/local/nagiosxi/html/includes/" directory, overwriting the "original" file.
Let us know if this solves your issue. Thank you!
Re: check_nwc_plugin interface-availability output html
Posted: Wed Dec 07, 2016 10:31 pm
by liangwh
Hi ,
Thanks for the utilsx.
Instead of 6 output, it is now up to 70-80 interfaces, but the total interface is around 200-300..kindly assist.
Or kindly let me know which lines to change the limit of the output
Thankss

Re: check_nwc_plugin interface-availability output html
Posted: Thu Dec 08, 2016 3:00 pm
by dwhitfield
It's possible that fix only works in 5.3. Any chance you could upgrade? Instructions at
https://assets.nagios.com/downloads/nag ... nstall.pdf After you upgrade, you'll need to reapply the fix. If you run into upgrade issues, please post your upgrade log here. Thanks!
If you can't upgrade, you'll need to wait for the fix to go through our testing process.
Re: check_nwc_plugin interface-availability output html
Posted: Thu Dec 08, 2016 9:31 pm
by nietonoshana
Hello
Can you create a backup?
And after try this faq
https://support.nagios.com/kb/article.php?id=478
I think whit this do you view all output
liangwh wrote:Hi ,
Thanks for the utilsx.
Instead of 6 output, it is now up to 70-80 interfaces, but the total interface is around 200-300..kindly assist.
Or kindly let me know which lines to change the limit of the output
Thankss

Re: check_nwc_plugin interface-availability output html
Posted: Fri Dec 09, 2016 10:33 am
by dwhitfield
@liangwh were you able to perform the upgrade and reapply the patch?