Uptime error

sujith h sujith.linux at gmail.com
Wed Feb 28 10:15:10 CET 2007


See my host.cfg file contains:
define hostgroup{
    hostgroup_name          Enpaq
    alias                   Enpaq
    members                 sujith
}

define host{
    host_name               sujith
    alias                   Enpaq Router
    address                 127.0.0.1
    max_check_attempts      1
    check_command           check_uptime
    check_period            24x7
    contact_groups          admin
    notification_interval   0
    notification_period     24x7
    notification_options    d,u,r,f
}

Now service.cfg checks for the services to be runned.
And now my problem is that when I run nagios am getting the check_uptime
executed and gives me the proper result. Now my problem will arise when
nagios gives me some wague output... I mean the output of nagios varies
from the uptime that I type in the command line...

On 2/28/07, Andy Shellam (Mailing Lists) <
andy.shellam-lists at mailnetwork.co.uk> wrote:
>
>  What results?
> I haven't yet been able to find a clear indication in this thread of the
> problem you're seeing.
>
> What is the relevant definitions of your host, service and commands?
> Please explain your problem more clearly.
>
> Thanks
>
> Andy.
>
> sujith h wrote:
>
> Hi Andy,
>
> Actually my problem is that it works for some 1 day or more. But after
> that I get these sort of
> results. So thats what makes me worry...
>
> Sujith
> Bangalore
>
> On 2/28/07, Andy Shellam (Mailing Lists) <
> andy.shellam-lists at mailnetwork.co.uk> wrote:
>
> > 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.
> >
> > 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.
> >
> > The host check is a simple check_ping.
> >
> > HTH
> >
> > Andy.
> >
> > sujith h wrote:
> >
> >
> > No am running this plugin for host check only
> >
> > Sujith
> >  On 2/28/07, Morris, Patrick < patrick.morris at hp.com > wrote:
> > >
> > > > 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.
> > >
> > > >               But the problem I had found with uptime only in
> > > > the Host Detail. The Service Details
> > > >               are running good as if now.
> > >
> > > Are you running this command as both a host check and a service check?
> > > If so, that's why you're seeing different output. The host check will
> > > only run if a service on it goes to a non-OK state, and probably
> > > hasn't
> > > run for a few days, when the host had only been up for two minutes.
> > >
> > > It looks like you've defined the same plugin for two checks. If that's
> > >
> > > the case, they are never going to match.
> > >
> > >
> > ------------------------------
> >
> > -------------------------------------------------------------------------
> > 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
> >
> > !DSPAM:37,45e52941103001189734924!
> >
> > ------------------------------
> >
> > _______________________________________________
> > 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
> >
> > !DSPAM:37,45e52941103001189734924!
> >
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070228/138c7395/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