On 31 January 2011 13:34, Korrawit Yindeeyoungyeon <skaaa.a...@gmail.com> wrote: > I want to re-monitor the Nagios but I want to delete all log or > something that can made my Nagios to begin. > > I also have pnp4nagios. It need to delete some ?? > > How should I do ?? > > Thank you, > > Korrawit Yindeeyoungyeon
Obviously before you start deleting anything, take a backup! If you want to delete all the history from Nagios, I guess you should delete the files under /usr/local/nagios/var/archives/ and /usr/local/nagios/var/nagios.log. You might also want to delete /usr/local/nagios/var/objects.cache and retention.dat too. If you want to restore the Nagios configuration to what you get when you install from scratch, I would extract the nagios tarball then use the files from the directory nagios-3.2.3/sample-config/ to set up a minimum system. To delete all the graphs created by pnp4nagios, remove all the files and directories under /usr/local/pnp4nagios/var/perfdata/ (or if you have an older version of pnp, you will maybe find these under /usr/local/nagios/share/perfdata/). Some of these actions could break your nagios system if you are not sure what the files do or how to re-create them. If you are not experienced with Nagios, it might be best to build a new system rather than break an existing one. Good luck, Jim ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null