Page 1 of 1

ESXi Session ended unexpectedly

Posted: Wed Jun 06, 2018 5:45 am
by sac1472
Hello,
I've added 150 ESXi in monitoring. i'm using one vCenter session file to login & monitor all 150 esxi. It's works well but manytimes, that session file gets ended unexpectedly with below error ---
Session file ended unexpectedly at /usr/share/perl5/VMware/VICommon.pm line 85

due to above issue of session file, my all esx checks goes in critical, but there is no real issue. it's just session file issue.
there are total 810 checks- which are using that one session file for authentication.

why vCenter session is getting ended unexpectedly ?

Re: ESXi Session ended unexpectedly

Posted: Wed Jun 06, 2018 8:31 am
by sac1472
@lmiltchev - could you please take a look at above issue ? as i think, you have idea about working of vcenter sessions...
Please reply ASAP.

Re: ESXi Session ended unexpectedly

Posted: Wed Jun 06, 2018 2:02 pm
by lmiltchev
It is possible that you are hitting a session limit. Try changing your check intervals from 5 min to 10 or 15 min to see if this is going to solve the issue.

Note: You can modify your checks faster (or with "one go") via the Bulk Modifications Tool (Check a single configuration option -> Check period) in Nagios XI Enterprise Edition. Thank you!

Re: ESXi Session ended unexpectedly

Posted: Thu Jun 07, 2018 10:52 am
by sac1472
Thanks @lmiltchev :D
rather than increasing nagios check intervals, can we increase concurrent connections limit for a session at vCenter Side ?
Also, i had found a similar issue like below , where they are saying to modify vCenter variable Perf.Stats.MaxCollectionThreads
. do you have any idea about that ?
https://kb.paessler.com/en/topic/30643- ... tems-pe121

Re: ESXi Session ended unexpectedly

Posted: Thu Jun 07, 2018 11:56 am
by lmiltchev
To be honest with you, I haven't tried modifying these settings but this sounds right. Give it a try. If this doesn't work, you could always switch back to the old values.

You should also consider running your checks less frequently.
To minimize load we strongly recommend that you use a scanning interval of 5 minutes or more.