[Nagios-users] Nagios v2.9 disappearing hosts/services

2007-05-03 Thread Steven Haigh
Hi all,

We're trying to upgrade our nagios monitor from v1.1 to v2.9, however
I'm having problems with hosts disappearing from the service details.

If I stop nagios and remove the state retention file, then restart
nagios all hosts appear again until the status checks start going - at
which point hosts disappear again.

There is only one nagios process running (as per the FAQ). Without
removing the retention file, the host list will still be missing a lot
of hosts.

Verifying the config using nagios2 -v does not show any errors.

Does anyone have any ideas what is going on here?

Regards,
Steven Haigh

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Nagios v2.9 disappearing hosts/services

2007-05-06 Thread Steven Haigh
 Hi again all,

I am still having an issue with disappearing hosts from the nagios
service detail page. The summary shows:

Ok  Warning Unknown CriticalPending
206 10  13  48  6

All ProblemsAll Types
71  283

However, on the service detail page, only 14 services across 4 hosts are
displayed.

There is only one nagios process running:
# ps -lAF | grep nagios
1 S nagios7141 1  0  80   5 -  6135 stext   5220   0 15:31 ?
00:00:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
0 S root  8851  5904  0  78   0 -   413 pipe_w   512   3 15:36 pts/0
00:00:00 grep nagios

I can't find anything via google or the FAQs etc that may explain this.

Does anyone have any ideas on this?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Haigh
Sent: Friday, 4 May 2007 12:30 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios v2.9 disappearing hosts/services

Hi all,

We're trying to upgrade our nagios monitor from v1.1 to v2.9, however
I'm having problems with hosts disappearing from the service details.

If I stop nagios and remove the state retention file, then restart
nagios all hosts appear again until the status checks start going - at
which point hosts disappear again.

There is only one nagios process running (as per the FAQ). Without
removing the retention file, the host list will still be missing a lot
of hosts.

Verifying the config using nagios2 -v does not show any errors.

Does anyone have any ideas what is going on here?

Regards,
Steven Haigh


-
This SF.net email is sponsored by DB2 Express Download DB2 Express C -
the FREE version of DB2 express and take control of your XML. No limits.
Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Nagios v2.9 disappearing hosts/services

2007-05-07 Thread Steven Haigh
Replying to myself again...

Interestingly enough, it seems that this error seems linked to the
number of failures of various services/hosts. I haven't managed to pin
out a number as yet, but I can replicate it by adding a dud config file
with 20+ services that will always fail (ie become critical). After
doing this, I always lose hosts from the Service Detail page.

Removing the config file and restarting Nagios makes the problem go
away. Enabling it, and the hosts go missing again.

Is there any way I can debug this further?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Haigh
Sent: Monday, 7 May 2007 3:37 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios v2.9 disappearing hosts/services

 Hi again all,

I am still having an issue with disappearing hosts from the nagios
service detail page. The summary shows:

Ok  Warning Unknown CriticalPending
206 10  13  48  6

All ProblemsAll Types
71  283

However, on the service detail page, only 14 services across 4 hosts are
displayed.

There is only one nagios process running:
# ps -lAF | grep nagios
1 S nagios7141 1  0  80   5 -  6135 stext   5220   0 15:31 ?
00:00:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
0 S root  8851  5904  0  78   0 -   413 pipe_w   512   3 15:36 pts/0
00:00:00 grep nagios

I can't find anything via google or the FAQs etc that may explain this.

Does anyone have any ideas on this?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Haigh
Sent: Friday, 4 May 2007 12:30 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios v2.9 disappearing hosts/services

Hi all,

We're trying to upgrade our nagios monitor from v1.1 to v2.9, however
I'm having problems with hosts disappearing from the service details.

If I stop nagios and remove the state retention file, then restart
nagios all hosts appear again until the status checks start going - at
which point hosts disappear again.

There is only one nagios process running (as per the FAQ). Without
removing the retention file, the host list will still be missing a lot
of hosts.

Verifying the config using nagios2 -v does not show any errors.

Does anyone have any ideas what is going on here?

Regards,
Steven Haigh


