VMware Cloud Community
UberGeek1
Enthusiast
Enthusiast
Jump to solution

vSphere Alarms for NFS Datastore

So I would like to create an Alarm that is an event (not state) that will trigger when a NFS datastore is disconnected.  I found the "Lost connection to NFS server" trigger, but it doesn't seem to work at all.  Also, I would like to only fire the action when the host is not in Maintenance Mode, because that would be very annoying to get a call-out because a host was rebooted for patches and generated "NFS Datastore Disconnected" type alarm.

Sincerely, Jody L. Whitlock
0 Kudos
1 Solution

Accepted Solutions
chaplina
Enthusiast
Enthusiast
Jump to solution

use the esx.problem.storage.apd.* triggers

when NFS disconnects you will get APD messages in the vmkernel.log file on the host

View solution in original post

0 Kudos
4 Replies
chaplina
Enthusiast
Enthusiast
Jump to solution

use the esx.problem.storage.apd.* triggers

when NFS disconnects you will get APD messages in the vmkernel.log file on the host

0 Kudos
UberGeek1
Enthusiast
Enthusiast
Jump to solution

That's sweet!  Wish there was a document somewhere that detailed all those little goodies...

Sincerely, Jody L. Whitlock
0 Kudos
chaplina
Enthusiast
Enthusiast
Jump to solution

Actually, I got my information via this blog post due to the NFS APD bug affecting vSphere 5.5:

http://www.virtuallyghetto.com/2014/04/how-to-create-vcenter-alarm-to-alert-on-esxi-5-5u1-nfs-apd-is...

It details instructions for creating an alarm.  Mine is a bit different because I added a check for ...apd.exit so the alarm would return to Green.

UberGeek1
Enthusiast
Enthusiast
Jump to solution

It looks like for reference, one has to dig through the /var/log/vobd.log for the specific VOB to watch for.  Such as:

2014-09-12T18:03:52.482Z: [APDCorrelator] 80896847968us: [vob.storage.apd.start] Device or filesystem with identifier [1b09c9f2-98386c11] has entered the All Paths Down state.

2014-09-12T18:03:52.482Z: [APDCorrelator] 80896848649us: [esx.problem.storage.apd.start] Device or filesystem with identifier [1b09c9f2-98386c11] has entered the All Paths Down state.

2014-09-12T18:04:04.506Z: [APDCorrelator] 80908872064us: [vob.storage.apd.start] Device or filesystem with identifier [b1d404c3-e892086b] has entered the All Paths Down state.

2014-09-12T18:04:04.506Z: [APDCorrelator] 80908872761us: [esx.problem.storage.apd.start] Device or filesystem with identifier [b1d404c3-e892086b] has entered the All Paths Down state.

Inside the brackets is the VOB entry to trigger on, which means jsut about anything could be made into an alarm, which is awesome!

Sincerely, Jody L. Whitlock
0 Kudos