Am 19.02.2012 13:30, schrieb daniel.duf...@ec.europa.eu:
Hello Wolfgang,
I'm using latest Icinga 1.6.1 on a RH6 (Running inside a VMWare).
It is not a blocking issue since I have a simple workaround.
[icinga@s-devco-mon ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
[icinga@s-devco-mon ~]# uname -a
Linux s-devco-mon.devco.cec.eu.int 2.6.32-131.21.1.el6.x86_64 #1 SMP
Fri Nov 11 11:50:54 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[icinga@s-devco-mon ~]# /usr/local/icinga/bin/icinga --version
Icinga 1.6.1
Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org)
Copyright (c) 2009-2011 Nagios Core Development Team and Community
Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-02-2011
License: GPL
[icinga@s-devco-mon ~]# /usr/bin/printf "[%lu]
SCHEDULE_HOST_SVC_DOWNTIME;cris_oracle_dev3;%lu;%lu;0;0;60;dufouda;test 1\n"
`date +%s` `date --date="2012-02-19 16:30:00" +%s` `date
--date="2012-02-19 18:00:00" +%s` > /usr/local/icinga/var/rw/icinga.cmd
[icinga@s-devco-mon ~]# /usr/bin/printf "[%lu]
SCHEDULE_HOST_SVC_DOWNTIME;x;cris_oracle_dev3;%lu;%lu;0;0;60;dufouda;test
2\n" `date +%s` `date --date="2012-02-19 16:30:00" +%s` `date
--date="2012-02-19 18:00:00" +%s` > /usr/local/icinga/var/rw/icinga.cmd
[icinga@s-devco-mon ~]# tail /usr/local/icinga/var/icinga.log
[1329653371] Auto-save of retention data completed successfully.
[1329653409] EXTERNAL COMMAND:
SCHEDULE_HOST_SVC_DOWNTIME;cris_oracle_dev3;1329665400;1329670800;0;0;60;dufouda;test
1
[1329653409] Error: Could not find host '1329665400' provided in
external command!
[1329653427] EXTERNAL COMMAND:
SCHEDULE_HOST_SVC_DOWNTIME;x;cris_oracle_dev3;1329665400;1329670800;0;0;60;dufouda;test2
Thanks in advance,
Regards,
Daniel Dufour
Hm. Puzzling.
What I did:
- downloaded and unpacked the tar.gz file of 1.6.1 from git.icinga.org
- ./configure && make all && make install && make install-config && make
install-commandmode
- edited icinga.cfg to disable active checks (execute_..._checks=0)
- started Icinga
- execute the two commands you provided
- shutdown Icinga
cat /etc/SuSE-release
openSUSE 11.1 (i586)
VERSION = 11.1
uname -a
Linux linux-yb25 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100
i686 i686 i386 GNU/Linux
cat icinga.log
[1329665486] Icinga 1.6.1 starting... (PID=28599)
[1329665486] Local time is Sun Feb 19 16:31:26 CET 2012
[1329665486] LOG VERSION: 2.0
[1329665486] Finished daemonizing... (New PID=28600)
[1329665486] Event loop started...
[1329665493] EXTERNAL COMMAND:
SCHEDULE_HOST_SVC_DOWNTIME;localhost;1329665400;1329670800;0;0;60;dufouda;test
1
[1329665493] EXTERNAL COMMAND:
SCHEDULE_HOST_SVC_DOWNTIME;x;localhost;1329665400;1329670800;0;0;60;dufouda;test
2
[1329665493] Error: Could not find host 'x' provided in external command!
[1329665513] Caught SIGTERM, shutting down...
[1329665513] Successfully shutdown... (PID=28600)
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users