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
CSV report of all configured alerts?
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CSV report of all configured alerts?
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:
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-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: CSV report of all configured alerts?
Thanks Scott, I will see what I can do with that...
Mitch
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?
Sounds good,GhostRider2110 wrote:Thanks Scott, I will see what I can do with that...
Mitch
Locking thread