[Nagios-users] NDO 1.3.1

2006-09-04 Thread Mike Koponick
Title: NDO 1.3.1






I tried to upgrade to NDO 1.3.1 and it appears that even though I configured (./configure --with-mysql-lib=/usr/lib/mysql) and compile without errors, I get an error message When I try to start the daemon.

./ndo2db-2x -c /usr/local/nagios/etc/ndo2db.cfg

Support for the specified database server is either not yet supported, or was not found on your system.


NDO 1.2 works fine as it stands. I didnt see any differences in the configuration file between 1.2 and 1.3.1.

Thanks in advance,

Mike






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] NDO - Using up RAM?

2006-09-04 Thread Mike Koponick
Title: NDO - Using up RAM?






I notice that NDO2DB (version 1.2) is starting to take up a lot of memory on my system. It starts out using 20% of the 2GB of RAM, now 4 hours later it's now using 40+% of the available RAM.

Has anyone else seen this?


 Mike



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] check_snmp_int.pl

2006-09-01 Thread Mike Koponick
Title: check_snmp_int.pl






Does anyone have a SNMP Version 2, version of check_snmp_int.pl?

I have two devices on my network that require SNMP Version 2 only, it would be MUCH easier to update that file and the service check for the two devices.

Thanks in advance,

Mike


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] Force notification?

2006-08-30 Thread Mike Koponick









Im sure others may have more
information, but in order to create a notification you need to create
a hard state change. Having said that, you would need to run some sort of check
command that would check what you wanted, in your case it would be a number of
named process.



Mike



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Lauda
Sent: Wednesday, August 30, 2006
1:23 PM
To:
nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Force
notification?





have read as much doc on
notifications as I can find. Everything refers to the idea that Nagios will
send notifications for hosts or service that experience a HARD state change.
Well, Ok... but I want to monitor a service, say a process by name on an nrpe
monitored server. If the number of that named process drops below X I want to
get a notification. Is this possible or is there some way that I can force that
situation to CREATE a HARD state change? I always see it in the logs as a SOFT
change and of course, no notification. 









Any advice very much welcome.











--p










-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] notification issue

2006-08-16 Thread Mike Koponick
Tom.

What does your misccommands.cfg look like for this command? The clue
might b there. I have noticed that spaces with \n can make a
difference.

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom
Brown
Sent: Wednesday, August 16, 2006 8:59 AM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] notification issue

Hi

When my notifications come through they look like this

* Nagios  *

Notification Type: PROBLEM

Service: www
Host: xxx
Address: 
State: CRITICAL

Date/Time: Wed Aug 16 11:43:52 EDT 2006

Additional Info:

$


How can i make sure that the addition info has information in it? I see 
this if i look on the web but not in the mail.

thanks


-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] NSCA - XINETD

2006-08-14 Thread Mike Koponick
Title: NSCA - XINETD






I have noticed an unusual occurrence using NSCA while in XINETD mode. I noticed that connections will get refused on occasion. I have not noticed this when running NSCA under DAEMON mode. Im running NSCA 2.4.

Has anyone else seen this?

Thanks in advance,

Mike




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] Separate config files

2006-08-04 Thread Mike Koponick
I have used the cfg_dir. My Nagios config looks like:

cfg_dir=/usr/local/nagios/etc/hostgroups

In the directory, I have multiple hostgroup files.

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Friday, August 04, 2006 6:28 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Separate config files



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Nazar Kulynych
 Sent: Friday, August 04, 2006 8:24 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Separate config files
 
 Is it possible to separate hostgroups into different files.
 For example, I would like to have production hosts in one config file
 and development hosts in another.

Yes, certainly. Create a new file, move your desired hostgroup
definitions to it, include it as a cfg_file in nagios.cfg 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.phpp=sourceforgeCID=DEVDE
V
___
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

-
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] NDO Services

2006-08-03 Thread Mike Koponick
Title: NDO Services






Hello,

Im looking at implementing syslog via Nagios in a distributed environment. I want to report historical information for network devices that output syslog information. Of course, I will be parsing out syslog information so I dont have a flood of traffic. I see how I can get the data to the Nagios central server, by using something like sec.pl, which will use the Nagios services, but when it goes to the NDO MySQL database, I think the ndo_servicestatus table gets updated, rather than appended to. 

Is there another way to send this type of data, and still keep a historical data via Nagios/NDO? I suppose I could use the ndo_logentries table, although it is very large.

Thanks in advance,

Mike


-
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] NDO Services

2006-08-03 Thread Mike Koponick
Patrick,

Sorry, it's been a long week. No hijacking here.
Using SEC is already on my list, I suppose since Nagios would have a
service configured to report (notification/status, etc) my question is
regarding the data that will be sent to the NDO database. 

Once the database is populated, reporting historical records becomes an
issue. My *REAL* question is which table would be best suited for
reporting? It appears to me that using the ndo_servicestatus table gets
updated, rather than appended, which makes sense. I suppose using the
ndo_logentries table would work best.

Maybe it's time for a beer.. maybe two.

Mike

-Original Message-
From: Patrick Morris [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 03, 2006 3:54 PM
To: Mike Koponick
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] NDO Services

On Thu, 03 Aug 2006, Mike Koponick wrote:

 Hello,
 
 I'm looking at implementing syslog via Nagios in a distributed
 environment. I want to report historical information for network
devices
 that output syslog information. Of course, I will be parsing out
syslog
 information so I don't have a flood of traffic. I see how I can get
the
 data to the Nagios central server, by using something like sec.pl,
which
 will use the Nagios services, but when it goes to the NDO MySQL
 database, I think the ndo_servicestatus table gets updated, rather
than
 appended to. 
 
 Is there another way to send this type of data, and still keep a
 historical data via Nagios/NDO? I suppose I could use the
ndo_logentries
 table, although it is very large.

It sounds to me (and I could be wrong here) like you're trying to get
Nagios to do something it's really not designed, or even fit, to do.
Nagios is definitely *not* a syslog server.  It's really good at
notifying based on triggers in a log, but to actually *be* the log
server?  

I have to wonder why you'd even try to do that when there are real
logservers out there that support storing logs in databases (syslog-ng
scomes to mind).

You could then use sec to send status information to Nagios, and let it
do what it's good at (tracking and notifying based on service states,
and it would automatically save the Critical/Warning/Recovery states you
sent it via NDO if you have it set up). You'd also have a real syslog 
server with a database back end, doing what it's good at.

