[Nagios-users] Regarding Nagios

2007-12-11 Thread Sunny Bhatheja
Hello,
   My self Sunny Bhatheja. From Last 2 months i m working with
nagios in different enviourments.I did many projects with
nagios. So i would like to share my work that i did that can
help the people to understand the nagios, installation and
configuration and monitoring the linux , windows and sun
system. I created a document i will upload on net after few
days and i give the links on nagios list.






Warm Regards
Sunny Bhatheja
+91-9911849409

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] HOWTO I wrote on installing NRPE from RPMs

2007-12-11 Thread Roger
For what it's worth, here is a HOWTO I made for some of the people I'm
currently working with on how to install NRPE on a slew of RHEL-ish systems
we currently have in production (Fedora, RHEL, CentOS).
http://nagioswiki.com/wiki/index.php/Installing_NPRE_via_RPM

Hopefully this helps others who are in the same boat.
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] AIX log monitoring with check_log

2007-12-11 Thread Roger
On Dec 11, 2007 5:43 PM, Russell Adams <[EMAIL PROTECTED]> wrote:

> Roger,
>
> I have an ODM snippet I use which logs the errpt data into
> syslog. Then your syslog monitoring software (not necessarily Nagios)
> can pick it up.


Wow, that is right up my alley.  I know very little about AIX and am getting
used to their funky way of doing logs!


> AIX's ODM has the ability to call scripts or commands in response to
> error log entries, if you want to differentiate.
>
> If you'd find it useful, I'd be happy to post it here.


Yes, please do!  Thanks again,
Roger
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] AIX log monitoring with check_log

2007-12-11 Thread Roger
On Dec 11, 2007 4:03 PM, Brian A. Seklecki <[EMAIL PROTECTED]>
wrote:

> Why don't you post us some examples?  We'll throw some ideas out.
>

For example, when the AIX cluster goes from active/passive ->
passive/active, then it writes an event to the log. Not sure what that event
is, but I'll soon look for it and monitor for it.

AIX also has stuff in its error reporting program (errpt), so I can cron
that to a log file and periodically check that for adapter errors or
whatever. Hopefully I'll have something cool to share with the group in a
few days
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] AIX log monitoring with check_log

2007-12-11 Thread Russell Adams
Roger,

I have an ODM snippet I use which logs the errpt data into
syslog. Then your syslog monitoring software (not necessarily Nagios)
can pick it up.

AIX's ODM has the ability to call scripts or commands in response to
error log entries, if you want to differentiate.

If you'd find it useful, I'd be happy to post it here.

Thanks.

On Tue, Dec 11, 2007 at 01:49:59PM -0800, Roger wrote:
> I'm looking for other AIX log monitoring recipes and am hoping someone here
> might be able to point me in the right direction. I see (sorta) how AIX
> creates logs and am wondering if anyone here has specific AIX-ish queries
> that they run with Nagios' check_log plugin.

> -
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> 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
--
Russell Adams[EMAIL PROTECTED]

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] AIX log monitoring with check_log

2007-12-11 Thread Brian A. Seklecki

On Tue, 2007-12-11 at 13:49 -0800, Roger wrote:
> I'm looking for other AIX log monitoring recipes and am hoping someone
> here might be able to point me in the right direction. I see (sorta)

Why don't you post us some examples?  We'll throw some ideas out.  

~BAS

>  how AIX creates logs and am wondering if anyone here has specific
> AIX-ish queries that they run with Nagios' check_log plugin. 


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] AIX log monitoring with check_log

2007-12-11 Thread Roger
I'm looking for other AIX log monitoring recipes and am hoping someone here
might be able to point me in the right direction. I see (sorta) how AIX
creates logs and am wondering if anyone here has specific AIX-ish queries
that they run with Nagios' check_log plugin.
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] CN=Jason Ellmers/OU=FirstInfo/O=FirstGroup is out of the office.

2007-12-11 Thread Jason Ellmers

I will be Out of the Office
Start Date: 11/12/2007.
End Date: 13/12/2007.


Thank you for your mail.

I am currently away from the office, returning on 13th December

If you need a fault escalating please call the service desk on 0038696
(0870 241 5500) with the case reference and ask for Martina Nicholson who
has overall responsibility for the Service Desk

