Hosts where frequently turned off
Tedman Eng
teng at dataway.com
Fri Sep 3 19:30:05 CEST 2004
Chrigi,
I believe you're experiencing an issue with state retention now.
If the host was down when you started working on Nagios, and you have state
retention turned on, then Nagios will "remember" the host state as being
down. If the host came up (ie check_dummy) before Nagios was started again,
nagios will assume the host is down still. The host will not be checked
again until a service fails. If you can artificially make one of that
host's services fail, then you will initiate a hostcheck to reset to proper
state (in this case check_dummy).
-----Original Message-----
From: Chrigi Hartmann [mailto:chrigi.hartmann at gmx.net]
Sent: Friday, September 03, 2004 6:44 AM
To: nagios-users at lists.sourceforge.net; teng at dataway.com
Subject: Re: [Nagios-users] Hosts where frequently turned off
Hey Tedmann
Sorry for my late reply but I had a servercrash and no time for
nagios...
> Use the "check_dummy" plugin.
>
> define command{
> command_name check_dummy
> command_line $USER1$/check_dummy $ARG1$
> }
>
> define host{
> host_name blah
> parents blah-dad
> check_command check_dummy!0
> }
>
> The arguments to use correspond to:
> 0 = OK
> 1 = WARNING
> 2 = CRITICAL
> 3 = UNKNOWN
Thank you for this hint. But it doesn't work here. When I define a host
with the check_command check_dummy!0 and define a command like your
example above nagios would not start. I recieve errors like:
Error: Host check command 'check_dummy!0' specified for host
'wkst11.lan.webmeischter.ch' is not defined anywhere!
If I define the command:
define command{
command_name check_dummy
command_line $USER1$/check_dummy 0
}
and the host:
define host{
host_name wkst11.lan.webmeischter.ch
parents my.parent.host
check_command check_dummy
}
Then nagios is starting without errors but my wkst11 is down and not up.
Do I have to define the new command check_dummy in the configfile
command.cfg as well? currently it is defined only in checkcommands.cfg.
Thank you for your support and greets
chrigi hartmann
>
>
> -----Original Message-----
> From: Chrigi Hartmann [mailto:chrigi.hartmann at gmx.net]
> Sent: Monday, August 30, 2004 1:51 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Hosts where frequently turned off
>
>
> Hi Everybody
>
> First, I'm new in your Mailing List. My english isn't perfect cause
> I'm from switzerland.
> I've installed nagios on my server and it works great. But I have one
> issue: I have some hosts which are frequently turned off. but I want,
> that nagios always assume the host is up. The manual says, i can leave
> the argument 'check_command' blank for that. this works but it
> doesn't work, when this host has a parent host. the
> problem is, I have some host's behind a other vpn-firewall and this
> firewall is the parent for those hosts. when i leave the parent host
> argument, then the host is always up but he's on the wrong place on my
> status map. do you have some ideas, how I can set parents for some
> hosts and that they are always up?
>
>
> thx and greets from switzerland
>
> chrigi hartmann
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> 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
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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