list of disk drives

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

list of disk drives

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: list of disk drives

Post 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?
Former Nagios Employee
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: list of disk drives

Post 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...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: list of disk drives

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