How do clean old Prism Alerts. Within Webconsole Resolve and Acknowlege doesnt clean old alerts. Any command would helpful. Thanks,
How do clean old Prism Alerts. Within Webconsole Resolve and Acknowlege doesnt clean old alerts. Any command would helpful. Thanks,
Hi
nutanix@cvm$ for alert in `ncli alert ls | grep ID | awk '{print $3}'`; do echo "Resolving alert $alert"; \ncli alert resolve ids=$alert; sleep 2; done
Refer the following discussion:-
https://next.nutanix.com/prism-infrastructure-management-26/how-do-i-clear-old-alerts-31269
This command doesn’t work - tired on one of CVM - giving syntax error
Hi
Can you follow the public KB mentioned below
https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008cOXCAY
If you’re still facing the issue, can you post the snippet of the command you’re executing and the error you’re receiving and the AOS version you’re using?
Hi
Try to NCLI with the following script:-
for alert in `ncli alert ls | grep ID | awk ‘{print $3}’`; do echo “Resolving alert $alert”; ncli alert resolve ids=$alert; sleep 2; done
or
Manually clear the alerts from SSH and restart the service:-
allssh genesis stop alert_manager
alert_tool -op clear-alerts
allssh 'rm ~/data/alert_manager/wals/*'
cluster start
WARNING:- DO NOT treat the Nutanix CVM (Controller VM) as a normal Linux machine. DO NOT perform "rm -rf /home" on any of the CVMs. It could lead to data loss scenarios. Contact Nutanix Support in case you have any doubts.
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.