]> git.uio.no Git - uio-zabbix.git/blobdiff - zabbix_radius_test.py
oppdatert zabbix radius
[uio-zabbix.git] / zabbix_radius_test.py
index d4c714b1906ff40ee3d8bac6b08cd69bef23b1d7..4bcd62a56027ecf2156e7956bcd026e49df36e9c 100755 (executable)
@@ -21,7 +21,8 @@
 # This script will deliver 0 to Zabbix if login to radius was successful
 # This script will deliver 1 to Zabbix if login to radius failed
 # This script will deliver 2 to Zabbix if there is a general script
-# This script will deliver 3 if the config file or the file containing the secret is not found
+# This script will deliver 3 if the config file is not found
+# This script will deliver 4 if the file containing the secret is not found
 #
 
 
@@ -71,7 +72,7 @@ def get_config_file():
             return config_file
 
         else:
-            return 3
+            print(3)
             sys.exit(1)
 
 
@@ -99,7 +100,7 @@ def get_secret_file():
                 return radius_secret
 
         else:
-            return 3
+            print(4)
             sys.exit(1)