Page 1 of 1

Clear Host Availability and Service Availability charts?

Posted: Thu Aug 02, 2018 3:05 am
by riahc3
We are setting up a dashboard to show with Host Availability and Service Availability charts but with tests, there are a lot of unknowns

https://i.imgur.com/fHMAWoL.png

How can we clear/reset that to show 0% on everything?

Re: Clear Host Availability and Service Availability charts?

Posted: Thu Aug 02, 2018 9:01 am
by scottwilkerson
You can but this will remove all the historical logs out of Nagios, so I would suggest moving them to a temp location in case this is not the desired result

Code: Select all

mkdir -p /tmp/nagios/archives
mv /usr/local/nagios/var/archives/* /tmp/nagios/archives
cp /usr/local/nagios/var/nagios.log /tmp/nagios/archives
cat /dev/null > /usr/local/nagios/var/nagios.log