Dominic Pioli  (Dominic [EMAIL PROTECTED] - 07815756259) will also be
availiable in my absence.
Please use Dominic as an escelation point only.





**
This message is confidential. It may not be disclosed to, or used by, 
anyone other than the addressee. If you receive this message in 
error, please advise us immediately.

Internet email is not necessarily secure. First does not accept
responsibility for changes to any email which occur after the email
has been sent. Attachments to this email could contain software
viruses which could damage your system. First have checked the
attachments for viruses before sending, but you should virus-check
them before opening.

For more information on our range of services or to book your tickets
online, please visit:- http://www.firstgroup.com
**


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Monarch not saving Contact gRoup info.

2007-12-11 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Bigley,Shawn
> Sent: Tuesday, December 11, 2007 11:42 AM
> To: Nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Monarch not saving Contact gRoup info.
> 
> Hi all..
> 
> I was on vacation and when I returned I was the Nagios Admin.
Actually
> enjoying it so far but I have run into an issue.
> 
> I am using Monarch (GroundWork Monitor Architect 2.0) and I created a
new
> Host.  Worked great however when I add a contact group. I can
highlight
> it. I can click Add. It appears in the left hand list of contact
groups on
> the host page. I can click Save. It says it's saved, but when I view
the
> host again, my contact group is back in the right hand "not added"
list of
> contact groups.
> 
> Any thoughts?

You might try monarch-users --
http://sourceforge.net/mail/?group_id=130574. Chances are there's a
higher population of Monarch users there than here and it appears to be
a monarch issue. If you can show that nagios is doing something wrong,
we'd be interested here.

--
Marc


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Monarch not saving Contact gRoup info.

2007-12-11 Thread Bigley,Shawn
Hi all..

I was on vacation and when I returned I was the Nagios Admin.  Actually
enjoying it so far but I have run into an issue.

I am using Monarch (GroundWork Monitor Architect 2.0) and I created a
new Host.  Worked great however when I add a contact group. I can
highlight it. I can click Add. It appears in the left hand list of
contact groups on the host page. I can click Save. It says it's saved,
but when I view the host again, my contact group is back in the right
hand "not added" list of contact groups.

Any thoughts?

Shawn


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Event Handlers on the External Commands

2007-12-11 Thread mark redding
Hi,

On 11/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> For this, I want to write Event Handlers on the External Commands, but I am
> not sure How to go about it ?
> Does somebody has any idea about it ? any sample code will be of great
> help.

These snippet of shell script may be of use (at least to show you how
to send commands to nagios externally).

#!/bin/sh
# post commands to nagios
now=$(date +%s)

echo "[$now] ENABLE_NOTIFICATIONS" > /data/nagios/spool/rw/nagios.cmd
echo "[$now] STOP_EXECUTING_HOST_CHECKS" > /data/nagios/spool/rw/nagios.cmd
echo "[$now] START_EXECUTING_SVC_CHECKS" > /data/nagios/spool/rw/nagios.cmd
echo "[$now] DISABLE_PERFORMANCE_DATA" > /data/nagios/spool/rw/nagios.cmd
echo "[$now] DISABLE_HOST_CHECK;www.site.com" > /data/nagios/spool/rw/nagios.cmd
echo "[$now] DISABLE_SVC_CHECK;web;WEBSITE" > /data/nagios/spool/rw/nagios.cmd


#!/bin/sh
# process an event handler
echo `date` ": called $0 script with $1 $2 $3" >> ~/event.log

case "$1" in
OK)
;;
WARNING)
;;
UNKNOWN)
;;
CRITICAL)
case "$2" in
SOFT)
case "$3" in
1)
ssh -l nagios
webserver sudo /www/bin/apachectl restart
echo `date` ": apache
rebooted" >> ~/event.log
;;
esac
;;
HARD)
case "$3" in
3)
ssh -l nagios
webserver sudo /www/bin/apachectl restart
echo `date` ": apache
rebooted again" >> ~/event.log
;;
esac
;;
esac
esac



-- 
bright blessings,
Mark

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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_perc.pl

2007-12-11 Thread Robert Ferguson


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Ferguson
Sent: Tuesday, December 11, 2007 10:54 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_perc.pl



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of slamp
slamp
Sent: Tuesday, December 04, 2007 10:21 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_perc.pl

