Page 1 of 1

html reports import to a service check

Posted: Fri Jan 03, 2014 3:42 pm
by fetterlogic
We have a backup solution that collectively pulls all the space available of a set number of drives and sends an html report via email to us. Is there a way to get that same data into a service check to eliminate the automated email? the problem is the drives that are summerized are on two different servers and act as a temporary storage library before the data is written to tape. We are currently running XI version 2012r2.5.

Re: html reports import to a service check

Posted: Mon Jan 06, 2014 10:25 am
by tmcdonald
Is this done by a script (perl, python, bash) or an application? If this is a script doing it you could write a nagios plugin to run the script, interpret the data, and return it as a passive check, or active if run via NRPE or NCPA.

Re: html reports import to a service check

Posted: Tue Jan 07, 2014 1:47 pm
by fetterlogic
It is run by an application which only seems to have the ability to only email the information or to save to disk in either html or text format only. If we opt to save to disk, we can specify local disk or a remote share. So would it possible to have the report sent to Nagios and then have nagios parse the report (be it html or txt format) for the information required? If so how difficult is it to do so?

Re: html reports import to a service check

Posted: Tue Jan 07, 2014 1:51 pm
by tmcdonald
As long as the application is on a timer (writing to the file every 10 minutes or so) you can have Nagios run a plugin to parse it, yes. How easy or difficult it will be depends on your skill at scripting and how complex the information is.

Re: html reports import to a service check

Posted: Tue Jan 07, 2014 4:22 pm
by fetterlogic
I have solved this. I have the app write the file and nagios calls a batch script to parse through it and pull both lines I need, then calls a vbscript to display it correctly. I know I can do it with one script, but at the moment functionality was what they were concerned with.

Re: html reports import to a service check

Posted: Tue Jan 07, 2014 5:10 pm
by abrist
Glad to hear you have a resolution. Anything else before we close the thread?

Re: html reports import to a service check

Posted: Sat Nov 22, 2014 12:31 am
by vhoover
No thank you

Re: html reports import to a service check

Posted: Mon Nov 24, 2014 2:22 am
by vhoover
This can please closed. The username that opened the ticket is the company username that I used for requests until I had my username added to the company account.