Hi again, unfortunately notification period for services handles errors after 
"non-notification" period expires


Is it possible to instruct check_mk to ignore/disable errors in log files (not 
to send notifications) if they appear in some timeframe ?

________________________________
Od: Dragan Vucanovic
Poslato: 2. avgust 2017. 7:20:27
Za: matthew.st...@us.fujitsu.com; checkmk-en@lists.mathias-kettner.de
Tema: Re: check_mk recurring downtime maintenance


Unfortunately this script don't work, i found a cause for 401 error, we are 
using basic authentication so i set password instead of secret, now i got 
lengthy output, without errors, but still server is not in downtime mode, i 
found a workaround:created new timeperiod (excluded time when server need to be 
in maintenace) ,created new notification rule for services and seems it's 
working


Thanks Matthew and Andreas for your valuable help

________________________________
Od: matthew.st...@us.fujitsu.com <matthew.st...@us.fujitsu.com>
Poslato: 1. avgust 2017. 21:21:22
Za: Dragan Vucanovic; checkmk-en@lists.mathias-kettner.de
Tema: RE: check_mk recurring downtime maintenance

Try this:

https://github.com/LarsMichelsen/nagios_downtime

From: checkmk-en [mailto:checkmk-en-boun...@lists.mathias-kettner.de] On Behalf 
Of Dragan Vucanovic
Sent: Tuesday, August 01, 2017 2:29 AM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] check_mk recurring downtime maintenance


Hello,



i'm trying to create a script to put servers in downtime,  check_mk already 
have python script called downtime,



i created automated user, copied script to omd/sites/check_mk folder, but when 
run it under omd site users i first get prompted to enter omd username/password 
and nothing happens


Options:
  -v, --verbose    Show what's going on (specify twice for more verbose output)
  -s, --set        Set downtime (this is the default and thus optional)
  -r, --remove     Remove all downtimes from that host/service
  -c, --comment    Comment for the downtime (otherwise "Automatic downtime")
  -d, --duration   Duration of the downtime in minutes (default: 120)
  -h, --help       Show this help and exit
  -u, --user       Name of automation user (default: "automation")
  -S, --secret     Automation secret (default: read from user settings)
  -U, --url        Base-URL of Multisite (default: guess local OMD site)
  -a, --all        Include all services when setting/removing host downtime



so i typed ./downtime host -d 1 -V



-d default parameter is accepted (120) although i specifed 1 minute



What i'm doing wrong ?




Mode:          set downtime
Duration:      120m
Host:          hosts
Services:      -d 1
Multisite-URL: http://localhost/site/check_mk/
User:          automation
Secret:        mysecret
URL:           
http://localhost/site/check_mk/view.py?_username=automation&_secret=mysecret&_transid=-1&_do_confirm=yes&_do_actions=yes&host=hostst5&_down_from_now=yes&_down_minutes=120&_down_comment=Automatic%20downtime&view_name=service&service=-d
Enter username for OMD Monitoring at localhost: user
Enter password for omdadmin in OMD Monitoring at localhost:
 --> Got 141 lines of response
URL:           
http://localhost/site/check_mk/view.py?_username=user&_secret=secret%40IU&_transid=-1&_do_confirm=yes&_do_actions=yes&host=host&_down_from_now=yes&_down_minutes=120&_down_comment=Automatic%20downtime&view_name=service&service=1
 --> Got 141 lines of response









_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Reply via email to