anyone using the check_perc plugin and have a fix for the Learning
state of the Battery?

On Sep 14, 2007 7:08 PM, slamp slamp <[EMAIL PROTECTED]> wrote:
> To Matt Stanford.
> We just started to use your script. It doesn't seem to take into
> consideration when state is Learning. It throws a warning like so:
>
> ** Global Storage Alarm WARNING ** PERC Channel is OK: PERC Battery is
> 36: All Disks are OK:
>
> 36 means Learning. I don't know if this needs fixing or not. But it
> seems that this is a non-critical state. We should not be getting an
> alert on it?
>


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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

I am using check_perc and am having a problem.  I can run it from cli
but when I run it from nagios, I get a null response.  I see in the
instructions that I may have to edit use lib line, but I am not sure
what it is looking for.  Any help?

Robert


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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

Well, I am answering my own question it is looking for utils.pm.
Example of "Read the Manual".
I still am having problems though.  I am still reciveing a null
response.  Any suggestions?

Robert

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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_perc.pl

2007-12-11 Thread Robert Ferguson


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of slamp
slamp
Sent: Tuesday, December 04, 2007 10:21 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_perc.pl

anyone using the check_perc plugin and have a fix for the Learning
state of the Battery?

On Sep 14, 2007 7:08 PM, slamp slamp <[EMAIL PROTECTED]> wrote:
> To Matt Stanford.
> We just started to use your script. It doesn't seem to take into
> consideration when state is Learning. It throws a warning like so:
>
> ** Global Storage Alarm WARNING ** PERC Channel is OK: PERC Battery is
> 36: All Disks are OK:
>
> 36 means Learning. I don't know if this needs fixing or not. But it
> seems that this is a non-critical state. We should not be getting an
> alert on it?
>


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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

I am using check_perc and am having a problem.  I can run it from cli
but when I run it from nagios, I get a null response.  I see in the
instructions that I may have to edit use lib line, but I am not sure
what it is looking for.  Any help?

Robert

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Define multiple serves per host(s)

2007-12-11 Thread Andreas Ericsson
Ach. forgot to CC the list. My apologies

 Original Message 
From: - Tue Dec 11 15:33:11 2007
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 11 Dec 2007 15:32:52 +0100
From: Andreas Ericsson <[EMAIL PROTECTED]>
To: Andrei-Florian Staicu <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] Define multiple serves per host(s)
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>

Andrei-Florian Staicu wrote:
> Andreas Ericsson wrote:
>> Make a hostgroup of all your switches and define your service like this:
>>
>> define service{
>> service_description yada yada
>> hostgroup_name  all-the-routers
>> check_command   more yada yada
>> yadaand more yada
>> }
>>
> Yes, but each switch has 24 ports. Since the check_command is different 
> for each port (different oid's), shouldn't there be a service for each 
> port? Or can I avoid this?
> 

You can't avoid that then. What you're asking now doesn't match what you
wanted at first though:

> The actual case here is to monitor the link status on all ports on 
> several identical switches.
> I hope to bypass creating a huge config file from the command prompt.

To monitor the link status of ALL ports wouldn't be terribly difficult.
Just make a script to check all ports on one switch and use that in
your check command definition.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231


-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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 & Perfparse

2007-12-11 Thread kmizole
Hi everyone,

I encounter some problems with perfparse, and after 3 days of googling
I finally decided to post here :)
I hope that someone will have an answer.
The problem is that no information is logged to database :

My server is a CentOS 4.5 with Nagios 2.10, perfparse 0.106.1, Centreon 1.4

These are my config files :



## Perfparse.cfg ##


