<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_3_thread_34748"  />
<title>rulinux.net - Форум - Admin - zabbix continue api action</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Admin - zabbix continue api action</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re: zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108407</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108407</guid>
<pubDate>Tue, 27 Sep 2011 20:13:53 +0400</pubDate>
<description><![CDATA[<p>Согласен. Я не успел ещё этот домен выучить чтобы по памяти его набирать, а он блин уже новое имя придумал..</p>]]></description>
</item>
<item>
<title>Re: zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108406</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108406</guid>
<pubDate>Tue, 27 Sep 2011 20:07:55 +0400</pubDate>
<description><![CDATA[<p>Смена домена не есть хорошо...Ну да ладно, не моего ума ....как говорится)) </p>]]></description>
</item>
<item>
<title>Re: zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108405</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108405</guid>
<pubDate>Tue, 27 Sep 2011 20:02:39 +0400</pubDate>
<description><![CDATA[<p>Тюксоед для тестирования сервер у себя поднял. Сейчас переносит лор-нг на &nbsp;<a href="http://rulinux.net/">http://rulinux.net/</a> - так что ты не удивляйся когда тут никого не найдёшь в скором времени :)</p>]]></description>
</item>
<item>
<title>Re: zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108404</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108404</guid>
<pubDate>Tue, 27 Sep 2011 19:59:13 +0400</pubDate>
<description><![CDATA[<p>O_0 опять форкнулись чтоле???</p>]]></description>
</item>
<item>
<title>Re: zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108403</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108403</guid>
<pubDate>Tue, 27 Sep 2011 19:57:46 +0400</pubDate>
<description><![CDATA[<p>Третий вариант - вместо пастебина использовать &nbsp;<a href="http://rulinux.dyndns.org/">http://rulinux.dyndns.org/</a> - заодно и разметку протестирует :)</p>]]></description>
</item>
<item>
<title>Re: zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108402</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108402</guid>
<pubDate>Tue, 27 Sep 2011 19:53:17 +0400</pubDate>
<description><![CDATA[<p>Пастебин спасёт отца русской демократии! Ну или дождись переезда, на новом движке с разметкой гораздо лучше.</p>]]></description>
</item>
<item>
<title>zabbix continue api action</title>
<link>https://rulinux.net/message.php?newsid=34748&amp;page=1#108401</link>
<guid>https://rulinux.net/message.php?newsid=34748&amp;page=1#108401</guid>
<pubDate>Tue, 27 Sep 2011 19:50:00 +0400</pubDate>
<description><![CDATA[<p><p align="left">В продолжении предыдущего поста.Решил использовать api class написанный на  python...&nbsp;<a href="https://github.com/gescheit/scripts/blob/master/zabbix/zabbix_api.py">https://github.com/gescheit/scripts/blob/master/zabbix/zabbix_api.py</a> Добавлял items/host/triggers пока не наткнулся  на actions...Вот че получается-- </p id=\"end{flushleft}\"> <p align="center"> <fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1">zapi.action.create({'name' : "some-name",'eventsource' : 0, 'evaltype' :0, 'status' : 0,'esc_period' : 0,'def_shortdata': "{TRIGGER.NAME</ol></fieldset>: {TRIGGER.STATUS}", 'def_longdata': "{TRIGGER.NAME}: {TRIGGER.STATUS}<br id=\"br\">r<br id=\"br\">nLast value: {ITEM.LASTVALUE}<br id=\"br\">r<br id=\"br\">n<br id=\"br\">r<br id=\"br\">n{TRIGGER.URL}",'recovery_m sg': 0,'r_shortdata': "{TRIGGER.NAME}: {TRIGGER.STATUS}", 'r_longdata': "{TRIGGER.NAME}:{TRIGGER.STATUS}<br id=\"br\">r<br id=\"br\">nLast value: {ITEM.LASTVALUE}<br id=\"br\">r<br id=\"br\">n<br id=\"br\">r<br id=\"br\">n{TRIGGER.URL}"})} </p id=\"end{center}\"> <p align="left"> Вот что получаю </p id=\"end{flushleft}\"> <p align="center"> <fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1">10: Sending headers: {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'</ol></fieldset> 20: Response Code: 200 10: Response Body: {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Invalid params.', u'code': -32602, u'data': u'[ CAction::create ] Incorrect parameter used for Action [ some-name ]'}} Traceback (most recent call last):   File "zabbix_act_create.py", line 9, in      zapi.action.create({'name' : "some-name",'eventsource' : 0, 'evaltype' :0, 'status' : 0,'esc_period' : 0,'def_shortdata': "{TRIGGER.NAME}: {TRIGGER.STATUS}", 'def_longdata': "{TRIGGER.NAME}: {TRIGGER.STATUS}<br id=\"br\">r<br id=\"br\">nLast value: {ITEM.LASTVALUE}<br id=\"br\">r<br id=\"br\">n<br id=\"br\">r<br id=\"br\">n{TRIGGER.URL}",'recovery_m sg': 0,'r_shortdata': "{TRIGGER.NAME}: {TRIGGER.STATUS}", 'r_longdata': "{TRIGGER.NAME}:{TRIGGER.STATUS}<br id=\"br\">r<br id=\"br\">nLast value: {ITEM.LASTVALUE}<br id=\"br\">r<br id=\"br\">n<br id=\"br\">r<br id=\"br\">n{TRIGGER.URL}"})   File "/usr/share/zabbix/zabbix_api.py", line 317, in wrapper     return self.do_request(self.json_obj(name,opts))['result']   File "/usr/share/zabbix/zabbix_api.py", line 299, in do_request     return self.parent.do_request(req)   File "/usr/share/zabbix/zabbix_api.py", line 264, in do_request     raise ZabbixAPIException(msg,jobj['error']['code'])} </p id=\"end{center}\"> WTF вкуриь не могу!</p>]]></description>
</item>
</channel>
</rss>