Check_HP_Blade_Chassis

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Check_HP_Blade_Chassis

Post by ponnpr7 »

I had this plugin install and it's working on the Nagios Core but not in the Nagios XI, any help?

Code: Select all

[root@NagiosXI libexec]# ./check_hp_bladechassis
ERROR: No hostname or address given on command line. Use the '-H' or '--hostname' option

Code: Select all

[root@NagiosXI libexec]# ./check_hp_bladechassis -H 10.135.133.155 -d
   System:      BladeSystem c7000 Enclosure G3
   ServiceTag:  2M25450CKM
   Firmware:    4.60                     Plugin version:  1.0.1
-----------------------------------------------------------------------------
   System Component Status
=============================================================================
  STATE  |    PART NO.    | MESSAGE TEXT
---------+----------------+--------------------------------------------------
      OK |     681844-B21 | Enclosure overall health condition is Ok
      OK |     456204-B21 | Enclosure management module 1 is Standby, status is Ok
      OK |     456204-B21 | Enclosure management module 2 is Active, status is Ok
      OK |     412140-B21 | Fan 1 condition is Ok
      OK |     412140-B21 | Fan 2 condition is Ok
      OK |     412140-B21 | Fan 3 condition is Ok
      OK |     412140-B21 | Fan 4 condition is Ok
      OK |     412140-B21 | Fan 5 condition is Ok
      OK |     412140-B21 | Fan 6 condition is Ok
      OK |     412140-B21 | Fan 7 condition is Ok
      OK |     412140-B21 | Fan 8 condition is Ok
      OK |     412140-B21 | Fan 9 condition is Ok
      OK |     412140-B21 | Fan 10 condition is Ok
      OK |     727021-B21 | Blade 1 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 2 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 3 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 4 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 9 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 10 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 11 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 12 (, ProLiant BL460c Gen9) status is Ok
      OK |     691367-B21 | I/O module 1 is type noconnect: HP VC FlexFabric-20/40 F8 Module
      OK |     691367-B21 | I/O module 2 is type noconnect: HP VC FlexFabric-20/40 F8 Module
      OK |         BK764A | I/O module 5 is type pciexpress: HP 6Gb SAS BL Switch
      OK |         BK764A | I/O module 6 is type pciexpress: HP 6Gb SAS BL Switch
      OK |     733459-B21 | PSU 1 is Ok, output: 912 W
      OK |     733459-B21 | PSU 2 is Ok, output: 0 W
      OK |     733459-B21 | PSU 3 is Ok, output: 0 W
      OK |     733459-B21 | PSU 4 is Ok, output: 912 W
      OK |     733459-B21 | PSU 5 is Ok, output: 0 W
      OK |     733459-B21 | PSU 6 is Ok, output: 0 W
-----------------------------------------------------------------------------
   System Power Readings
=============================================================================
  Total power consumption: 1824 W

Code: Select all

[nagios@NagiosXI ~]$ /usr/local/nagios/libexec/check_hp_bladechasis -H 10.135.133.155 -d (no result)
Last edited by dwhitfield on Thu Sep 14, 2017 1:59 pm, edited 1 time in total.
Reason: code blocks FTW
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_HP_Blade_Chassis

Post by dwhitfield »

What's the output of ll /usr/local/nagios/libexec/check_hp_bladechasis? I suspect the nagios user does not have access to run it.

I don't understand your comment about Core vs. XI. Are you saying you have a different server where this works?
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Check_HP_Blade_Chassis

Post by ponnpr7 »

Code: Select all

ll /usr/local/nagios/libexec/check_hp_bladechasis
ls: cannot access /usr/local/nagios/libexec/check_hp_bladechasis: No such file or directory

Code: Select all

[root@NagiosXI libexec]# pwd
/usr/local/nagios/libexec
I suspect the nagios user does not have access to run it, what do you mean? The below output I can run from CLI but not in the GUI. Hope all the provided information make sense.

Code: Select all

[root@NagiosXI libexec]# ./check_hp_bladechassis -H 10.135.133.155 -d
   System:      BladeSystem c7000 Enclosure G3
   ServiceTag:  2M25450CKM
   Firmware:    4.60                     Plugin version:  1.0.1
