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

Re: Increase number of lines in Service Status Detail

Post by michaelsmith110 »

:-D

LOL... No worries... All the info in those postings was actually changed to things that have nothing to do with any of our networks. I just prefer to hide in plain sight. I don't know how much fun any script kiddies would have with some of the info.


<html>
<head>
<link rel="shortcut icon"

href="http://116.74.182.106/nagiosxi/includes ... avicon.ico" type="image/ico">
<title>
Extended Information
</title>
<script type='text/javascript'
Screenshot.png


src='http://116.74.182.106/nagiosxi/includes ... '></script>
<LINK REL='stylesheet' TYPE='text/css'

HREF='http://116.74.182.106/nagiosxi/includes ... css'><LINK REL='stylesheet'

TYPE='text/css' HREF='http://116.74.182.106/nagiosxi/includes ... ss'></head>
<body CLASS='extinfo'>

<!-- Produced by Nagios (http://www.nagios.org). Copyright (c) 1999-2007 Ethan Galstad. -->
<table border=0 width=100%>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>Service Information</DIV>
Last Updated: Tue Jul 20 09:39:50 CDT 2010<BR>
Updated every 90 seconds<br>
Nagios® Core™ 3.2.0 - <A HREF='http://www.nagios.org' TARGET='_new'

CLASS='homepageURL'>www.nagios.org</A><BR>
Logged in as <i>admin</i><BR>
</TD></TR>
</TABLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function nagios_get_host_name()
{
return "comeouttoplay.warriors.com";
}
function nagios_get_host_address()
{
return "116.74.182.25";
}
function nagios_get_service_description()
{
return "DELL OMSA";
}
//-->
</SCRIPT>
<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 CLASS='linkBox'>
<TR><TD CLASS='linkBox'>
<A HREF='http://116.74.182.106/nagiosxi/includes ... xtinfo.php?

type=1&host=comeouttoplay.warriors.com'>View Information For This Host</A><br>
<A HREF='http://116.74.182.106/nagiosxi/includes ... status.php?

host=comeouttoplay.warriors.com'>View Status Detail For This Host</A><BR>
<A HREF='http://116.74.182.106/nagiosxi/includes ... istory.php?

host=comeouttoplay.warriors.com&service=DELL+OMSA'>View Alert History For This Service</A><BR>
<A HREF='http://116.74.182.106/nagiosxi/includes ... trends.php?

host=comeouttoplay.warriors.com&service=DELL+OMSA'>View Trends For This Service</A><BR>
<A HREF='http://116.74.182.106/nagiosxi/includes ... togram.php?

host=comeouttoplay.warriors.com&service=DELL+OMSA'>View Alert Histogram For This Service</A><BR>
<A HREF='http://116.74.182.106/nagiosxi/includes ... /avail.php?

host=comeouttoplay.warriors.com&service=DELL+OMSA&show_log_entries'>View Availability Report For This

Service</A><BR>
<A HREF='http://116.74.182.106/nagiosxi/includes ... ations.php?

host=comeouttoplay.warriors.com&service=DELL+OMSA'>View Notifications For This Service</A>
</TD></TR>
</TABLE>
</td>
<td align=center valign=middle width=33%>
<DIV CLASS='data'>Service</DIV><DIV CLASS='dataTitle'>DELL OMSA</DIV><DIV CLASS='data'>On Host</DIV>
<DIV CLASS='dataTitle'>comeouttoplay.warriors.com</DIV>
<DIV CLASS='dataTitle'>(<A HREF='http://116.74.182.106/nagiosxi/includes ... xtinfo.php?

type=1&host=comeouttoplay.warriors.com'>comeouttoplay.warriors.com</a>)</DIV><BR>
<DIV CLASS='data'>Member of</DIV><DIV CLASS='dataTitle'><A

HREF='http://116.74.182.106/nagiosxi/includes ... outtoplay-

02+Services&style=overview'>comeouttoplay-02 Services</A>, <A

HREF='http://116.74.182.106/nagiosxi/includes ... outtoplay-

01+Services&style=overview'>comeouttoplay-01 Services</A>, <A

HREF='http://116.74.182.106/nagiosxi/includes ... outtoplay-

02+Services&style=overview'>comeouttoplay-02 Services</A>, <A

HREF='http://116.74.182.106/nagiosxi/includes ... ws+Servers

+Services&style=overview'>Windows Servers Services</A></DIV><BR>
<DIV CLASS='data'>116.74.182.25</DIV>
</td>
<td align=right valign=bottom width=33%>
<TABLE BORDER='0'><TR><TD ALIGN='right'>
</TD></TR></TABLE>
</td>
</tr>
</table>
<BR>
<DIV ALIGN=CENTER>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD ALIGN=CENTER VALIGN=TOP CLASS='stateInfoPanel'>
<DIV CLASS='dataTitle'>Service State Information</DIV>
<TABLE BORDER=0>
<TR><TD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD class='stateInfoTable1'>
<TABLE BORDER=0>
<TR><TD CLASS='dataVar'>Current Status:</TD><TD CLASS='dataVal'><DIV

CLASS='serviceOK'>  OK  </DIV> (for 0d 20h 17m 9s)</TD></TR>
<TR><TD CLASS='dataVar' VALIGN='top'>Status Information:</TD><TD CLASS='dataVal'>OK - System: 'PowerEdge 1850', SN:

'2481632', 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

[Backplane]: Fw='1.0'</TD></TR>
<TR><TD CLASS='dataVar' VALIGN='top'>Performance Data:</td><td CLASS='dataVal'></td></tr>
<TR><TD CLASS='dataVar'>Current Attempt:</TD><TD CLASS='dataVal'>1/5  (HARD state)</TD></TR>
<TR><TD CLASS='dataVar'>Last Check Time:</TD><TD CLASS='dataVal'>07-20-2010 09:37:41</TD></TR>
<TR><TD CLASS='dataVar'>Check Type:</TD><TD CLASS='dataVal'>ACTIVE</TD></TR>
<TR><TD CLASS='dataVar' NOWRAP>Check Latency / Duration:</TD><TD CLASS='dataVal'>0.169 / 5.803

seconds</TD></TR>
<TR><TD CLASS='dataVar'>Next Scheduled Check:  </TD><TD CLASS='dataVal'>07-20-2010 09:42:41</TD></TR>
<TR><TD CLASS='dataVar'>Last State Change:</TD><TD CLASS='dataVal'>07-19-2010 13:22:41</TD></TR>
<TR><TD CLASS='dataVar'>Last Notification:</TD><TD CLASS='dataVal'>N/A (notification 0)</TD></TR>
<TR><TD CLASS='dataVar'>Is This Service Flapping?</TD><TD CLASS='dataVal'><DIV

CLASS='notflapping'>  NO  </DIV> (0.00% state change)</TD></TR>
<TR><TD CLASS='dataVar'>In Scheduled Downtime?</TD><TD CLASS='dataVal'><DIV

CLASS='downtimeINACTIVE'>  NO  </DIV></TD></TR>
<TR><TD CLASS='dataVar'>Last Update:</TD><TD CLASS='dataVal'>07-20-2010 09:39:42  ( 0d 0h 0m 8s ago)

</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
<TR><TD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD class='stateInfoTable2'>
<TABLE BORDER=0>
<TR><TD CLASS='dataVar'>Active Checks:</TD><td CLASS='dataVal'><DIV

CLASS='checksENABLED'>  ENABLED  </DIV></TD></TR>
<TR><TD CLASS='dataVar'>Passive Checks:</TD><td CLASS='dataVal'><DIV

CLASS='checksENABLED'>  ENABLED  </DIV></TD></TR>
<TR><TD CLASS='dataVar'>Obsessing:</TD><td CLASS='dataVal'><DIV

CLASS='checksENABLED'>  ENABLED  </DIV></TD></TR>
<TR><td CLASS='dataVar'>Notifications:</TD><td CLASS='dataVal'><DIV

CLASS='notificationsENABLED'>  ENABLED  </DIV></TD></TR>
<TR><TD CLASS='dataVar'>Event Handler:</TD><td CLASS='dataVal'><DIV

CLASS='eventhandlersENABLED'>  ENABLED  </DIV></TD></TR>
<TR><TD CLASS='dataVar'>Flap Detection:</TD><td CLASS='dataVal'><DIV

CLASS='flapdetectionENABLED'>  ENABLED  </DIV></TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD>
<TD ALIGN=CENTER VALIGN=TOP>
<TABLE BORDER='0' CELLPADDING=0 CELLSPACING=0><TR>
<TD ALIGN=CENTER VALIGN=TOP CLASS='commandPanel'>
<DIV CLASS='dataTitle'>Service Commands</DIV>
<TABLE BORDER='1' CELLSPACING=0 CELLPADDING=0>
<TR><TD>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 CLASS='command'>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... sabled.gif' border=0 ALT='Disable

Active Checks Of This Service' TITLE='Disable Active Checks Of This Service'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=6&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Disable active checks of this service</a></td></tr>
<tr CLASS='data'><td><img src='http://116.74.182.106/nagiosxi/includes ... /delay.gif'

border=0 ALT='Re-schedule Next Service Check' TITLE='Re-schedule Next Service Check'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=7&host=comeouttoplay.warriors.com&service=DELL+OMSA&force_check'>Re-schedule the next check of this

service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... veonly.gif' border=0 ALT='Submit

Passive Check Result For This Service' TITLE='Submit Passive Check Result For This Service'></td><td

CLASS='command'><a href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=30&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Submit passive check result for this

service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... sabled.gif' border=0 ALT='Stop

Accepting Passive Checks For This Service' TITLE='Stop Accepting Passive Checks For This Service'></td><td

CLASS='command' NOWRAP><a href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=40&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Stop accepting passive checks for this

service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... sabled.gif' border=0 ALT='Stop

Obsessing Over This Service' TITLE='Stop Obsessing Over This Service'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=100&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Stop obsessing over this service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... sabled.gif' border=0 ALT='Disable

Notifications For This Service' TITLE='Disable Notifications For This Service'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=23&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Disable notifications for this service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... notify.gif' border=0 ALT='Send Custom

Notification' TITLE='Send Custom Notification'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=160&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Send custom service notification</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... wntime.gif' border=0 ALT='Schedule

Downtime For This Service' TITLE='Schedule Downtime For This Service'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=56&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Schedule downtime for this service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... sabled.gif' border=0 ALT='Disable

Event Handler For This Service' TITLE='Disable Event Handler For This Service'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=46&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Disable event handler for this service</a></td></tr>
<tr CLASS='command'><td><img

src='http://116.74.182.106/nagiosxi/includes ... sabled.gif' border=0 ALT='Disable

Flap Detection For This Service' TITLE='Disable Flap Detection For This Service'></td><td CLASS='command'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=60&host=comeouttoplay.warriors.com&service=DELL+OMSA'>Disable flap detection for this service</a></td></tr>
</table>
</td></tr>
</table>
</TD>
</TR></TABLE></TD>
</TR>
<TR><TD COLSPAN=2><BR></TD></TR>
<TR>
<TD COLSPAN=2 ALIGN=CENTER VALIGN=TOP CLASS='commentPanel'>
<A NAME=comments></A>
<DIV CLASS='commentTitle'>Service Comments</DIV>
<TABLE BORDER=0>
<tr>
<td valign=middle><img src='http://116.74.182.106/nagiosxi/includes ... omment.gif'

border=0 align=center></td><td CLASS='comment'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=3&host=comeouttoplay.warriors.com&service=DELL+OMSA' CLASS='comment'>Add a new comment</a></td>
<td valign=middle><img src='http://116.74.182.106/nagiosxi/includes ... delete.gif'

border=0 align=center></td><td CLASS='comment'><a

href='http://116.74.182.106/nagiosxi/includes ... ui/cmd.php?

cmd_typ=21&host=comeouttoplay.warriors.com&service=DELL+OMSA' CLASS='comment'>Delete all comments</a></td>
</tr>
</TABLE>
<DIV ALIGN=CENTER>
<TABLE BORDER=0 CLASS='comment'>
<TR CLASS='comment'><TH CLASS='comment'>Entry Time</TH><TH CLASS='comment'>Author</TH><TH

CLASS='comment'>Comment</TH><TH CLASS='comment'>Comment ID</TH><TH CLASS='comment'>Persistent</TH><TH

CLASS='comment'>Type</TH><TH CLASS='comment'>Expires</TH><TH CLASS='comment'>Actions</TH></TR>
<TR CLASS='commentOdd'><TD CLASS='commentOdd' COLSPAN='10'>This service has no comments associated with

it</TD></TR></TABLE></DIV>
</TD>
</TR>
</TABLE>
</DIV>

<!-- Produced by Nagios (http://www.nagios.org). Copyright (c) 1999-2007 Ethan Galstad. -->
</body>
</html>
Screenshot.png
Screenshot 2.png
Not sure the best way to show the data in the file... unfortunately, I'm not sure how to copy and paste the text off of the system. However, there is a ton of info.
You do not have the required permissions to view the files attached to this post.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Increase number of lines in Service Status Detail

Post by mmestnik »

Wrong pic, correct HTML.

The output in the HTML is vary odd. It's not clipped as you suggested, but it also contains an odd mixture of vertical whitespace and HTML line breaks. Could this have been your doing... one issue is this form mangles text too :( you can use code in [] and this helps a little but there is still some alteration when it comes to whitespace.

Best thing to do is to zip up this data.

As for the SQL output I don't absolutely need to see, I'll trust your explanation. What we are looking for is a few lines that relate to this plugin. This may work fairly well for us.

Code: Select all

{ echo '<some sql code in single quotes here>; quit;'; } | mysql -u root -p nagios > somefilename.log
grep PERC somefilename.log
Putty is a nice application, but le-putty is just a bit better. Let's say you wanted this file in le putty you just type...

Code: Select all

sz somefilename.log
and windows asks you where you want to save it, you have to have sz and rz(to upload) install typically prat of the lrzsz package.

FileZilla also has a feature that's nice, type in your SSH hostname username and password with port set to 22 and it's all good from there.
Locked