-
This SF.net email is sponsored by DB2 Express Download DB2 Express C -
the FREE version of DB2 express and take control of your XML. No limits.
Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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


-
This SF.net email is sponsored by DB2 Express Download DB2 Express C -
the FREE version of DB2 express and take control of your XML. No limits.
Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] error message

2007-05-15 Thread Steven Haigh
>From nagios2.conf:

# EXTERNAL COMMAND OPTION
# This option allows you to specify whether or not Nagios should check
# for external commands (in the command file defined below).  By default
# Nagios will *not* check for external commands, just to be on the
# cautious side.  If you want to be able to use the CGI command
interface
# you will have to enable this.  Setting this value to 0 disables
command
# checking (the default), other values enable it.
check_external_commands=0


Change this to 1.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, 16 May 2007 10:41 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] error message

I just finished installing and configuring nagios on fedora core 6.  I  
installed packages using yum.  Everything seems to work great.   
However, I have two questions.  1. Whenever I try to do something from
the web interface I recieve the following error message:Sorry, but
Nagios is currently not checking for external commands, so your command
will not be committed!  I do I enable external commands.  2.  
If I cant enable external commands, How do I acknowledge when there is a
problem so Nagios doesnt keep sending me emails every hour or so?

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] error message

2007-05-15 Thread Steven Haigh
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> [EMAIL PROTECTED]
>> Sent: Wednesday, 16 May 2007 10:41 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] error message
>>
>> I just finished installing and configuring nagios on fedora core 6.
I
>> installed packages using yum.  Everything seems to work great.
>> However, I have two questions.  1. Whenever I try to do something
from
>> the web interface I recieve the following error message:Sorry, but
>> Nagios is currently not checking for external commands, so your
command
>> will not be committed!  I do I enable external commands.  2.
>> If I cant enable external commands, How do I acknowledge when there
is a
>> problem so Nagios doesnt keep sending me emails every hour or so?
>>
>
> Thanks Steve.  I just found that.  Is there an easier interface to add

> hosts?  I spent the last 2 days typing in hosts in hosts.cfg,  
> hostgroups.cfg, services.cfg, and contacts in the contacts etc.  I  
> have quite a bit more to add, and was hoping for some kind of good  
> tool to add them.

I haven't found anything like this. It'd be nice. I'm currently writing
something for our companies internal use, but I doubt it will be of use
to many other people as it's fairly specialised...

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Nagios 2.9 and Escalations.

2007-06-06 Thread Steven Haigh
Hi all,

I'm currently upgrading our Nagios monitoring system from v1.1 to v2.9
and I notice that the hostgroupescalation functions that we were
previously using no longer exist in v2.9.

I've read through the docs of serviceescalation and hostescalation and
there's one thing that remains unclear to me. If a hostescalation is
defined, does this ONLY activate when the host check fails (ie
check-host-alive) or if any of the services on the host fails?

If it's only triggered on the check-host-alive failing, is there an easy
way (ie a wildcard or similar) to activate escalation based on ALL
services for a host? Does this require a serviceescalation definition
for EVERY service on a host? I sure hope not!

Regards,
Steven Haigh

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Nagios 2.9 and Escalations.

2007-06-07 Thread Steven Haigh
A ­ Thanks Robert. I think it would be of great help if the wildcard
information was on the pages detailing service and host escalations! :)


On 7/6/07 2:30 PM, "Robert King" <[EMAIL PROTECTED]>
wrote:

> Steven Haigh wrote:
>>  
>> I've read through the docs of serviceescalation and hostescalation and
>> there's one thing that remains unclear to me. If a hostescalation is
>> defined, does this ONLY activate when the host check fails (ie
>> check-host-alive) or if any of the services on the host fails?
>> 
>>   
> The host escalation will only be used for host checks. You'll need to escalate
> the services on the host separately.
> 
>>  
>> If it's only triggered on the check-host-alive failing, is there an easy
>> way (ie a wildcard or similar) to activate escalation based on ALL
>> services for a host? Does this require a serviceescalation definition
>> for EVERY service on a host? I sure hope not!
>> 
>>   
> Yes, you can use a wildcard, e.g.:
> 
> define serviceescalation {
> hostgroups  important-hosts
> service_description*
> contact_groups  all-page
> first_notification  5
> last_notification   20
> notification_interval   2
> }
> 
> For more information on this, see the Nagios manual section entitled
> "Time-saving tips for object definitions":
> 
> http://nagios.sourceforge.net/docs/2_0/templatetricks.html
> 
> 
> Hope this helps,
> 
> Rob
> 
> --
> Robert King
> UNIX Systems Administrator
> Publishing Technology plc
> T: +1 401 331 2014 x120
> F: +1 401 331 2015
> [EMAIL PROTECTED]
> http://www.publishingtechnology.com <http://www.publishingtechnology.com/>
> GPG Public key: http://tinyurl.com/9zmws
> 


