Possible to have Images in NAGIOS Plugin Output?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Possible to have Images in NAGIOS Plugin Output?

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Possible to have Images in NAGIOS Plugin Output?

Post 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.
Former Nagios employee
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: Possible to have Images in NAGIOS Plugin Output?

Post by derekb »

Ok let me try it.
Also I should've posted this in the XI forum -- mind moving?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Possible to have Images in NAGIOS Plugin Output?

Post 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.
Former Nagios employee
Locked