Server_Port = "1976"
Service_Log = "-"
Service_Log_Position_Mark_Path = "/usr/local/nagios/var/serviceperf.log"
Error_Log = "/usr/local/nagios/var/perfparse.log"
Error_Log_Rotate = "Yes"
Error_Log_Keep_N_Days = "7"
Drop_File = "/tmp/perfparse.drop"
Drop_File_Rotate = "Yes"
Drop_File_Keep_N_Days = "7"
Lock_File = "/usr/local/nagios/var/perfparse.lock"
Show_Status_Bar = "Yes"
Do_Report = "Yes"
Default_user_permissions_Policy = "rw"
Default_user_permissions_Host_groups = "rw"
Default_user_permissions_Summary = "rw"
Output_Log_File = "Yes"
Output_Log_Filename = "/usr/local/nagios/var/perfparse_output_log"
Output_Log_Rotate = "Yes"
Output_Log_Keep_N_Days = "7"
Use_Storage_Socket_Output = "Yes"
Storage_Socket_Output_Host_Name = "127.0.0.1"
Storage_Socket_Output_Port = "1974"
Use_Storage_Mysql = "Yes"
No_Raw_Data = "Yes"
No_Bin_Data = "No"
DB_User = "perfparse"
DB_Pass = "perfparse"
DB_Name = "perfparse"
DB_Host = "127.0.0.1"
Dummy_Hostname = "dummy"
Storage_Modules_Load = "mysql"

##
## Output in perfdata_host.dat ##
##

1197363588  ServeurJBossN3  check_host_alivePING CRITICAL
-  Paquets perdus = 100%  DOWN
1197363598  ServeurJBossN3  check_host_alivePING CRITICAL
-  Paquets perdus = 100%  DOWN
1197363618  ServeurJBossN4  check_host_alivePING CRITICAL
-  Paquets perdus = 100%  DOWN
1197363628  ServeurJBossN4  check_host_alivePING CRITICAL
-  Paquets perdus = 100%  DOWN
1197363638  ServeurJBossN4  check_host_alivePING CRITICAL
-  Paquets perdus = 100%  DOWN
1197363648  ServeurJBossN4  check_host_alivePING CRITICAL
-  Paquets perdus = 100%  DOWN

###
## When I force parsing ##
###

[EMAIL PROTECTED] bin]# /bin/cat /usr/local/nagios/var/perfdata-host.dat
| /usr/local/nagios/bin/perfparse-log2mysql -c
/usr/local/nagios/etc/perfparse.cfg
00:00:00 lu 105 @ 0,0 l/sec.  Met 0 @ 0,00 Met/l.  Rej 105.
+-+   +-+
| Generic statistics  |   | Nb Log Lines :1 |
|   Nb lines parsed : 105 |   | Nb lines dropped :  105 |
|   Start date :   2007-12-11 |   | Elapsed time : 00:00:00 |
|   Start time : 10:02:05 |   | Rate : (line/sec)  0,00 |
+-+   +-+

+-+   +-+
| MySQL storage statistics|   | |
|   New Hosts : 0 |   | Metric/line :  0,00 |
|   New Metrics :   0 |   | Metrics Recorded :0 |
|   New Services :  0 |   | Summary Rec Added :   0 |
|   New Summary Group : 0 |   | SQL Queries :19 |
+-+   +-+

##
## nagios.cfg ##
##

process_performance_data=1
host_perfdata_file=/usr/local/nagios/var/perfdata-host.dat
service_perfdata_file=/usr/local/nagios/var/perfdata-service.dat
host_perfdata_file_template=$TIMET$ $HOSTNAME$
$HOSTCHECKCOMMAND$  $HOSTOUTPUT$$HOSTSTATE$ $HOSTPERFDATA$
service_perfdata_file_template=$TIMET$  $HOSTNAME$  $SERVICEDESC$
 $SERVICEOUTPUT$ $SERVICESTATE$  $SERVICEPERFDATA$
host_perfdata_file_mode=2
service_perfdata_file_mode=2
host_perfdata_file_processing_interval=10
service_perfdata_file_processing_interval=10
host_perfdata_file_processing_command=process2mysql_host_data
service_perfdata_file_processing_command=process2mysql_service_data

##
## commands ##
##

define command{
command_nameprocess2mysql_host_data
command_line/bin/cat
/usr/local/nagios/var/perfdata-host.dat |
/usr/local/nagios/bin/perfparse-log2mysql -c
/usr/local/nagios/etc/perfparse.cfg
}

define command{
command_nameprocess2mysql_service_data
command_line/bin/cat
/usr/local/nagios/var/perfdata-service.dat |
/usr/local/nagios/bin/perfparse-log2mysql -c
/usr/local/nagios/etc/perfparse.cfg
}

##

The output is correct (with tabs, not spaces) but i don't see any
information for $HOSTPERFDATA$ or $SERVICEPERFDATA$
I don't get any logs in /usr/local/nagios/var for perfparse.

