Hi<br clear="all"><br>I'm running nagios3 on a linux box since about 3 months. so far everything went fine with manually added service-definitions.<br><br>Now some service-definitions are configured automaticly by a script each hour. All these service-definitions go into one file and it is always the same file. The file is created every hour anew. Then nagios is reloaded. Often the content of the file doesn't change of course.<br>
<br>Now directly after reloading nagios, all those services defined it this file loose their state and show status=PENDING. Their historical data is still there.<br>Other services of these hosts keep their state and show OK (hopefully).<br>
<br>retain_state_information=1<br>state_retention_file is set and looks valid<br><br>The update process works as shown below:<br>- reload nagios, to check if the configuration is still valid<br>- backup nagios config<br>- write the dynamic config file anew (creates the file even if it exists)<br>
- reload nagios (and check config)<br>- restore config, when "check config" fails<br><br>There is nothing in the logfile that shows me something about deleting data.<br>If I just reload nagios without rewriting this file the state is kept as it should.<br>
<br>The service definitions are based on the same templates and parameters as the fixed monitors. here is one exmple:<br>define service{<br> use generic-app-service<br> host_name host7<br> service_description openmq<br>
check_command check_nrpe_raw_t300_arg!check_apps!/nagios/plugins/check_gd_openmq<br> notifications_enabled 0<br><br>}<br><br>generic-app-service is defined as follows:<br>define service {<br> name generic-app-service<br>
use generic-service<br> register 0<br> action_url /nagios3/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$<br>}<br><br>generic-service itself I left unchanged.<br><br><br>Does anybody have an idea, what it is or where to look at?<br>
Best Regards,<br>Uwe<br><br>