Re: [Nagios-users] Checking host up without ping

2007-03-25 Thread Andy Shellam
It's probably a bit late for this, but one of my servers used to be with 
a host that blocked pings, so I used check_ssh instead - if the SSH 
service responded, the server was up :)

Andy.

Johnston, Mike J wrote:
 I guess I should have thought my question through before I asked...
 Thanks for the suggestions and avoiding any attempt to pick on me... lol
 Thanks all!

 -Original Message-
 From: Patrick Morris [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 23, 2007 4:29 PM
 To: Johnston, Mike J
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Checking host up without ping

 On Fri, 23 Mar 2007, Michael Johnston wrote:

   
 I swear I've seen a way to do this this before but I just can't
 
 remember where and I can't seem to find it.  Isn't there a way to check
 to see if a host is up without having to ping it?  I have a switch that
 we don't allow ICMP return but I'd still like to have nagios tell me if
 it's up.  Thanks!

 Just use a host check that *can* determine whether the host is up or
 not. There's no rule that says a host check must be an ICMP ping.

 -
 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.phpp=sourceforgeCID=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

 !DSPAM:37,46055e11103008849520826!


   


-
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.phpp=sourceforgeCID=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] WRONG STATUS

2007-03-25 Thread Andy Shellam
Also, in your check_ping command definition, you're requesting the host 
respond within 30ms to be classed as up and OK.

This seems awfully quick - personally I request 1000ms (1 second) to 
give it a fair amount of time to respond.  If the host/router/whatever 
is busy, it could take slightly longer than 30ms to reply, causing a 
warning (or longer than 60ms to be 'down'.)

Andy.

Dinçer Kavraal wrote:
 Hi Grace,
 Try to increase max_check_attemps. Let nagios accept a host is in 
 DOWN status after at least 5 checks.
  
 If it is important for you to be aware of a DOWN status of a host in 
 max. 2 minutes, then make nagios check intervals base on seconds 
 (instead of minutes). Then make max_check_attemps to be 6 but totally 
 taking 2 minutes with a delay of 20 seconds each.
  
 Sorry for my English.
  
 Dinçer
  
 2007/3/24, grace ingabire [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]:

 Hello,

  

 I' m using nagiosVersion 2.0 and sometimes nagios delivers wrong
 status like the device is down as you can see it here although the
 device is not.

  

 Notification Type: PROBLEM

 Host: cisco_7204_157_194

 State: DOWN

 Address: 196.12.157.194 http://196.12.157.194/

 Info: $

  

 Date/Time: Sat Mar 24 09:35:48 CAT 2007

  

 The service that has been defined is ping

  

 define service{

 use generic-service ;
 Name of servic

 e template to use

 host_name   cisco_7204_157_194

 service_description PING

 is_volatile 0

 check_period24x7

 max_check_attempts  2

 normal_check_interval   2

 retry_check_interval1

 contact_groups  cpl

 notification_optionsw,u,c,r

 notification_interval   960

 notification_period 24x7

 check_command   check_ping!30.0,5%!60.0,10%

  

 What could be the problem?

 I would like to have more info on this
 check_command   check_ping!30.0,5%!60.0,10%

  

 Thanks for your support

  



  


 -
 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.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 mailto:Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 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,460576b1103001524910340!
 

 -
 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.phpp=sourceforgeCID=DEVDEV

 !DSPAM:37,460576b1103001524910340!
   
 

 ___
 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

 !DSPAM:37,460576b1103001524910340!
   


-
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.phpp=sourceforgeCID=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] NRPE 2.7.1 command_prefix problem

2007-03-25 Thread Andy Shellam
I've been looking at this some more today, and finally found the problem 
and solution!

I added  /dev/stdout 21 to the end of a command in my nrpe.cfg, and 
got the following result when running check_nrpe off my Nagios server:

sudo: sorry, you must have a tty to run sudo.

Looking at the /etc/sudoers file on the machine reveals a line Defaults 
requiretty.  Commenting this out sorted the problem.
For some reason, on a stock FC4 install, the sudoers file was virtually 
empty, yet in FC6 it was full of various settings!

Andy.