If i forgot something let me know :)

If you have some clues thanks in advance for your replies.

Regards,

Sébastien

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy o

Re: [Nagios-users] Define multiple serves per host(s)

2007-12-11 Thread Andreas Ericsson
Andrei-Florian Staicu wrote:
> Hello,
> 
> I saw in the Nagios docs, in the Time-Saving Tricks For Object 
> Definitions page, how to use regular expressions for defining identical 
> services for multiple hosts.
> Is there a "shortcut" for defining similar multiple services for 
> multiple hosts?
> The actual case here is to monitor the link status on all ports on 
> several identical switches.
> I hope to bypass creating a huge config file from the command prompt.
> 

Make a hostgroup of all your switches and define your service like this:

define service{
service_description yada yada
hostgroup_name  all-the-routers
check_command   more yada yada
yadaand more yada
}

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Define multiple serves per host(s)

2007-12-11 Thread Andrei-Florian Staicu
Hello,

I saw in the Nagios docs, in the Time-Saving Tricks For Object 
Definitions page, how to use regular expressions for defining identical 
services for multiple hosts.
Is there a "shortcut" for defining similar multiple services for 
multiple hosts?
The actual case here is to monitor the link status on all ports on 
several identical switches.
I hope to bypass creating a huge config file from the command prompt.

Thanks for any advice


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Event Handlers on the External Commands

2007-12-11 Thread Andreas Ericsson
[EMAIL PROTECTED] wrote:
> I am trying to get the performance data from the remote machines passively
> and want to control the starting and the stopping of the monitoring probes
> from the Nagios Server machine.
> 
> For this, I want to write Event Handlers on the External Commands, but I am
> not sure How to go about it ?
> Does somebody has any idea about it ? any sample code will be of great
> help.
> 

Write it as a NEB-module. An example module can be found in
modules/helloworld.c in the nagios source tarball.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] Event Handlers on the External Commands

2007-12-11 Thread ankit . mehrotra

I am trying to get the performance data from the remote machines passively
and want to control the starting and the stopping of the monitoring probes
from the Nagios Server machine.

For this, I want to write Event Handlers on the External Commands, but I am
not sure How to go about it ?
Does somebody has any idea about it ? any sample code will be of great
help.

Thanks
Ankit

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] sms and emails

2007-12-11 Thread Duncan Ferguson

On 10 Dec 2007, at 21:43, Melanie Pfefer wrote:

> I have nagios alerts sent by email and sms.
>
> I would like to have alerts sent about a host to be
> sent only by e-mail and not sms.
>
> how to do that in nagios?
>

Melanie,

Use two contact definitions per person, one for SMS, one for email  
and set notification options differently for what you want to go via  
each contact.

   Duncs

-- 
Duncan Ferguson
Senior Developer, Altinity Limited

http://www.altinity.com
Tel: +44 (0)870 787 9243
US:  +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: duncan_j_ferguson
MSN: [EMAIL PROTECTED]

The contents of this email and any files transmitted with it are  
confidential and intended solely for the use of the individuals to  
whom it is addressed.
If you are not the intended recipient or have received this e-mail in  
error please notify the sender and delete this e-mail immediately.
Any unauthorised copying, disclosure or distribution of the material  
in this e-mail is strictly prohibited.

Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United  
Kingdom
Registered in England and Wales under company number 4743767


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] restricting unknown user

