PDA

View Full Version : 2 Futures wanted


Corsar
14-10-2005, 14:35
Hi ppl!

Best regards to developer. New feture in 1.1_beta2 is very wanted.
"Repeats".
:D

Now want next 2 futures:
- running external scripts on the agent machine ... Example: restarting broken processes.
- unlimited count repeats notification. At present time i am set up 9999 (in the BackOffice) or 999999 in the SQL :rolleyes:
I think what problem must be resolved (if some trigger on) and unlimited repeat notification the best way for this problem.

P.S. May be create in18n forum? My english language is simple bad, but russian language so fine ... :D :D

James Wells
14-10-2005, 16:03
Greetings,
- running external scripts on the agent machine ... Example: restarting broken processes.
This capability already exists, however, there is not yet a mechanism to activate them based on a trigger without using the script media type. To make this work, you would create a scripted media type that would then use the agent communication mechanism to activate the custom script. For example, on the agent, you would create;
UserParam=customscript[ntpd],/opt/zabbix/scripts/startservice

Then, you would create the startservice script to start whatever service you passed argument 1, in this case it would be ntpd. Next you would create the script media type to contact the agent and check the status of 'customscript[ntpd]'

Now, the downside to this right now is that there is not yet a mechanism to pass the trigger, item, or key to the media script.


unlimited count repeats notification. At present time i am set up 9999 (in the BackOffice) or 999999 in the SQL
From what I recall, reading the source code, setting 'number of repeats' to zero means to do unlimited repeats.

Corsar
14-10-2005, 18:08
Hm ...

If i am set up 0 in "repeats count" - frontend say me for "no repeats".

May be sample bug in frontend logic?
Or my logic ... :confused:
1,5 Hour yesterday i setting in the frontend:
repeats = YES
repeats count = 0

And frontend always say me for "no repeats".
After 1,5 hour this situation i started MySQL frontend and see SQL structure.
Hm, I not see column (like trigger) repeats in table actions , only maxrepeats.
Set up some value in maxrepeats and frontend say me:
Repeats - ON, Repeat count = ....

:cool:

marc
15-10-2005, 13:59
Hi ppl!
Now want next 2 futures:
- running external scripts on the agent machine ... Example: restarting broken processes.

i like the idea of a new "UserActionParameter" wich can be choosen insteed of send message or additional. at the moment i have some perl scripts checking values from zabbix db and starting services if service is down. but the functionality would be a great improvement


P.S. May be create in18n forum? My english language is simple bad, but russian language so fine ... :D :D


i believe if we all start discussing in our native language we woudn`t have much fun with zabbix :)