Page 1 of 3

check_nwc_plugin interface-availability output html

Posted: Wed Nov 23, 2016 3:17 am
by liangwh
Hi ,
im using nagiosxi 5.2
I am trying to use

Code: Select all

check_nwc_health -H ip --community xxx --mode interface-availability
the output contains alot of html tag.
i have tried the solution from https://monitoring-portal.org/index.php ... ilability/ , which is to modify cgi.cfg.
i have modified(tried both value) and restarted the nagios, but still the same..
kindly assist..thanks! :oops:

Re: check_nwc_plugin interface-availability output html

Posted: Wed Nov 23, 2016 11:30 am
by rkennedy
Can you show us the full input / output you're seeing when running the command over the CLI?

It may be a setting that can be switched on the Nagios side, or alternatively you may need to contact the original author depending where the issue lies.

Re: check_nwc_plugin interface-availability output html

Posted: Wed Nov 23, 2016 11:05 pm
by liangwh
rkennedy wrote:Can you show us the full input / output you're seeing when running the command over the CLI?

It may be a setting that can be switched on the Nagios side, or alternatively you may need to contact the original author depending where the issue lies.
Thanks for your reply, kindly refer to the attachment:

Re: check_nwc_plugin interface-availability output html

Posted: Mon Nov 28, 2016 3:49 pm
by ssax
Please go to Admin > System Settings
- Check the box next to Allow HTML Tags in Host/Service Status
- Click the Update Settings button

That should do what you're looking for.

Re: check_nwc_plugin interface-availability output html

Posted: Wed Nov 30, 2016 4:08 am
by liangwh
ssax wrote:Please go to Admin > System Settings
- Check the box next to Allow HTML Tags in Host/Service Status
- Click the Update Settings button

That should do what you're looking for.
Hi ssax,
Thanks for your help, i already did the steps ..it works but there is still something missing.
if i were to download the output to a notepad and rename it to html, it can print all the network port from 1 to 300, however on nagiosxi, it only print port from 1 to 6..
is there anything i should look into?

Thankss
escape1.png
escape2.png

Re: check_nwc_plugin interface-availability output html

Posted: Wed Nov 30, 2016 11:12 am
by rkennedy
liangwh wrote:
ssax wrote:Please go to Admin > System Settings
- Check the box next to Allow HTML Tags in Host/Service Status
- Click the Update Settings button

That should do what you're looking for.
Hi ssax,
Thanks for your help, i already did the steps ..it works but there is still something missing.
if i were to download the output to a notepad and rename it to html, it can print all the network port from 1 to 300, however on nagiosxi, it only print port from 1 to 6..
is there anything i should look into?

Thankss
escape1.png
escape2.png
Did you create your .html based off of the full result returned, or based off of cutting the HTML from the Nagios XI page? Just trying to understand if it's a rendering issue on XI side, or perhaps all of the output not being shown.

If the HTML is being truncated on the XI side, then this article will help you - https://support.nagios.com/kb/article.php?id=478

Re: check_nwc_plugin interface-availability output html

Posted: Thu Dec 01, 2016 3:23 am
by liangwh
rkennedy wrote:
liangwh wrote:
ssax wrote:Please go to Admin > System Settings
- Check the box next to Allow HTML Tags in Host/Service Status
- Click the Update Settings button

That should do what you're looking for.
Hi ssax,
Thanks for your help, i already did the steps ..it works but there is still something missing.
if i were to download the output to a notepad and rename it to html, it can print all the network port from 1 to 300, however on nagiosxi, it only print port from 1 to 6..
is there anything i should look into?

Thankss
escape1.png
escape2.png
Did you create your .html based off of the full result returned, or based off of cutting the HTML from the Nagios XI page? Just trying to understand if it's a rendering issue on XI side, or perhaps all of the output not being shown.

If the HTML is being truncated on the XI side, then this article will help you - https://support.nagios.com/kb/article.php?id=478

Thanks for your reply.
I created the .html base on the full result return
The same full output on nagiosxi is truncated.
I have tried the link given..the result is still limited, i have restarted the nagios server as well...is there any command i can login to the mysql and verify manually?

thanks

Re: check_nwc_plugin interface-availability output html

Posted: Thu Dec 01, 2016 5:47 pm
by rkennedy
Hmm, did a new check run after you ran the command? Previous data will still be truncated, but new data should respect the 65000 char limit. Could you right click the inner frame, view source, and attach it here for us to look at? (from that service status page)

I'd like to see if it's actually showing all the HTML code here, or truncating at the result.

Re: check_nwc_plugin interface-availability output html

Posted: Fri Dec 02, 2016 12:02 am
by liangwh
Hi ,
I did a force immediate check, and have the sercices check run since yesterday. now it is still limited.
I have attached the viewsource,kindly assist. Thanks alot

edit, reupload viewsource

Re: check_nwc_plugin interface-availability output html

Posted: Fri Dec 02, 2016 3:21 pm
by mcapra
It looks like the html is being truncated for some reason. Hard to say exactly why since this plugin is very complex.

Can you alter your check_command definition in Nagios XI to include verbose output? I would be interested in seeing if the message is truncated in a similar position:

Code: Select all

check_nwc_health -H ip --community xxx --mode interface-availability -v