Increase number of lines in Service Status Detail

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
michaelsmith110
Posts: 13
Joined: Fri Jul 09, 2010 2:25 pm

Increase number of lines in Service Status Detail

Post by michaelsmith110 »

I was wondering if it was possible to expand the amount of information that is viewable in the Service Status Detail.

For example, using check_openmanage, the following information is returned:

OK - System: 'PowerEdge XXXX', SN: 'XXXX', 4 GB ram (4 dimms), 2 logical drives, 6 physical drives
----- BIOS='A07 04/25/2008', BMC='1.72'
----- Ctrl 0 [PERC 4e/Di]: Fw='5B2D', Dr='6.46.2.32', Storport: '5.2.3790.4173'
----- Ctrl 1 [PERC 4/

Now more information is being returned by SNMP, but I can't see it. How can I expand the number of lines in the display OR view the information somewhere on the Nagios XI Web interface?

Thanks!
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Increase number of lines in Service Status Detail

Post by mmestnik »

See the service in Nagios Core. I can't seam to find where you are looking at this just now.
One thing I wonder is if this is an issue with rendering? Could you copy/paste the HTML source for this section and perhaps attach the whole source?

Thank you.
michaelsmith110
Posts: 13
Joined: Fri Jul 09, 2010 2:25 pm

Re: Increase number of lines in Service Status Detail

Post by michaelsmith110 »

I'm looking at in the GUI webinterface of Nagios XI. I'm not really sure how to show you the code as requested. I changed the output to give less information, so I will have to change it back and post a screenshot; hopefully this will help...
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Increase number of lines in Service Status Detail

Post by mmestnik »

You use your browsers save function, this gives me more usable output then an image would. I feel that your description of what you see is complete, I was just wondering what screen in NagiosXI you were looking at and how you got there.
michaelsmith110
Posts: 13
Joined: Fri Jul 09, 2010 2:25 pm

Re: Increase number of lines in Service Status Detail

Post by michaelsmith110 »

Oh Ok... I didn't realize that's all you wanted.
Screenshot.png
Here is the Screenshot anyway.
You do not have the required permissions to view the files attached to this post.
michaelsmith110
Posts: 13
Joined: Fri Jul 09, 2010 2:25 pm

Re: Increase number of lines in Service Status Detail

Post by michaelsmith110 »

Here is the HTML... It is also attached in a ZIP.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html>
	<!-- Produced by Nagios XI.  Copyyright (c) 2008-2009 Nagios Enterprises, LLC (http://www.nagios.com). All Rights Reserved. -->
	<!-- Powered by the Nagios Synthesis Framework -->
	<head>
	<title>Nagios XI - Service Status Detail</title>
	<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="shortcut icon" href="http://10.0.0.10/nagiosxi/images/favicon.ico" type="image/ico">
	<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/css/jquery.autocomplete.css'>
	
	<script type='text/javascript'>
		var base_url="http://10.0.0.10/nagiosxi/";
		var backend_url="http://10.0.0.10/nagiosxi/includes/components/xicore/status.php";
		var ajax_helper_url="http://10.0.0.10/nagiosxi/ajaxhelper.php";
		var ajax_proxy_url="http://10.0.0.10/nagiosxi/ajaxproxy.php";
		var suggest_url="http://10.0.0.10/nagiosxi/suggest.php";
		var request_uri="/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=testserver&service=DELL%20OMSA&dest=auto";
		var permalink_base="http://10.0.0.10/nagiosxi/includes/components/xicore/status.php?&show=servicedetail&host=testserver&service=DELL OMSA&dest=auto";
		var demo_mode=0;
	</script>

<!-- FIREBUG LITE! -->	
<!--
<script type='text/javascript' 
        src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
//-->	

	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery-current.min.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.colorBlend.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.checkboxes.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.autocomplete.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.easydrag.js'></script>
	<!--<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.timer.js'></script>-->
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.timers-1.1.3.js'></script>

	<!-- this causes problems with sparkline! -->
	<!--<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.dimensions.pack.js'></script>-->
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.bgiframe.pack.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.tooltip.pack.js'></script>

	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery.sparkline.js'></script>
	
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/jquery/jquery-ui-1.7.2.custom.min.js'></script>
	<link type="text/css" href="http://10.0.0.10/nagiosxi/includes/js/jquery/css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
	
	<!-- colorpicker -->
	<link rel="stylesheet" href="http://10.0.0.10/nagiosxi/includes/js/jquery/colorpicker/css/colorpicker.css" type="text/css" />
	<!--
    <link rel="stylesheet" media="screen" type="text/css" href="http://10.0.0.10/nagiosxi/includes/js/jquery/colorpicker/css/layout.css" />
	//-->
	<script type="text/javascript" src="http://10.0.0.10/nagiosxi/includes/js/jquery/colorpicker/js/colorpicker.js"></script>
	<!--
    <script type="text/javascript" src="http://10.0.0.10/nagiosxi/includes/js/jquery/colorpicker/js/eye.js"></script>
    <script type="text/javascript" src="http://10.0.0.10/nagiosxi/includes/js/jquery/colorpicker/js/utils.js"></script>
    <script type="text/javascript" src="http://10.0.0.10/nagiosxi/includes/js/jquery/colorpicker/js/layout.js?ver=1.0.2"></script>
	//-->
	<!-- colorpicker -->

	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/core.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/commands.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/views.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/dashboards.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/dashlets.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/tables.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/users.js'></script>
	<script type='text/javascript' src='http://10.0.0.10/nagiosxi/includes/js/perfdata.js'></script>
	
	<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/css/nagiosxi.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/dashlets/helloworld/helloworld.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/dashlets/internethealthreport/internethealthreport.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/dashlets/internettrafficreport/internettrafficreport.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/dashlets/sansrisingports/sansrisingports.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/dashlets/testurl/testurl.css'>
<LINK REL='stylesheet' TYPE='text/css' HREF='http://10.0.0.10/nagiosxi/includes/dashlets/worldtimeserver/worldtimeserver.css'>
	</head>


<body  >

		
	<div  class="childpage"><!-- page-->

		<div id="header">

<!--- CHILD HEADER START -->

<div id="child_popup_layer">
	<div id="child_popup_content">
	<div id="child_popup_close">
	<a id="close_child_popup_link" href="#"><img src="http://10.0.0.10/nagiosxi/images/b_close.png" border="0" alt="Close" title="Close"> Close</a>
	</div>
	<div id="child_popup_container">
	</div>
	</div>
</div>

<!--- CHILD HEADER END -->		</div><!--header -->


	<div id="childcontentthrobber"><img src='http://10.0.0.10/nagiosxi/images/throbber1.gif' /></div>
<div class='contentheadernotice'><div style='float: right;'><a href='#' id='closetrialnotice'>[X]</a></div>Notice: This trial copy of Nagios XI will expire in 58 days.  <a href='http://www.nagios.com/products/nagiosxi/pricing/' target='_blank'>Purchase a License Now</a> or <a href='http://10.0.0.10/nagiosxi/admin/license.php'>Enter your license key</a>.</div>	<h1>Service Status Detail</h1>
	
	<div class="servicestatusdetailheader">
	<div class="serviceimage">
	<!--image-->
		</div>
	<div class="servicetitle">
	<div class="servicename">DELL OMSA</div>
	<div class="hostname"><a href="http://10.0.0.10/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=testserver">testserver</a></div>
	</div>
	</div>
	
	<div class='statusdetaillinks'><div class='statusdetaillink'><a href='http://10.0.0.10/nagiosxi/includes/components/xicore/status.php?host=testserver'><img src='http://10.0.0.10/nagiosxi/images/statusdetailmulti.png' alt='View Current Status For Host Services' title='View Current Status For Host Services'></a></div><div class='statusdetaillink'><a href='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/notifications.php?host=testserver&service=DELL OMSA'><img src='http://10.0.0.10/nagiosxi/images/notifications.png' alt='View Service Notifications' title='View Service Notifications'></a></div><div class='statusdetaillink'><a href='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/history.php?host=testserver&service=DELL OMSA'><img src='http://10.0.0.10/nagiosxi/images/history.png' alt='View Service History' title='View Service History'></a></div><div class='statusdetaillink'><a href='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/trends.php?host=testserver&service=DELL OMSA'><img src='http://10.0.0.10/nagiosxi/images/trends.png' alt='View Service Trends' title='View Service Trends'></a></div><div class='statusdetaillink'><a href='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/avail.php?host=testserver&service=DELL OMSA'><img src='http://10.0.0.10/nagiosxi/images/availability.png' alt='View Service Availability' title='View Service Availability'></a></div></div>	<br clear="all">
	
<script type="text/javascript">
	$(function() {
		$("#tabs").tabs();
	});
	</script>
	
	<div id="tabs">
	<ul>
		<li><a href="#tab-overview">Overview</a></li>
		<li><a href="#tab-perfgraphs">Performance Graphs</a></li>
		<li><a href="#tab-advanced">Advanced</a></li>
		<li><a href="#tab-configure">Configure</a></li>
	</ul>
	
	<!-- overview tab -->
	<div id="tab-overview">
	
	<div class="statusdetail_panelspacer"></div>

	<div style="float: left; margin-bottom: 25px;"><!--state summary-->
	
	<div class="service_state_summary" id="service_state_summary_ncdt9q">
	<div class="servicestatusdetailinfo"><div class="servicestatusdetailinfoimg"><img src='http://10.0.0.10/nagiosxi/images/ok_small.png' alt='Ok' title='Ok'  width='24'></div><div class="servicestatusdetailinfotext">OK - System: 'PowerEdge 1850', SN: 'ST24816', 2 GB ram (4 dimms), 1 logical drives, 2 physical drives<br/>----- BIOS='A07 04/25/2008', BMC='1.83'<br/>----- Ctrl 0 [PERC 4e/Si]: Fw='5B2D', Dr='6.46.2.32', Storport: '5.2.3790.4173'<br/>----- Encl 0:0:6 [Bac</div><div class="servicestatusdetailinfotextlong"></div></div><br clear="all">
	</div><!--service_state_summary-->
	<script type="text/javascript">
	$(document).ready(function(){
			
		$("#service_state_summary_ncdt9q").everyTime(7*1000, "timer-service_state_summary_ncdt9q", function(i) {
		var optsarr = {
			"func": "get_service_status_state_summary_html",
			"args": {"hostname" : "testserver", "servicename" : "DELL OMSA", "service_id" : "196", "display" : "simple"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
	});
	</script>
				</div><!--state summary-->
	
	
	<br clear="all">

	<div style="float: left;"><!--state info-->
	
	<div class="service_state_info" id="service_state_info_9l8no8">
	
		<div style="float: left; margin-right: 25px;">
		<div class="infotable_title">Status Details</div>
		<table class="infotable" style="width: 400px;">
		<thead>
		</thead>
		<tbody>
		<tr><td>Service State:</td><td>Ok</td></tr><tr><td>Duration:</td><td>22m  48s</td></tr><tr><td>Service Stability:</td><td>Unchanging (stable)</td></tr><tr><td>Last Check:</td><td>07/16/2010 07:46:37</td></tr><tr><td>Next Check:</td><td>07/16/2010 07:51:37</td></tr>
		</tbody>
		</table>
		</div>
		
	</div><!--service_state_info-->
	<script type="text/javascript">
	$(document).ready(function(){
			
		$("#service_state_info_9l8no8").everyTime(7*1000, "timer-service_state_info_9l8no8", function(i) {
		var optsarr = {
			"func": "get_service_status_detailed_info_html",
			"args": {"hostname" : "testserver", "servicename" : "DELL OMSA", "service_id" : "196", "display" : "simple"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
		function fill_service_state_info_9l8no8(data){
			$("#service_state_info_9l8no8").innerHTML=data;
			}
		
	});
	</script>
				</div><!--state info-->

	<div style="float: left;"><!-- quick actions-->
	<div class="infotable_title">Quick Actions</div>
	<table class="infotable">
	<thead>
	</thead>
	<tbody>
	<tr><td>
	<!-- dynamic entries-->
	<ul class="quickactions dynamic">
	
	<div class="service_state_quick_actions" id="service_state_quick_actions_r6kpla">
	<li><div class="commandimage"><a href="#" onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":23})'><img src="http://10.0.0.10/nagiosxi/images/nonotifications.png" alt="Disable notifications" title="Disable notifications"></a></div><div class="commandtext"><a href="#"  onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":23})'>Disable notifications</a></div></li><li><div class="commandimage"><a href="#" onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":7,"start_time":1279284565})'><img src="http://10.0.0.10/nagiosxi/images/schedulecheck.png" alt="Schedule an immediate check" title="Schedule an immediate check"></a></div><div class="commandtext"><a href="#"  onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":7,"start_time":1279284565})'>Schedule an immediate check</a></div></li>
	</div><!--service_state_quick_actions-->
	<script type="text/javascript">
	$(document).ready(function(){
			
		$("#service_state_quick_actions_r6kpla").everyTime(10*1000, "timer-service_state_quick_actions_r6kpla", function(i) {
		var optsarr = {
			"func": "get_service_status_quick_actions_html",
			"args": {"hostname" : "testserver", "servicename" : "DELL OMSA", "service_id" : "196", "display" : "simple"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
	});
	</script>
				
	</ul>

	<!-- other entries-->
	</td></tr>
	</tbody>
	</table>
	</div><!-- quick actions-->

	<br clear="all">

	<script type="text/javascript">
	function show_ack(){
		$("#servicequickactionform").each(function(i) {
			$(this).css("visibility","visible");
			this.innerHTML="<br><div class='infotable_title'>Acknowledge Problem</div><form action='' method='get'><input type='hidden' name='show' value='servicedetail'><input type='hidden' name='host' value='testserver'><input type='hidden' name='service' value='DELL OMSA'><input type='hidden' name='submitcommand' value='1'><input type='hidden' name='cmd' value='ackservice'><label for='comment'>Your Comment</label><br><input type='text' class='textfield' size='40' name='comment' id='comment'><input type='submit' name='btnSubmit' value='Submit'></form>";
			});
		$("#servicequickactionformcontainer").each(function(i) {
			$(this).css("visibility","visible");
			});
		}
	</script>


	<div id="servicequickactionformcontainer"><!-- live action form -->
	<div id="servicequickactionform">
	<!--LIVE ACTION FORM-->
	</div>
	</div><!-- live action form -->

	<div style="float: left; margin-top: 25px;"><!--comments-->
	
	<div class="service_comments" id="service_comments_gh2qbu">
	<div class="infotable_title">Acknowledgements and Comments</div>No comments or acknowledgements.
	</div><!--service_comments-->
	<script type="text/javascript">
	$(document).ready(function(){
			
		$("#service_comments_gh2qbu").everyTime(10*1000, "timer-service_comments_gh2qbu", function(i) {
		var optsarr = {
			"func": "get_service_comments_html",
			"args": {"hostname" : "testserver", "servicename" : "DELL OMSA", "service_id" : "196", "display" : "simple"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
	});
	</script>
				</div><!--comments-->

	


	</div>
	<!-- overview tab -->
	
	<!-- performance graphs tab -->
	<div id="tab-perfgraphs">
	
		<div class="statusdetail_panelspacer"></div>
	
No performance graphs were found for this service.	</div>
	<!-- performance graphs tab -->
	
	<!-- advanced tab -->
	<div id="tab-advanced">
	
	<div class="statusdetail_panelspacer"></div>
	
	<div style="float: left; margin-bottom: 25px;"><!--state info-->
	
	<div class="service_state_info" id="service_state_info_6ejr08">
	
		<div style="float: left; margin-right: 25px;">
		<div class="infotable_title">Advanced Status Details</div>
		<table class="infotable" style="width: 400px;">
		<thead>
		</thead>
		<tbody>
		<tr><td>Service State:</td><td>Ok</td></tr><tr><td>Duration:</td><td>22m  48s</td></tr><tr><td>State Type:</td><td>Hard</td></tr><tr><td>Current Check:</td><td>1 of 5</td></tr><tr><td>Last Check:</td><td>07/16/2010 07:46:37</td></tr><tr><td>Next Check:</td><td>07/16/2010 07:51:37</td></tr><tr><td nowrap>Last State Change:</td><td>07/16/2010 07:26:37</td></tr><tr><td>Last Notification:</td><td>Never</td></tr><tr><td valign="top" nowrap>Check Type:</td><td>Active</td></tr><tr><td valign="top" nowrap>Check Latency:</td><td>0.532 seconds</td></tr><tr><td valign="top" nowrap>Execution Time:</td><td>6.93669 seconds</td></tr><tr><td valign="top" nowrap>State Change:</td><td>5.85526%</td></tr><tr><td valign="top" nowrap>Performance Data:</td><td></td></tr>
		</tbody>
		</table>
		</div>
		
	</div><!--service_state_info-->
	<script type="text/javascript">
	$(document).ready(function(){
			
		$("#service_state_info_6ejr08").everyTime(10*1000, "timer-service_state_info_6ejr08", function(i) {
		var optsarr = {
			"func": "get_service_status_detailed_info_html",
			"args": {"hostname" : "testserver", "servicename" : "DELL OMSA", "service_id" : "196", "display" : "advanced"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
	});
	</script>
				</div><!--state info-->

	<div style="float: left;">
	
	<div class="advanced_servicestatus_attributes" id="advanced_servicestatus_attributes_s3dfhs">
	<div class="infotable_title">Service Attributes</div>
		<table class="infotable">
		<thead>
		<tr><th><div style="width: 50px;">Attribute</div></th><th><div style="width: 50px;">State</div></th><th><div style="width: 50px;">Action</div></th></tr>
		</thead>
		<tbody>
		<tr><td><span class="sysstat_stat_subtitle">Active  Checks</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td><td><a href='#' onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":6})'><img src='http://10.0.0.10/nagiosxi/images/disable_small.gif' title='Disable'></a></td></tr><tr><td><span class="sysstat_stat_subtitle">Passive Checks</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td><td><a href='#' onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":40})'><img src='http://10.0.0.10/nagiosxi/images/disable_small.gif' title='Disable'></a></td></tr><tr><td><span class="sysstat_stat_subtitle">Notifications</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td><td><a href='#' onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":23})'><img src='http://10.0.0.10/nagiosxi/images/disable_small.gif' title='Disable'></a></td></tr><tr><td><span class="sysstat_stat_subtitle">Flap Detection</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td><td><a href='#' onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":60})'><img src='http://10.0.0.10/nagiosxi/images/disable_small.gif' title='Disable'></a></td></tr><tr><td><span class="sysstat_stat_subtitle">Event Handler</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td><td><a href='#' onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":46})'><img src='http://10.0.0.10/nagiosxi/images/disable_small.gif' title='Disable'></a></td></tr><tr><td><span class="sysstat_stat_subtitle">Performance Data</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td></tr><tr><td><span class="sysstat_stat_subtitle">Obsession</span></td><td><img src='http://10.0.0.10/nagiosxi/images/enabled_small.gif' title='Enabled'></td><td><a href='#' onClick='submit_command(16,{"host_name":"testserver","service_name":"DELL OMSA","cmd":100})'><img src='http://10.0.0.10/nagiosxi/images/disable_small.gif' title='Disable'></a></td></tr>
		</tbody>
		</table>
	</div><!--advanced_servicestatus_attributes-->
	<script type="text/javascript">
	$(document).ready(function(){
			
		$("#advanced_servicestatus_attributes_s3dfhs").everyTime(10*1000, "timer-advanced_servicestatus_attributes_s3dfhs", function(i) {
		var optsarr = {
			"func": "get_service_status_attributes_html",
			"args": {"hostname" : "testserver", "servicename" : "DELL OMSA", "service_id" : "196", "display" : "all"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
	});
	</script>
				</div>

	<br clear="all">

	<div style="float: left; margin-right: 50px;"><!--advanced commands-->
	
	<div class="infotable_title">Commands</div>
	
	<table class="infotable">
	<tbody>

	
	
	<tr><td nowrap><div class="commandimage"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=56&host=testserver&service=DELL+OMSA"><img src='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/images/downtime.gif' title='Schedule downtime' alt='Schedule downtime'></a></div><div class="commandtext"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=56&host=testserver&service=DELL+OMSA">Schedule downtime</a></div></td></tr>

	<tr><td nowrap><div class="commandimage"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=30&host=testserver&service=DELL+OMSA"><img src='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/images/passiveonly.gif' title='Submit passive check result' alt='Submit passive check result'></a></div><div class="commandtext"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=30&host=testserver&service=DELL+OMSA">Submit passive check result</a></div></td></tr>

	<tr><td nowrap><div class="commandimage"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=160&host=testserver&service=DELL+OMSA"><img src='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/images/notify.gif' title='Send custom notification' alt='Send custom notification'></a></div><div class="commandtext"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=160&host=testserver&service=DELL+OMSA">Send custom notification</a></div></td></tr>

	<tr><td nowrap><div class="commandimage"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=9&host=testserver&service=DELL+OMSA"><img src='http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/images/delay.gif' title='Delay next notification' alt='Delay next notification'></a></div><div class="commandtext"><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/cmd.php?cmd_typ=9&host=testserver&service=DELL+OMSA">Delay next notification</a></div></td></tr>

	
	</tbody>
	</table>
	</div><!--advanced commands-->
	
	<div style="float: left;">
	<div class="infotable_title">More Options</div>
	<ul>
	<li><a href="http://10.0.0.10/nagiosxi/includes/components/nagioscore/ui/extinfo.php?type=2&host=testserver&service=DELL OMSA&usecoreui=1">See this service in Nagios Core</a></li>
	</ul>
	</div>
	
	
		
	</div>
	<!-- advanced tab -->
	
	<!-- configure tab -->
	<div id="tab-configure">
<p><img src='http://10.0.0.10/nagiosxi/images/editsettings.png' style='float: left; margin-right: 10px;'><a href='http://10.0.0.10/nagiosxi/config/configobject.php?host=testserver&service=DELL OMSA&return=servicedetail'>Re-configure this service</a><br><p><img src='http://10.0.0.10/nagiosxi/images/delete.png' style='float: left; margin-right: 10px;'><a href='http://10.0.0.10/nagiosxi/config/deleteobject.php?host=testserver&service=DELL OMSA&return=servicedetail'>Delete this service</a>		
	</div>
	<!-- configure tab -->
	
</div>




	
	
		<div id="footer">
		<!-- CHILD FOOTER START -->


<!-- CHILD FOOTER END -->
		</div><!--footer-->
	
	</div><!--page-->

<noframes>
<!-- This page requires a web browser which supports frames. --> 
<h2>Nagios XI</h2>
<p align="center">
<a href="http://www.nagios.com/">www.nagios.com</a><br>
Copyright (c) 2009 Nagios Enterprises, LLC<br>
</p>
<p>
<i>Note: These pages require a browser which supports frames</i>
</p>
</noframes>

	
</body>

</html>
 
Thanks for the help!
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Increase number of lines in Service Status Detail

Post by mguthrie »

Not sure if this will display all the info or not, but try this:

Service Details ->Advanced(tab)->See This Service In Nagios Core (located under the "More Options" heading).

Nagios core view gives the data in a less flashy format, but it might show all the info you need. I can't test it at the moment since I don't currently have a status long enough.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Increase number of lines in Service Status Detail

Post by mmestnik »

This could be a problem with ndodb, but there is one thing to check. You can take a look and confirm/test the cause by doing:

Code: Select all

mysql -u root -p nagios
nagiosxi
describe nagios_servicechecks
select output, long_output from nagios_servicechecks;
The size of output is only 255(looks familiar, as in where your data is cut off), but the size of long_output is 8k.

Once we are sure this is the culprit, you can just increase this to 1024 or 2048(using some mysql vodomagic that I don't have on me right now, though I'm sure Google has some examples)... I'd like to know if the '<br />' are in mysql or if these are LFs('\n'). The check command should have output that contains LFs to place it's data into long_output, defffined as the second line and onward. Legacy(2.x) plug-ins may have used various other tactics to place extra data into check output, like using there own '<br />' . In that case the plug-in's output should be changed for the recent 3.x Nagios.
michaelsmith110
Posts: 13
Joined: Fri Jul 09, 2010 2:25 pm

Re: Increase number of lines in Service Status Detail

Post by michaelsmith110 »

I think you may be right. I checked what mguthrie suggested and sure enough all of the data shows up there. So its being cut off on the display.

I am a bit SQL stupid... I couldn't get the query you posted to work (I am curious what the error I made is).

I tried what you posted, but it gave me a syntax error with the line select output, long_output from nagios_servicechecks. I looked up a few things (have never so much as written a query in MySQL or SQl or any DB at all) and ran just describe nagios_servicechecks. At the bottom of the table was output with varchar of 255. long_output was 8192.

After googling, I found the command

ALTER TABLE nagios_servicecheks MODIFY output varchar(1024) not null;

It's changed on the table, but it still is only using 255 characters on the display.

Is there anything that I need to do to force the change through? I restarted the daemon using the ./nagios.sh restart script.

Any help would be greatly appreciated.

Thanks!
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Increase number of lines in Service Status Detail

Post by mmestnik »

Yup, missing a ';' there :oops:

Code: Select all

describe nagios_servicechecks;
select output, long_output from nagios_servicechecks;
I'm particularly interested in whether there is data in long_output for these services.

You may just need to wait for fresh data or force a check. I asked our developers prior to posting my previous response, we don't clip the data in the display code. We do replace line endings with some form of HTML line break.

In Nagios Core what does the HTML source look like? A zip file attachment is fine. Don't forget to obfuscate your data, perhaps you'd want to remove your previous zip file and change your pasted HTML.
Locked