html reports import to a service check
-
fetterlogic
- Posts: 6
- Joined: Thu Jun 06, 2013 9:39 am
html reports import to a service check
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
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
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
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
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
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.
"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.
Re: html reports import to a service check
No thank you
Re: html reports import to a service check
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.