Page 1 of 1

ESXI Nagios Core Service

Posted: Wed Nov 07, 2018 5:50 am
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

Re: ESXI Nagios Core Service

Posted: Wed Nov 07, 2018 4:08 pm
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$

Re: ESXI Nagios Core Service

Posted: Wed Nov 07, 2018 4:11 pm
by ssax
Additionally, what version are you running?

Code: Select all

grep 'version = ' /usr/local/nagios/libexec/check_esxi_hardware.py

Re: ESXI Nagios Core Service

Posted: Thu Nov 08, 2018 3:35 am
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

Re: ESXI Nagios Core Service

Posted: Thu Nov 08, 2018 5:26 pm
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.

Re: ESXI Nagios Core Service

Posted: Fri Nov 09, 2018 6:41 am
by michaelpn
Hi,
it helped:) The problem is solved:)

Re: ESXI Nagios Core Service

Posted: Fri Nov 09, 2018 4:24 pm
by ssax
That's great to hear! Are we okay to lock the topic and mark it as resolved?

Re: ESXI Nagios Core Service

Posted: Tue Nov 13, 2018 9:26 am
by michaelpn
Yes :)

Re: ESXI Nagios Core Service

Posted: Tue Nov 13, 2018 3:01 pm
by scottwilkerson
michaelpn wrote:Yes :)
Locking thread