hi everyone,
i'm using zabbix for monitoring a SIP-network.
inputfiles (XML) are generated by the network elements every 5 minutes.
they get parsed/preprocessed with a perl-script in order to generate an outputfile that /usr/bin/zabbix_sender can read.
hosts and items are manually preconfigured.
as an example, this is the way that the outputfile looks like:
HostABC SipRejectCause400 1594911600 0
HostABC SipRejectCause403 1594911600 14
HostABC SipRejectCause404 1594911600 55
HostABC SipRejectCause421 1594911600 0
HostABC SipRejectCause500 1594911600 9
HostABC SipRejectCause503 1594911600 19
all those items are preconfiured, as mentioned before.
i would like to add a "Discovery Rule" to my template to automatically add another item if the XML contains an item that is not preconfigured, like this:
HostABC SipRejectCause499 1594911600 86
the name and the key of the new item shall be "SipRejectCause499".
what do i have to put into the name- and key- field of the discovery-rule? $_ ? $1 ?
is it possible at all?
thanks, michael
i'm using zabbix for monitoring a SIP-network.
inputfiles (XML) are generated by the network elements every 5 minutes.
they get parsed/preprocessed with a perl-script in order to generate an outputfile that /usr/bin/zabbix_sender can read.
hosts and items are manually preconfigured.
as an example, this is the way that the outputfile looks like:
HostABC SipRejectCause400 1594911600 0
HostABC SipRejectCause403 1594911600 14
HostABC SipRejectCause404 1594911600 55
HostABC SipRejectCause421 1594911600 0
HostABC SipRejectCause500 1594911600 9
HostABC SipRejectCause503 1594911600 19
all those items are preconfiured, as mentioned before.
i would like to add a "Discovery Rule" to my template to automatically add another item if the XML contains an item that is not preconfigured, like this:
HostABC SipRejectCause499 1594911600 86
the name and the key of the new item shall be "SipRejectCause499".
what do i have to put into the name- and key- field of the discovery-rule? $_ ? $1 ?
is it possible at all?
thanks, michael
Comment