Re: [Nagios-users] Warning threshold must be float or float

2006-08-03 Thread Miles O'Neal
Justin,

|sorry, where is my /tmp/nagios directory.  I do a find / -name */tmp/nagios*
|I don't see anything.

All pertinent path names should be specified
in your nagios.cfg file.

-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float

2006-08-03 Thread Marc Powell


> -Original Message-
> From: Miles O'Neal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 03, 2006 10:29 AM
> To: Justin Craig
> Cc: Marc Powell; Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> 
> Justin,
> 
> |sorry, where is my /tmp/nagios directory.  I do a find / -name
> */tmp/nagios*
> |I don't see anything.
> 
> All pertinent path names should be specified
> in your nagios.cfg file.

Please try to follow the conversation before replying. This response is
confusing and irrelevant to his question.

--
Marc

-
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
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Warning threshold must be float or float triplet!

2006-08-01 Thread Justin Craig
I added my localhost as a host and defined it in services and hostgroups. added services: current load, current users, root partition, and total process.  Anyway nagios tells me the host is down and returns the message in this subject line.  Any ideas?
-- - Justin 
-
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-04 Thread Marc Powell


> -Original Message-
> From: Justin Craig [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 04, 2006 7:36 AM
> To: Marc Powell
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet! 
> 
> contents of /tmp/nagios
> 
> /usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
> /usr/local/nagios/libexec/check_load -w  -c
> /usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
> /usr/local/nagios/libexec/check_load -w  -c
> /usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
> /usr/local/nagios/libexec/check_load -w  -c
> /usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
> /usr/local/nagios/libexec/check_load -w  -c
> 
> 
> So whatever you had me do, made the host down go away for the nagios
host.

Well, because nagios isn't really running the check_load command. The
file above contains the command line(s) that nagios would have run for
check_local_load. As you can see, every other time it runs it the
arguments are missing. I can only think of two reasons why this would
be.
1) You have two similar, but not identical service definitions
for that host that both use the check_local_load command. One is defined
properly, one is not. Search your configs for references to
check_local_load. Remove or correct the duplicate.
2) You have multiple nagios daemons running, one with
check_local_load properly defined, one without. Stop nagios, use ps to
verify that all are dead, kill any that might remain and restart nagios.

Once you find the cause you'll need to remove 'echo " ...
">>/tmp/nagios' stuff I had you add to the check_local_load command
definition so that nagios will actually run the command again.

> 
> When I sent the reload command however, all hosts start showing down.
I
> have to stop nagios and kill the daemon running, the start it again
before
> it will recognize the host services again.  This causes major problems
as
> it doesn't reflect current uptime in reports.  Any ideas here?

No, but I don't have enough information. Why are they showing down (i.e.
what's the Status Information)? An example host/service/command
definition would probably be helpful.
 
> Another issue that could play into this, I still can't schedule
downtime
> b/c I can't isue external commands.  Someone mentioned htaccess files,
but
> I have my httpd.conf file with the same contents.

Did you create your .htaccess/.htpasswd files? Review the documentation
at http://nagios.sourceforge.net/docs/2_0/cgiauth.html and
http://nagios.sourceforge.net/docs/2_0/installweb.html. Make sure you've
followed all the steps.

--
Marc 

-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-01 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Justin Craig
> Sent: Tuesday, August 01, 2006 12:39 PM
> To: Nagios Users Mailinglist
> Subject: [Nagios-users] Warning threshold must be float or float
triplet!
> 
> I added my localhost as a host and defined it in services and
hostgroups.
> added services: current load, current users, root partition, and total
> process.  Anyway nagios tells me the host is down and returns the
message
> in this subject line.  Any ideas?

Magic 8-ball says you have a configuration error.

--
Marc

-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-01 Thread Hugo van der Kooij
On Tue, 1 Aug 2006, Justin Craig wrote:

> I added my localhost as a host and defined it in services and hostgroups.
> added services: current load, current users, root partition, and total
> process.  Anyway nagios tells me the host is down and returns the message in
> this subject line.  Any ideas?

