translate php defines file into python
[monitor.git] / zabbix / getdefines.php
diff --git a/zabbix/getdefines.php b/zabbix/getdefines.php
new file mode 100644 (file)
index 0000000..4d46d0f
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+$path = '/var/www/html/zabbix/include';
+set_include_path(get_include_path() . PATH_SEPARATOR . $path);
+
+require "defines.inc.php";
+
+$const = get_defined_constants(true);
+foreach ( $const['user'] as $k => $v ):
+       if ( is_int($v) ):
+               print "$k=$v\n";
+       endif;
+endforeach;
+
+?>