<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
As Patrick said, this plugin (as a host check) will only get run if a
service goes into a non-OK state, therefore showing old information
until it a service fails.<br>
<br>
I have exactly the same plugin (written myself with a couple of
differences to yours) which runs as a service called "Uptime" on every
host - this way it is always run every 5 minutes and shows up-to-date
info.<br>
<br>
The host check is a simple check_ping.<br>
<br>
HTH<br>
<br>
Andy.<br>
<br>
sujith h wrote:
<blockquote
cite="mide4a2c74c0702272303h7ea3d898w2ccaaf5f29a4727c@mail.gmail.com"
type="cite"><br>
No am running this plugin for host check only<br>
<br>
Sujith<br>
<div><span class="gmail_quote">On 2/28/07, <b
class="gmail_sendername">Morris, Patrick</b> <<a
href="mailto:patrick.morris@hp.com">patrick.morris@hp.com
</a>> wrote:</span>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>
when I click the Host Detail I can see that<br>
> in the status information section we have a different output..
such
<br>
aser<br>
> 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71<br>
<br>
> Here u can see that am not getting the output synchronized.<br>
<br>
> But the problem I had found with uptime only in
<br>
> the Host Detail. The Service Details<br>
> are running good as if now.<br>
<br>
Are you running this command as both a host check and a service check?<br>
If so, that's why you're seeing different output. The host check will
<br>
only run if a service on it goes to a non-OK state, and probably hasn't<br>
run for a few days, when the host had only been up for two minutes.<br>
<br>
It looks like you've defined the same plugin for two checks. If that's
<br>
the case, they are never going to match.<br>
<br>
</blockquote>
</div>
<br>
!DSPAM:37,45e52941103001189734924!
<pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
!DSPAM:37,45e52941103001189734924!
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
!DSPAM:37,45e52941103001189734924!
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Andy Shellam
NetServe Support Team
the Mail Network
"an alternative in a standardised world"
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834</pre>
</body>
</html>