Trying to hijack nagios databases so you can force them to hold data
they're not meant to hold just seems like a disaster in the making.

-
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] Nagios do not send e.mails

2006-07-31 Thread Mike Koponick
Title: RE: [Nagios-users] Nagios do not send e.mails






Are notifications turned on in the nagios.cfg file?

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Marcos Marinho
Sent: Monday, July 31, 2006 2:57 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios do not send e.mails

I had installed the version 2.4 by binary way and we had using NagiosQL to configure.

The servers had been monitored ok 

In all time that nagios was installed here none of the serves had not been down any moment

On the first server down one, the nagios process did not send any e.mail using the pre-configured scritp host-notify-by-email.

Whe I had tried runnig the script using user nagios the message was sent with no problem.

This is what is showed in nagio.log

[1154056710] HOST ALERT: marcos;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds

[1154056720] HOST ALERT: marcos;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds

[1154056730] HOST ALERT: marcos;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds

[1154056740] HOST ALERT: marcos;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 seconds

[1154056750] HOST ALERT: marcos;DOWN;HARD;5;CRITICAL - Plugin timed out after 10 seconds

This is our configuration files



define host {

 host_name marcos

 alias Workstation Marcos

 address 10.10.21.18

 parents Debian

 check_command check-host-alive

 max_check_attempts 5

 check_interval 10

 active_checks_enabled 1

 passive_checks_enabled 1

 check_period 24x7

 obsess_over_host 1

 check_freshness 1

 freshness_threshold 360

 event_handler_enabled 0

 flap_detection_enabled 0

 process_perf_data 1

 retain_status_information 1

 retain_nonstatus_information 1

 contact_groups admins

 notification_interval 5

 notification_period 24x7

 notification_options d,u

 notifications_enabled 1

 stalking_options d,u

 register 1

 }



define command {

 command_name host-notify-by-email

 command_line /usr/bin/printf \\%b\\ \\* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\\ | /usr/bin/mail -s \\Host $HOSTSTATE$ alert for $HOSTNAME$!\\ $CONTACTEMAIL$

 }



define contactgroup {

 contactgroup_name admins

 alias Nagios Administrators

 members redes

 }



define contact {

 contact_name redes

 alias Grupo Redes

 host_notification_period 24x7

 service_notification_period 24x7

 host_notification_options d,u,r

 service_notification_options w,u,c,r

 host_notification_commands host-notify-by-email

 service_notification_commands notify-by-email

 email [EMAIL PROTECTED]

 }



Any hints

Thank you before hands  File: ATT350909.txt   File: ATT350911.txt  


-
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] Syslog-NG/NSCA

2006-07-30 Thread Mike Koponick



I found this posting on the Exchange site, but the 
E-Mail address provided did not work.

I wondered of anyone else has configured Syslog-NG to send data via NSCA, 
and let Nagios handle the notifications, etc. I'm curious to see how Nagios is 
configured as the server, and Nagios as the client.

Thanks in advance,

Mike


-
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] NDO - Log_Entries

2006-07-30 Thread Mike Koponick
Does anyone knowhow the field "logentry_type" is 
defined? I see many entries and numbers in this field, but I wonder what they 
mean.

Thanks!

Mike-
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] Modem Notifications

2006-07-18 Thread Mike Koponick
Title: Modem Notifications






I would like to send out notifications via modem (to a pager) but Im concerned about multiple notifications being sent out and the modem not keeping up. Is anyone using a system such as this??

Thanks in advance!

Mike



-
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] Modem Notifications

2006-07-18 Thread Mike Koponick
Tom, thanks for the quick response. I wonder..how many notifications get
buffered up? There are times when will see up to 100 notifications,
basically because of the network setup.

Thanks!

Mike

-Original Message-
From: Tom Brown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 18, 2006 6:52 AM
To: Mike Koponick
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Modem Notifications


 I would like to send out notifications via modem (to a pager) but I'm 
 concerned about multiple notifications being sent out and the modem
not 
 keeping up. Is anyone using a system such as this??

Yes - we send out using qpage and it works fine for multiple messages

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

2006-06-28 Thread Mike Koponick
Title: Notifications






I am also having an issue with notifications.

Here is some information:

Nagios 2.0

I'm in a distributed environment.

Using Postfix for E-Mail.

I can send a test E-Mail directly from the OS

I can send a test E-Mail using the command in the misccommands.cfg file.

Notifications are enabled both in the main configuration file and the services configuration file(s). 

I'm not using host checks.

I never see any notification message in the syslog for Nagios. 

It's as if Nagios doesn't know to send notifications. 

With the exception of adding new services/hosts no other configuration changes have taken place (at least to my knowledge!) 

I have restarted Nagios, several times. Which also leads me to another question, I have the Enable_Notifications_ turned on, shouldn't I see notifications when Nagios is restarted?

# NOTIFICATIONS OPTION

# This determines whether or not Nagios will sent out any host or

# service notifications when it is initially (re)started.

# Values: 1 = enable notifications, 0 = disable notifications

enable_notifications=1


Thanks in advance,

Mike


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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] Notifications

2006-06-28 Thread Mike Koponick
Marc,

Thanks for being a second pair of eyes. The problem was in the
contacts.cfg file, there were no service_notification_options
configured.

This leads me to the next question. If the service_notification_options
are mandatory, why didn't the nagios -v nagios.cfg error out?

Thanks!

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Wednesday, June 28, 2006 8:13 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Notifications



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Mike Koponick
 Sent: Wednesday, June 28, 2006 8:59 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Notifications
 
 I am also having an issue with notifications.
 

[chop]

 
 I never see any notification message in the syslog for Nagios.
 
 It's as if Nagios doesn't know to send notifications.
 
 With the exception of adding new services/hosts no other configuration
 changes have taken place (at least to my knowledge!)
 
 I have restarted Nagios, several times. Which also leads me to another
 question, I have the Enable_Notifications_ turned on, shouldn't I see
 notifications when Nagios is restarted?

Not necessarily. Only if a service reaches a hard critical state after
restart and you have properly configured notifications for that service
and its contacts.

 
 # NOTIFICATIONS OPTION
 
 # This determines whether or not Nagios will sent out any host or
 
 # service notifications when it is initially (re)started.
 
 # Values: 1 = enable notifications, 0 = disable notifications
 
 enable_notifications=1

This is not sufficient to receive notifications. You must also configure
proper notification options for the service and its contacts. Have you
done so? Relevant config snippets? Also my experience with this is that
state retention trumps initial notifications. For example, if a service
was in a hard-down state before restart and was still in a hard-down
state after restart, I do not receive a new notification for that
service.