Just what did you add exactly? It would be nice to see the relevant
config sections. The error seems to indicate you have an issue with your
load service.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.

-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-01 Thread Justin Craig
In services:


define service{
   
use
generic-service ; Name
of service template to us
   
host_name  
nagonet
   
service_description
Root Partition
   
is_volatile
0
   
check_period   
24x7
   
max_check_attempts 
4
    normal_check_interval   5
   
retry_check_interval   
1
   
contact_groups 
nagiosadmin
   
notification_options   
w,u,c,r
    notification_interval   960
   
notification_period
24x7
   
check_command  
check_local_disk!20%!10%!/
    }

# Define a service to check the number of currently logged in
# users on the local machine.  Warning if > 20 users, critical
# if > 50 users.

define service{
   
use
generic-service ; Name
of service template to use   
host_name  
nagonet
   
service_description
Current Users
   
is_volatile
0
   
check_period   
24x7
   
max_check_attempts 
4
    normal_check_interval   5
retry_check_interval    1
   
contact_groups 
nagiosadmin
   
notification_options   
w,u,c,r
    notification_interval   960
   
notification_period
24x7
   
check_command  
check_local_users!20!50
    }


# Define a service to check the number of currently running procs
# on the local machine.  Warning if > 250 processes, critical if
# > 400 users.

