CSV report of all configured alerts?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
GhostRider2110
Posts: 193
Joined: Thu Oct 30, 2014 8:04 am
Location: Indiana
Contact:

CSV report of all configured alerts?

Post by GhostRider2110 »

Is there a way to produce a report that would have, for all systems, by system each alert that is configured for that system? Mgmt wants something like that....

Thanks
Mitch
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CSV report of all configured alerts?

Post by scottwilkerson »

You can get it in JSON through the API, Help -> Objects Reference
objects/host
objects/service

You could also pull it out of the database with something like this:

Code: Select all

echo "select name1 as host, name2 as service from nagios_objects where is_active=1 and objecttype_id IN (1,2) order by host,service;"|mysql -pnagiosxi nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
GhostRider2110
Posts: 193
Joined: Thu Oct 30, 2014 8:04 am
Location: Indiana
Contact:

Re: CSV report of all configured alerts?

Post by GhostRider2110 »

Thanks Scott, I will see what I can do with that...

Mitch
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CSV report of all configured alerts?

Post by scottwilkerson »

GhostRider2110 wrote:Thanks Scott, I will see what I can do with that...

Mitch
Sounds good,

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked