ESXI Nagios Core Service

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

ESXI Nagios Core Service

Postby michaelpn » Wed Nov 07, 2018 5:50 am

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
michaelpn
 
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Postby ssax » Wed Nov 07, 2018 4:08 pm

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$
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 3358
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Postby ssax » Wed Nov 07, 2018 4:11 pm

Additionally, what version are you running?

Code: Select all
grep 'version = ' /usr/local/nagios/libexec/check_esxi_hardware.py
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 3358
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Postby michaelpn » Thu Nov 08, 2018 3:35 am

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
michaelpn
 
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Postby ssax » Thu Nov 08, 2018 5:26 pm

Please test with the latest version downloaded from here:

https://exchange.nagios.org/directory/Plugins/Operating-Systems/%2A-Virtual-Environments/VMWare/check_esxi_hardware-2Epy/details

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

Let us know the results.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 3358
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Postby michaelpn » Fri Nov 09, 2018 6:41 am

Hi,
it helped:) The problem is solved:)
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
michaelpn
 
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Postby ssax » Fri Nov 09, 2018 4:24 pm

That's great to hear! Are we okay to lock the topic and mark it as resolved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 3358
Joined: Wed Feb 11, 2015 12:54 pm

Re: ESXI Nagios Core Service

Postby michaelpn » Tue Nov 13, 2018 9:26 am

Yes :)
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
michaelpn
 
Posts: 54
Joined: Fri Jul 14, 2017 12:12 am

Re: ESXI Nagios Core Service

Postby scottwilkerson » Tue Nov 13, 2018 3:01 pm

michaelpn wrote:Yes :)


Locking thread
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12287
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 18 guests