define service{
   
use
generic-service  ; Name of service
template to use  
host_name  
nagonet
   
service_description
Total Processes
   
is_volatile
0
   
check_period   
24x7
   
max_check_attempts 
4
    normal_check_interval   5
   
retry_check_interval   
1
   
contact_groups 
nagiosadmin
   
notification_options   
w,u,c,r
    notification_interval   960
   
notification_period
24x7
   
check_command  
check_local_procs!250!400

# Define a service to check the load on the local machine.

define service{
   
use
generic-service ; Name
of service template to use   
host_name  
nagonet
   
service_description
Current Load
   
is_volatile
0
   
check_period   
24x7
   
max_check_attempts 
4
    normal_check_interval   5
   
retry_check_interval   
1
   
contact_groups 
nagiosadmin
   
notification_options   
w,u,c,r
    notification_interval   960
   
notification_period
24x7
   
check_command  
check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
    }

On 8/1/06, Hugo van der Kooij <[EMAIL PROTECTED]> wrote:
On Tue, 1 Aug 2006, Justin Craig wrote:> I added my localhost as a host and defined it in services and hostgroups.> added services: current load, current users, root partition, and total> process.  Anyway nagios tells me the host is down and returns the message in
> this subject line.  Any ideas?Just what did you add exactly? It would be nice to see the relevantconfig sections. The error seems to indicate you have an issue with yourload service.Hugo.
--I hate duplicates. Just reply to the relevant mailinglist.[EMAIL PROTECTED]http://hvdkooij.xs4all.nl/
Don't
meddle in the affairs of magicians,for
they are subtle and quick to anger.-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Nagios-users mailing listNagios-users@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
--  - Justin
-
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___
Nagios-users mailing list
Nag

Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-01 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Justin Craig
> Sent: Tuesday, August 01, 2006 2:41 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet!

[chop]

> define service{
> use generic-service ; Name
of
> service template to usehost_name   nagonet
> service_description Current Load
> is_volatile 0
> check_period24x7
> max_check_attempts  4
> normal_check_interval   5
> retry_check_interval1
> contact_groups  nagiosadmin
> notification_optionsw,u,c,r
> notification_interval   960
> notification_period 24x7
> check_command
> check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
> }

This will work presuming your check_local_load command{} uses the $ARG1$
and $ARG2$ macros appropriately --

$ ./check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
OK - load average: 2.90, 2.29, 2.76|load1=2.900;5.000;10.000;0;
load5=2.290;4.000;6.000;0; load15=2.760;3.000;4.000;0;

Your command{} command_line should look something like --

command_line $USER1$/check_load -w $ARG1$ -c $ARG2$

Does it?

--
Marc

-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Scott Lambert
> define service{
>use generic-service ; Name of
> service template to usehost_name   nagonet
>service_description Current Load
>is_volatile 0
>check_period24x7
>max_check_attempts  4
>normal_check_interval   5
>retry_check_interval1
>contact_groups  nagiosadmin
>notification_optionsw,u,c,r
>notification_interval   960
>notification_period 24x7
>check_command   check_local_load!5.0,4.0,3.0!10.0,
> 6.0,4.0

Is the wordwrap on the check_command line the fault of your e-mail
client or is it a problem with the actual config file?

-- 
Scott LambertKC5MLE   Unix SysAdmin
[EMAIL PROTECTED]


-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Justin Craig
In my checkcommands.cfg for this host in question, I have:


# 'check_local_disk' command definition
define command{
    command_name    check_local_disk
    command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
    }


# 'check_local_load' command definition
define command{
    command_name    check_local_load
    command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$
    }


# 'check_local_procs' command definition
define command{
    command_name    check_local_procs
    command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
    }


# 'check_local_users' command definition
define command{
    command_name    check_local_users
    command_line    $USER1$/check_users -w $ARG1$ -c $ARG2$
    }
On 8/1/06, Marc Powell <[EMAIL PROTECTED]> wrote:
> -Original Message-> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED]] On Behalf Of Justin Craig> Sent: Tuesday, August 01, 2006 2:41 PM> To: Nagios Users Mailinglist> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet![chop]> define service{>
use
generic-service ; Nameof>
service template to
usehost_name  
nagonet>
service_description
Current Load>
is_volatile
0>
check_period24x7>
max_check_attempts  4>
normal_check_interval  
5>
retry_check_interval1>
contact_groups  nagiosadmin>
notification_optionsw,u,c,r>
notification_interval  
960>
notification_period
24x7> check_command> check_local_load!5.0,4.0,3.0!10.0,6.0,4.0> }This will work presuming your check_local_load command{} uses the $ARG1$and $ARG2$ macros appropriately --
$ ./check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0OK - load average: 2.90, 2.29, 2.76|load1=2.900;5.000;10.000;0;load5=2.290;4.000;6.000;0; load15=2.760;3.000;4.000;0;Your command{} command_line should look something like --
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$Does it?--Marc-Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://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--  - Justin
-
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Justin Craig
Scott, yeah it's an email word wrap issue.On 8/2/06, Scott Lambert <[EMAIL PROTECTED]> wrote:
> define service{>use
generic-service ; Name
of> service template to
usehost_name  
nagonet>service_description
Current Load>is_volatile
0>check_period24x7>max_check_attempts  4>normal_check_interval  
5>retry_check_interval1>contact_groups  nagiosadmin>notification_optionsw,u,c,r>notification_interval  
960>notification_period
24x7>check_command  
check_local_load!5.0,4.0,3.0!10.0,> 6.0,4.0Is the wordwrap on the check_command line the fault of your e-mailclient or is it a problem with the actual config file?--Scott
LambertKC5MLE  
Unix SysAdmin[EMAIL PROTECTED]--  - Justin
-
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Marc Powell


> -Original Message-
> From: Justin Craig [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 02, 2006 8:38 AM
> To: Marc Powell
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet!
> 
> In my checkcommands.cfg for this host in question, I have:
> 


> # 'check_local_load' command definition
> define command{
> command_namecheck_local_load
> command_line$USER1$/check_load -w $ARG1$ -c $ARG2$
> }
> 

Yes, that looks good. I'd --
- verify that nagios was reloaded after creating this command
definition
- verify that there aren't multiple nagios daemons running
(stop; kill; start)
- verify that nagios is executing the command I think is. Modify
command_line to be the following then check the contents of /tmp/nagios
--
command_line /bin/echo "$USER1$/check_load -w $ARG1$ -c
$ARG2$" >> /tmp/nagios

--
Marc

>   > -Original Message-
>   > From: [EMAIL PROTECTED]
[mailto:nagios-
> users-
>   > [EMAIL PROTECTED] On Behalf Of Justin Craig
>   > Sent: Tuesday, August 01, 2006 2:41 PM

[chop]

>   > check_command
>   > check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
>   > }



-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Justin Craig
okay i modified checkcommands.cfg to reflect what you noted here. 
I also did a ps axu | grep nagios and AGAIN there are multiple 
instances running.  here is the output:

nagios    6155  0.0  0.0  1700 
536 ?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 204.64.105.21
nagios    6157  0.0  0.2 23900 1464
?    S   
11:57   0:00 /usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg
nagios    6158  0.5  0.1  5612 1036
?    S   
11:57   0:00 /usr/local/nagios/libexec/check_ping -H
192.168.146.5 -w 100.0,20% -c 500.0,60% -p 5
nagios    6160  0.0  0.0  1700  540
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 192.168.170.5
nagios    6161  0.0  0.2 23900 1464
?    S   
11:57   0:00 /usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg
nagios    6162  0.5  0.1  5612 1036
?    S   
11:57   0:00 /usr/local/nagios/libexec/check_ping -H
204.64.191.5 -w 100.0,20% -c 500.0,60% -p 5
nagios    6163  0.0  0.0  1700  536
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 192.168.146.5
nagios    6164  0.0  0.0  1700  544
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 204.64.191.5
root  6166  0.0  0.1 
3720  676 pts/2    R+   11:57  
0:00 grep nagios
nagios    6155  0.0  0.0  1700  536
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 204.64.105.21
nagios    6157  0.0  0.2 23900 1464
?    S   
11:57   0:00 /usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg
nagios    6158  0.5  0.1  5612 1036
?    S   
11:57   0:00 /usr/local/nagios/libexec/check_ping -H
192.168.146.5 -w 100.0,20% -c 500.0,60% -p 5
nagios    6160  0.0  0.0  1700  540
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 192.168.170.5
nagios    6161  0.0  0.2 23900 1464
?    S   
11:57   0:00 /usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg
nagios    6162  0.5  0.1  5612 1036
?    S   
11:57   0:00 /usr/local/nagios/libexec/check_ping -H
204.64.191.5 -w 100.0,20% -c 500.0,60% -p 5
nagios    6163  0.0  0.0  1700  536
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 192.168.146.5
nagios    6164  0.0  0.0  1700  544
?    S   
11:57   0:00 /bin/ping -n -U -w 10 -c 5 204.64.191.5
root  6166  0.0  0.1 
3720  676 pts/2    R+   11:57  
0:00 grep nagios

When stopping Nagios, I typically issue a /etc/rc.d/init.d stop and
then verify there are none running.  I also use Kill -HUP since I
normally start nagios as a daemon with the -d.  Is this the
correct process?  Further, what is best practices after adding a
host to refresh Nagio to pick up that host without reflecting
undetermined availability for the rest of the hosts or causing any
problems?
On 8/2/06, Marc Powell <[EMAIL PROTECTED]> wrote:

> -Original Message-> From: Justin Craig [mailto:

[EMAIL PROTECTED]]> Sent: Wednesday, August 02, 2006 8:38 AM> To: Marc Powell> Cc: Nagios Users Mailinglist> Subject: Re: [Nagios-users] Warning threshold must be float or float> triplet!
>> In my checkcommands.cfg for this host in question, I have:>> # 'check_local_load' command definition> define command{> command_namecheck_local_load> command_line$USER1$/check_load -w $ARG1$ -c $ARG2$
> }>Yes, that looks good. I'd --   - verify that nagios was reloaded after creating this commanddefinition   - verify that there aren't multiple nagios daemons running

(stop; kill; start)   - verify that nagios is executing the command I think is. Modifycommand_line to be the following then check the contents of /tmp/nagios--  
command_line /bin/echo "$USER1$/check_load -w $ARG1$ -c
$ARG2$" >> /tmp/nagios--Marc>   > -Original Message->   > From: 
[EMAIL PROTECTED]
[mailto:nagios-> users->   > 
[EMAIL PROTECTED]] On Behalf Of Justin Craig>   > Sent: Tuesday, August 01, 2006 2:41 PM
[chop]>   > check_command>   > check_local_load!5.0,4.0,3.0!10.0,6.0,4.0>   > }-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Nagios-users mailing list

