Hi Henry,

your scripts are still available - but in the folder of the former
version. Better put your scripts in the ~/local/ folder structure (in
this case ~/local/lib/nagios/plugins/). This folder will never be
changed by (regular) upgrades.

You have to use $USER2$ instead of $USER1$ as shortcut to the scripts
when defining commands and using the local folder.

HTH,
Marcel

2013/10/17 Henry Huang <[email protected]>:
> Hi,
>
> I have downloaded the demo check_mk version of OMD from:
> http://mathias-kettner.com/nagios_support_download_version.php?HTML=yes&version=1.2.3i4&demo=1&LANG=en
>
> I did omd update of my existing site to the Demo version and all of a sudden
> my custom scripts under /omd/site/mysite/lib/nagios/plugins are all gone.
> And the update process didn't ask me whether I want to keep my files or not.
>
> Here is the output of my upgrade:
>
> 2013-10-17 11:47:05 - Updating site 'monitor_demo' from version 1.2.3i1.dmmk
> to 1.2.3i4.dmmk...
>
>  * Installed file etc/diskspace.conf
>  * Installed link etc/rc.d/80-cmc
>  * Installed link etc/rc.d/20-liveproxyd
>  * Installed link etc/rc.d/50-cmcrushd
>  * Updated        etc/nagios/conf.d/check_mk_templates.cfg
>  * Installed file etc/logrotate.d/diskspace
>  * Installed file etc/logrotate.d/liveproxyd
>  * Updated        etc/logrotate.d/livestatus
>  * Installed file etc/logrotate.d/cmc
>  * Installed file etc/logrotate.d/xinetd
>  * Installed file etc/logrotate.d/rrdcached
>  * Merged         etc/apache/php-wrapper
>  * Installed file etc/init.d/liveproxyd
>  * Updated        etc/init.d/mkeventd
>  * Installed file etc/init.d/cmc
>  * Updated        etc/init.d/npcd
>  * Updated        etc/init.d/nagios
>  * Installed file etc/init.d/cmcrushd
>  * Installed file etc/cron.d/diskspace
>  * Installed file etc/cron.d/cmk_dns_cache
>  * Updated        etc/check_mk/defaults
>  * Updated        etc/nagvis/nagvis.ini.php
>  * Installed dir  local/share/diskspace
> Updating precompiled host checks for Check_MK...OK
> Finished update.
>
> Is this a bug or should I be saving my custom script some where else?
>
> Thanks,
>
> Henry
>
> _______________________________________________
> omd-users mailing list
> [email protected]
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
>
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to