-- 

Regards,

Steven Haigh | IT Operations
Pacific Internet Australia Pty Ltd

Email: [EMAIL PROTECTED]
Direct Tel: +61 3 9674-7623
Fax: +61 3 9698-4866
www.pacific.net.au

Level 1, 1 Southbank Boulevard
Southbank VIC 3006

Pacific Internet is a next-generation IP communication solutions
provider, and the largest telco-independent Internet Communications
Service Provider by geographic reach in the Asia Pacific region.
www.pacnet.com

SINGAPORE | HONG KONG | PHILIPPINES | AUSTRALIA | INDIA | THAILAND |
MALAYSIA

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] using Nagios to detect rogue DHCP servers?

2007-07-10 Thread Steven Haigh
Indeed. Looking at the source of dhcpdetector.pl 
(https://svn.bountysource.com/roguedetect/trunk/dhcpdetector.pl) it shouldn't 
be too hard to modify it into a nagios plugin (trivial even).
 
The relevant code block:
sub send_log { 

my $severity = shift @_;
my $message  = shift @_;

if (!$message) { 
$message = 'ERROR: No Message Recieved, logging failure';
}

# If the above conditions are met and
# the send_msg is set then go ahead and
# log it using the specified log mojo
if ($syslog_level >= $severity) { 
syslog('LOG_INFO',$message);
}
if ($email_level >= $severity) { 
send_mail($alert_email,"[RogueDetect] Log Report",$message);
} 
if ($page_level >= $severity) { 
send_mail($page_email,"RogueDetect Failure!",$message);
}   
if ($print_level >= $severity) { 
print $message . "\n";
}

Should be fairly easy to hook into this, print the correct message and set an 
exit code from here


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rogelio Bastardo
Sent: Wednesday, 11 July 2007 4:12 AM
To: Hari Sekhon
Cc: Nagios Users mailinglist
Subject: Re: [Nagios-users] using Nagios to detect rogue DHCP servers?




requires a whole new plugin written from scratch, I haven't seen a
tcpdump like plugin. Therefore much more difficult and more time 
required, as well as more computationally intensive to watch all traffic
for another dhcpoffer, when actually you'll get the same result.



What about writing a custom plugin that uses this GPL prog to return the 
warning/critical/ok/pending values?

https://roguedetect.bountysource.com/

From the website:

Rogue Detect sends DHCPDISCOVER packets to the network and listens for DHCP 
servers to respond and checks responses against authorized dhcp servers. It’s 
written in Perl. By default it supports sending reports to syslog, email, 
standard out or a customer script of your chosing. Each reporting method has 
it’s own independent reporting level.

Their wiki is here:  https://roguedetect.bountysource.com/wiki 

notes at the bottom of the wiki:

"Sending a DHCPDISCOVER packet causes any DHCPSERVERS listning to allocate an 
IP address for a few seconds, while they wait for the detector to ACK their 
offer. Since we never do send an ACK, the IP is not allocated to us. Hence, it 
should be ok to run this on the network.. but do so at your OWN RISK!!

This package is nice in that you do not have to have a clear view of the 
network to run it (ie, it works behind a switch). You DO have to be within 
broadcast range, which usually means on the same subnet as the DHCP server. In 
some cases scaning port 68 (67?) on every machine may be the better answer to 
finding dhcp servers, but with this program, as apposed to a passive one like 
snort, you do not have to be able to see traffic not destined for you."





-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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