Uptime error

sujith h sujith.linux at gmail.com
Wed Feb 28 07:05:12 CET 2007


On 2/28/07, sujith h <sujith.linux at gmail.com> wrote:
>
> See when i type uptime:
> sujith at sujith:~$uptime
>  11:30:33 up 4 days,  1:09,  1 user,  load average: 1.15, 0.66, 0.50
>
> And in the nagios page, which i used to take in my firefox as :
> http://sujith/nagios
> (I had configured it like that in apache.) , when I click the Host Detail
> I can see that
> in the status information section we have a different output.. such aser
> 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71
>
> Here u can see that am not getting the output synchronized.
>
> Well again I want to tell u that the uptime script is a 3 line code:
>
> #!/bin/bash
> uptime
> exit(0)
>
> But the problem I had found with uptime only in the Host Detail. The
> Service Details
> are running good as if now.
>
> On 2/27/07, Jim Avery <jim at jimavery.me.uk> wrote:
> >
> > On 27/02/07, sujith h <sujith.linux at gmail.com> wrote:
> > > And when i run the
> > > script check_uptime, the plugin for nagios written by me, it gives me
> > > my machine is up for 2 days. But when nagios runs it , shows that
> > > my machine was up for 2 mins.
> >
> >
> > The format of the output of uptime will change after a day or so.
> >
> > My desktop machine here which I turned on this morning shows this:
> >
> > jim at behemoth:~$ uptime
> > 15:43:58 up  5:01,  2 users,  load average: 0.47, 0.64, 0.72
> >
> > and my web-server upstairs which has been going for a while shows this:
> >
> > jim at babyblue:~$ uptime
> > 15:46:16 up 17 days,  2:54,  1 user,  load average: 2.06, 2.09, 2.08
> >
> > What precisely does uptime tell you when you login as "nagios" and run
> > it by hand, and what precisely does Nagios report in the output?  Is
> > the output you refer to in Nagios in the "Duration" or "Status
> > information" column?  The plugin output should be in the "Status
> > information" column.  The duration column is Nagios telling you how
> > long the host or service has been in that state for.
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070228/76b4ed7c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list