--
Marc

Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] Switch Port Monitoring

2006-06-23 Thread Mike Koponick
Robert,

What I typically do is monitoring the switch with a PING, the I setup
services group(s). I have many switches that I watch gig0/1 as an
example as this is the port that interconnects all the other switches. I
have been grouping services groups based on the port that I monitor, and
then add the hosts/hostsgroups.

If you want to view ALL the ports, you can do that as well.

Check out the check_snmp_int command.

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Jackson
Sent: Friday, June 23, 2006 8:56 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Switch Port Monitoring

Anyone like to share how they monitor switch ports?

I have a series of switches that I would like to monitor the ports for.
However
I would only want to see the overall switch as a host and the switch
ports as
host services.

Is this possible, anyone know how to do this?


Regards,
Rab.
===
Robert Jackson  Phone: +44 (0) 141 332
7999
Software Engineer Fax:  +44 (0) 141 331
2820
Walker Martyn Ltd
1 Park Circus PlaceEmail:
[EMAIL PROTECTED]
Glasgow G3 6AH, Scotland   Web:
http://www.walkermartyn.co.uk
===



The information in this internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is unauthorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
Walker Martyn Ltd or any of its affiliates. If you are not the
intended recipient please contact  [EMAIL PROTECTED]





Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] Distributed Monitoring - Redundancy

2006-06-23 Thread Mike Koponick
Title: Distributed Monitoring - Redundancy






Hello Everyone,

Im running Nagios is a distributed environment which is working very well. I would like to add a little redundancy to the picture now that I have everything working. ;-)

Since Im running a distributed environment, how can I add a secondary Central-Server to the picture? Im not worried about the sensors or remote Nagios servers, just the central portion of the network. The problems that I see are as follows:

The remote servers send data via NSCA to the central server. Would they also have to send a second connection to the secondary server?

NDO now sends data to my MySQL server, will the secondary server also need to send data? This opens a can of worms in terms of duplicate data, etc.

It seems that a secondary cold spare might be the best solution. Then there are maintenance issues with keeping software up to data, etc.

So many problems, so little beer.

Thanks in advance,

Mike


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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 update 2.4

2006-06-23 Thread Mike Koponick








Ravi,



I have installed new, and performed an
upgrade recently.



The install new (tar ball and RPM) went
fairly smooth. The main problem I had was that my configuration tool places the
files in a different place, so I needed to link the nagios.cfg file, which wasnt
a big deal.



The upgrade was also fairly smooth, most
the issues that I had again, were with the nagios.cfg file, only because of my
environment.



Keep in mind that I dont use the
CGIs and am in a distributed environment.



Thanks!



Mike



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Kumar
Sent: Friday, June 23, 2006 9:43
AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios
update 2.4





I want to upgrade current nagios version 2.0 to 2.4.





Please suggest which download would easy to install on
Linux platform.






 
  
  Nagios 2.4
  
  
  05/31/2006
  
  
  Tarball
  
  
  
  
  
  
  The most recent stable release of Nagios (Changelog). 
  
  
  Tarball MD5 Sum: bb8f0106dc7f282c239f54db1f308445
  
  
  RPMs (created by Dag Wieers) are available for Red
  Hat Linux, Fedora and Red Hat Enterprise. 
  
  
 
 
  
  RPM
  
  
  
  
 






Tarball or RPM?





Please let me know if anyone have installed new one
and having issue during upgrade?





Do some one have documentation how to upgrade
2.4 from 2.0 version like that?





Thanks









  







Talk is cheap. Use Yahoo! Messenger to make
PC-to-Phone calls. Great
rates starting at 1¢/min.






Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
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 with MySQL??

2006-05-19 Thread Mike Koponick
Jeffery,

I'm using the eventbroker that Marc spoke of, which very well. For the
configuration, you can look at NagiosQL.

If you like writing in PHP, you *could* write your own interface, which
depending on your PHP skills and needs could be as complicated or as
easy as you like.

Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 9:58 AM
To: Nagios Users Mailinglist
Subject: [Nagios-users] Nagios with MySQL??

Hello,

Is it true that Nagios 2.* doesn't support MySQL anymore?
I would like to set up Nagios and have it store its status and possibly 
it's configuration in a database (and read its config from the
database).
Is this still possible, or can anyone recommand a plugin or add-on which

works pretty good?

Thanks in advance!

-Jeffrey


---
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
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] Perfomance Data via NDO?

2006-05-10 Thread Mike Koponick
Title: Perfomance Data via NDO?









Patrick,



Thanks for the tip, but I went that route
before and didnt see the performance data. 

When I look at the logs, I see the output,
but nothing beyond the | 



If I use the commands manually (the SNMP
check command) I see the data.



When I look at the logs, I see the output,
but nothing beyond the | .



Here is a little info:



Checkcommands.cfg:



define command {


command_name submit_check_result


command_line $USER1$/submit_check_result $HOSTNAME$
'$SERVICEDESC$' '$SERVICESTATE$' '$SERVICEOUTPUT$' '$SERVICEPERFDATA$'


}





Submit_check_result:



#!/bin/sh



# Arguments:

# $1 = host_name (Short name of host that
the service is

# associated with)

# $2 = svc_description (Description of the
service)

# $3 = state_string (A string representing
the status of

# the given service - OK,
WARNING, CRITICAL

# or UNKNOWN)

# $4 = plugin_output (A text string that
should be used

# as the plugin output for the service
checks)

#



# Convert the state string to the
corresponding return code

return_code=-1




case $3 in


OK)


return_code=0

;;


WARNING)


return_code=1

;;


CRITICAL)


return_code=2

;;


UNKNOWN)


return_code=3

;;


esac



/usr/bin/printf %s\t%s\t%s\t%s|%s\n
$1 $2 $return_code $4
$5 | /usr/local/nagios/libexec/send_nsca -H Server_IP -to
15 -c /usr/local/nagios/etc/send_nsca.cfg



Thanks in advance for your help.



Mike



-Original Message-
From: Morris, Patrick
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May
 03, 2006 9:01 AM
To: Mike Koponick;
nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users]
Perfomance Data via NDO?



You'll need to pass the
$SERVICEPERFDATA$ variable into the submission script as well. I tweaked
my nsca submission command to include $SERVICEPERFDATA$ in the command
configuration, then changed the prontf line in the submission script like this:



