nagios

Marc Powell marc at ena.com
Tue Jan 23 00:20:28 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Brian Loe
> Sent: Monday, January 22, 2007 12:08 PM
> To: Nagios Users mailinglist
> Subject: Re: [Nagios-users] nagios
> 
> I'm using the following check command (in checkcommands.cfg):
> 
>  # 'check_dns' command definition
>  define command{
>          command_name    check_dns1
>          command_line    $USER1$/check_dns -H www.<our-web-server.com
> -s $HOSTADDRESS$ -a <our web server's IP address>
> 
> define command{
>          command_name    check_dns2
>          command_line    $USER1$/check_dns -H www.<our-web-server.com
> -s $HOSTADDRESS$ -a <our web server's IP address>
> 
> Shouldn't that work to verify OUR DNS server is up and replying? Do I
> need both of them or shouldn't just the one work?

It would have taken about a minute for you to Try And Find Out if it
worked by running it manually yourself. To answer, yes, it works. You
don't need both of them because they're identical.

> Also, when looking at Service or Host Alert History I see a bunch of
this:
> 
> Program End[01-22-2007 11:35:01] Lockfile
> '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
> Program Start[01-22-2007 11:35:01] Nagios 2.4 starting... (PID=3720)
> Program End[01-22-2007 11:25:01] Lockfile
> '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
> Program Start[01-22-2007 11:25:01] Nagios 2.4 starting... (PID=1772)
> Program End[01-22-2007 11:15:01] Lockfile
> '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
> Program Start[01-22-2007 11:15:01] Nagios 2.4 starting... (PID=32247)
> Program End[01-22-2007 11:05:02] Lockfile
> '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing
out...
> Program Start[01-22-2007 11:05:02] Nagios 2.4 starting... (PID=30324)

Do you have multiple nagios daemons running? Looks like you do. Stop
nagios, verify that all processes are gone, kill any that might remain,
remove /usr/local/nagios/var/nagios.lock if it still exists and restart
nagios.

--
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 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