Thanks !! ;D
Stardust
Posts
-
Send different DCI values from the same node (or not?) -
Reporting serverHi,
Where can I find the full documentation for the reporting installation?
I've followed that tutorial (https://www.netxms.org/forum/installation/install-report-server/) with no success.
Errors when executing
java -jar reporting-server-2.0.2.jar.I'm on NetXMS 2.0.2 (Great job by the way, really).
Thanks
-
Send different DCI values from the same node (or not?)Thanks for the reply,
I've done:
sub Free() { value = AgentReadParameter($node, "FileSystem.Free(" . $1 . ")"); return (value != null) && (value > 0); }In a script library.
(I wanted that the script work on the actual "instance" letter Drive, is that possible?)
Then, in event message "%[NameInTheLibrary]" doesn't work.
-
Send different DCI values from the same node (or not?)Hello,
I'm generating an event when disk space is low -> no problem.
I generate a Treshold when FileSystemFreePerc < 10%.
On the message field of Event configuration I write: "Low disk space of %n : %4 %% (limit %3 %%)" and then send it by mail.But how can I send the value of another parameter like FileSystem.Total of the same node? (or of another? I see that each parameter have ID).
Regards
-
Parser questionsYes it's on Syslog server side and you're right, I misunderstood the fonction of invert="1", that's not what I need.
When I match in a rule, I send an email (for ex <Match>(.*)Error(.*)</match)->event->EPP->mail contains syslog message).
But there is messages that contains "Error" and reveals useless (like error user connection or something...)Maybe it's not possible to do that but there is what I want:
if ("abc" && NOT "XYZ") => Match (I mean send email)
if ("abc" && "XYZ") => don't Match (don't send mail)Of course the test will apply on the same message text, in fact, I would like to seprate "Error connection ... person1" and "Error connection... person2"
Thanks a lot.
-
Parser questionsHi,
When I try to use <match invert="1"> it desappear when I save.
Invert="1" desappears and all the line <match ...> remains, is it a bug?In fact I would like to match a string in a message and not matching another string in the same message, I don't know if i'm being clear but if I am is that possible?
To be clear:
match "abc" but not match if "xyz" is in the message.Regards.
-
Handle varbinds/parameters OIDOk Thanks a lot.
Regards
-
Handle varbinds/parameters OIDThank you Victor but it doesn't work

I simplified my problem because there is something that I don't understand:
1)My trap
2)My event
3) trap received: FW01 .1.3.6.1.4.1.9789.1500 .1.3.6.1.4.1.9789.1500.2.5 == '[GRE-FW01][INFO][005]'
(That means login error)Then on my epp I only wanted to compare the oid of the parameter/varbind received: .1.3.6.1.4.1.9789.1500.2.5 or .1.3.6.1.4.1.9789.1500.1.5
My script:
if ( index($event->parameter[3], ".1.3.6.1.4.1.9789.1500.2.5") return 1; else return 0;doesn't work


-
Handle varbinds/parameters OIDHi,
I don't understand how to handle parameters on EPP script, I explain:
I've created a trap,
OID: .1.3.6.1.4.1.9789.0.1500 with different parameters like $2 :.1.3.6.1.4.1.9789.1500.1.5 and so onAn event is associated to that trap.
Then, I only wanted to compare on EPP the parameter received by the trap like:
if ($2 == ".1.3.6.1.4.1.9789.1500.1.5'") return 1;How should I do that?
Sorry if the subject was already posted.
Regards.
-
Script SNMP on event processing policyThat script worked for me:
sub main()
{
if ( index($event->message, "Success"))return 1;
else return 0;
} -
Script SNMP on event processing policyOn #Netxms ?
-
Script SNMP on event processing policy@tomaskir said in Script SNMP on event processing policy:
As I mentioned, create 2 Event Processing policies.
1st will catch the event with 'Fail' in Event message; and create a critical alarm on the node and send the email.
2nd will catch the event with 'Success' in Event message; terminate/resolve the previous alarm, and also send email.Thank you for your help but i'm stuck right here.
How can I catch the event with 'Fail' in the event? What is the script code?What I've done:
sub main()
{
transport = CreateSNMPTransport(FindObject(".1.3.6.1.4.1.31023.1.1.1.0.1")); // Create SNMP transport for nodevalue = SNMPGetValue(transport, ".1.3.6.1.4.1.31023.1.1.103");
if(value == "Failed") return 1;
else retun 0;
}PS: I forgot to mention that I couldn't find the OID by the MIB Browser, that's why that OID is catch by the trap 'SNMP_UNMATCHED_TRAP' (is that important for that I want to do?)
-
Script SNMP on event processing policyThanks but I would like to filtering the snmp containing the string ' Failed ' be marked as ' critical' (in red) and ' succeess ' in green in the event monitor. Is that possible?
Moreover in the the Event processing policy I wanted a script that catch the word 'Failed' and send an email.
What I've done:
sub main()
{if(%3 == 'Failed') return 1;
else return 0;
}
-> I receive an email on the both cases (Fail or success)
-
Script SNMP on event processing policyHi,
I'm monitoring my backup servers with netxms by SNMP and I well receive the result of jobs on the event monitor but they are catched by SNMP_UNMATCHED_TRAP.
But I don't know if that matters to do what I want to do;I would like to apply severity on the job results like:
- Success -> Normal
- Failed -> critical
'Failed' and 'success' are in 3rd position on parameters varbind (I think):
.1.3.6.1.4.1.31023.1.1.1.0.1 .1.3.6.1.4.1.31023.1.1.101 == '1109f400-0d24-4895-abb8-d298211314b2'; .1.3.6.1.4.1.31023.1.1.102 == 'BAckup Zabbix Serveur'; .1.3.6.1.4.1.31023.1.1.103 == 'Failed'; .1.3.6.1.4.1.31023.1.1.104 == ''
What is the script that could catch the word 'Failed', 'Success' or else on Event Processing Policy?
Or what is the simplest way to do that?Thanks