[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: IcingaConfigFile: count apply objects...

git at icinga.org git at icinga.org
Tue Jun 7 15:59:14 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: c3889ee5d895d696b35925c3ed820e61071b9a43
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=c3889ee5d895d696b35925c3ed820e61071b9a43

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed May 25 11:53:25 2016 +0200

IcingaConfigFile: count apply objects...

...still no statistics persistence to db

---

 library/Director/IcingaConfig/IcingaConfigFile.php |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/library/Director/IcingaConfig/IcingaConfigFile.php b/library/Director/IcingaConfig/IcingaConfigFile.php
index 3b2054e..d9f8960 100644
--- a/library/Director/IcingaConfig/IcingaConfigFile.php
+++ b/library/Director/IcingaConfig/IcingaConfigFile.php
@@ -19,6 +19,8 @@ class IcingaConfigFile
 
     protected $cntTemplate = 0;
 
+    protected $cntApply = 0;
+
     public function prepend($content)
     {
         $this->content = $content . $this->content;
@@ -103,6 +105,9 @@ class IcingaConfigFile
                 case 'template':
                     $this->cntTemplate++;
                     break;
+                case 'apply':
+                    $this->cntApply++;
+                    break;
             }
         }
 



More information about the icinga-checkins mailing list