Nagios-users@lists.sourceforge.nethttps://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-- - Justin 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll 

Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Marc Powell
These could be normal. Nagios will spawn a child process to manage each
check. What you're interested in is if there are multiple nagios process
with a parent PID of 1. ps -ef usually shows child/parent PIDS. If you
stop nagios and see none remaining then you don't have multiple daemons
running.

As far as reloading config, a HUP to the parent process or calling
'/etc/init.d/nagios reload' is sufficient.

--
Marc

> -Original Message-
> From: Justin Craig [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 02, 2006 12:10 PM
> To: Marc Powell
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet! 
> 
> okay i modified checkcommands.cfg to reflect what you noted here.  I
also
> did a ps axu | grep nagios and AGAIN there are multiple  instances
> running.  here is the output:
> 
> 
> nagios6155  0.0  0.0  1700  536 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 204.64.105.21
> nagios6157  0.0  0.2 23900 1464 ?S11:57   0:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6158  0.5  0.1  5612 1036 ?S11:57   0:00
> /usr/local/nagios/libexec/check_ping -H 192.168.146.5 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios6160  0.0  0.0  1700  540 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 192.168.170.5
> nagios6161  0.0  0.2 23900 1464 ?S11:57   0:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6162  0.5  0.1  5612 1036 ?S11:57   0:00
> /usr/local/nagios/libexec/check_ping -H 204.64.191.5 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios6163  0.0  0.0  1700  536 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 192.168.146.5
> nagios6164  0.0  0.0  1700  544 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 204.64.191.5
> root  6166  0.0  0.1  3720  676 pts/2R+   11:57   0:00 grep
nagios
> nagios6155  0.0  0.0  1700  536 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 204.64.105.21
> nagios6157  0.0  0.2 23900 1464 ?S11:57   0:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6158  0.5  0.1  5612 1036 ?S11:57   0:00
> /usr/local/nagios/libexec/check_ping -H 192.168.146.5 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios6160  0.0  0.0  1700  540 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 192.168.170.5
> nagios6161  0.0  0.2 23900 1464 ?S11:57   0:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6162  0.5  0.1  5612 1036 ?S11:57   0:00
> /usr/local/nagios/libexec/check_ping -H 204.64.191.5 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios6163  0.0  0.0  1700  536 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 192.168.146.5
> nagios6164  0.0  0.0  1700  544 ?S11:57   0:00
/bin/ping -
> n -U -w 10 -c 5 204.64.191.5
> root  6166  0.0  0.1  3720  676 pts/2R+   11:57   0:00 grep
nagios
> 
> When stopping Nagios, I typically issue a /etc/rc.d/init.d stop and
then
> verify there are none running.  I also use Kill -HUP since I normally
> start nagios as a daemon with the -d.  Is this the correct process?
> Further, what is best practices after adding a host to refresh Nagio
to
> pick up that host without reflecting undetermined availability for the
> rest of the hosts or causing any problems?
> 
> On 8/2/06, Marc Powell <[EMAIL PROTECTED]> wrote:
> 
> 
> 
>   > -Original Message-
>   > From: Justin Craig [mailto: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> ]
>   > Sent: Wednesday, August 02, 2006 8:38 AM
>   > To: Marc Powell
>   > Cc: Nagios Users Mailinglist
>   > Subject: Re: [Nagios-users] Warning threshold must be float or
> float
>   > triplet!
>   >
>   > In my checkcommands.cfg for this host in question, I have:
>   >
> 
> 
>   > # 'check_local_load' command definition
>   > define command{
>   > command_namecheck_local_load
>   > command_line$USER1$/check_load -w $ARG1$ -c $ARG2$
>   > }
>   >
> 
>   Yes, that looks good. I'd --
>  - verify that nagios was reloaded after creating this
command
>   definition
>  - verify that there aren't multiple nagios daemons
running
>   (stop; kill; start)
>  - verify that nagios is executing the command I think is.
> Modify
>   command_line to be the following then check the contents of
> /tmp/nagios
>   --
>  comman

Re: [Nagios-users] Warning threshold must be float or float triplet!

2006-08-02 Thread Justin Craig
I sent the reload command and basically nagios is now telling me 30 hosts are down and that number is increasing?  This is a problem.  why does this happen?  And back to my original issue, nagios itself is still showing down.  I modified the command as you suggested, how do I verify that?

 
This is all good stuff as once I catch the learning curve here and get these things ironed out, it'll be nice. 
On 8/2/06, Marc Powell <[EMAIL PROTECTED]> wrote:
These could be normal. Nagios will spawn a child process to manage eachcheck. What you're interested in is if there are multiple nagios process
with a parent PID of 1. ps -ef usually shows child/parent PIDS. If youstop nagios and see none remaining then you don't have multiple daemonsrunning.As far as reloading config, a HUP to the parent process or calling
'/etc/init.d/nagios reload' is sufficient.--Marc> -Original Message-> From: Justin Craig [mailto:[EMAIL PROTECTED]]> Sent: Wednesday, August 02, 2006 12:10 PM
> To: Marc Powell> Cc: Nagios Users Mailinglist> Subject: Re: [Nagios-users] Warning threshold must be float or float> triplet!>> okay i modified checkcommands.cfg to reflect what you noted here.  I
also> did a ps axu | grep nagios and AGAIN there are multiple  instances> running.  here is the output:>>> nagios6155  0.0  0.0  1700  536 ?S11:57   0:00/bin/ping -
> n -U -w 10 -c 5 204.64.105.21> nagios6157  0.0  0.2 23900 1464 ?S11:57   0:00> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6158  0.5  0.1  5612 1036 ?S11:57   0:00> /usr/local/nagios/libexec/check_ping -H 192.168.146.5 -w 100.0,20% -c> 500.0,60% -p 5> nagios6160  
0.0  0.0  1700  540 ?S11:57   0:00/bin/ping -> n -U -w 10 -c 5 192.168.170.5> nagios6161  0.0  0.2 23900 1464 ?S11:57   0:00> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6162  0.5  0.1  5612 1036 ?S11:57   0:00> /usr/local/nagios/libexec/check_ping -H 204.64.191.5 -w 100.0,20% -c> 500.0,60% -p 5> nagios6163  
0.0  0.0  1700  536 ?S11:57   0:00/bin/ping -> n -U -w 10 -c 5 192.168.146.5> nagios6164  0.0  0.0  1700  544 ?S11:57   0:00/bin/ping -
> n -U -w 10 -c 5 204.64.191.5> root  6166  0.0  0.1  3720  676 pts/2R+   11:57   0:00 grepnagios> nagios6155  0.0  0.0  1700  536 ?S11:57   0:00
/bin/ping -> n -U -w 10 -c 5 204.64.105.21> nagios6157  0.0  0.2 23900 1464 ?S11:57   0:00> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6158  0.5  0.1  5612 1036 ?S11:57   0:00> /usr/local/nagios/libexec/check_ping -H 192.168.146.5 -w 100.0,20% -c> 500.0,60% -p 5> nagios6160  
0.0  0.0  1700  540 ?S11:57   0:00/bin/ping -> n -U -w 10 -c 5 192.168.170.5> nagios6161  0.0  0.2 23900 1464 ?S11:57   0:00> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios6162  0.5  0.1  5612 1036 ?S11:57   0:00> /usr/local/nagios/libexec/check_ping -H 204.64.191.5 -w 100.0,20% -c> 500.0,60% -p 5> nagios6163  
0.0  0.0  1700  536 ?S11:57   0:00/bin/ping -> n -U -w 10 -c 5 192.168.146.5> nagios6164  0.0  0.0  1700  544 ?S11:57   0:00/bin/ping -
> n -U -w 10 -c 5 204.64.191.5> root  6166  0.0  0.1  3720  676 pts/2R+   11:57   0:00 grepnagios>> When stopping Nagios, I typically issue a /etc/rc.d/init.d stop and
then> verify there are none running.  I also use Kill -HUP since I normally> start nagios as a daemon with the -d.  Is this the correct process?> Further, what is best practices after adding a host to refresh Nagio
to> pick up that host without reflecting undetermined availability for the> rest of the hosts or causing any problems?>> On 8/2/06, Marc Powell <[EMAIL PROTECTED]
> wrote:>>>>   > -Original Message----->   > From: Justin Craig [mailto: [EMAIL PROTECTED]> [EMAIL PROTECTED]> ]>   > Sent: Wednesday, August 02, 2006 8:38 AM>   > To: Marc Powell>   > Cc: Nagios Users Mailinglist
>   > Subject: Re: [Nagios-users] Warning threshold must be float or> float>   > triplet!>   >>   > In my checkcommands.cfg for this host in question, I have:
>   >>>>   > # 'check_local_load' command definition>   > define command{>   > command_namecheck_local_load>   > command_line$USER1$/check_load -w $ARG1$ -c $ARG2$
>   > }>   >>>   Yes, that looks good. I'd -->  - verify that nagios was reloaded after creating thiscommand>  

