Page 1 of 1

Possible to have Images in NAGIOS Plugin Output?

Posted: Tue Oct 04, 2016 7:50 am
by derekb
Hi there,
We're toying with the idea of using some JS libraries to compare IP Camera images on a weekly basis. Wonder if it is possible to display images in the output of a NAGIOS plugin, and if so, how would that look when a notification email gets sent to a contact?

Re: Possible to have Images in NAGIOS Plugin Output?

Posted: Tue Oct 04, 2016 11:21 am
by tmcdonald
The way you would normally do this is to save the image somewhere and then use a HTML <img> tag to reference it. Plugins can output this just fine, but you will have to set escape_html_tags=0 in your cgi.cfg otherwise the HTML tags will not be interpreted correctly in the web interface. Your mail client may or may not render HTML - that is outside of our control.

Re: Possible to have Images in NAGIOS Plugin Output?

Posted: Tue Oct 04, 2016 11:52 am
by derekb
Ok let me try it.
Also I should've posted this in the XI forum -- mind moving?

Re: Possible to have Images in NAGIOS Plugin Output?

Posted: Tue Oct 04, 2016 12:19 pm
by tmcdonald
In that case if this is for XI you need to go to Admin -> System Settings and check the "Allow HTML Tags in Host/Service Status" box, then save.