Hi,
what alarm keys you are using for alarm creation and termination?
Best regards,
Victor
what alarm keys you are using for alarm creation and termination?
Best regards,
Victor
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: blazarov on November 06, 2015, 01:34:21 PM
I just still don't understand what happens when some interface is deleted and instance discovery runs. Are the DCI with their history completely deleted? Is there a way to control that - for example leave - delete them one month after disappearing?
Quote from: hsvt on November 05, 2015, 10:47:44 PM
У меня для тех у кого ignore (абоненты, например) эвент не генерируется, состояние нормал, Иконки в разделе Ports - красные. Другой вопрос, если бывает, нужно поставить на мониторинг абонентский порт с какой нибудь плавающей проблемой, а у тебя по Hook::ConfigurationPoll всё равно будет ставиться Ignore. Как вот тут лучше сделать?
Quote from: hsvt on November 05, 2015, 10:47:44 PM
Ну и с почтой и эвентом SYS_NODE_DOWN тоже не понятно, надо чтобы от одних устройств были только алармы, а от других и алармы и письма еще...
global contacts = "";
foreach(o : GetObjectParents($node))
{
add_contacts(o);
}
println "Contacts: " . contacts;
sub add_contacts(curr)
{
c = GetCustomAttribute(curr, "contacts");
if (c != null)
{
if (length(contacts) > 0)
contacts = contacts . ";" . c;
else
contacts = c;
}
foreach(o : GetObjectParents(curr))
{
add_contacts(o);
}
}
global contacts = "";
global presense = %{ };
foreach(o : GetObjectParents($node))
{
add_contacts(o);
}
println "Contacts: " . contacts;
sub add_contacts(curr)
{
c = GetCustomAttribute(curr, "contacts");
if ((c != null) && (presense[c] == null))
{
if (length(contacts) > 0)
contacts = contacts . ";" . c;
else
contacts = c;
presense[c] = true;
}
foreach(o : GetObjectParents(curr))
{
add_contacts(o);
}
}