Page 1 of 1
list of disk drives
Posted: Tue Jan 12, 2016 5:10 am
by robert.anderko
Hi all,
i need get from Nagios XI list of servers with monitored Disk drives. My idea is:
server1
Drive C: Disk Usage
Drive D: Disk Usage
server2
Drive C: Disk Usage
server3
Drive C: Disk Usage
Drive D: Disk Usage
Drive E: Disk Usage
...
output format can be in txt, csv, or...
Any idea for "how-to" ? Thanks for any help
Re: list of disk drives
Posted: Tue Jan 12, 2016 10:24 am
by rkennedy
You could create a script that pulls from the API. Try navigating to Admin -> Manage Components -> Edit Settings for the Backend API URL -> Select a user to use for the API access
From there, you will see a link for Current Service Status. It'll have XML data that you can pull with your scripts.
Is that what you're looking for?
Re: list of disk drives
Posted: Wed Jan 13, 2016 2:49 am
by robert.anderko
rkennedy,
yes, info's which i need are here. But to complex. I will need find method how to parse only server name and disk drives and add this to the csv, plain text or another format. I need this to another step - comparing with another list - what i need monitor...
Re: list of disk drives
Posted: Wed Jan 13, 2016 3:49 pm
by hsmith
This is something you could write a script for once, and then be good. Grab the information you want, have the script strip the information you don't want, and then have the script output the information into a format you are happy with.