This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 127.0.0.1 - - [20/Jan/2012:20:06:06 -0500] "GET /zabbix/ HTTP/1.1" 403 1046 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ////////// | |
| // THIS FILE DUMPS THE DATA TO DATA FILE | |
| // (c) Travis Mathis - travisdmathis@gmail.com | |
| // Zabbix Report Generator v0.1 | |
| // | |
| // ERROR REPORTING | |
| error_reporting(E_ALL); | |
| set_time_limit(1800); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ////////// | |
| // THIS FILE DUMPS THE DATA TO DATA FILE | |
| // (c) Travis Mathis - travisdmathis@gmail.com | |
| // Zabbix Report Generator v0.1 | |
| // | |
| // ERROR REPORTING | |
| error_reporting(E_ALL); | |
| set_time_limit(1800); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ////////// | |
| // THIS FILE DUMPS THE DATA TO DATA FILE | |
| // (c) Travis Mathis - travisdmathis@gmail.com | |
| // Zabbix Report Generator v0.1 | |
| // | |
| // ERROR REPORTING | |
| error_reporting(E_ALL); | |
| set_time_limit(1800); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // VARIABLES | |
| $timeperiod = $_GET['timePeriod']; | |
| $site = $_GET['siteList']; | |
| //CONFIGURATION | |
| $z_server = 'https://url/zabbix/'; | |
| $z_user = 'user'; | |
| $z_pass = 'pass'; | |
| //NON CONFIGUREABLE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CODE | |
| <?php | |
| ////////// | |
| // THIS FILE DUMPS THE DATA TO DATA FILE | |
| // (c) Travis Mathis - travisdmathis@gmail.com | |
| // Zabbix Report Generator v0.1 | |
| // | |
| // VARIABLES | |
| $itemid=''; | |
| $start=''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CODE | |
| // Header | |
| echo "<b>Host: </b>" .$sitelist ."</br>"; | |
| echo "<b>Time Period: </b>" .$timeperiod ."</br></br>"; | |
| echo "<b><center> Please wait while I generate your report, you will be forwarded automatically upon completion </b></center>"; | |
| // Format Data into the Data file | |
| if($sitelist == 'All' and $timeperiod == 'Day'){ | |
| echo '<pre>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $cmd = shell_exec('/usr/bin/zabcon.rb -l /usr/bin/zabcon.conf'); | |
| echo "$cmd"; | |
| Runtime error detected (ArgumentError): couldn't find HOME environment -- expanding `~/zabcon.session' Top 10 items in backtrace 1: /usr/lib/ruby/gems/1.8/gems/zabcon-0.0.370/./libs/zabcon_core.rb:68:in `expand_path' 2: /usr/lib/ruby/gems/1.8/gems/zabcon-0.0.370/./libs/zabcon_core.rb:68:in `initialize' 3: /usr/lib/ruby/gems/1.8/gems/zabcon-0.0.370/./zabcon.rb:256:in `new' 4: /usr/lib/ruby/gems/1.8/gems/zabcon-0.0.370/./zabcon.rb:256:in `run' 5: /usr/lib/ruby/gems/1.8/gems/zabcon-0.0.370/./zabcon.rb:264 6: /usr/bin/zabcon.rb:19:in `load' 7: /usr/bin/zabcon.rb:19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /////////// | |
| // | |
| // PHP DYNAMIC DROP-DOWN BOX FOR ZABBIX PDF GENERATION | |
| // THE IDEA BEHIND THIS IS TO CREATE A VERSION INDEPENDENT | |
| // ADDON THAT CAN BE ADDED THROUGH SCREENS TO PREVENT BREAKAGE | |
| // v0.1 - 1/14/12 - (c) Travis Mathis - travisdmathis@gmail.com | |
| // Change Log: Added Dropdown Box | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /////////// | |
| // | |
| // PHP DYNAMIC DROP-DOWN BOX FOR ZABBIX PDF GENERATION | |
| // THE IDEA BEHIND THIS IS TO CREATE A VERSION INDEPENDENT | |
| // ADDON THAT CAN BE ADDED THROUGH SCREENS TO PREVENT BREAKAGE | |
| // v0.1 - 1/14/12 - (c) Travis Mathis - travisdmathis@gmail.com | |
| // Change Log: Added Dropdown Box | |
| // |