/usr/bin/printf
%s\t%s\t%s\t%s|%s\n $1 $2
$return_code $4 $5|
/usr/local/nagios/libexec/send_nsca -H HOST -to 15 -c
/usr/local/nagios/etc/send_nsca.cfg









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Mike Koponick
Sent: Tuesday, May 02, 2006 2:50
PM
To:
nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users]
Perfomance Data via NDO?

I
might be closer to answer my own question, but I think this is a
submit_check_result issue, rather than NDO issue. Looking through
the NDO source code, I see where it has the ability to write to the perfdata
column. I think the problem lies within the submit_check_results
command. It doesnt really send the performance data, but rather drops
it.



Here is my output:



./check_snmp_int -H
10.1.1.1 -C public -n -f

em1:UP, em0:UP, exp0:UP:3
UP: OK

|
'em1_in_octet'=381357882c 'em1_out_octet'=1161492429c 'em0_in_octet'=1464302566c
'em0_out_octet'=550763402c 'exp0_in_octet'=70379851c 'exp0_out_octet'=56255289c



I think it has to do with
the single quotes and the | (pipe) . I by far am no programmer. 



My submit_check_result is
the typical one that comes with Nagios.



Here it is:



#!/bin/sh



# Arguments:

# $1 = host_name (Short
name of host that the service is

# associated with)

# $2 = svc_description
(Description of the service)

# $3 = state_string (A
string representing the status of

# the given service -
OK, WARNING, CRITICAL

# or UNKNOWN)

# $4 = plugin_output (A
text string that should be used

# as the plugin output
for the service checks)

#



# Convert the state
string to the corresponding return code

return_code=-1




case $3 in


OK)


return_code=0

;;


WARNING)


return_code=1

;;


CRITICAL)


return_code=2

;;


UNKNOWN)


return_code=3

;;


esac



/usr/bin/printf %s\t%s\t%s\t%s\n
$1 $2 $return_code $4 |
/usr/local/nagios/libexec/send_nsca -H HOST -to 15 -c
/usr/local/nagios/etc/send_nsca.cfg



Thoughts?



Mike



-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Mike Koponick
Sent: Tuesday, May 02, 2006 10:41
AM
To:
nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Perfomance
Data via NDO?



Hello Everyone,

For some odd reason, I have it in my head that you
can write performance data into the NDO tables via a service check command. I have looked at PerfParse,
but quite frankly, adding on, yet another add-on seems like more work than it
should be. Im looking for bandwidth utilization type performance,
uptime, interface errors, etc. I would like to write that the perfdata column
for the ndo_servicestatus table.

I can use the check_snmp check for the interface
errors, and write the data. But I wonder if thats the correct direction.


Am I off base here, or do I need another cup of
coffee?

Thanks in advance,

Mike








[Nagios-users] Perfomance Data via NDO?

2006-05-02 Thread Mike Koponick
Title: Perfomance Data via NDO?






Hello Everyone,

For some odd reason, I have it in my head that you can write performance data into the NDO tables via a service check command. I have looked at PerfParse, but quite frankly, adding on, yet another add-on seems like more work than it should be. Im looking for bandwidth utilization type performance, uptime, interface errors, etc. I would like to write that the perfdata column for the ndo_servicestatus table.

I can use the check_snmp check for the interface errors, and write the data. But I wonder if thats the correct direction. 

Am I off base here, or do I need another cup of coffee?

Thanks in advance,

Mike






[Nagios-users] NDO - Notifications

2006-04-21 Thread Mike Koponick
Hello Everyone,

I was wondering I currently have Nagios configured to notify me after it
has seen a problem twice, which means I have the retry value set to two.
This works fine for me since I don't want to get notified if there is
some sort of anomaly on the network.

My issue is that Nagios is writing to the MySQL NDO tables. When I query
the table for the current status, I see Critical for a particular
host/service, but it appears to be seeing the FIRST attempt which is
where I don't get notified, which is OK. I'm almost OK with living with
it but would like NOT to see the Critical messages in NDO. Is there a
configuration option that I am missing?


Thanks in advance,

Mike


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
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] performance data reporting

2006-03-21 Thread Mike Koponick
Florian,

I have this working in my environment.

I followed the instructions that came with NDO, and it was pretty
straight forward. I had it up and running within a few minutes.

Mike

-Original Message-
From: Florian Gleixner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 7:13 AM
To: Mike Koponick
Cc: Nagios Users Mailing List
Subject: Re: [Nagios-users] performance data reporting

Mike Koponick wrote:
 Florian,
 
 I understand that perfparse stores it in a database, but I really
don't
 want to maintain two databases, and/or yet another set of tables. It
 seems to me that you should be able to get performance data into the
NDO
 tables and calculate from there.
 
 Mike

While trying to find out something more about NDO i found that this is a
very good hidden feature. In fact i'm still unsure what i have to do to
get NDO working - what nagios version, what configure option,what
configuration settings, what mysql database?

Flo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] performance data reporting

2006-03-20 Thread Mike Koponick
Terry,

I know for me, I would like to see something like an output of MRTG. I
know I can integrate MRTG in some forms, but I would like to pull
directly from the MySQL tables/columns, rather than using something like
RRDTool, as I can get a better (longer) history using the MySQL
database. This would make the distributed model work very well.

If I look at the NDO tables, I see that there is a table called,
NDO_SERVICECHECKS. It has few columns that I am using already, but I
would like to have data in the Perfdata column. It could be that I am
missing something here (It's not the first time ;-)) but I would think
something like Perfparse would store data in this area, unless Nagios
already has something that will put performance data in that area.

PHP could generate graphs fairly easy, although I have not done much
work like this myself; sample code is available in many places.

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Terry
Sent: Sunday, March 19, 2006 11:58 AM
To: Nagios Users Mailing List
Subject: Re: [Nagios-users] performance data reporting

moshe sharon wrote:
 Hello
  
 i can recommend excellent tool called nagiosgraph. its pretty simple 
 to setup. and it can be expanded to to mysql logging.
 url: http://sourceforge.net/projects/nagiosgraph/
 Hope it Helped
 Moshe Sharon
Graphs are pretty good but what other formats are people looking for?  
Interesting discussion.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] The best way to test notifications

2006-03-14 Thread Mike Koponick








Hello all!



I have a need to test notifications on a monthly basis. We
have sections of our network that are very quiet; thusly we do not see any
alerts from these sites. The way I have been testing notification is shutting
down Nagios at the remote end and waiting for the notifications to start/end.