-----------------------------------------------------------------------------
   System Component Status
=============================================================================
  STATE  |    PART NO.    | MESSAGE TEXT
---------+----------------+--------------------------------------------------
      OK |     681844-B21 | Enclosure overall health condition is Ok
      OK |     456204-B21 | Enclosure management module 1 is Standby, status is Ok
      OK |     456204-B21 | Enclosure management module 2 is Active, status is Ok
      OK |     412140-B21 | Fan 1 condition is Ok
      OK |     412140-B21 | Fan 2 condition is Ok
      OK |     412140-B21 | Fan 3 condition is Ok
      OK |     412140-B21 | Fan 4 condition is Ok
      OK |     412140-B21 | Fan 5 condition is Ok
      OK |     412140-B21 | Fan 6 condition is Ok
      OK |     412140-B21 | Fan 7 condition is Ok
      OK |     412140-B21 | Fan 8 condition is Ok
      OK |     412140-B21 | Fan 9 condition is Ok
      OK |     412140-B21 | Fan 10 condition is Ok
      OK |     727021-B21 | Blade 1 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 2 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 3 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 4 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 9 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 10 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 11 (, ProLiant BL460c Gen9) status is Ok
      OK |     727021-B21 | Blade 12 (, ProLiant BL460c Gen9) status is Ok
      OK |     691367-B21 | I/O module 1 is type noconnect: HP VC FlexFabric-20/40 F8 Module
      OK |     691367-B21 | I/O module 2 is type noconnect: HP VC FlexFabric-20/40 F8 Module
      OK |         BK764A | I/O module 5 is type pciexpress: HP 6Gb SAS BL Switch
      OK |         BK764A | I/O module 6 is type pciexpress: HP 6Gb SAS BL Switch
      OK |     733459-B21 | PSU 1 is Ok, output: 932 W
      OK |     733459-B21 | PSU 2 is Ok, output: 0 W
      OK |     733459-B21 | PSU 3 is Ok, output: 0 W
      OK |     733459-B21 | PSU 4 is Ok, output: 932 W
      OK |     733459-B21 | PSU 5 is Ok, output: 0 W
      OK |     733459-B21 | PSU 6 is Ok, output: 0 W
-----------------------------------------------------------------------------
   System Power Readings
=============================================================================
  Total power consumption: 1864 W
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Thu Sep 14, 2017 2:00 pm, edited 1 time in total.
Reason: code blocks FTW
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_HP_Blade_Chassis

Post by dwhitfield »

When you have above that you are running it as the nagios user is that actually from the command line or is that from the UI as in your screenshot.

You never answered the question about Core vs. XI. Are the permissions the same? Are those installed on the same OS? There's no inherent reason why checks would work differently on XI and Core.

What's the output if you run the following commands in order?

Code: Select all

su - nagios
/usr/local/nagios/libexec/check_hp_bladechasis -H 10.135.133.155 -d
Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Check_HP_Blade_Chassis

Post by ponnpr7 »

You never answered the question about Core vs. XI. Are the permissions the same?
Ok let me make lil bit clear maybe I confused you, what I have is Nagios XI 5.4.9. CLI using root, UI using Nagiosadmin. There are only one server and the OS is Centos 6.9. Let me if I answer all your question.
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_HP_Blade_Chassis

Post by dwhitfield »

Can you show screenshots of what you see in Core and XI? Please keep the entire browser window visible. I want to see the URLs. You can block out the actual server address if you want, but nothing after that. Thanks!
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Check_HP_Blade_Chassis

Post by ponnpr7 »

I'm sure what are u asking, but kindly find the attached screen shot, let me know if you need anything else.
You do not have the required permissions to view the files attached to this post.
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Check_HP_Blade_Chassis

Post by ponnpr7 »

FYI
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_HP_Blade_Chassis

Post by lmiltchev »

Is Nagios XI server allowed to communicate with the enclosure over SNMP? Can you run snmpwalk against the remote box?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Check_HP_Blade_Chassis

Post by ponnpr7 »

Is Nagios XI server allowed to communicate with the enclosure over SNMP? Can you run snmpwalk against the remote box?

I believe so, I did once and it works.

Thanks,
Ravi
Locked