Re: [Nagios-users] Warning threshold must be float or float triplet! {Disarmed} {Fraud?}

2006-08-03 Thread Justin Craig
sorry, where is my /tmp/nagios directory.  I do a find / -name */tmp/nagios* I don't see anything.
On 8/2/06, Marc Powell <[EMAIL PROTECTED]> wrote:
> -Original Message-> From: 
[EMAIL PROTECTED] [mailto:nagios-users-> [EMAIL PROTECTED]] On Behalf Of Justin Craig
> Sent: Wednesday, August 02, 2006 3:36 PM> To: Marc Powell> Cc: Nagios Users Mailinglist> Subject: Re: [Nagios-users] Warning threshold must be float or float> triplet! {Disarmed} {Fraud?}
>> I sent the reload command and basically nagios is now telling me 30hosts> are down and that number is increasing?  This is a problem.  why doesthisWhat does the status information for the down hosts/services say.
That'll be a primary indicator of why it's happening. I can't begin toguess.> happen?  And back to my original issue, nagios itself is still showing> down.  I modified the command as you suggested, how do I verify that?
Look at the contents of /tmp/nagios. It should contain the command linethat nagios would have executed for the check_local_load service. Canyou successfully run that from the command line as the nagios user?
--Marc-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Nagios-users mailing listNagios-users@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
-- - Justin 
-
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Warning threshold must be float or float triplet! {Disarmed} {Fraud?}

