ESXi - Timeout
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
ESXi - Timeout
Hi Team,
I have tried to add a host using vmware wizard, I was able to add 2 hosts successfully however i have 4 more to be added onto which I get the timeout error, I have pasted all possible o/p's I can please help to resolve this issue:
[hpeadmin@hpenagios libexec]$ ./check_vmware_api.pl -H 10.16.68.28 -u hpemon -p bG6Xw6nB -l cpu -s usage -w 80 -c 90
CHECK_VMWARE_API.PL UNKNOWN - plugin timed out (timeout 30s)
================================================================================================================================================
================================================================================================================================================
[hpeadmin@hpenagios general]$ ./connect.pl https://10.16.68.28/sdk/vimService --username hpemon --password bG6Xw6nB
Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 704.
[hpeadmin@hpenagios general]$ ./connect.pl https://10.16.68.28/sdk/vimService --username hpemon --password bG6Xw6nB --verbose
Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 704.
================================================================================================================================================
================================================================================================================================================
[hpeadmin@hpenagios general]$ nmap -Pn -p 443 10.16.68.28
Starting Nmap 7.70 ( https://nmap.org ) at 2022-01-31 16:45 CET
Nmap scan report for 10.16.68.28
Host is up (0.00020s latency).
PORT STATE SERVICE
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
================================================================================================================================================
================================================================================================================================================
[hpeadmin@hpenagios tmp]$ curl -k -L -v 'https://10.16.68.28:443/sdk/vimService.wsdl' >>curloutput
* Trying 10.16.68.28...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.16.68.28 (10.16.68.28) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [57 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [1075 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=US; ST=California; L=Palo Alto; O=VMware; OU=VMware Engineering; CN=10.16.68.28; emailAddress=[email protected]
* start date: Jun 17 06:32:49 2020 GMT
* expire date: Jun 17 06:32:49 2025 GMT
* issuer: CN=CA; DC=vsphere; DC=local; C=US; ST=California; O=photon-machine; OU=VMware Engineering
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
} [5 bytes data]
> GET /sdk/vimService.wsdl HTTP/1.1
> Host: 10.16.68.28
> User-Agent: curl/7.61.1
> Accept: */*
>
{ [5 bytes data]
< HTTP/1.1 200 OK
< Date: Mon, 31 Jan 2022 15:46:14 GMT
< Cache-Control: no-cache
< Connection: Keep-Alive
< Content-Type: text/xml; charset=utf-8
< X-Frame-Options: DENY
< Content-Length: 545
<
{ [545 bytes data]
100 545 100 545 0 0 38928 0 --:--:-- --:--:-- --:--:-- 38928
* Connection #0 to host 10.16.68.28 left intact
[hpeadmin@hpenagios tmp]$
I have tried to add a host using vmware wizard, I was able to add 2 hosts successfully however i have 4 more to be added onto which I get the timeout error, I have pasted all possible o/p's I can please help to resolve this issue:
[hpeadmin@hpenagios libexec]$ ./check_vmware_api.pl -H 10.16.68.28 -u hpemon -p bG6Xw6nB -l cpu -s usage -w 80 -c 90
CHECK_VMWARE_API.PL UNKNOWN - plugin timed out (timeout 30s)
================================================================================================================================================
================================================================================================================================================
[hpeadmin@hpenagios general]$ ./connect.pl https://10.16.68.28/sdk/vimService --username hpemon --password bG6Xw6nB
Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 704.
[hpeadmin@hpenagios general]$ ./connect.pl https://10.16.68.28/sdk/vimService --username hpemon --password bG6Xw6nB --verbose
Server version unavailable at 'https://localhost:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 704.
================================================================================================================================================
================================================================================================================================================
[hpeadmin@hpenagios general]$ nmap -Pn -p 443 10.16.68.28
Starting Nmap 7.70 ( https://nmap.org ) at 2022-01-31 16:45 CET
Nmap scan report for 10.16.68.28
Host is up (0.00020s latency).
PORT STATE SERVICE
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
================================================================================================================================================
================================================================================================================================================
[hpeadmin@hpenagios tmp]$ curl -k -L -v 'https://10.16.68.28:443/sdk/vimService.wsdl' >>curloutput
* Trying 10.16.68.28...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.16.68.28 (10.16.68.28) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [57 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [1075 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=US; ST=California; L=Palo Alto; O=VMware; OU=VMware Engineering; CN=10.16.68.28; emailAddress=[email protected]
* start date: Jun 17 06:32:49 2020 GMT
* expire date: Jun 17 06:32:49 2025 GMT
* issuer: CN=CA; DC=vsphere; DC=local; C=US; ST=California; O=photon-machine; OU=VMware Engineering
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
} [5 bytes data]
> GET /sdk/vimService.wsdl HTTP/1.1
> Host: 10.16.68.28
> User-Agent: curl/7.61.1
> Accept: */*
>
{ [5 bytes data]
< HTTP/1.1 200 OK
< Date: Mon, 31 Jan 2022 15:46:14 GMT
< Cache-Control: no-cache
< Connection: Keep-Alive
< Content-Type: text/xml; charset=utf-8
< X-Frame-Options: DENY
< Content-Length: 545
<
{ [545 bytes data]
100 545 100 545 0 0 38928 0 --:--:-- --:--:-- --:--:-- 38928
* Connection #0 to host 10.16.68.28 left intact
[hpeadmin@hpenagios tmp]$
Re: ESXi - Timeout
Please follow this guide on page 4 to disable the SSL certificate checking:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: ESXi - Timeout
Mentioned steps are already performed, and thats why we were able to add at least 2 hosts I believe:
Additional Steps For RHEL/CentOS 8 and Debian 10
Run the following command to fix an SDK issue:
mv /usr/bin/six.pyc /usr/bin/six.pyc.bak
Update the following file : /usr/share/perl5/VMware/VICommon.pm (El 8) or /usr/share/perl/<perl version
number>VMware/VICommon.pm (Debian 10)
Change this line:
#To remove SSL Warning, switching from IO::Socket::SSL to Net::SSL
# $ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL";
To the below to fix an issue with invalid certificates:
#To remove SSL Warning, switching from IO::Socket::SSL to Net::SSL
$ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL";
Now that the VMware SDK is installed, you can proceed to run the VMware wizard.
Additional Steps For RHEL/CentOS 8 and Debian 10
Run the following command to fix an SDK issue:
mv /usr/bin/six.pyc /usr/bin/six.pyc.bak
Update the following file : /usr/share/perl5/VMware/VICommon.pm (El 8) or /usr/share/perl/<perl version
number>VMware/VICommon.pm (Debian 10)
Change this line:
#To remove SSL Warning, switching from IO::Socket::SSL to Net::SSL
# $ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL";
To the below to fix an issue with invalid certificates:
#To remove SSL Warning, switching from IO::Socket::SSL to Net::SSL
$ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL";
Now that the VMware SDK is installed, you can proceed to run the VMware wizard.
Re: ESXi - Timeout
Please attach this file:
Send the output of these commands as root as well:
Code: Select all
/usr/share/perl5/VMware/VICommon.pmCode: Select all
find / -name VICommon.pm
env
su - nagios
env-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: ESXi - Timeout
please find the details as attached and below:
find: ‘/proc/2320160/net’: Invalid argument
find: ‘/proc/2325379’: No such file or directory
find: ‘/proc/2325387’: No such file or directory
find: ‘/proc/2325388’: No such file or directory
find: ‘/proc/2325389’: No such file or directory
find: ‘/proc/2325390’: No such file or directory
find: ‘/proc/2325391’: No such file or directory
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib/vmware-vcli/VMware/share/VMware/VICommon.pm
/usr/share/perl5/VMware/VICommon.pm
/tmp/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VICommon.pm
You have new mail in /var/spool/mail/root
[root@hpenagios VMware]#
[root@hpenagios VMware]# env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
SUDO_GID=1000
HOSTNAME=hpenagios
SUDO_COMMAND=/bin/bash
S_COLORS=auto
which_declare=declare -f
USER=root
PWD=/usr/share/perl5/VMware
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/root
SUDO_USER=hpeadmin
XDG_DATA_DIRS=/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
SUDO_UID=1000
MAIL=/var/spool/mail/root
SHELL=/bin/bash
TERM=xterm
SHLVL=1
LOGNAME=root
PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
HISTSIZE=1000
LESSOPEN=||/usr/bin/lesspipe.sh %s
BASH_FUNC_which%%=() { ( alias;
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
OLDPWD=/root
_=/bin/env
being a nagios user:
[nagios@hpenagios ~]$ env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
HOSTNAME=hpenagios
S_COLORS=auto
which_declare=declare -f
USER=nagios
PWD=/home/nagios
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/home/nagios
XDG_DATA_DIRS=/home/nagios/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
MAIL=/var/spool/mail/nagios
SHELL=/bin/bash
TERM=xterm
SHLVL=1
LOGNAME=nagios
PATH=/home/nagios/.local/bin:/home/nagios/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
HISTSIZE=1000
LESSOPEN=||/usr/bin/lesspipe.sh %s
BASH_FUNC_which%%=() { ( alias;
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
_=/usr/bin/env
find: ‘/proc/2320160/net’: Invalid argument
find: ‘/proc/2325379’: No such file or directory
find: ‘/proc/2325387’: No such file or directory
find: ‘/proc/2325388’: No such file or directory
find: ‘/proc/2325389’: No such file or directory
find: ‘/proc/2325390’: No such file or directory
find: ‘/proc/2325391’: No such file or directory
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib/vmware-vcli/VMware/share/VMware/VICommon.pm
/usr/share/perl5/VMware/VICommon.pm
/tmp/vmware-vsphere-cli-distrib/lib/VMware/share/VMware/VICommon.pm
You have new mail in /var/spool/mail/root
[root@hpenagios VMware]#
[root@hpenagios VMware]# env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
SUDO_GID=1000
HOSTNAME=hpenagios
SUDO_COMMAND=/bin/bash
S_COLORS=auto
which_declare=declare -f
USER=root
PWD=/usr/share/perl5/VMware
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/root
SUDO_USER=hpeadmin
XDG_DATA_DIRS=/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
SUDO_UID=1000
MAIL=/var/spool/mail/root
SHELL=/bin/bash
TERM=xterm
SHLVL=1
LOGNAME=root
PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
HISTSIZE=1000
LESSOPEN=||/usr/bin/lesspipe.sh %s
BASH_FUNC_which%%=() { ( alias;
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
OLDPWD=/root
_=/bin/env
being a nagios user:
[nagios@hpenagios ~]$ env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
HOSTNAME=hpenagios
S_COLORS=auto
which_declare=declare -f
USER=nagios
PWD=/home/nagios
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HOME=/home/nagios
XDG_DATA_DIRS=/home/nagios/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
MAIL=/var/spool/mail/nagios
SHELL=/bin/bash
TERM=xterm
SHLVL=1
LOGNAME=nagios
PATH=/home/nagios/.local/bin:/home/nagios/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
HISTSIZE=1000
LESSOPEN=||/usr/bin/lesspipe.sh %s
BASH_FUNC_which%%=() { ( alias;
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
_=/usr/bin/env
You do not have the required permissions to view the files attached to this post.
Re: ESXi - Timeout
Make sure strace is installed:
Then PM me the output of this command:
Thank you!
Code: Select all
yum install straceCode: Select all
strace -f /usr/local/nagios/libexec/check_vmware_api.pl -H 10.16.68.28 -u hpemon -p bG6Xw6nB -l cpu -s usage -w 80 -c 90 --trace=4 -vvv-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: ESXi - Timeout
below is the strace installation o/p and another o/p is attached:
[root@hpenagios ~]# yum install strace
Last metadata expiration check: 1:19:23 ago on Mon 07 Feb 2022 09:55:08 AM CET.
Package strace-5.13-2.el8.x86_64 is already installed.
Dependencies resolved.
=============================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================
Upgrading:
strace x86_64 5.13-3.el8 baseos 1.3 M
Transaction Summary
=============================================================================================================================================================
Upgrade 1 Package
Total download size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
strace-5.13-3.el8.x86_64.rpm 3.3 MB/s | 1.3 MB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.1 MB/s | 1.3 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : strace-5.13-3.el8.x86_64 1/2
Cleanup : strace-5.13-2.el8.x86_64 2/2
Running scriptlet: strace-5.13-2.el8.x86_64 2/2
Verifying : strace-5.13-3.el8.x86_64 1/2
Verifying : strace-5.13-2.el8.x86_64 2/2
Upgraded:
strace-5.13-3.el8.x86_64
Complete!
[root@hpenagios ~]#
[root@hpenagios ~]# yum install strace
Last metadata expiration check: 1:19:23 ago on Mon 07 Feb 2022 09:55:08 AM CET.
Package strace-5.13-2.el8.x86_64 is already installed.
Dependencies resolved.
=============================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================
Upgrading:
strace x86_64 5.13-3.el8 baseos 1.3 M
Transaction Summary
=============================================================================================================================================================
Upgrade 1 Package
Total download size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
strace-5.13-3.el8.x86_64.rpm 3.3 MB/s | 1.3 MB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.1 MB/s | 1.3 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : strace-5.13-3.el8.x86_64 1/2
Cleanup : strace-5.13-2.el8.x86_64 2/2
Running scriptlet: strace-5.13-2.el8.x86_64 2/2
Verifying : strace-5.13-3.el8.x86_64 1/2
Verifying : strace-5.13-2.el8.x86_64 2/2
Upgraded:
strace-5.13-3.el8.x86_64
Complete!
[root@hpenagios ~]#
You do not have the required permissions to view the files attached to this post.
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: ESXi - Timeout
Can I get an update on this please.
Re: ESXi - Timeout
That one looked like it worked, send the output of this one:
Code: Select all
/usr/local/nagios/libexec/check_vmware_api.pl -H 10.16.68.28 -u hpemon -p bG6Xw6nB -l cpu -s usage -w 80 -c 90-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: ESXi - Timeout
here is the o/p:
[root@hpenagios ~]# /usr/local/nagios/libexec/check_vmware_api.pl -H 10.16.68.28 -u hpemon -p bG6Xw6nB -l cpu -s usage -w 80 -c 90
CHECK_VMWARE_API.PL UNKNOWN - plugin timed out (timeout 30s)
[root@hpenagios ~]# /usr/local/nagios/libexec/check_vmware_api.pl -H 10.16.68.28 -u hpemon -p bG6Xw6nB -l cpu -s usage -w 80 -c 90
CHECK_VMWARE_API.PL UNKNOWN - plugin timed out (timeout 30s)