See my host.cfg file contains:<br>define hostgroup{<br>    hostgroup_name          Enpaq<br>    alias                   Enpaq<br>    members                 sujith<br>}<br><br>define host{<br>    host_name               sujith
<br>    alias                   Enpaq Router<br>    address                 <a href="http://127.0.0.1">127.0.0.1</a><br>    max_check_attempts      1<br>    check_command           check_uptime<br>    check_period            24x7
<br>    contact_groups          admin<br>    notification_interval   0<br>    notification_period     24x7<br>    notification_options    d,u,r,f<br>}<br><br>Now service.cfg checks for the services to be runned.<br>And now my problem is that when I run nagios am getting the check_uptime 
<br>executed and gives me the proper result. Now my problem will arise when <br>nagios gives me some wague output... I mean the output of nagios varies <br>from the uptime that I type in the command line...<br><br><div><span class="gmail_quote">
On 2/28/07, <b class="gmail_sendername">Andy Shellam (Mailing Lists)</b> <<a href="mailto:andy.shellam-lists@mailnetwork.co.uk">andy.shellam-lists@mailnetwork.co.uk</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;">



  

<div bgcolor="#ffffff" text="#000000">
What results?<br>
I haven't yet been able to find a clear indication in this thread of
the problem you're seeing.<br>
<br>
What is the relevant definitions of your host, service and commands?<br>
Please explain your problem more clearly.<br>
<br>
Thanks<br>
<br>
Andy.<br>
<br>
sujith h wrote:
<blockquote cite="http://mide4a2c74c0702280059r1cb9502eqffdf969b9f4a9ffa@mail.gmail.com" type="cite"><div><span class="e" id="q_11107996bf8e2982_1">Hi Andy,<br>
  <br>
Actually my problem is that it works for some 1 day or more. But after
that I get these sort of<br>
results. So thats what makes me worry... <br>
  <br>
Sujith<br>
Bangalore<br>
  <br>
  </span></div><div><div><span class="e" id="q_11107996bf8e2982_3"><span class="gmail_quote">On 2/28/07, <b class="gmail_sendername">Andy Shellam (Mailing Lists)</b> <<a href="mailto:andy.shellam-lists@mailnetwork.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
andy.shellam-lists@mailnetwork.co.uk</a>>
wrote:</span>
  </span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000"><div><span class="e" id="q_11107996bf8e2982_5">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:
    </span></div><blockquote cite="http://mide4a2c74c0702272303h7ea3d898w2ccaaf5f29a4727c@mail.gmail.com" type="cite"><div><span class="e" id="q_11107996bf8e2982_7">
      <div><span><br>
No am running this plugin for host check only<br>
      <br>
Sujith<br>
      </span></div>
      <div>
      <div><span><span class="gmail_quote">On 2/28/07, <b class="gmail_sendername">Morris,
Patrick</b> <<a href="mailto:patrick.morris@hp.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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>
      </span></div>
      </div>
      <br>
      </span></div><span class="q"><pre><hr size="4" width="90%"><span>
-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>
<br>opinions on IT & business topics through brief surveys-and earn cash<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a></span>

!DSPAM:37,45e52941103001189734924!<br>  </pre>
      <pre><hr size="4" width="90%"><span>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nagios-users@lists.sourceforge.net
<br></a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></span>
::: 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!<br>      </pre>
    </span></blockquote>
    </div>
  </blockquote>
  </div>
</blockquote>
</div>

</blockquote></div><br>