[omd-devel] OMD 1.20 breaks being able to place a host into downtime from a script

Lars Michelsen feedback at mathias-kettner.de
Mon Jun 29 12:09:14 CEST 2015


Hi Scott,

sorry for the late response. You will need to use a user account which 
authenticates with an automation secret instead of a normal user account 
for setting the downtime. I just added the note to the mentioned 
documentation page.

The current downtime script works with the current Check_MK version 
(http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob;f=doc/treasures/downtime).

Best regards
Lars

On 02.03.2015 19:33, Scott Shannon wrote:
> Mathias,
>
> Thank you for the pointer.  Unfortunately, this is the very document I've been following.   It works successfully with OMD 1.10, but the very same command fails to put the host into downtime for OMD 1.20.  I have not been able to find any logs or anything that would give me a clue as to why it is failing.  As mentioned, I had a test site that was running OMD 1.10 that worked, and after updating to 1.20 with no other changes it no longer worked.
>
> I had also found your downtime.py script which I have dabbled with as well.  It too works on OMD 1.10 sites, but not on OMD 1.20 sites.
>
> All fingers point to OMD 1.20, but I have no idea why.  Was there a new (global?) setting introduced in 1.20 that inhibits such scripts from executing by default, and all I have to do is change that setting??
>
> By the way, we love your product!!  Very simple to manage and maintain!  I'm still learning my way around to some degree, and I'm sure there's much more I can do with it that I haven't discovered yet.  We moved to this from a (much) older version of just straight Nagios that was a much more difficult beast to maintain.
>
> Thank you for your time!
>
> Scott Shannon
>
>
>
> -----Original Message-----
> From: Mathias Kettner [mailto:mk at mathias-kettner.de]
> Sent: Monday, March 02, 2015 4:24 AM
> To: OMD developers mailing list (english)
> Cc: Scott Shannon
> Subject: Re: [omd-devel] OMD 1.20 breaks being able to place a host into downtime from a script
>
> Hi Scott,
>
> when you want to set downtimes via HTTP, please have a look here:
>
> https://urldefense.proofpoint.com/v1/url?u=http://mathias-kettner.de/checkmk_multisite_automation.html&k=8F5TVnBDKF32UabxXsxZiA%3D%3D%0A&r=xphLSlwLPhn2Uwl0Dkf9teBPBrwtNyh6T6Q3KH6wii0%3D%0A&m=9cBwWoOkU%2FGamGnK1FBEMsdrKInBkvfKS%2FyUXEdxKfY%3D%0A&s=685eff8a96114d465fe06972fa0a4c90a2d1ee5a8839e0615d263a27af1b323a
>
> Regards,
>
> Mathias
>
>
> Am 26.02.2015 um 20:18 schrieb Scott Shannon:
>> My production OMD site is running OMD 1.20.  I played around with the
>> syntax presented on various web sites to place a host into downtime,
>> all without any success.
>>
>> Finally I decided to try it on a crash and burn OMD site running 1.10.
>> It worked first time, and there was great rejoicing!  Comparison of
>> configurations between the 1.10 site and the 1.20 site did not yield
>> anything that really struck me as being a problem.
>>
>> I then updated the 1.10 site to 1.20.  Instant failure - the command
>> that I had used before no longer worked, yielding the same (lack of)
>> results as the production OMD site.
>>
>> Why is this?  What changed between 1.10 and 1.20 that would change the
>> behavior?
>>
>> Thank you!
>>
>> Scott Shannon
>>
>> ----------------------------------------------------------------------
>> -- The information contained in this transmission may be confidential.
>> Any disclosure, copying, or further distribution of confidential
>> information is not permitted unless such privilege is explicitly
>> granted in writing by Quantum. Quantum reserves the right to have
>> electronic communications, including email and attachments, sent
>> across its networks filtered through anti virus and spam software
>> programs and retain such messages in order to comply with applicable
>> data security and retention requirements. Quantum is not responsible
>> for the proper and complete transmission of the substance of this
>> communication or for any delay in its receipt.
>>
>>
>> _______________________________________________
>> omd-devel mailing list
>> omd-devel at lists.mathias-kettner.de
>> https://urldefense.proofpoint.com/v1/url?u=http://lists.mathias-kettne
>> r.de/mailman/listinfo/omd-devel&k=8F5TVnBDKF32UabxXsxZiA%3D%3D%0A&r=xp
>> hLSlwLPhn2Uwl0Dkf9teBPBrwtNyh6T6Q3KH6wii0%3D%0A&m=9cBwWoOkU%2FGamGnK1F
>> BEMsdrKInBkvfKS%2FyUXEdxKfY%3D%0A&s=587b729b2566836dd5a01295487218ab19
>> 2573f2a662d7998483cd69ae808f95
>>
> --
> Die Videomitschnitte der 1. Check_MK Konferenz sind jetzt online!
> https://urldefense.proofpoint.com/v1/url?u=http://mathias-kettner.de/check_mk_konferenz2014_videos.html&k=8F5TVnBDKF32UabxXsxZiA%3D%3D%0A&r=xphLSlwLPhn2Uwl0Dkf9teBPBrwtNyh6T6Q3KH6wii0%3D%0A&m=9cBwWoOkU%2FGamGnK1FBEMsdrKInBkvfKS%2FyUXEdxKfY%3D%0A&s=f21b6c95d5e8bf0782eaad83b0913c27ff59b685001139f2a21f307c95ac9452
>
> Mathias Kettner GmbH
> Kellerstraße 29, 81667 München, Germany
> Registergericht: Amtsgericht München,  HRB 165902
> Geschäftsführer: Mathias Kettner
> https://urldefense.proofpoint.com/v1/url?u=http://mathias-kettner.de/&k=8F5TVnBDKF32UabxXsxZiA%3D%3D%0A&r=xphLSlwLPhn2Uwl0Dkf9teBPBrwtNyh6T6Q3KH6wii0%3D%0A&m=9cBwWoOkU%2FGamGnK1FBEMsdrKInBkvfKS%2FyUXEdxKfY%3D%0A&s=2c9c92bb46f9225c6f6f22b22d10898117b0d47b3e3fa6fcd105c740bcad5762
> Tel. +49 89 1890 435-0
> Fax. +49 89 1890 435-29

-- 
---
Mathias Kettner GmbH
Kellerstraße 29, 81667 München, Germany
Registergericht: Amtsgericht München,  HRB 165902
Geschäftsführer: Mathias Kettner
http://mathias-kettner.de
Tel. +49 89 1890 435-12
Fax. +49 89 1890 43529



More information about the omd-devel mailing list