Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-5169

Support for FW policy install time on Check Point

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • Discovery

    Description

      Hello,

      Check Point provides the install time for firewall policy through their MIB, but it's a STRING instead of timeticks for example, so I won't get parsed properly as the code is today.

      // CHECKPOINT-MIB::fwInstallTime.0 = STRING: Sun Feb  8 02:18:45 2026 

      It would be nice to have this value as an 'age' sensor

      $config['mibs'][$mib]['sensor'][] = [
          'class'               => 'age',
          'oid'                 => 'fwInstallTime',
          'oid_num'             => '.1.3.6.1.4.1.2620.1.1.25.2',
          'descr'               => 'Policy install time',
          'unit'                => 'timeticks',
          'convert'             => 'sysuptime', // sensor_convert sysUpTime - value
          'min'                 => -1,
      ]; 

      I guess a function like strtotime could convert this into the proper format, but I am unable to locate exactly where to add this to the sensor code.
      Maybe if unit = string = try convert using strtotime

      Thanks!

      Attachments

        Activity

          People

            landy Mike Stupalov
            kentbjoh Kent Johannessen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: