Skip to content

Commit

Permalink
Merge pull request #40 from manumora/master
Browse files Browse the repository at this point in the history
Fixed puppet environment trigger bug. Added unixtime unit to puppet last run
  • Loading branch information
scoopex authored Feb 20, 2024
2 parents 8a731f1 + 5fea424 commit bc6cdbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zabbix_templates/6.4/custom-os-puppet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
<triggers>
<trigger>
<uuid>102b0d53cecc4e409deec043523a5f3a</uuid>
<expression>last(/Custom - OS - Puppet/puppet[environment],#1)=last(/Custom - OS - Puppet/puppet[environment],#2)</expression>
<name>Puppet environment changed from {ITEM.VALUE1} to {ITEM.VALUE2}</name>
<expression>last(/Custom - OS - Puppet/puppet[environment],#1)<>last(/Custom - OS - Puppet/puppet[environment],#2)</expression>
<name>Puppet environment changed from {ITEM.VALUE1} to {ITEM.VALUE2}</name>
<priority>WARNING</priority>
</trigger>
</triggers>
Expand Down Expand Up @@ -498,6 +498,7 @@
<key>puppet[time,last_run]</key>
<delay>0</delay>
<history>30d</history>
<units>unixtime</units>
<preprocessing>
<step>
<type>JSONPATH</type>
Expand Down

0 comments on commit bc6cdbb

Please sign in to comment.