Alert when a host/service is deleted

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SETR
Posts: 45
Joined: Mon Jan 30, 2017 4:10 pm

Alert when a host/service is deleted

Post by SETR »

Is there a way to get an email alert if someone delets a host or service in NagiosXi 5.4.9?
dwasswa

Re: Alert when a host/service is deleted

Post 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.
kyang

Re: Alert when a host/service is deleted

Post by kyang »

Thanks @dwasswa,

SETR, let us know if you have any more questions!
SETR
Posts: 45
Joined: Mon Jan 30, 2017 4:10 pm

Re: Alert when a host/service is deleted

Post 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.
kyang

Re: Alert when a host/service is deleted

Post 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!
Locked