Hi all,
is there a command for reload icon “Reschedule ‘Check_MK’ service” ?
Web API dont have it, maybe one of you can tell me
In Python or Bash ?
thanks in advance
br
Neeloj
Hi all,
is there a command for reload icon “Reschedule ‘Check_MK’ service” ?
Web API dont have it, maybe one of you can tell me
In Python or Bash ?
thanks in advance
br
Neeloj
Hi Neeloj,
you can try the following command as site user:
cmk --checks=checkname
or
cmk --checks=checkname hostname
Hope it helps you
Anastasios
thank you so much it works like a charm, I use that with “runuser” command.
If you want more/detailed output information, you can use -v or -vv
e.g.
cmk -v --checks=checkname hostname
or
cmk -vv --checks=checkname
Yes I did that :-)) thank you again
I use that in python script, it you have an idea tell me :-))
I use now subprocess.Popen
I can’t help you. I’m a python beginner. Sorry
Ah okay :-)) anyway thanks :-))
Thank you @ways I’ll check it out
How do you find this out:
resched_checks=Reschedule&_resched_spread=0
?
Maybe with the rule “Normal check interval for service checks”
Thanks for the info
I use cmk -v --checks=checkname hostname In python, but I’ll think about @ways way too
How I found out how to do it?
In the webUI for checkmk you can use developer tools in Firefox or Chromium to see what URLs are called.
I use that but for me in version 1.5x RAW version it calls different url not like yours:
/ajax_reschedule.py?site=mysite&host=myhost&service=Check_MK+Discovery&wait_svc=Check_MK+Discovery&_ajaxid=1589544581
But why you can see other url than me, by the way it works for me
Now you will see the url I’m using.
I haven’t tried the ajax url. Perhaps it works as well.
exactly as you said :-), thats good trick thanks
yes this works you have to add username and _secret key for automation user.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.