Hi Evryone, this is my first time on this forum!
I have made some basic troubleshooting and googling including this form and cant seem to find any clear answers to why this is happening. To make a long story short i have made a separate script that crawls and discover network nodes. This script then returns an xml file that i want to import to zabbix. Evrything works just fine except when it comes to importing the triggers. By that i mean that i can import hosts and their links respectivly without any hickups. Trigger are another story .
When i try to import i can this message (x.x.x.x of course is the IP of the host) and i also have added some additional debug information in the throw in file CMapImporter:
Cannot find trigger "Interface Gi0/1(): Ethernet has changed to lower speed than it was before" used in map "Generated network" for host "{x.x.x.x:net.if.speed[ifHighSpeed.10101].change()}<0 and {x.x.x.x:net.if.speed[ifHighSpeed.10101].last()}>0 and ( {x.x.x.x:net.if.type[ifType.10101].last()}=6 or {x.x.x.x:net.if.type[ifType.10101].last()}=7 or {x.x.x.x:net.if.type[ifType.10101].last()}=11 or {x.x.x.x:net.if.type[ifType.10101].last()}=62 or {x.x.x.x:net.if.type[ifType.10101].last()}=69 or {x.x.x.x:net.if.type[ifType.10101].last()}=117 ) and ({x.x.x.x:net.if.status[ifOperStatus.10101].last()}<>2)" for recovery "({x.x.x.x:net.if.speed[ifHighSpeed.10101].change()}>0 and {x.x.x.x:net.if.speed[ifHighSpeed.10101].prev()}>0) or ({x.x.x.x:net.if.status[ifOperStatus.10101].last()}=2)". [map.import.php:166 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processMaps() → CMapImporter->import() → CMapImporter->resolveMapReferences() in include/classes/import/importers/CMapImporter.php:84]
When i look for this information in the SQL database it returns the following (so it should exist) could it be due to something in the formatting? im using the regular import referencer btw:
mysql> select expression from triggers where description = 'Interface Gi0/1(): Ethernet has changed to lower speed than it was before';
+--------------------------------------------------------------------------------------------------------------------------------------------+
| expression |
+--------------------------------------------------------------------------------------------------------------------------------------------+
| {21100}<0 and {21101}>0
and (
{21102}=6 or
{21102}=7 or
{21102}=11 or
{21102}=62 or
{21102}=69 or
{21102}=117
)
and
({21103}<>2) |
| {31324}<0 and {31325}>0
and (
{31326}=6 or
{31326}=7 or
{31326}=11 or
{31326}=62 or
{31326}=69 or
{31326}=117
)
and
({31327}<>2)
...
Hope you can point me in the right direction here. im pretty sure its just a silly Type-O somewhere but cant seem to find it.
I have made some basic troubleshooting and googling including this form and cant seem to find any clear answers to why this is happening. To make a long story short i have made a separate script that crawls and discover network nodes. This script then returns an xml file that i want to import to zabbix. Evrything works just fine except when it comes to importing the triggers. By that i mean that i can import hosts and their links respectivly without any hickups. Trigger are another story .
When i try to import i can this message (x.x.x.x of course is the IP of the host) and i also have added some additional debug information in the throw in file CMapImporter:
Cannot find trigger "Interface Gi0/1(): Ethernet has changed to lower speed than it was before" used in map "Generated network" for host "{x.x.x.x:net.if.speed[ifHighSpeed.10101].change()}<0 and {x.x.x.x:net.if.speed[ifHighSpeed.10101].last()}>0 and ( {x.x.x.x:net.if.type[ifType.10101].last()}=6 or {x.x.x.x:net.if.type[ifType.10101].last()}=7 or {x.x.x.x:net.if.type[ifType.10101].last()}=11 or {x.x.x.x:net.if.type[ifType.10101].last()}=62 or {x.x.x.x:net.if.type[ifType.10101].last()}=69 or {x.x.x.x:net.if.type[ifType.10101].last()}=117 ) and ({x.x.x.x:net.if.status[ifOperStatus.10101].last()}<>2)" for recovery "({x.x.x.x:net.if.speed[ifHighSpeed.10101].change()}>0 and {x.x.x.x:net.if.speed[ifHighSpeed.10101].prev()}>0) or ({x.x.x.x:net.if.status[ifOperStatus.10101].last()}=2)". [map.import.php:166 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processMaps() → CMapImporter->import() → CMapImporter->resolveMapReferences() in include/classes/import/importers/CMapImporter.php:84]
When i look for this information in the SQL database it returns the following (so it should exist) could it be due to something in the formatting? im using the regular import referencer btw:
mysql> select expression from triggers where description = 'Interface Gi0/1(): Ethernet has changed to lower speed than it was before';
+--------------------------------------------------------------------------------------------------------------------------------------------+
| expression |
+--------------------------------------------------------------------------------------------------------------------------------------------+
| {21100}<0 and {21101}>0
and (
{21102}=6 or
{21102}=7 or
{21102}=11 or
{21102}=62 or
{21102}=69 or
{21102}=117
)
and
({21103}<>2) |
| {31324}<0 and {31325}>0
and (
{31326}=6 or
{31326}=7 or
{31326}=11 or
{31326}=62 or
{31326}=69 or
{31326}=117
)
and
({31327}<>2)
...
Hope you can point me in the right direction here. im pretty sure its just a silly Type-O somewhere but cant seem to find it.
Comment