check_nwc_plugin interface-availability output html

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
liangwh
Posts: 23
Joined: Mon Mar 31, 2014 12:14 am

Re: check_nwc_plugin interface-availability output html

Post by liangwh »

Hi,
I have added -v and the output is still truncated.
=( .. is there other things i can look into

thanks
nietonoshana
Posts: 26
Joined: Thu Jul 04, 2013 1:05 pm

Re: check_nwc_plugin interface-availability output html

Post 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
User avatar
ruffsense
Posts: 140
Joined: Thu Apr 11, 2013 12:40 am

Re: check_nwc_plugin interface-availability output html

Post by ruffsense »

which version of the plugin?
I don't insult, I diagnose.
User avatar
Nagios Support
Posts: 36
Joined: Thu Sep 04, 2014 12:16 pm

Re: check_nwc_plugin interface-availability output html

Post by Nagios Support »

We will have our developers look into this and will get back to you within the next 24 hours. Thank you!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_nwc_plugin interface-availability output html

Post 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.
Former Nagios Employee
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_nwc_plugin interface-availability output html

Post 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!
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
liangwh
Posts: 23
Joined: Mon Mar 31, 2014 12:14 am

Re: check_nwc_plugin interface-availability output html

Post 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 :oops: :oops:
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_nwc_plugin interface-availability output html

Post 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.
nietonoshana
Posts: 26
Joined: Thu Jul 04, 2013 1:05 pm

Re: check_nwc_plugin interface-availability output html

Post 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 :oops: :oops:
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_nwc_plugin interface-availability output html

Post by dwhitfield »

@liangwh were you able to perform the upgrade and reapply the patch?
Locked