I forgot to ask: Can you please post your command definition and the service definition? Maybe there's an error in there?<br><br><div class="gmail_quote">On Wed, Jul 20, 2011 at 2:06 PM, Claudio Kuenzler <span dir="ltr"><<a href="mailto:ck@claudiokuenzler.com">ck@claudiokuenzler.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">A different PATH or permissions would have explained it but since Nagios is running as root this explanation doesn't fit.<br>
<br>I'm using the same plugin and it works fine, as root and nagios.<br>Just out of curiousity: What version of the plugin are you using? The one is use is # Version: 2.3 (updated 09/04/2009).<div><div></div><div class="h5">
<br>
<br><div class="gmail_quote">On Wed, Jul 20, 2011 at 11:51 AM, Jonathan Aquilina <span dir="ltr"><<a href="mailto:eagles051387@gmail.com" target="_blank">eagles051387@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Root<div><div></div><div><br>
<br>
On 20/07/2011 11:46, Claudio Kuenzler wrote:
<blockquote type="cite">So your Nagios installation is running as root or as
user nagios?<br>
<br>
<div class="gmail_quote">On Wed, Jul 20, 2011 at 11:43 AM,
Jonathan Aquilina <span dir="ltr"><<a href="mailto:eagles051387@gmail.com" target="_blank">eagles051387@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Forgot to add in my
last email we are running this as root. All other checks
seem to work just fine. snmpwalk and get work as I have used
them for other checks no problem.
<div><br>
<br>
On 20/07/2011 11:15, Claudio Kuenzler wrote: </div>
<div>
<div>
<blockquote type="cite">Can you show us the command you
used on command line? Did you run it as Nagios user?<br>
Is the Nagios user allowed to execute snmpget and
snmpwalk?<br>
<br>
<div class="gmail_quote">On Wed, Jul 20, 2011 at 9:49
AM, Jonathan Aquilina <span dir="ltr"><<a href="mailto:eagles051387@gmail.com" target="_blank">eagles051387@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I
am trying to get this script to work with nagios.<br>
<br>
The command line works but when i come to set up
the service in the<br>
backend (nagios QL) it gives me the error<br>
<br>
Error - Not numeric value : = status_prim<br>
<br>
What does this mean? Google isnt turning up
anything for me and any help<br>
would be greatly appreciated.<br>
<br>
------------------------------------------------------------------------------<br>
10 Tips for Better Web Security<br>
Learn 10 ways to better secure your business
today. Topics covered include:<br>
Web security, SSL, hacker attacks & Denial of
Service (DoS), private keys,<br>
security Microsoft Exchange, secure Instant
Messaging, and much more.<br>
<a href="http://www.accelacomm.com/jaw/sfnl/114/51426210/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426210/</a><br>
_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS
when reporting any issue.<br>
::: Messages without supporting info will risk
being sent to /dev/null<br>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
<a href="http://www.accelacomm.com/jaw/sfnl/114/51426210/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426210/</a></pre>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
------------------------------------------------------------------------------<br>
10 Tips for Better Web Security<br>
Learn 10 ways to better secure your business today. Topics
covered include:<br>
Web security, SSL, hacker attacks & Denial of Service
(DoS), private keys,<br>
security Microsoft Exchange, secure Instant Messaging, and
much more.<br>
<a href="http://www.accelacomm.com/jaw/sfnl/114/51426210/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426210/</a><br>
_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting
any issue.<br>
::: Messages without supporting info will risk being sent to
/dev/null<br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
<a href="http://www.accelacomm.com/jaw/sfnl/114/51426210/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426210/</a></pre>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
</div></div></div>
<br>------------------------------------------------------------------------------<br>
10 Tips for Better Web Security<br>
Learn 10 ways to better secure your business today. Topics covered include:<br>
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,<br>
security Microsoft Exchange, secure Instant Messaging, and much more.<br>
<a href="http://www.accelacomm.com/jaw/sfnl/114/51426210/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51426210/</a><br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>