It seems crude to me to perform this function in order to
get a test notification. Anyone have any suggestions or ideas? Is
this something that could be in 3.0? 



Thanks in advance,



Mike










RE: [Nagios-users] Check_Log - SOLUTION

2006-03-05 Thread Mike Koponick
All,

Thanks for all the help/information regarding this subject.

I have found a solution that works in this case.

The problem is that the % is a directive for printf. Since the % was
in the string, printf thinks it should be a directive.

Since I had no need for the % in the output string, I removed it.

I changed the check_log script with the following:

OLD:
$ECHO ($count) $lastentry 

NEW:
$ECHO ($count) $lastentry | /bin/sed 's/%//'

I'm sure there is probably a more efficient way of doing this, but it
was a quick fix for me.

Thanks!

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Koponick
Sent: Saturday, March 04, 2006 7:59 AM
To: James Turnbull
Cc: Nagios Users
Subject: RE: [Nagios-users] Check_Log

Sure.

Here is the service check command:

define  service {
use Sensor-Log
hostgroup_name  Firewalls
service_description Check_Log
check_command
check_log!/var/log/messages!/usr/local/nagios/var/PIX-Deny.log!Deny
register1
}

Here is the template that I am using:

define service{

nameSensor-Log
is_volatile 0
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
passive_checks_enabled  0
active_checks_enabled   1
check_period24x7
parallelize_check   1
obsess_over_service 1
check_freshness 0
event_handler_enabled   0
flap_detection_enabled  0
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
contact_groups  Support
notification_interval   0
notification_period 24x7
notification_optionsw,c
notifications_enabled   0
register0   
}

Here is my check command:

define  command {
command_namecheck_log
command_line$USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$


Thanks!

Mike


-Original Message-
From: James Turnbull [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 6:33 PM
To: Mike Koponick
Cc: Nagios Users
Subject: Re: [Nagios-users] Check_Log

Mike Koponick wrote:

 I wanted to say thanks to all who responded to my question regarding 
 parsing syslog files.

  

 Thanks!

  

 But, I was wondering about check_log. It seems that it would work for 
 my environment. However I see that I have run into a snag of sorts.

  

Can you post the command/etc you are using check_log in to parse the
log?

Regards

James Turnbull

-- 
James Turnbull [EMAIL PROTECTED]
---
Author of Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)

Hardening Linux
(http://www.amazon.com/gp/product/159059/)
---
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x0C42DF40)




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] Check_Log

2006-03-04 Thread Mike Koponick
Sure.

Here is the service check command:

define  service {
use Sensor-Log
hostgroup_name  Firewalls
service_description Check_Log
check_command
check_log!/var/log/messages!/usr/local/nagios/var/PIX-Deny.log!Deny
register1
}

Here is the template that I am using:

define service{

nameSensor-Log
is_volatile 0
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
passive_checks_enabled  0
active_checks_enabled   1
check_period24x7
parallelize_check   1
obsess_over_service 1
check_freshness 0
event_handler_enabled   0
flap_detection_enabled  0
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
contact_groups  Support
notification_interval   0
notification_period 24x7
notification_optionsw,c
notifications_enabled   0
register0   
}

Here is my check command:

define  command {
command_namecheck_log
command_line$USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$


Thanks!

Mike


-Original Message-
From: James Turnbull [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 6:33 PM
To: Mike Koponick
Cc: Nagios Users
Subject: Re: [Nagios-users] Check_Log

Mike Koponick wrote:

 I wanted to say thanks to all who responded to my question regarding 
 parsing syslog files.

  

 Thanks!

  

 But, I was wondering about check_log. It seems that it would work for 
 my environment. However I see that I have run into a snag of sorts.

  

Can you post the command/etc you are using check_log in to parse the
log?

Regards

James Turnbull

-- 
James Turnbull [EMAIL PROTECTED]
---
Author of Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)

Hardening Linux
(http://www.amazon.com/gp/product/159059/)
---
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x0C42DF40)




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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] Check_Log

2006-03-03 Thread Mike Koponick








I wanted to say thanks to all who responded to my question
regarding parsing syslog files.



Thanks!



But, I was wondering about check_log. It seems that it would
work for my environment. However I see that I have run into a snag of sorts.



Im parsing out Cisco PIX logs, and was able to parse
out Deny type logs successfully. However, Im only getting
part of the syslog message.



Here is what I receive in MySQL:



(36)
Mar 3 14:22:11 secure-primary
Mar 03 2006 14:59:44:



If I look at the Nagios log (External Commands) I also see
the chopped line, so it appears to be occurring during the
parsing process.



Here is the syslog entry:



Mar 3 14:22:11 secure-primary Mar 03 2006 14:59:44:
%PIX-4-106023: Deny udp src inside:10.xxx.xxx.xxx/12346 dst EXTRANET:192.168.xx.xx/12345
by access-group inside



It appears to be failing at the % on the syslog
entry. 



Thanks in advance,



Mike










[Nagios-users] Syslog - Nagios?

2006-03-01 Thread Mike Koponick








I would like to send Syslog information from a remote Nagios
sensor to the Central Server via NSCA, since its already in place.



Im trying to see if there is a feasible way to parse
out the information I need, using something like SWATCH and send it to the
Central Server, who should be able to send it to a MySQL server. 



I was thinking that I might be able to write the parsed out
information to the Nagios command file, but I dont think that would
work. My thinking is that if it was written to the Nagios command file that I
would be able to send it the parsed out information via the Nagios process, but
I might be WAY off base.



Has anyone ever done anything like this before?



Thanks in advance,



Mike








[Nagios-users] Check_snmp_int.pl

2006-02-16 Thread Mike Koponick








Im using check_snmp_int.pl to check on interfaces on
switches/routers, but cant seem to have it look at a single interface. I
think this is a / issue, but am not sure.



When use the command:



./check_snmp_int -H 10.xx.xx.xx -C community -n
GigabitEthernet0/1



I receive the following:



GigabitEthernet0/1:UP, GigabitEthernet0/12:DOWN,
GigabitEthernet0/10:UP, GigabitEthernet0/11:DOWN: 2 int NOK : CRITICA



I only wish to see one interface, rather than all of them as
some are not in use and *should* be
down.



Thoughts? Maybe its time for more coffee?



Thanks!



Mike










RE: [Nagios-users] Check_snmp_int.pl

2006-02-16 Thread Mike Koponick









Dennis,



Thanks for the tip. That worked! 



I suppose its time to dive into
Perl ;-)



Thanks!



Mike