2007-12-11 Thread Hari Sekhon
Dave wrote:
> arpwatch does something like that, keeps an eye on what mac addresses
> are active using what IP on the local subnet, sends an alert when a
> new mac address appearrs or some change occurs in the pairs of active
> MAC/IP pairs.
>
> Currently there is no integration between arpwatch and nagios.
> arpwatch sends email alerts, maybe outputs to the log or console?
>
> I don't think it is a good fit, since nagios assumes that all the
> hosts it cares about are pre-defined in its config file.
>
>
> On Dec 9, 2007 2:56 AM, sachin kumar <[EMAIL PROTECTED]> wrote:
>   
>> Hi list
>>
>> I want to configure nagios in such a way that if unknown mac-address enters 
>> into network to access resources , that system will be displayed in nagios.I 
>> want to create a list of mac-addresses which are in our network , and link 
>> it with nagios and if any other mac-address (out of this list)connects to 
>> network, it will be displayed in the nagios .
>>
>>
>>
>> - sachin kumar (sachin1361

Although not a complete fit, one thing I do is run a check of all dhcpd 
leases that were handed out by all of my Isc Dhcpd servers using a 
plugin I wrote:

http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1164&tx_netnagext_pi1[page]=20%3A10

This can use whitelists, so you can whitelist your Mac addresses and it 
will raise a critical alert in Nagios if a lease is given out to any non 
recognized Mac. Since spoofing the Mac is obvious, it can also take a 
list of hostnames since this is less obvious to spoof. If you use both, 
chances are that anyone jumping on your network and being issued a dhcp 
lease from dhcpd will trip it and alert you.

It's not a complete solution but is nice from the defense in depth point 
of view of multiple layers. It's also just nice to see at a glance in 
Nagios who has leases on your dhcpd server and the output is fairly 
flexible.


Of course, someone who gets on your network may not use dhcp at all but 
this is just a small piece of the puzzle.

I also use arpwatch which can indeed alert on mac changes or additions, 
or you can use it's logging to alert from a central place...

Arpwatch will not integrate directly into Nagios, but since arpwatch can 
log  to syslog, you could use a nagios log check to alert on any
logged Mac additions.


-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] multiple notifications with differing interval

2007-12-11 Thread Sebastian Benoit

Hi,

i have a question regarding the following setup:

I have Nagios send SMS for host and service alerts to a mobile phone.
Also, I send those notifications to several jabber-users. This works fine.

Now, the requirement is to send the SMS in 15 minute intervals. But I want
to avoid spamming the jabber-users, and send notifications to them only
every hour or so.

I can use host escalations and service escalations to do that, however, i
don't want serviceescalation-definitions for every service. Is that
possible? Is there a way to have an escalation that applies to several
services and hosts at once?

/Benno
-- 
Sebastian Benoit


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] VMWare and Host Parents

2007-12-11 Thread Andreas Ericsson
Matthew Joyce wrote:
> Does anyone have any working strategies for dealing with Host Parents on
> systems where parents may change ?
> 
> I have multiple VMware ESX server and we will be moving guest systems
> between them, thusly the Parent IP will change.
> 

Manually or automatically (when one VMWare host server fails, fe)?
If manually and the guests will then run on that host-server only,
there is no simple way to tell nagios this. It's akin to moving a
server from one room to another. Nagios can't know that parents
have changed unless you tell it to, so you'll have to reconfigure
Nagios when it happens.

>  
> 
> I saw a posting saying to create a virtual host which represents the ESX
> cluster and to use check_summary to test for at least one OK ESX server.
> 
>  
> 
> The check_summary didn't work for me, I wondered if there was another
> way to achieve the same result ?
> 

If it's supposed to happen automatically, you can use check_icmp in
check_host mode, like so:
ln -s check_icmp check_host
./check_host ip1 ip2 ip3 ... ipN

If at least one server responds, it will return ok.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] monitoring UPS

2007-12-11 Thread Andreas Ericsson
Luis Fernando Lacayo wrote:
> Hi Everyone, 
> 

Hi.

This is the second time you've hijacked a thread. Please don't do that
again. It's extremely annoying when one views mailing lists in threaded
mode, not to mention it completely f*cks up the list archives.

> I was wondering if there is anyone out there in NAGIOS land that can
> help me with an snmp issue that I have. 
> 

There sure is. You'll get more help and a better over-all reception if
you follow the simple rules outlined in
http://www.catb.org/~esr/faqs/smart-questions.html though.

> I have to monitor 5 UPSes for our VOIP system.  
> 
> I want to monitor the following:
> 
> when the UPS starts using the battery
> the battery charge Status, and report when it has less than 10% of the
> battery charge. 
> 
> I have the document with the MIBS, but I can not make sense ot tails out
> of it. 
> 

I usually do a simple snmpwalk toward the host in question. That usually
gives a lot more human-parseable output than the mibs ever have. Seeing
something such as "UPSBatteryPctCapacity = INTEGER: 100" makes things
quite readable, imo.

For UPS-specific stuff, google might have some answers.


> Any help will be appreciated. 
> 

I just gave you some. Now it's your turn to do some work and then
report your findings back here.

> thank you 
> 

You're welcome.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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