Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zabbix 5.0 #2

Open
johnpion opened this issue Jan 12, 2022 · 1 comment
Open

zabbix 5.0 #2

johnpion opened this issue Jan 12, 2022 · 1 comment

Comments

@johnpion
Copy link

I got an error when check expired SSL (SSL expiration < 0 )

I change type of Item to float and it works :

@@ -42,23 +42,17 @@
                     <triggers>
                         <trigger>
                             <expression>{last()}=0</expression>
-                            <name>SSL certificate unavailable for {$SSL.DNS}</name>
+                            <name>SLL certificate unavailable for {$SSL.DNS}</name>
                             <priority>HIGH</priority>
                         </trigger>
-                        <trigger>
-                            <expression>{last()}=9999999999</expression>
-                            <name>{HOST.NAME} $SSL.DNS macro is missing</name>
-                            <priority>WARNING</priority>
-                        </trigger>
                     </triggers>
                 </item>
                 <item>
                     <name>SSL expiration</name>
                     <type>EXTERNAL</type>
                     <key>frogg_ssl_check.sh[-a=expire,-s={$SSL.DNS},-p={$SSL.PORT}]</key>
                    <delay>2h</delay>
                    <delay>2h</delay>
                     <history>30d</history>
-                    <value_type>FLOAT</value_type>
                     <units>days</units>
                     <applications>
                         <application>
@FroggDev
Copy link
Owner

Hi,

Thanks for the information !

in the official doc i am seeing this:
image
https://www.zabbix.com/documentation/current/en/manual/api/reference/item/object

do <value_type>0</value_type> fix it for you ?

In my local test it seems ok

Thanks.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants