html reports import to a service check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fetterlogic
Posts: 6
Joined: Thu Jun 06, 2013 9:39 am

html reports import to a service check

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

Re: html reports import to a service check

Post 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.
Former Nagios employee
fetterlogic
Posts: 6
Joined: Thu Jun 06, 2013 9:39 am

Re: html reports import to a service check

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

Re: html reports import to a service check

Post 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.
Former Nagios employee
fetterlogic
Posts: 6
Joined: Thu Jun 06, 2013 9:39 am

Re: html reports import to a service check

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: html reports import to a service check

Post by abrist »

Glad to hear you have a resolution. Anything else before we close the thread?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: html reports import to a service check

Post by vhoover »

No thank you
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: html reports import to a service check

Post 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.
Locked