-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Hopp
Sent: Thursday, February 16, 2006
9:33 AM
To: Mike Koponick; Nagios Users
Subject: RE: [Nagios-users]
Check_snmp_int.pl



Try:



./check_snmp_int -H 10.xx.xx.xx -C
community -n GigabitEthernet0/1$



--Dennis











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Koponick
Sent: Thursday, February 16, 2006
11:18 AM
To: Nagios Users
Subject: [Nagios-users]
Check_snmp_int.pl

Im using check_snmp_int.pl to
check on interfaces on switches/routers, but cant seem to have it look
at a single interface. I think this is a / issue, but am not
sure.



When use the command:



./check_snmp_int -H 10.xx.xx.xx -C
community -n GigabitEthernet0/1



I receive the following:



GigabitEthernet0/1:UP, GigabitEthernet0/12:DOWN,
GigabitEthernet0/10:UP, GigabitEthernet0/11:DOWN: 2 int NOK : CRITICA



I only wish to see one interface,
rather than all of them as some are not in use and *should* be down.



Thoughts? Maybe its time for
more coffee?



Thanks!



Mike












[Nagios-users] Nagios Hang?

2006-02-15 Thread Mike Koponick










Im running Nagios 2.0 (Stable) on Redhat 9.0, in a distributed
environment. Im utilizing NSCA for checks and all appears to be working
properly.



Im running into several issues that seemed to have started
all of a sudden.



1)
On my distributed server, I dont see syslog
messages any longer, with the exception of INITIAL SERVICE STATE
messages. Syslog is working, and in the nagios.cfg file, nagios.cfg:use_syslog=1
I used to see all the check messages, etc. Nothing in the configuration has changed
to the best of my knowledge. 



2)
Nagios appears to hang on the remote
sensor. Once I receive notifications that network devices are down, I never see
a recovery of the network devices, even though they are recovered. The work
around is to restart nagios with service nagios restart.
Sometimes, this takes multiple tries. 



3)
When I have a massive network outage, I receive the
appropriate alerts but I receive multiple PROBLEM notifications. Im
only using service checks (Im only using check_ping currently) and the notification_interval
set to 0, which according to the documentation should limit the amount
of messages Im receiving to 1, unless Im using the
service escalations, which I am not at this time. I am not receiving multiple
notifications for OK messages, which is what I would expect.





Sorry about the novel but these have frustrated me into drinking
lots of beer.



Mike










RE: [Nagios-users] Nagios Hang?

2006-02-15 Thread Mike Koponick








I thought of something else, something that
HAS changed. Im now using NSCA across a firewall. Could this be the problem
for #2?



Thanks!



Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Koponick
Sent: Wednesday,
 February 15, 2006 8:10 AM
To: Nagios Users
Subject: [Nagios-users] Nagios
Hang?





Im running Nagios 2.0
(Stable) on Redhat 9.0, in a distributed environment. Im utilizing NSCA
for checks and all appears to be working properly.



Im running into several
issues that seemed to have started all of a sudden.



1) On my
distributed server, I dont see syslog messages any longer, with the
exception of INITIAL SERVICE STATE
messages. Syslog is working, and in the nagios.cfg file,
nagios.cfg:use_syslog=1 I used to see all the check messages,
etc. Nothing in the configuration has changed to the best of my knowledge. 



2) Nagios
appears to hang on the remote sensor. Once I receive
notifications that network devices are down, I never see a recovery of the
network devices, even though they are recovered. The work around is to restart
nagios with service nagios restart. Sometimes, this takes
multiple tries. 



3) When I have
a massive network outage, I receive the appropriate alerts but I receive
multiple PROBLEM notifications. Im only using service checks
(Im only using check_ping currently) and the notification_interval set
to 0, which according to the documentation should limit the
amount of messages Im receiving to 1, unless Im
using the service escalations, which I am not at this time. I am not receiving
multiple notifications for OK messages, which is what I would
expect.





Sorry about the novel but these have
frustrated me into drinking lots of beer.



Mike










RE: [Nagios-users] Nagios Hang?

2006-02-15 Thread Mike Koponick
Marc,

Thanks for the is_volatile tip. 

As for the NSCA, I found further information:

Feb 15 08:01:26 cmi-console nagios: Warning: OCSP command
'/usr/local/nagios/libexec/submit_check_result PHM.2950.110.5
'check_ping' 'OK' 'PING OK - Packet loss = 0%, RTA = 6.81 ms' ''' for
service 'check_ping' on host 'PHM.2950.110.5' timed out after 5 seconds

Feb 15 08:10:09 cmi-console nagios: Warning: OCSP command
'/usr/local/nagios/libexec/submit_check_result 2950-135 'check_ping'
'OK' 'PING OK - Packet loss = 0%, RTA = 3.43 ms' ''' for service
'check_ping' on host '2950-135' timed out after 5 seconds

