Ad Widget

Collapse

Value should be a JSON object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kolele
    Junior Member
    • Nov 2016
    • 11

    #1

    Value should be a JSON object

    Hello,

    I wanted to monitor iLO using Template IPMI Script iLO Discovery and i have used both scripts:



    It is working when I used command:
    /usr/sbin/ipmi-sensors -D LAN2_0 -h XXXXX -u XXXX-p XXXX -l USER -W discretereading --no-header-output --quiet-cache --sdr-cache-recreate --comma-separated-output --entity-sensor-names
    but when I checked status in Zabbix there is not supported with Value should be a JSON object error. It is a problem with script ? Any ideas ?
    Attached Files
  • nobodysu
    Member
    • Sep 2016
    • 84

    #2
    Please provide full json output by manually running the script.

    Comment

    • kolele
      Junior Member
      • Nov 2016
      • 11

      #3
      I have tried to execute these scripts with command - perl ilo_discovery.pl and perl ipmi_proliant.pl but nothing has happened. It is correct command ? :-)

      Comment

      • nobodysu
        Member
        • Sep 2016
        • 84

        #4
        # /usr/lib/zabbix/externalscripts/ilo_discovery.pl 192.168.0.1 sensor temp numeric

        Guess that's installation instructions.

        Comment

        • kolele
          Junior Member
          • Nov 2016
          • 11

          #5
          This command returns nothing.... I used IP of one of my iLO's

          Comment

          • nobodysu
            Member
            • Sep 2016
            • 84

            #6
            Guess you need to specify login an password in both scripts:
            Code:
            #my $user = 'Administrator';
            #my $pass = 'AD8T9AFQ';

            Comment

            • kolele
              Junior Member
              • Nov 2016
              • 11

              #7
              I did specify it

              Comment

              • nobodysu
                Member
                • Sep 2016
                • 84

                #8
                Then provide an ipmi-sensors output.

                Comment

                • kolele
                  Junior Member
                  • Nov 2016
                  • 11

                  #9
                  Nothing like it was with ilo_discovery.pl 192.168.0.1 sensor temp numeric...

                  Comment

                  • nobodysu
                    Member
                    • Sep 2016
                    • 84

                    #10
                    It is working when I used command:
                    /usr/sbin/ipmi-sensors -D LAN2_0 -h XXXXX -u XXXX-p XXXX -l USER -W discretereading --no-header-output --quiet-cache --sdr-cache-recreate --comma-separated-output --entity-sensor-names
                    I mean this.

                    Comment

                    • kolele
                      Junior Member
                      • Nov 2016
                      • 11

                      #11
                      0,System Chassis 1 UID Light,OEM Reserved,N/A,N/A,'OEM Event = 0001h'
                      1,System Chassis 2 Sys. Health LED,OEM Reserved,N/A,N/A,N/A
                      2,Air Inlet 01-Front Ambient,Temperature,21.00,C,'OK'
                      3,Processor 1 02-CPU 1,Temperature,40.00,C,'OK'
                      4,Processor 2 03-CPU 2,Temperature,40.00,C,'OK'
                      5,Memory Device 1 04-P1 DIMM 1-3,Temperature,38.00,C,'OK'
                      6,Memory Device 2 05-P1 DIMM 4-6,Temperature,37.00,C,'OK'
                      7,Memory Device 3 06-P1 DIMM 7-9,Temperature,32.00,C,'OK'
                      8,Memory Device 4 07-P1 DIMM 10-12,Temperature,33.00,C,'OK'
                      9,Memory Device 5 08-P2 DIMM 1-3,Temperature,43.00,C,'OK'
                      10,Memory Device 6 09-P2 DIMM 4-6,Temperature,43.00,C,'OK'
                      11,Memory Device 7 10-P2 DIMM 7-9,Temperature,38.00,C,'OK'
                      12,Memory Device 8 11-P2 DIMM 10-12,Temperature,39.00,C,'OK'
                      13,Disk 1 12-HD Max,Temperature,35.00,C,'OK'
                      14,System Board 1 13-Chipset,Temperature,54.00,C,'OK'
                      15,Power Supply 4 14-P/S 1,Temperature,40.00,C,'OK'
                      16,Power Supply 5 15-P/S 2,Temperature,41.00,C,'OK'
                      17,Power Supply 6 16-P/S 2 Zone,Temperature,41.00,C,'OK'
                      18,Power Unit 1 17-VR P1,Temperature,41.00,C,'OK'
                      19,Power Unit 2 18-VR P2,Temperature,47.00,C,'OK'
                      20,Power Unit 3 19-VR P1 Mem,Temperature,46.00,C,'OK'
                      21,Power Unit 4 20-VR P1 Mem,Temperature,39.00,C,'OK'
                      22,Power Unit 5 21-VR P2 Mem,Temperature,44.00,C,'OK'
                      23,Power Unit 6 22-VR P2 Mem,Temperature,48.00,C,'OK'
                      24,Power Unit 7 23-VR P1Vtt Zone,Temperature,37.00,C,'OK'
                      25,Power Unit 8 24-VR P2Vtt Zone,Temperature,42.00,C,'OK'
                      26,System Board 2 25-HD Controller,Temperature,85.00,C,'OK'
                      27,System Management Module 26-iLO Zone,Temperature,43.00,C,'OK'
                      28,Add-in Card 1 27-LOM Card,Temperature,62.00,C,'OK'
                      29,Add-in Card 2 28-PCI 1,Temperature,N/A,C,N/A
                      30,Add-in Card 3 29-PCI 2,Temperature,N/A,C,N/A
                      31,Add-in Card 4 30-PCI 3,Temperature,N/A,C,N/A
                      32,Add-in Card 5 31-PCI 4,Temperature,N/A,C,N/A
                      33,Add-in Card 6 32-PCI 5,Temperature,N/A,C,N/A
                      34,Add-in Card 7 33-PCI 6,Temperature,N/A,C,N/A
                      35,System Internal Expansion Board 1 34-PCI 1 Zone,Temperature,35.00,C,'OK'
                      36,System Internal Expansion Board 2 35-PCI 2 Zone,Temperature,36.00,C,'OK'
                      37,System Internal Expansion Board 3 36-PCI 3 Zone,Temperature,36.00,C,'OK'
                      38,System Internal Expansion Board 4 37-PCI 4 Zone,Temperature,38.00,C,'OK'
                      39,System Internal Expansion Board 5 38-PCI 5 Zone,Temperature,39.00,C,'OK'
                      40,System Internal Expansion Board 6 39-PCI 6 Zone,Temperature,39.00,C,'OK'
                      41,System Internal Expansion Board 7 40-I/O Board 1,Temperature,39.00,C,'OK'
                      42,System Internal Expansion Board 8 41-I/O Board 2,Temperature,42.00,C,'OK'
                      43,Power Unit 9 42-VR P1 Zone,Temperature,33.00,C,'OK'
                      44,System Firmware 43-BIOS Zone,Temperature,51.00,C,'OK'
                      45,System Board 3 44-System Board,Temperature,38.00,C,'OK'
                      46,Battery 1 45-SuperCap Max,Temperature,25.00,C,'OK'
                      47,System Board 4 46-Chipset Zone,Temperature,43.00,C,'OK'
                      48,Battery 2 47-Battery Zone,Temperature,42.00,C,'OK'
                      49,System Board 5 48-I/O Zone,Temperature,41.00,C,'OK'
                      50,Back Panel Board 1 49-Sys Exhaust,Temperature,39.00,C,'OK'
                      51,Back Panel Board 2 50-Sys Exhaust,Temperature,42.00,C,'OK'
                      52,System Board 1 Fan 1,Fan,13.72,%,'transition to Running'
                      53,System Board 2 Fan 2,Fan,13.72,%,'transition to Running'
                      54,System Board 3 Fan 3,Fan,13.72,%,'transition to Running'
                      55,System Board 4 Fan 4,Fan,13.72,%,'transition to Running'
                      56,System Board 5 Fan 5,Fan,18.82,%,'transition to Running'
                      57,System Board 6 Fan 6,Fan,23.52,%,'transition to Running'
                      58,Power Supply 1 Power Supply 1,Power Supply,115.00,W,'Presence detected'
                      59,Power Supply 2 Power Supply 2,Power Supply,95.00,W,'Presence detected'
                      60,System Board 9 Power Meter,Current,204.00,W,'Device Enabled'
                      61,Power Supply 3 Power Supplies,Power Supply,N/A,N/A,'Fully Redundant'
                      63,System Board 7 Fans,Fan,N/A,N/A,'Fully Redundant'
                      65,System Board 8 Memory,Memory,N/A,N/A,'Presence detected'
                      66,Disk 9 C1 P1I Bay 1,Drive Slot,N/A,N/A,'Drive Presence'
                      67,Disk 10 C1 P1I Bay 2,Drive Slot,N/A,N/A,'Drive Presence'
                      68,Disk 11 C1 P1I Bay 3,Drive Slot,N/A,N/A,'Drive Presence'
                      69,Disk 12 C1 P1I Bay 4,Drive Slot,N/A,N/A,'Drive Presence'
                      70,Disk 13 C1 P1I Bay 5,Drive Slot,N/A,N/A,'Drive Presence'
                      71,Disk 14 C1 P1I Bay 6,Drive Slot,N/A,N/A,'Drive Presence'
                      72,Disk 15 C1 P1I Bay 7,Drive Slot,N/A,N/A,'Drive Presence'
                      73,Disk 16 C1 P1I Bay 8,Drive Slot,N/A,N/A,'Drive Presence'
                      74,Disk 17 C1 P1I Bay 9,Drive Slot,N/A,N/A,'Drive Presence'
                      75,Disk 18 C1 P1I Bay 10,Drive Slot,N/A,N/A,'Drive Presence'
                      76,Disk 19 C1 P1I Bay 11,Drive Slot,N/A,N/A,'Drive Presence'
                      77,Disk 20 C1 P1I Bay 12,Drive Slot,N/A,N/A,'Drive Presence'
                      78,Disk 21 C1 P1I Bay 13,Drive Slot,N/A,N/A,'Drive Presence'
                      79,Disk 22 C1 P2I Bay 14,Drive Slot,N/A,N/A,'Drive Presence'
                      80,Disk 23 C1 P2I Bay 15,Drive Slot,N/A,N/A,'Drive Presence'
                      81,Disk 24 C1 P2I Bay 16,Drive Slot,N/A,N/A,'Drive Presence'
                      82,Disk 25 C1 P2I Bay 17,Drive Slot,N/A,N/A,'Drive Presence'
                      83,Disk 26 C1 P2I Bay 18,Drive Slot,N/A,N/A,'Drive Presence'

                      Comment

                      • nobodysu
                        Member
                        • Sep 2016
                        • 84

                        #12
                        There are some incompatibility with the script and your configuration or different perl behavior per version. Fully inspect this thread, its likely to contain the solution:

                        e.g.

                        Comment

                        Working...