Ad Widget

Collapse

IT Services, flexible period working now!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flexguy
    Junior Member
    • Sep 2008
    • 19

    #1

    IT Services, flexible period working now!

    Want to use IT Services and SLA, but not only "last seven days"?

    I found this patch: https://support.zabbix.com/browse/ZBX-29 that was never implemented, took it and adapted it for version 1.6.2.

    Just replace the 3 php-scripts and off you go. (optionally edit your own "locale")

    Good luck,
    Attached Files
  • unufrii
    Junior Member
    • Apr 2009
    • 5

    #2
    Does it work with 1.6.4 ?

    Comment

    • Mike78
      Junior Member
      • Apr 2009
      • 7

      #3
      Originally posted by unufrii
      Does it work with 1.6.4 ?
      Here is the updated version, enjoy!
      Attached Files

      Comment

      • unufrii
        Junior Member
        • Apr 2009
        • 5

        #4
        Thank you - it works

        Comment

        • bobrivers
          Senior Member
          • Feb 2007
          • 115

          #5
          It's working, but...

          Hi,

          I installed the patch. It's working but, I receive the folllowing errors

          PHP Code:
              * Use of undefined constant S_SLA_TODAY assumed 'S_SLA_TODAY'[/var/www/html/zabbix/srv_status.php:93]
              * Use 
          of undefined constant S_SLA_THIS_WEEK assumed 'S_SLA_THIS_WEEK'[/var/www/html/zabbix/srv_status.php:94]
              * Use 
          of undefined constant S_SLA_THIS_MONTH assumed 'S_SLA_THIS_MONTH'[/var/www/html/zabbix/srv_status.php:95]
              * Use 
          of undefined constant S_SLA_THIS_YEAR assumed 'S_SLA_THIS_YEAR'[/var/www/html/zabbix/srv_status.php:96
          In fact it reports much more, but I removed to keep the post readable.

          I'm using 1.6.4 with php 5.1.6 (centos).

          TIA,

          Bob

          Comment

          • sinkr
            Junior Member
            • May 2009
            • 3

            #6
            Same here with PHP 5.2.6 on Ubuntu 8.10; I understand that these warnings can be disabled via php.ini, however that doesn't address the problem.

            Originally posted by bobrivers
            Hi,

            I installed the patch. It's working but, I receive the folllowing errors

            PHP Code:
                * Use of undefined constant S_SLA_TODAY assumed 'S_SLA_TODAY'[/var/www/html/zabbix/srv_status.php:93]
                * Use 
            of undefined constant S_SLA_THIS_WEEK assumed 'S_SLA_THIS_WEEK'[/var/www/html/zabbix/srv_status.php:94]
                * Use 
            of undefined constant S_SLA_THIS_MONTH assumed 'S_SLA_THIS_MONTH'[/var/www/html/zabbix/srv_status.php:95]
                * Use 
            of undefined constant S_SLA_THIS_YEAR assumed 'S_SLA_THIS_YEAR'[/var/www/html/zabbix/srv_status.php:96
            In fact it reports much more, but I removed to keep the post readable.

            I'm using 1.6.4 with php 5.1.6 (centos).

            TIA,

            Bob

            Comment

            • Jeffj
              Junior Member
              • Apr 2007
              • 21

              #7
              I'm getting the same error. anyone have any idea how to fix?

              Comment

              • dotneft
                Senior Member
                • Nov 2008
                • 699

                #8
                thise is lang messages. You need update you lang file

                Comment

                • Jeffj
                  Junior Member
                  • Apr 2007
                  • 21

                  #9
                  I was able to fix the errors. The en_gb.inc.php file didn't have the new variables defined. I defined then (see below) and the errors stopped. It looks like it is working correctly but I'll have to do more testing to be sure.



                  // srv_status.php
                  'S_IT_SERVICES_BIG'=> 'IT SERVICES',
                  'S_SERVICE'=> 'Service',
                  'S_SERVICES'=> 'Services',
                  'S_REASON'=> 'Reason',
                  'S_SLA_LAST_7_DAYS'=> 'SLA (last 7 days)',
                  'S_PLANNED_CURRENT_SLA'=> 'Planned/current SLA',
                  'S_TRIGGER_BIG'=> 'TRIGGER',
                  'S_SLA_TODAY'=> 'SLA_TODAY',
                  'S_SLA_THIS_WEEK'=> 'SLA_THIS_WEEK',
                  'S_SLA_THIS_MONTH'=> 'SLA_THIS_MONTH',
                  'S_SLA_THIS_YEAR'=> 'SLA_THIS_YEAR',
                  'S_SLA_LAST_DAY'=> 'SLA_LAST_DAY',
                  'S_SLA_LAST_WEEK'=> 'SLA_LAST_WEEK',
                  'S_SLA_LAST_MONTH'=> 'SLA_LAST_MONTH',
                  'S_SLA_LAST_YEAR'=> 'SLA_LAST_YEAR',
                  'S_SLA_YESTERDAY'=> 'SLA_YESTERDAY',
                  'S_SLA_PREVIOUS_WEEK'=> 'SLA_PREVIOUS_WEEK',
                  'S_SLA_PREVIOUS_MONTH'=> 'SLA_PREVIOUS_MONTH',
                  'S_SLA_PREVIOUS_YEAR'=> 'SLA_PREVIOUS_YEAR',

                  Comment

                  • banderas20
                    Member
                    • Jun 2009
                    • 30

                    #10
                    Originally posted by flexguy
                    Want to use IT Services and SLA, but not only "last seven days"?

                    I found this patch: https://support.zabbix.com/browse/ZBX-29 that was never implemented, took it and adapted it for version 1.6.2.

                    Just replace the 3 php-scripts and off you go. (optionally edit your own "locale")

                    Good luck,
                    Hello,

                    ¿do you know if this fixes the "IT Always at 100%" bug? As I mentioned here:
                    Join the friendly and open Zabbix community on our forums and social media platforms.


                    Thanks!
                    Last edited by banderas20; 26-10-2009, 14:14.

                    Comment

                    • suran
                      Junior Member
                      • Jul 2009
                      • 19

                      #11
                      What would be really neat is an adjustable SLA time interval, similar to the way that the line graphs operate - where time can be expanded or contracted by a resizable horizontal scroll bar.

                      We're accountable for SLA on a weekly, monthly, and yearly basis, and that's not something that's currently easy to do.

                      Edit: Wait, does the current patch actually make this possible?!
                      Last edited by suran; 22-07-2009, 10:33.

                      Comment

                      • j4mes
                        Junior Member
                        • Mar 2011
                        • 1

                        #12
                        i got it working thanks to this thread.

                        FYI if you are in a state of bother you should reach out to Sphere IT at https://sphereit.uk - they provide expert IT Support Services for London based businesses.

                        thanks
                        Last edited by j4mes; 20-07-2020, 22:48.

                        Comment

                        Working...