Feb 15 08:12:36 cmi-console nagios: Warning: OCSP command
'/usr/local/nagios/libexec/submit_check_result 2950-34 'check_ping' 'OK'
'PING OK - Packet loss = 0%, RTA = 1.50 ms' ''' for service 'check_ping'
on host '2950-34' timed out after 5 seconds


This has the appearance that send_nsca is getting timed out. I don't see
the connection ending up on the remote side.

I wonder if this some type of weird NAT issue going on between the two
firewalls. Although, I do see other NSCA traffic working just fine from
the same server.

Thanks!

Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Wednesday, February 15, 2006 8:51 AM
To: Nagios Users
Subject: RE: [Nagios-users] Nagios Hang?



 -Original Message-
 From: Mike Koponick [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 15, 2006 10:33 AM
 To: Marc Powell; Nagios Users
 Subject: RE: [Nagios-users] Nagios Hang?
 

[chop]

 Here are a couple of samples of my hosts/services from the sensor:
 

[chop]

 define  service {
 hostgroup_name  Company_Switches
 service_description check_ping
 is_volatile 1
 check_command   check_ping!150.0,20%!200.0,60%

[chop]

 


 
 
 
 Hosts/Services from the Central Server:

[chop]

 
 define  service {
 hostgroup_name  Company_Switches
 service_description check_ping
 is_volatile 1
 check_command   check_stale
[chop]

You normally do not want to use 'is_volatile' for passive service
checks. They should only be used for services that automatically reset
themselves to an OK state after being checked and you wish to be
notified _every_ time they're checked and not OK. This would account for
your multiple notifications.

 http://nagios.sourceforge.net/docs/2_0/volatileservices.html

Volatile services differ from normal services in three important ways.
Each time they are checked when they are in a hard non-OK state, and the
check returns a non-OK state (i.e. no state change has occurred)...

* the non-OK service state is logged
* contacts are notified about the problem (if that's what should be
done)
* the event handler for the service is run (if one has been defined)


These events normally only occur for services when they are in a non-OK
state and a hard state change has just occurred. In other words, they
only happen the first time that a service goes into a non-OK state. If
future checks of the service result in the same non-OK state, no hard
state change occurs and none of the events mentioned take place again.  

--
Marc


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
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] Network Mapping Software

2006-02-14 Thread Mike Koponick








Sorry if this a little off topic



I was wondering if anyone knew of a network mapping tool. OpenSource
is best, of course. I would like to integrate this into a MySQL/PHP/Nagios environment.



Thanks in advance,



Mike










RE: [Nagios-users] Nagios 2 with MySql support

2006-02-09 Thread Mike Koponick








Roberto,



I have been using the NDOUTILS that is
posted on the Nagios site. It works well, although some of the tables (columns)
are incomplete. 



What I did for configuration is used my
own tables (for now) and I use the NDO tables for the status/performance data.
We use our own PHP interface so it works rather well. As soon as thing firm up
in Nagios 3.0, I plan to migrate my system to the new tables for consistency reasons.



I did a quick GOOGLE search and found
NDOUTILS here:



http://sourceforge.net/project/showfiles.php?group_id=26589



Thanks!



Mike





-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roberto Raffo
Sent: Thursday,
 February 09, 2006 9:20 AM
To:
nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios 2
with MySql support



Hi
all. 

In this version of Nagios 2 on the documentation is written: 
*** 
Native DB Support Dropped - Native support for storing various types of data
(status, retention, 
comment, downtime, etc.) in MySQL and PostgreSQL has been dropped. Stop
whining. I expect 
someone will develop an alternative using the new event broker sometime in the
near future. 
Besides, DB support was not well implemented and dropping native DB support
will make things 
easier for newbies to understand (one less thing to figure out). 
*** 

I'm quite new to Nagios but I know that in the last version (1.x) the
integration with MySql was quite easy. 

Have someone an idea to integrate MySql with Nagios 2.x? 
Have someone a good doc? 

I found only:



http://sourceforge.net/projects/nagios-db



Any other ideas?


Thanks a lot...








[Nagios-users] Send_NSCA - Segmentation Fault

2006-02-09 Thread Mike Koponick








I looked around (and maybe I missed it) for the following
issue:



1)
I have configured NSCA for XINETD on my central
server without encryption.

2)
I have configured SEND_NSCA on my remote sensor also,
without encryption.



All of this works without a hitch. Luckily, all of the
equipment is in a lab environment. Im ready to deploy a server to a real
remote site so I wanted to encrypt the traffic, so I configured BOTH the NSCA
server and Send_NSCA for 3DES encryption. I restarted XINETD on the server.
Now, when I send data from the remote server I see a Segmentation Fault
and of course no data is sent through.



All applications compiled without any warnings and appear to
be executing fine with the exception of the encryption portion.



Any ideas?



Thanks in advance,



Mike










RE: [Nagios-users] Send_NSCA - Segmentation Fault

2006-02-09 Thread Mike Koponick








I failed to mention that Im using
NSCA 2.5.



Thanks!



Mike



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Koponick
Sent: Thursday, February 09, 2006
3:45 PM
To:
nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Send_NSCA
- Segmentation Fault



I looked around (and maybe I missed
it) for the following issue:



1) I have
configured NSCA for XINETD on my central server without encryption.

2) I have
configured SEND_NSCA on my remote sensor also, without encryption.



All of this works without a hitch.
Luckily, all of the equipment is in a lab environment. Im ready to
deploy a server to a real remote site so I wanted to encrypt the traffic, so I
configured BOTH the NSCA server and Send_NSCA for 3DES encryption. I restarted
XINETD on the server. Now, when I send data from the remote server I see a
Segmentation Fault and of course no data is sent through.



All applications compiled without
any warnings and appear to be executing fine with the exception of the
encryption portion.



Any ideas?



Thanks in advance,



Mike










RE: [Nagios-users] Send_NSCA - Segmentation Fault

2006-02-09 Thread Mike Koponick

Das arbeitete groß!
Danke sehr viel!


Mike


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Holger Weiss
Sent: Thursday, February 09, 2006 4:03 PM
To: Nagios Users
Subject: Re: [Nagios-users] Send_NSCA - Segmentation Fault

* Mike Koponick [EMAIL PROTECTED] [2006-02-09 15:44]:
 All of this works without a hitch. Luckily, all of the equipment is in a
 lab environment. I'm ready to deploy a server to a real remote site so I
 wanted to encrypt the traffic, so I configured BOTH the NSCA server and
 Send_NSCA for 3DES encryption. I restarted XINETD on the server. Now,
 when I send data from the remote server I see a Segmentation Fault and
 of course no data is sent through.

This is a known bug in the NSCA 2.5 release[*], it's fixed in CVS:

http://nagios.sourceforge.net/download/cvs/nsca-cvs.tar.gz

Holger

[*] http://thread.gmane.org/gmane.network.nagios.devel/2412

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
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] Immediate Check of service?

2006-02-08 Thread Mike Koponick
Hello All,

I think this subject has been around the block a few times, but I'm
still confused.

I have a distributed model working in a lab environment but I see the
following message on the Central Server.

nagios: Warning: The results of service 'check_ping' on host
'Company-A-Switch-21' are stale by 60 seconds (threshold=420 seconds).
I'm forcing an immediate check of the service.


I currently am only using service checks, since (I think) it make sense
for the environment that I will be using the distributed model. Host
checks are disabled.

I don't mind that fact that it comes up stale, but why force an
immediate check of the service? Is there a way to turn this office since
I'm in Passive Mode anyway?

The situation would be that the Central Server does not have direct
access to the remote network, but only receives data from each remote
sensor. 

Thanks in advance,

Mike




Here is a snippet from my services configuration from the Central
Server:




define  service {
host_name   Company-A-Switch-21
service_description check_ping
is_volatile 1
check_command   check-host-alive
max_check_attempts  1
normal_check_interval   2
retry_check_interval1
active_checks_enabled   0
passive_checks_enabled  1
check_period24x7
parallelize_check   1
obsess_over_service 1
check_freshness 1
freshness_threshold 420
event_handler_enabled   1
low_flap_threshold  0
high_flap_threshold 0
flap_detection_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
contact_groups  Support
notification_interval   0
notification_period 24x7
notification_optionsw,u,c,r
notifications_enabled   1
register1
}




Here is a snippet from my services configuration from the remote sensor:




define  service {
host_name   Company-A-Switch-21
service_description check_ping
is_volatile 0
check_command   check_ping!100.0,20%!500.0,60%
max_check_attempts  2
normal_check_interval   2
retry_check_interval1
active_checks_enabled   1
passive_checks_enabled  0
check_period24x7
parallelize_check   0
obsess_over_service 1
check_freshness 0
event_handler_enabled   0
flap_detection_enabled  1
process_perf_data   0
retain_status_information   1
retain_nonstatus_information1
contact_groups  Support
notification_interval   99
notification_period 24x7
notification_optionsw,u,c,r,f
notifications_enabled   0
register1
}





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
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] Check_snmp_int Plugin

2006-02-08 Thread Mike Koponick
I was wondering before I started coding, if anyone has written a plugin
similar to check_snmp_int that will also retrieve the description that a
user can enter for various interfaces? 

I have an OID, (1.3.6.1.2.1.31.1.1.1.18) which will retrieve what I
want, however I didn't want to go through all the trouble of writing a
new plugin until I exhausted all other resources.

Thanks in advance,

Mike




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
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] NDOUTILS - Database Dictionary/Map

2006-02-01 Thread Mike Koponick








Hello,



Im writing a PHP interface for Nagios using the
tables (MySQL) from the NDOUtility. The data that is inserted by this utility
works very well, but I was wondering if anyone had a definition listing for the
tables/columns that the NDO2DB has.



Thanks in advance,



Mike












RE: [Nagios-users] Submit passive check result for a service sending out duplicate alert mails?

2006-02-01 Thread Mike Koponick








Karan,



If this is a distributed monitoring setup,
you will need to turn off notifications on the sensor at that is
doing the checking. Notifications should be turned on the central server where Nagios/NSCA
is accepting the checks.



Thanks!



Mike



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karan uk
Sent: Wednesday, February 01, 2006
2:50 AM
To: Nagios-Users (E-mail)
Subject: [Nagios-users] Submit
passive check result for a service sending out duplicate alert mails?



Hi, 
I've got Nagios-1.3 installed on rh7.3.The nagios.cfg i'm using is as
below.Rest cfg files are as per the docs. 
_
log_file=/usr/local/nagios/var/nagios.log 
cfg_file=/usr/local/nagios/etc/checkcommands.cfg 
cfg_file=/usr/local/nagios/etc/misccommands.cfg 
cfg_file=/usr/local/nagios/etc/contactgroups.cfg 
cfg_file=/usr/local/nagios/etc/contacts.cfg 
cfg_file=/usr/local/nagios/etc/hostgroups.cfg 
cfg_file=/usr/local/nagios/etc/hosts.cfg 
cfg_file=/usr/local/nagios/etc/services.cfg 
cfg_file=/usr/local/nagios/etc/timeperiods.cfg 
illegal_macro_output_chars=`~$|' 
resource_file=/usr/local/nagios/etc/resource.cfg 
nagios_user=root 
nagios_group=nagios 
check_external_commands=1 
command_check_interval=-1 
command_file=/usr/local/nagios/var/rw/nagios.cmd 
use_syslog=1 
log_notifications=1 
log_service_retries=1 
log_host_retries=1 
log_event_handlers=1ocal/nagios/etc/resource.cfg 
log_initial_states=1mesh/nagios-logs/status.log 
log_external_commands=1 
service_reaper_frequency=10 
sleep_time=1 
service_check_timeout=60 
host_check_timeout=30 
event_handler_timeout=30 
notification_timeout=30 
ocsp_timeout=5 
perfdata_timeout=5 
use_agressive_host_checking=0 
execute_service_checks=1 
accept_passive_service_checks=1 
enable_notifications=1 
enable_event_handlers=1 
process_performance_data=0 
illegal_object_name_chars=`~!$%^*|'?,()= 
retain_state_information=1 
state_retention_file=/usr/local/nagios/var/status.sav 
retention_update_interval=60 
use_retained_program_state=1 
interval_length=60 
[EMAIL PROTECTED] 
__
The issue i'm facing is that when an external command is run like
Submitting a passive check for a service i receive two email alerts
rather that just one. 
I've checked the no.of entries of this external command made in the nagios.cmd
n found that just one entry is made per external command,is something
likediv class='indent'[1138685516]
PROCESS_SERVICE_CHECK_RESULT;nkaranuk;GENERIC_DB_CONNECTION;2;submitting a
passive check manually/div.So is this a normal behavior or i'm missing
some key configuration that is causing these duplicate alerts. 

ran 'ps axuw | grep nagios' ..got only single nagios process as below 
root 1105 0.0 0.0 1816 840 pts/0 S 22:07 0:00
/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg

looking forward to your thoughts, 
nkaranUk 








RE: [Nagios-users] You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-01 Thread Mike Koponick
Bob,

This appears to be a permissions problem. It sounds as if you have nagios as a 
member of the apache group, but are you running nagios as nagios (user/group) 
Is Apache running as apache.

You may also want to check the directories/files to ensure they are a part of 
correct group/ownership. I know this may sound simple, but it has bitten me 
more than once.

Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob DeBolt
Sent: Wednesday, February 01, 2006 9:34 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] You don't have permission to access /nagios/cgi-bin/ on 
this server

Greets

CentOS 4.2 up to date.
SELinux is disabled
2GHz -512MB P4

Nagios installed from RPM Dag Wieers site,

nagios-2.0-0.rc2.2.el4.test.i386.rpm  
nagios-plugins-1.4.1-1.2.el4.rf.i386.rpm     

Web pages work fine, docs are all good. Web Interface login works fine.

Now the problem.

You don't have permission to access /nagios/cgi-bin/ on this server

I have googled for  few hours, lots of hits but no success, reread docs, tried 
numerous permission combos on the cgi directory which is /usr/lib/nagios/cgi 
in the RPM install. Made sure apache user is part of the nagios group and on 
and on.

Here is a tail of my web server error_log after wildly clicking the refresh 
button. Of course the log is the same using the CLI GET

Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:54 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] attempt to invoke 
directory as script: /usr/lib/nagios/cgi/
[Wed Feb 01 08:45:55 2006] [error] [client 192.168.1.77] File does not 
exist: /var/www/html/favicon.ico

Ideas?

Bob


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
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