Skip to content

Commit

Permalink
Missing details in message: not implemented key/metric
Browse files Browse the repository at this point in the history
  • Loading branch information
cboyer committed Dec 9, 2018
1 parent c516317 commit 1c211b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Mirth/Mirthix_channel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
https://github.com/cboyer/mirth-zabbix</description>
<enabled>true</enabled>
<lastModified>
<time>1543697073742</time>
<time>1544315360227</time>
<timezone>America/Toronto</timezone>
</lastModified>
<revision>520</revision>
<revision>521</revision>
<sourceConnector version="3.2.1">
<metaDataId>0</metaDataId>
<name>sourceConnector</name>
Expand Down Expand Up @@ -222,7 +222,7 @@ return Packages.org.apache.commons.codec.binary.Base64.encodeBase64String(zabbix
* Released under the GNU General Public License v3 (GPLv3)
*/

var agent_version = &apos;1.0.1&apos;;
var agent_version = &apos;1.1.1&apos;;
var item_requested = msg.toString();
//logger.info(&quot;Zabbix requested: &quot; + item_requested); //Debug

Expand Down Expand Up @@ -319,7 +319,7 @@ switch (item_requested) {
//logger.info(&quot;Filtered: &quot; + channel_id + &quot; &quot; + connector_id + &quot; : &quot; + msg); //Debug
break;
default:
msg = &quot;ZBX_NOTSUPPORTED\x00Metric not implemented in Mirthix: &quot; + msg;
msg = &quot;ZBX_NOTSUPPORTED\x00Metric not implemented in Mirthix: &quot; + metric;
}

if (msg == null)
Expand Down Expand Up @@ -440,7 +440,7 @@ switch (item_requested) {
break;

default:
msg = &quot;ZBX_NOTSUPPORTED\x00Key not implemented in Mirthix: &quot; + msg;
msg = &quot;ZBX_NOTSUPPORTED\x00Key not implemented in Mirthix: &quot; + item_requested;
}</script>
<type>JavaScript</type>
<data>
Expand All @@ -457,7 +457,7 @@ switch (item_requested) {
* Released under the GNU General Public License v3 (GPLv3)
*/

var agent_version = &apos;1.0.1&apos;;
var agent_version = &apos;1.1.1&apos;;
var item_requested = msg.toString();
//logger.info(&quot;Zabbix requested: &quot; + item_requested); //Debug

Expand Down Expand Up @@ -554,7 +554,7 @@ switch (item_requested) {
//logger.info(&quot;Filtered: &quot; + channel_id + &quot; &quot; + connector_id + &quot; : &quot; + msg); //Debug
break;
default:
msg = &quot;ZBX_NOTSUPPORTED\x00Metric not implemented in Mirthix: &quot; + msg;
msg = &quot;ZBX_NOTSUPPORTED\x00Metric not implemented in Mirthix: &quot; + metric;
}

if (msg == null)
Expand Down Expand Up @@ -675,7 +675,7 @@ switch (item_requested) {
break;

default:
msg = &quot;ZBX_NOTSUPPORTED\x00Key not implemented in Mirthix: &quot; + msg;
msg = &quot;ZBX_NOTSUPPORTED\x00Key not implemented in Mirthix: &quot; + item_requested;
}</string>
</entry>
</data>
Expand Down
6 changes: 3 additions & 3 deletions src/destination_transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Released under the GNU General Public License v3 (GPLv3)
*/

var agent_version = '1.1.0';
var agent_version = '1.1.1';
var item_requested = msg.toString();
//logger.info("Zabbix requested: " + item_requested); //Debug

Expand Down Expand Up @@ -106,7 +106,7 @@ switch (item_requested) {
//logger.info("Filtered: " + channel_id + " " + connector_id + " : " + msg); //Debug
break;
default:
msg = "ZBX_NOTSUPPORTED\x00Metric not implemented in Mirthix: " + msg;
msg = "ZBX_NOTSUPPORTED\x00Metric not implemented in Mirthix: " + metric;
}

if (msg == null)
Expand Down Expand Up @@ -227,5 +227,5 @@ switch (item_requested) {
break;

default:
msg = "ZBX_NOTSUPPORTED\x00Key not implemented in Mirthix: " + msg;
msg = "ZBX_NOTSUPPORTED\x00Key not implemented in Mirthix: " + item_requested;
}

0 comments on commit 1c211b6

Please sign in to comment.