Page 1 of 1
Alert when a host/service is deleted
Posted: Tue Nov 28, 2017 11:47 am
by SETR
Is there a way to get an email alert if someone delets a host or service in NagiosXi 5.4.9?
Re: Alert when a host/service is deleted
Posted: Tue Nov 28, 2017 1:29 pm
by dwasswa
Hi
@SETR,
Unfortunately, there is no way of doing that as for now.
However, below are the few options you have:
Option 1: Check the
Audit Log
Go to
Core Configuration Mananger >>
Audit Log
The
Audit Log enables you to see who did what, when and from which IP address.
Option 2: Contact sales for custom development.
You can contact the sales team for custom development at
[email protected]
Option 3: Write a custom script to check the Audit Log
You can write your own custom script that checks the
xi_auditlog table in the
nagiosxi database for the string
deleted.
The script should send you an alert when a host or service has been deleted.
It can also run as a Cron e.g every 5 min or <.
The script could have something like this:
echo 'select * from xi_auditlog;' |mysql -u root -pnagiosxi nagiosxi | grep deleted
Note: If you are not an expert in scripting or databases, I recommend you let someone who is or most highly recommended, contact the Nagios sales team for custom development.
Option 4:
Submit a feature request
Please let me know if you have any questions.
Re: Alert when a host/service is deleted
Posted: Tue Nov 28, 2017 2:43 pm
by kyang
Thanks
@dwasswa,
SETR, let us know if you have any more questions!
Re: Alert when a host/service is deleted
Posted: Wed Nov 29, 2017 11:43 am
by SETR
Thank you, Both. The audit logs and the script are a good option. I will look into those. The ticket can now be closed.
Re: Alert when a host/service is deleted
Posted: Wed Nov 29, 2017 11:50 am
by kyang
Sounds good! Thanks for letting us know. I'll be closing this thread!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!