[EMAIL PROTECTED] wrote:
 I've been head-scratching most of the afternoon over this.
 I've installed NRPE 2.7.1 on a Fedora Core 6 machine, and no matter what I
 try, it doesn't like the command_prefix setting.

 Here is my config:

 ...
 ### Daemon Options

 pid_file=/var/run/nrpe.pid
 server_port=5666
 #server_address=192.168.1.1
 nrpe_user=nagios
 nrpe_group=localservice
 #allowed_hosts=127.0.0.1,82.165.38.62
 dont_blame_nrpe=0
 #command_prefix=/usr/bin/sudo
 debug=1
 command_timeout=60
 connection_timeout=300
 #allow_weak_random_seed=1

 ### Commands configuration
 ...

 with all the commands listed afterwards (check_dns, check_procs etc.)

 Notice how command_prefix is commented out.  This works:

 # ./check_nrpe -H 127.0.0.1 -c check_dns
 DNS OK: 0.062 seconds response time. portland-1.andyshellam.eu returns
 89.200.137.203|time=0.062236s;;;0.00

 If I uncomment command_prefix and kill/restart NRPE:

 # ./check_nrpe -H 127.0.0.1 -c check_dns
 NRPE: Unable to read output

 If I login as the Nagios user (nagios) which is whom NRPE runs under, and
 try the command I believe NRPE is trying to run:

 $ /usr/bin/sudo /usr/local/nagios/libexec/check_dns -H
 portland-1.andyshellam.eu -a 89.200.137.203
 DNS OK: 0.005 seconds response time. portland-1.andyshellam.eu returns
 89.200.137.203|time=0.004811s;;;0.00

 Any ideas, anyone?

 I've tried with and without SSL - makes no difference, enabled debugging but
 don't get anything helpful in syslog.  I have some plugins that need root
 privelege so need this working.

 Thanks,
 Andy.
 _
 DISCLAIMER

 This e-mail was sent through a Mail Network server.
 The Mail Network accepts no liability for it's content.




 -
 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.phpp=sourceforgeCID=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

 !DSPAM:37,4602a9c8103001188359059!


   


-
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.phpp=sourceforgeCID=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] is there a way to set host min_check_attempt?

2007-03-25 Thread Dinçer Kavraal

Hi, (as to be numbers are only sample)
We know that host assumed to be DOWN if host does not reply (or timeout) for
5 times successively (I mean 5 distinct checks in order).
Do you know how to make nagios assume that host is UP only and only if host
says OK to ping check for 5 times successively after a HARD-DOWN status?




2007/3/25, Andy Shellam [EMAIL PROTECTED]:


Also, in your check_ping command definition, you're requesting the host
respond within 30ms to be classed as up and OK.

This seems awfully quick - personally I request 1000ms (1 second) to
give it a fair amount of time to respond.  If the host/router/whatever
is busy, it could take slightly longer than 30ms to reply, causing a
warning (or longer than 60ms to be 'down'.)

Andy.
[...]
-
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.phpp=sourceforgeCID=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] Need help

2007-03-25 Thread Mukta Sharma
Hi
This is Mukta Sharma. I am masters student in GWU. I am doing Nagios 
installation and configuration during my Unix project.

I am having one problem, after installing it. I followed all the steps written 
in the documentation to install Nagios. But after restarting my web server when 
i just want to verify if that changes working or not or i want to see the 
Nagios web interface, i entered the  following  path in to my web browser  
http://localhost/nagios/ . It asked me for the user name and password for 
Nagios Access at http://localhost.  i have not entered any password, i just 
created the user as written in the documentation.

So please anyone can tell me what i should do to resolve this problem.

Thanks

Mukta Sharma
M.S Student 
The George Washington University

-
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.phpp=sourceforgeCID=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] Need help

2007-03-25 Thread Morris, Patrick
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Mukta Sharma
 Sent: Sunday, March 25, 2007 5:10 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Need help
 
 I am having one problem, after installing it. I followed all 
 the steps written in the documentation to install Nagios. But 
 after restarting my web server when i just want to verify if 
 that changes working or not or i want to see the Nagios web 
 interface, i entered the  following  path in to my web 
 browser  http://localhost/nagios/ . It asked me for the user 
 name and password for Nagios Access at http://localhost.  i 
 have not entered any password, i just created the user as 
 written in the documentation.
 
 So please anyone can tell me what i should do to resolve this problem.

Nagios itself does not prompt for authentication. You must have
configured your Apache server to do it. You'll need to complete that
process. Take a look at your Apache configuration, and any files you
have specified there that it should use for authentication.

-
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.phpp=sourceforgeCID=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