<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:ex12m =
"http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:ex12t =
"http://schemas.microsoft.com/exchange/services/2006/types" xmlns:mrels =
"http://schemas.openxmlformats.org/package/2006/relationships" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml" xmlns:mver =
"http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wf =
"http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:udcxf =
"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:xsi =
"http://www.w3.org/2001/XMLSchema-instance" xmlns:sps =
"http://schemas.microsoft.com/sharepoint/soap/" xmlns:sp =
"http://schemas.microsoft.com/sharepoint/" xmlns:ec =
"http://www.w3.org/2001/04/xmlenc#" xmlns:sub =
"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:xsd =
"http://www.w3.org/2001/XMLSchema" xmlns:udc =
"http://schemas.microsoft.com/data/udc" xmlns:dsp =
"http://schemas.microsoft.com/sharepoint/dsp" xmlns:ds =
"http://www.w3.org/2000/09/xmldsig#" xmlns:dir =
"http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ois =
"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:x2 =
"http://schemas.microsoft.com/office/excel/2003/xml" XMLNS:D = "DAV:" xmlns:q =
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:html =
"http://www.w3.org/TR/REC-html40" xmlns:oa =
"urn:schemas-microsoft-com:office:activation" xmlns:c =
"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:ss =
"urn:schemas-microsoft-com:office:spreadsheet" xmlns:b =
"urn:schemas-microsoft-com:office:publisher" xmlns:z = "#RowsetSchema" xmlns:rs
= "urn:schemas-microsoft-com:rowset" xmlns:s =
"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt =
"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:a =
"urn:schemas-microsoft-com:office:access" xmlns:p =
"urn:schemas-microsoft-com:office:powerpoint" xmlns:x =
"urn:schemas-microsoft-com:office:excel" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:v =
"urn:schemas-microsoft-com:vml"><HEAD><!--[if !mso]>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Cambria Math;
}
@font-face {
font-family: Calibri;
}
@font-face {
font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
COLOR: navy; FONT-FAMILY: "Arial","sans-serif"; mso-style-type: personal
}
SPAN.EmailStyle19 {
COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=734431121-24032008><FONT face=Arial
color=#0000ff size=2>I ran it as the nagios user and it returns correctly.
It is running locally. </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left><FONT size=2>
<P>Jason Brunk<BR>WTHosting.com<BR>1-866-268-7725 ext
707<BR>jbrunk@wthosting.com</P>
<P></P>
<P>** For any hosting related technical issues, email <A
href="mailto:support@wthosting.com">support@wthosting.com</A> and one of our
technicians will assist you.</P></FONT></DIV>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Erik Cummings
[mailto:ecummings@helpstream.biz] <BR><B>Sent:</B> Monday, March 24, 2008 4:47
PM<BR><B>To:</B> Jason Brunk;
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagiosplug-help]
check_mysql returns null<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D?
Calibri?,?sans-serif?;>Basic question – did you execute the command line AS the
nagios user? Is the command line running locally and is the check running
locally or from a different host.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D?
Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D?
Calibri?,?sans-serif?;>Erik<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D?
Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Tahoma?,?sans-serif??>From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Tahoma?,?sans-serif??>
nagiosplug-help-bounces@lists.sourceforge.net
[mailto:nagiosplug-help-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Jason
Brunk<BR><B>Sent:</B> Monday, March 24, 2008 1:42 PM<BR><B>To:</B>
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagiosplug-help]
check_mysql returns null<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><o:p> </o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif?;color:blue?>Hi
Justin,</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Arial?,?sans-serif?;color:blue?> I compiled on the same
machine. When I ran it from the command line and passed it the parameters
it connected fine. I did notice that unlike most plugins it returned
regular info instead of a warning, ok, critical. Not sure what the
values are for setting warning or critical. the script is located in the
libexec folder with the others. Not sure what I did
wrong.</SPAN><o:p></o:p></P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV>
<P style="MARGIN-LEFT: 0.5in">Jason Brunk<BR>WTHosting.com<BR>1-866-268-7725 ext
707<BR>jbrunk@wthosting.com<o:p></o:p></P>
<P style="MARGIN-LEFT: 0.5in">** For any hosting related technical issues, email
<A href="mailto:support@wthosting.com">support@wthosting.com</A> and one of our
technicians will assist you.<o:p></o:p></P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><o:p> </o:p></P>
<DIV class=MsoNormal style="MARGIN-LEFT: 0.5in; TEXT-ALIGN: center"
align=center>
<HR align=center width="100%" SIZE=2>
</DIV>
<P class=MsoNormal
style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: 0in; mso-margin-top-alt: 0in"><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Tahoma?,?sans-serif??>From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Tahoma?,?sans-serif??> Justin Maloney
[mailto:justinm@honeycomb.net] <BR><B>Sent:</B> Monday, March 24, 2008 3:34
PM<BR><B>To:</B> Jason Brunk;
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagiosplug-help]
check_mysql returns null</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif?;color:navy?>It could
be if the check is set to return that if it can’t find libs or includes.
Did you compile the script on that server or move it from another? Try
running it with the full path while you are in another directory. I had a
similar issue with a perl script and that was the test, the solution was to add
the path to the include line. Don’t know how you could do that with your
script but you could add the path to the user that is running
it.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Arial?,?sans-serif?;color:navy?><o:p> </o:p></SPAN></P>
<DIV>
<P class=MsoNormal
style="MARGIN-LEFT: 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " color:navy? Arial?,?sans-serif?;>Thank
you,<BR>Justin Maloney<BR>Systems Administrator<BR>Honeycomb Internet
Services<BR>612.617.0007</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: "
Arial?,?sans-serif??><o:p></o:p></SPAN></P></DIV>
<DIV>
<DIV class=MsoNormal style="MARGIN-LEFT: 0.5in; TEXT-ALIGN: center"
align=center>
<HR align=center width="100%" SIZE=2>
</DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Tahoma?,?sans-serif??>From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Tahoma?,?sans-serif??>
nagiosplug-help-bounces@lists.sourceforge.net
[mailto:nagiosplug-help-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Jason
Brunk<BR><B>Sent:</B> Sunday, March 23, 2008 8:53 PM<BR><B>To:</B>
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> [Nagiosplug-help]
check_mysql returns null</SPAN><o:p></o:p></P></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><o:p> </o:p></P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif??>I am having an issue
with the check_mysql. Hoping someone has run into this before. when
i run this plugin from the command line i get this</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif??> ./check_mysql
-H mysql.wthosting.com -uUSER -pPASS<BR>Uptime: 7630478 Threads: 4
Questions: 341247089 Slow queries: 1278 Opens: 1050510 Flush
tables: 1 Open tables: 3290 Queries per second avg:
44.722</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif??>however, when its
setup as a command in nagios. It returns warning because the status
information says </SPAN>(null) <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif??>Has anyone seen
this? Know how to fix it?</SPAN> <SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Arial?,?sans-serif??><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: "
Arial?,?sans-serif??><o:p> </o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV>
<P style="MARGIN-LEFT: 0.5in"><SPAN style="FONT-SIZE: 10pt">Jason
Brunk<BR>WTHosting.com<BR>1-866-268-7725 ext
707<BR>jbrunk@wthosting.com<o:p></o:p></SPAN></P>
<P style="MARGIN-LEFT: 0.5in"><SPAN style="FONT-SIZE: 10pt">** For any hosting
related technical issues, email <A
href="mailto:support@wthosting.com">support@wthosting.com</A> and one of our
technicians will assist you.<o:p></o:p></SPAN></P>
<DIV>
<P class=MsoNormal
style="MARGIN-LEFT: 0.5in"> <o:p></o:p></P></DIV></DIV></BODY></HTML>