2006-08-03 Thread Marc Powell
'nagios' is a file in '/tmp'. It's contents are modified every time
check_local_load is executed if you've followed my directions.

cd /tmp
cat nagios

--
Marc

> -Original Message-
> From: Justin Craig [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 03, 2006 8:57 AM
> To: Marc Powell
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet! {Disarmed} {Fraud?}
> 
> sorry, where is my /tmp/nagios directory.  I do a find / -name
> */tmp/nagios* I don't see anything.
> 
> 
> On 8/2/06, Marc Powell <[EMAIL PROTECTED]> wrote:
> 
> 
> 
>   > -Original Message-
>   > From: [EMAIL PROTECTED]
<mailto:nagios-
> [EMAIL PROTECTED]>  [mailto:nagios-users-
>   > [EMAIL PROTECTED] On Behalf Of Justin Craig
>   > Sent: Wednesday, August 02, 2006 3:36 PM
>   > To: Marc Powell
>   > Cc: Nagios Users Mailinglist
>   > Subject: Re: [Nagios-users] Warning threshold must be float or
> float
>   > triplet! {Disarmed} {Fraud?}
>   >
>   > I sent the reload command and basically nagios is now telling
me
> 30
>   hosts
>   > are down and that number is increasing?  This is a problem.
why
> does
>   this
> 
>   What does the status information for the down hosts/services
say.
>   That'll be a primary indicator of why it's happening. I can't
begin
> to
>   guess.
> 
>   > happen?  And back to my original issue, nagios itself is still
> showing
>   > down.  I modified the command as you suggested, how do I
verify
> that?
> 
>   Look at the contents of /tmp/nagios. It should contain the
command
> line
>   that nagios would have executed for the check_local_load
service.
> Can
>   you successfully run that from the command line as the nagios
user?
> 

-
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
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Warning threshold must be float or float triplet! {Disarmed} {Fraud?}

2006-08-04 Thread Justin Craig
contents of /tmp/nagios

/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
/usr/local/nagios/libexec/check_load -w  -c
/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
/usr/local/nagios/libexec/check_load -w  -c
/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
/usr/local/nagios/libexec/check_load -w  -c
/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0
/usr/local/nagios/libexec/check_load -w  -c


So whatever you had me do, made the host down go away for the nagios host.

When I sent the reload command however, all hosts start showing
down.  I have to stop nagios and kill the daemon running, the
start it again before it will recognize the host services again. 
This causes major problems as it doesn't reflect current uptime in
reports.  Any ideas here?  

Another issue that could play into this, I still can't schedule
downtime b/c I can't isue external commands.  Someone mentioned
htaccess files, but I have my httpd.conf file with the same contents.On 8/3/06, Marc Powell <[EMAIL PROTECTED]> wrote:
'nagios' is a file in '/tmp'. It's contents are modified every timecheck_local_load is executed if you've followed my directions.
cd /tmpcat nagios--Marc> -Original Message-> From: Justin Craig [mailto:[EMAIL PROTECTED]]> Sent: Thursday, August 03, 2006 8:57 AM
> To: Marc Powell> Cc: Nagios Users Mailinglist> Subject: Re: [Nagios-users] Warning threshold must be float or float> triplet! {Disarmed} {Fraud?}>> sorry, where is my /tmp/nagios directory.  I do a find / -name
> */tmp/nagios* I don't see anything.>>> On 8/2/06, Marc Powell <[EMAIL PROTECTED]> wrote:>>>>   > -Original Message-
>   > From: [EMAIL PROTECTED]nagios-> 
[EMAIL PROTECTED]>  [mailto:nagios-users->   > [EMAIL PROTECTED]] On Behalf Of Justin Craig
>   > Sent: Wednesday, August 02, 2006 3:36 PM>   > To: Marc Powell>   > Cc: Nagios Users Mailinglist>   > Subject: Re: [Nagios-users] Warning threshold must be float or
> float>   > triplet! {Disarmed} {Fraud?}>   >>   > I sent the reload command and basically nagios is now tellingme> 30>   hosts>   > are down and that number is increasing?  This is a problem.
why> does>   this>>   What does the status information for the down hosts/servicessay.>   That'll be a primary indicator of why it's happening. I can'tbegin> to
>   guess.>>   > happen?  And back to my original issue, nagios itself is still> showing>   > down.  I modified the command as you suggested, how do Iverify> that?
>>   Look at the contents of /tmp/nagios. It should contain thecommand> line>   that nagios would have executed for the check_local_loadservice.> Can>   you successfully run that from the command line as the nagios
user?>-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Nagios-users mailing listNagios-users@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
--  - Justin
-
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___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Warning threshold must be float or float triplet! {Disarmed} {Fraud?}

2006-08-02 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Justin Craig
> Sent: Wednesday, August 02, 2006 3:36 PM
> To: Marc Powell
> Cc: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Warning threshold must be float or float
> triplet! {Disarmed} {Fraud?}
> 
> I sent the reload command and basically nagios is now telling me 30
hosts
> are down and that number is increasing?  This is a problem.  why does
this

What does the status information for the down hosts/services say.
That'll be a primary indicator of why it's happening. I can't begin to
guess.

> happen?  And back to my original issue, nagios itself is still showing
> down.  I modified the command as you suggested, how do I verify that?

Look at the contents of /tmp/nagios. It should contain the command line
that nagios would have executed for the check_local_load service. Can
you successfully run that from the command line as the nagios user?

--
Marc



-
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
___
Nagios-users mailing list
Nagios-users@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