scheduled reporting not emailing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: scheduled reporting not emailing

Post by abrist »

mobiledataforce wrote:This is unrelated, but is there a way for me to "reset" the monitoring now that I have all the kinks worked out as such that the percentages for up/down/availability will reset?
Yes:

Code: Select all

service nagios stop
rm /usr/local/nagios/var/retention.dat
service nagios start
All the checks will register as "Pending" until they check for the first time. This will preserve perfdata graphs.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mobiledataforce
Posts: 68
Joined: Fri Mar 15, 2013 1:35 pm

Re: scheduled reporting not emailing

Post by mobiledataforce »

This doesn't seem to reset percentages. Preserving the graph data is great, but I would like the reports to reset as such that they show 100% availability (for now).
Thanks!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: scheduled reporting not emailing

Post by sreinhardt »

There is no way to generate data in the past. However you can remove the rrd files and allow them to be recreated from current values.

Code: Select all

If you wish to remove ALL checks like that:
rm -rf /usr/local/nagios/share/perfdata

Otherwise if you only want to remove specific ones:
rm -rf /usr/local/nagios/share/perfdata/[IP or hostname to remove]
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked