Also if i dont want to backup my nagios
What is the best way to stop performance data ? and to change the directory where files are saved ?
Part of my nagios.cfg :
# PNP settings - bulk mode with NCPD
process_performance_data=1
# service performance data
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-pnp-bulk
# host performance data
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-pnp-bulk
-------
If I change like this :
process_performance_data=0
# service performance data
service_perfdata_file=/data/perfdata
and restart nagios engine, will it work ?
Thanks
Nagios disk full and conf changes doesnt apply
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios disk full and conf changes doesnt apply
Well, that will certainly stop Nagios from processing the incoming performance data, this will be for all objects you are monitoring, is this what you are looking to do?
Re: Nagios disk full and conf changes doesnt apply
Hello
I dont think we are using performance data so yes this is what i am looking to do.
Can I do a backup today everything (with the script) except mysql and postgresql . And then add mysql and postgres from January backup to the zip and then restore this zip.
Will it work ? (As I want my system be backupped as it was in January, but I only have mysql and postgre backupped)
I dont think we are using performance data so yes this is what i am looking to do.
Can I do a backup today everything (with the script) except mysql and postgresql . And then add mysql and postgres from January backup to the zip and then restore this zip.
Will it work ? (As I want my system be backupped as it was in January, but I only have mysql and postgre backupped)
Re: Nagios disk full and conf changes doesnt apply
Potentially. If you were using static configs, or custom plugins, you will have to resolve those issues after the restore before apply configuration and specific checks will work.
I suggest keeping the old install available through the process just in case you need to recover something from the old install.
I suggest keeping the old install available through the process just in case you need to recover something from the old install.
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.
"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.