ESXI Nagios Core Service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
michaelpn
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

ESXI Nagios Core Service

Post by michaelpn »

Hi Nagios,

two weeks ago ww changed our VMWare version from 6.0 to 6.5. and because I have changed the root password on my VMWare I have also changed it on my Nagios services:

Uptime

OK 11-07-2018 11:30:20 406d 21h 36m 31s 1/3 System Uptime - 27 day(s) 19 hour(s) 36 minute(s)
ESX6


ESX Hardware Check

UNKNOWN 11-07-2018 11:23:09 24d 17h 13m 36s 3/3 UNKNOWN: Authentication Error
ESX7


ESX Hardware Check

UNKNOWN 11-07-2018 11:29:17 24d 17h 21m 58s 3/3 UNKNOWN: Authentication Error
ESX8


ESX Hardware Check

UNKNOWN 11-07-2018 11:24:35 24d 17h 16m 43s 3/3 UNKNOWN: Authentication Error

But unfortunately I get this error.


I have changed the password in my config. file:

# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware.py
command_line $USER1$/check_esxi_hardware.py -H xxx.xx.x.xx xxx.xx.x.xx xxx.xx.x.xx xxx.xx.x.xx -U root $ARG1$ -P 'Xxxxx.xxx' $ARG2$ -C 5989 $ARG3$

What is wrong?

PS as always I do restart services:)

Do I miss something?

Best Regards
Michael Pierre Nielsen
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Post by ssax »

Does your new password contain any special characters such as !, $, etc?

If you run the command manually what does it show?
- Note: Make sure to put in the proper values for the non-working command, if you post the service definition we can help you construct it.

Code: Select all

/usr/local/nagios/libexec/check_esxi_hardware.py check_esxi_hardware.py -H xxx.xx.x.xx xxx.xx.x.xx xxx.xx.x.xx xxx.xx.x.xx -U root $ARG1$ -P 'Xxxxx.xxx' $ARG2$ -C 5989 $ARG3$
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Post by ssax »

Additionally, what version are you running?

Code: Select all

grep 'version = ' /usr/local/nagios/libexec/check_esxi_hardware.py
michaelpn
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Post by michaelpn »

Hi ssax,

thanks for an quick answer:)

1. No I do not use special characters
2. version = '20170905'
3. I will remember to put my question in proper vakues


Service definition:

# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware.py
command_line $USER1$/check_esxi_hardware.py -H 172.xx.x.xx 172.xx.x.xx 172.xx.x.xx 172.xx.x.xx -U root $ARG1$ -P 'Xxxxx.xxx' $ARG2$ -C 5989 $ARG3$


Host Nagios website:


ESX6


ESX Hardware Check

UNKNOWN 11-08-2018 09:33:09 25d 15h 22m 46s 3/3 UNKNOWN: Authentication Error
ESX7


ESX Hardware Check

UNKNOWN 11-08-2018 09:39:17 25d 15h 31m 8s 3/3 UNKNOWN: Authentication Error
ESX8


ESX Hardware Check

UNKNOWN 11-08-2018 09:34:35 25d 15h 25m 53s 3/3 UNKNOWN: Authentication Error
ESX9


ESX Hardware Check

UNKNOWN 11-08-2018 09:37:46 25d 15h 22m 46s 3/3 UNKNOWN: Authentication Error
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Post by ssax »

Please test with the latest version downloaded from here:

https://exchange.nagios.org/directory/P ... py/details

There are likely some changes that occurred between 6.0 and 6.5.

Let us know the results.
michaelpn
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Post by michaelpn »

Hi,
it helped:) The problem is solved:)
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Post by ssax »

That's great to hear! Are we okay to lock the topic and mark it as resolved?
michaelpn
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Post by michaelpn »

Yes :)
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ESXI Nagios Core Service

Post by scottwilkerson »

michaelpn wrote:Yes :)
Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked