Index: trunk/Ohana/src/opihi/pantasks/CheckJobs.c
===================================================================
--- trunk/Ohana/src/opihi/pantasks/CheckJobs.c	(revision 12840)
+++ trunk/Ohana/src/opihi/pantasks/CheckJobs.c	(revision 13486)
@@ -87,4 +87,10 @@
 	set_variable ("JOB_DTIME", job[0].dtime);
 
+	if (job[0].realhost == NULL) {
+	  set_str_variable ("JOB_HOSTNAME", job[0].realhost);
+	} else {
+	  set_str_variable ("JOB_HOSTNAME", job[0].realhost);
+	}	    
+
 	if (status == JOB_CRASH) {
 	  /* XXX add an Ncrash element? */
