Re: [Nagios-users] mbstring not loaded error message with nagvis

2009-06-04 Thread Simon Kainz
Hi !

Please try the following:

Create a file test.php with the following content:



Put this somewhere in you html folder, e.g where the nagvis config.php
and index.php reside).

Then acess it via a browser  http:///test.php

You will see a list if php modules. Check if mbstring is shown.


Kaplan, Andrew H. wrote:
> 
> 
> Hi there --
> 
> I went through the motions of installing NagVis 1.4 onto our Nagios
> 3.0.6 server, and when I try
> to access the nagvis page from the server console, the following error
> message appears on-screen:
> 
> the php module "mbstring" is not loaded
> 
> I verified the php-mbstring package was installed by running the yum
> utility. What do I need to
> do in order to get NagVis operational? Thanks.
> 

Please also check if apache was restarted in order to let the php module
notice thate mbstring is available. Eventually restart apache and check
the output if test.php if the module is available.

Regards,

-- 
DI Simon Kainz
Graz, University of Technology
Department Computing
Phone: ++43 (0) 316 / 873 6885



signature.asc
Description: OpenPGP digital signature
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] Host/service Contacts question

2009-06-04 Thread Jon Angliss
On Thu, 4 Jun 2009 10:40:43 -0700, John Andrunas 
wrote:

>If someone is listed as a contact for a host do they also get notified
>of service problems on that host?  If not any recommendations on how
>to handle that using
>http://nagios.sourceforge.net/docs/3_0/objecttricks.html

Assuming the service doesn't have its own contact, or contact_groups,
it'll inherit from the host.  See the section on implied inheritence
at  http://nagios.sourceforge.net/docs/3_0/objectinheritance.html.

If you want to add additional contacts, I believe you can add more
contacts/contact_groups simply using the + in the service definition.

-- 
Jonathan Angliss



--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] random nrpe socket timeout

2009-06-04 Thread Simon Finch


 
>> i have troubles in our infrastructure with nrpe giving critical alerts when the nrpe socket timeout. 
If you add the -u switch to the nrpe_check it will return a status of unknown for the nrpe timeouts instead of critical.
The second thing is to add a check on nrpe itself and then setup all of the checks that are run by nrpe as dependancies of the nrpe check.
This will stop all of the remote checks from generating critical alerts if the nrpe check times out.
 
HTH,
 
 

Simon Finch | ESM Specialist
Ground Floor, 4-16 Montgomery St, Kogarah NSW 2217
(+61 2 9952 2574 7 +61 412 256 814
Email: fin...@stgeorge.com.auwww.stgeorge.com.au__St.George Bank IT - Good with people. Good with monitoring.


binNpo58l2F1I.bin
Description: applicaton/octect-stream
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] disk warning messages

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 4:01 PM, Jeremiah Jester wrote:

> Hello,
>
> I'm trying to configure nagios to include the disk full percentage  
> in the subject line of the email notification. For example. Subject:  
> [Nagios] CRITICAL 99% Full on Server1
>
> My commands currently look something like this for checking disk  
> space.
>
> Anyone have any suggestions for me?


> # 'host-notify-by-email' command definition
> define command{
> command_namehost-notify-by-email
> command_line/usr/bin/printf "Subject: [Nagios]  
> $SERVICESTATE$: $SERVICEDESC$ $HOSTNAME$\nFrom: nag...@$hostname 
> $.mascorp.com\n\n * Nagios *\n\nNotification Type:  
> $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:  
> $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | / 
> usr/sbin/exim "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
> }

This is a host notification, not a service notification so I can't  
show you *exactly* what to do but I'll give you the example for the  
above and let you extrapolate --

 command_line/usr/bin/printf "Subject: [Nagios]  
$SERVICESTATE$: $SERVICEDESC$ $HOSTNAME$\nFrom: nag...@$hostname 
$.mascorp.com\n\n * Nagios *\n\nNotification Type:  
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:  
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | / 
usr/sbin/exim "[Nagios] $HOSTSTATE$ $HOSTOUTPUT$" $CONTACTEMAIL$
 }

Note the change after '|/usr/sbin/exim'. That's where the Subject is  
specified. For a service notification, you'd use $SERVICE*$ instead of  
$HOST*$. You may not need $HOSTSTATE$ depending on if the plugin  
includes the CRITICAL text already.

--
Marc

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] Announcement: Brooklyn for Nagios now available for iPhone and iPod Touch!

2009-06-04 Thread D. Emmanuel Feinsmith
Hi John,

Thanks for your clarification. I am confused, however. Is the inag.php  
script not installed on the Nagios server?

Daniel.

On Jun 4, 2009, at 12:10 PM, John Fullington wrote:

> D. Emmanuel Feinsmith  danielemmanuelfeinsmith.com>  
> writes:
>
>> This app is different from iNag and other similar iPhone applications
>
>
> Since you mentioned my application in your post I would like to  
> clarify that
> iNag does not require you to modify your Nagios server, What iNag  
> does do is it
> allows you to get your Nagios status in a secure and fast way, Using  
> the
> inag.php scrip allows you to access this information without  
> exposing Nagios to
> the whole world.
>
> iNag is not a screen scraper or a web app, it supports all major  
> versions of
> Nagios 1.x-3.x  and also supports SSL. (even self signed), it allows  
> you to view
> the daily event log, and acknowledge host/service problems right  
> from your
> phone.
>
> Thanks
> -John
>
>
>
>
>
> --
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the  
> latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> ___
> 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


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] truncated nagios email?

2009-06-04 Thread Jeremiah Jester
When receiving an email notification of disk space full the 'Additional
info' line seems to be truncated near "(32 0node=99" Any ideas why this is
happening?

Thanks,
JJ



 Nagios *

Notification Type: PROBLEM

Service: DISK SPACE
Host: prod
Address: 10.10.10.47
State: CRITICAL

Date/Time: Wed Jun 3 22:26:34 UTC 2009

Additional Info:

DISK CRITICAL - free space: / 23155 MB (32 0node=99


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] disk warning messages

2009-06-04 Thread Jeremiah Jester
Hello,

I'm trying to configure nagios to include the disk full percentage in the
subject line of the email notification. For example. Subject: [Nagios]
CRITICAL 99% Full on Server1

My commands currently look something like this for checking disk space.

Anyone have any suggestions for me?

-JJ
=
Check Disk Commands:

define command{
command_namecheck_local_disk
command_line$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}

define command{
command_namecheck_remote_disk
command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c
check_remote_disk
}

Email Commands:

# 'host-notify-by-email' command definition
define command{
command_namehost-notify-by-email
command_line/usr/bin/printf "Subject: [Nagios] $SERVICESTATE$:
$SERVICEDESC$ $HOSTNAME$\nFrom: nag...@$hostname$.mascorp.com\n\n *
Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/sbin/exim "Host
$HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
}


Service:

define service{
use local-service ; Name of
service template to use
use generic-service ; Name of
service template
hostgroup_name  servers
service_description DISK SPACE
is_volatile 0
check_period24x7
max_check_attempts  3
normal_check_interval   3
retry_check_interval1
contact_groups  admins
notification_interval   1440
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_nrpe!check_remote_disk!4%!2%!
}
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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 not sending host or service notifications

2009-06-04 Thread Tim Philips

On 5/6/09 2:36 AM, Marc Powell wrote:

Hi Marc,

You just saved me _lots_ of time.  It looks like someone had adjusted 
the permissions on /tmp to 0700 and owned by root:root - hence no tmp 
file could be created by /usr/bin/mail or /usr/bin/mailx


I did a stat on the directory but it has been updated several times 
since Nagios stoppped working so I'm no doubt not going to be able to 
find out when it was modified and by which uid.


Much appreciate your assistance



Cheers



On Jun 4, 2009, at 1:48 AM, Tim Philips wrote:

   

When a host (or service) experiences a problem the normal process
seems to be happening (from what I see in the UI and the logs):

[1244096420] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00-
LogVol00;CRITICAL;SOFT;1;DISK CRITICAL - free space: / 17736 MB (4%
inode=99%):
[1244096480] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00-
LogVol00;CRITICAL;SOFT;2;DISK CRITICAL - free space: / 17739 MB (4%
inode=99%):
[1244096540] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00-
LogVol00;CRITICAL;SOFT;3;DISK CRITICAL - free space: / 17739 MB (4%
inode=99%):
[1244096600] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00-
LogVol00;CRITICAL;HARD;4;DISK CRITICAL - free space: / 17739 MB (4%
inode=99%):
[1244096600] SERVICE NOTIFICATION: nagiosadmin;localhost;root /dev/
mapper/VolGroup00-LogVol00;CRITICAL;notify-service-by-email;DISK
CRITICAL - free space: / 17739 MB (4% inode=99%):
 


This is good. Nagios is trying to execute the notify-service-by-email
command.

   

[1244096600.198454] [032.0] [pid=7951] 1 contacts were notified.
Next possible notification time: Thu Jun  4 19:23:20 2009
[1244096600.198514] [032.0] [pid=7951] 1 contacts were notified.
 


... and nagios believes it was successful

   

I'm able to manually use the mail command to send external e-mail
(have attempted this several times) and can confirm that I can
manually execute the command_line for the notification option:
 


as the nagios user? (just covering the base)...

   

I have addjusted the command_line and changed it to something like
(for example):

 command_lineecho "testing" | /usr/bin/mail -s "** TEST
SUBJECT **" m...@email.address
 


How about eliminating /usr/bin/mail entirely and dumping text to a
file in /tmp?

command_line echo `date` ' - I notified!'>>  /tmp/notif.log

   

All this said I'm not seeing anything in the mail server logs
indicating that Nagios is even attempting to use notify-service-by-
email and send e-mail.
 


That's interesting and my money is on it being some problem related
to /usr/bin/mail. You might try capturing the output of /usr/bin/mail
by redirecting to a log file --

command_lineecho "testing" | /usr/bin/mail -s "** TEST SUBJECT **" 
m...@email.address
   >>/tmp/mail.err 2>&1

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
___
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
   



--

Tim Philips
Solutions Architecture Team
DTS - A Better Broadband Experience
+64-21-438-846
t...@dts.net.nz
www.dts.net.nz

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] Hostgroup subtraction?

2009-06-04 Thread Chris Pepper
Marc Powell wrote:
> On Jun 4, 2009, at 12:25 PM, Israel Brewster wrote:
> 
>> For this example, that works, and perhaps for the original poster  
>> it's good enough. I'm running into a very similar situation,  
>> however, where I have a list of hostgroups in a base definition, and  
>> I just want to remove one hostgroup from that list. I don't want to  
>> override the entire list, however, because it might change in the  
>> future, and then I'd have to change it in two spots. Plus, I want to  
>> keep the other hostgroups, I just don't want the one specific one.  
>> So is there a way to remove one (or more) item(s) from an inherited  
>> hostgroup list, without overriding the entire thing? Thanks.

Right, I want to disable one or more hostgroups while preserving the 
inherited list.

> If the previously mentioned ! notation doesn't work then I don't  
> really have any suggestions. I haven't had a need to use that kind of  
> functionality before (I use dead simple inheritance) so I don't have  
> anything to fall back on. If it doesn't work, that'd be a nifty and  
> logical feature IMHO.

I have requested '-' as an enhancement.

I'm not sure how I could use "hostgroups actuallocation, 
!mainlocation", though. My thought was that I'd have a hostgroup 
'unlocated' with membership consisting of all hosts not in any of our 
location hostgroups. This would make it straightforward to find hosts 
without a specified location and add an appropriate location hostgroup 
to each.

Thanks,

Chris Pepper

-- 
Chris Pepper:
  

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] mbstring not loaded error message with nagvis

2009-06-04 Thread Kaplan, Andrew H.
Hi there --

I went through the motions of installing NagVis 1.4 onto our Nagios 3.0.6
server, and when I try
to access the nagvis page from the server console, the following error message
appears on-screen:

the php module "mbstring" is not loaded

I verified the php-mbstring package was installed by running the yum utility.
What do I need to
do in order to get NagVis operational? Thanks. 


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] Announcement: Brooklyn for Nagios now available for iPhone and iPod Touch!

2009-06-04 Thread John Fullington
D. Emmanuel Feinsmith  danielemmanuelfeinsmith.com> writes:

> This app is different from iNag and other similar iPhone applications  


Since you mentioned my application in your post I would like to clarify that
iNag does not require you to modify your Nagios server, What iNag does do is it
allows you to get your Nagios status in a secure and fast way, Using the
inag.php scrip allows you to access this information without exposing Nagios to
the whole world.  

iNag is not a screen scraper or a web app, it supports all major versions of
Nagios 1.x-3.x  and also supports SSL. (even self signed), it allows you to view
the daily event log, and acknowledge host/service problems right from your 
phone. 

Thanks 
-John





--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread James Pifer
On Thu, 2009-06-04 at 13:18 -0500, Marc Powell wrote:
> On Jun 4, 2009, at 1:02 PM, Andrew Davis wrote:
> 
> > I don't want to come across like a jerk, but wouldn't this better be  
> > discussed on the Centreon site? I understand its built on Nagios,  
> > but I'm thinking you might get better help and support on the  
> > Centreon site itself..
> 
> The OP said in his original post that he started there and didn't get  
> anywhere. *shrug*

Yes, I spent a couple weeks trying to get help and find answers over
there. I agree that SHOULD be the place. I appreciate the help received
here. See my other post, I think it's very close now...

Thanks,
James


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread James Pifer
On Thu, 2009-06-04 at 19:05 +0200, Romain Le Merlus wrote:
> Hi,
> 
> On Thu, Jun 4, 2009 at 6:18 PM, James Pifer 
> wrote:
> 
> I have two nagios hosts.cfg files:
> /etc/nagios/hosts.cfg
> /usr/local/centreon/filesGeneration/nagiosCFG/1/hosts.cfg
> 
> neither of them contains the host I created... 
> I grepped all of the cfg files and none of them contain it...
> 
> It seems that you did not generate & restart your configuration from
> the main Centreon server ?
> Configuration > Nagios > Nagios
> 
> Do you select the correct poller on the form ?
> Do you have any debug/informations when you run it from Centreon ?


Alright, now the information is getting to nagios. I had the hosts added
and enabled in centreon, but they were enabled in a host group. When I
applied to nagios, the hosts seem to be there in the config file, but
still not showing up in the gui. 

Close now!

Thanks,
James

# cat /etc/nagios/hosts.cfg
###
# #
#   GENERATED BY CENTREON #
# #
#   Developped by :   #
#   - Julien Mathis   #
#   - Romain Le Merlus#
# #
#   www.centreon.com  #
#For information : cont...@centreon.com   #
###
# #
# Last modification June 4, 2009, 12:34 pm#
# #
###

define host{
namegeneric-host
alias   generic-host
check_command   check_host_alive
max_check_attempts  5
active_checks_enabled   1
passive_checks_enabled  0
check_period24x7
contact_groups  Supervisors
notification_interval   0
notification_period 24x7
notification_optionsd,r
notifications_enabled   0
register0
}

define host{
namePrinters
use generic-host
alias   Printers
register0
}

define host{
nameRouter-Cisco
use generic-host
alias   Cisco Routers
register0
}

define host{
nameRouter-HP
use generic-host
alias   HP Routers
register0
}

define host{
nameServers-Linux
use generic-host
alias   Linux Servers
register0
}

define host{
nameServers-Win2K
use generic-host
alias   Windows 2000 Servers
register0
}

define host{
nameServers-Win2K3
use generic-host
alias   Windows 2003 Servers
register0
}

define host{
nameSwitchs-3Com
use generic-host
alias   3Com Switchs
register0
}

define host{
nameSwitchs-Cisco
use generic-host
alias   Cisco Switchs
register0
}

define host{
nameSwitchs-HP
use generic-host
alias   HP Switchs
register0
}

define host{
nameSwitchs-NORTEL
use generic-host
alias   NORTEL Switchs
register0
}

define host{
nameUPS
use ge

Re: [Nagios-users] Hostgroup subtraction?

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 12:25 PM, Israel Brewster wrote:

> For this example, that works, and perhaps for the original poster  
> it's good enough. I'm running into a very similar situation,  
> however, where I have a list of hostgroups in a base definition, and  
> I just want to remove one hostgroup from that list. I don't want to  
> override the entire list, however, because it might change in the  
> future, and then I'd have to change it in two spots. Plus, I want to  
> keep the other hostgroups, I just don't want the one specific one.  
> So is there a way to remove one (or more) item(s) from an inherited  
> hostgroup list, without overriding the entire thing? Thanks.

If the previously mentioned ! notation doesn't work then I don't  
really have any suggestions. I haven't had a need to use that kind of  
functionality before (I use dead simple inheritance) so I don't have  
anything to fall back on. If it doesn't work, that'd be a nifty and  
logical feature IMHO.

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] serviceescalations question

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 1:22 PM, Marc Powell wrote:

... a bunch of crap. ignore. abort abort abort. I misread the original  
question. bleh.

You're essentially looking for
host_name *
service_description *

If that doesn't work with regexp matching on, then I think the next  
best path is using servicegroups --

All Services In Multiple Servicegroups:
If you want to create service escalations for all services that belong  
in one or more servicegroups, you can do use the servicegroup_name  
directive. The definition below would create service escalations for  
all services that are members of servicegroups SERVICEGROUP1 through  
SERVICEGROUPN. All the instances of the service escalation would be  
identical (i.e. have the same contact groups, notification interval,  
etc.).

define serviceescalation{
servicegroup_name   
SERVICEGROUP1,SERVICEGROUP2,...,SERVICEGROUPN
other escalation directives ...
}

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] serviceescalations question

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 9:35 AM, Matt Nelson wrote:

> I would like to apply this serviceescalation to all services.   
> Anyway to say:
>
> service_description *
>
> this does not work ---
>
> define serviceescalation{
> hostgroup_name  All Hosts
> service_description(I HAVE TO SPECIFY THIS FOR EACH  
> SERVICE...)
> contact_groups  managers
> first_notification  5
> last_notification   0
> notification_interval   60
> }

Specific example at 
http://nagios.sourceforge.net/docs/3_0/objecttricks.html#serviceescalation 
. You must have 'use_regexp_matching' enabled --

All Hosts:
If you want to create identical service escalations for services of  
the same name/description that are assigned to all hosts that are  
defined in your configuration files, you can use a wildcard in the  
host_name directive. The definition below would create a service  
escalation for all services called SOMESERVICE on all hosts that are  
defined in your configuration files. All the instances of the service  
escalation would be identical (i.e. have the same contact groups,  
notification interval, etc.).

define serviceescalation{
host_name   *
service_description SOMESERVICE
other escalation directives ...
}

There's also an example for all hosts in specific hostgroups.

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 1:02 PM, Andrew Davis wrote:

> I don't want to come across like a jerk, but wouldn't this better be  
> discussed on the Centreon site? I understand its built on Nagios,  
> but I'm thinking you might get better help and support on the  
> Centreon site itself..

The OP said in his original post that he started there and didn't get  
anywhere. *shrug*

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] Host/service Contacts question

2009-06-04 Thread John Andrunas
If someone is listed as a contact for a host do they also get notified
of service problems on that host?  If not any recommendations on how
to handle that using
http://nagios.sourceforge.net/docs/3_0/objecttricks.html

-- 
John

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread Andrew Davis
I don't want to come across like a jerk, but wouldn't this better be 
discussed on the Centreon site? I understand its built on Nagios, but 
I'm thinking you might get better help and support on the Centreon site 
itself...


 A. Davis
 Email: ncc...@gmail.com

 "There is no limit to what a man can accomplish
  if he doesn't care who gets the credit." - Ronald Reagan



Romain Le Merlus wrote:

Hi,

On Thu, Jun 4, 2009 at 6:18 PM, James Pifer > wrote:


I have two nagios hosts.cfg files:
/etc/nagios/hosts.cfg
/usr/local/centreon/filesGeneration/nagiosCFG/1/hosts.cfg

neither of them contains the host I created...
I grepped all of the cfg files and none of them contain it...


It seems that you did not generate & restart your configuration from 
the main Centreon server ?

Configuration > Nagios > Nagios

Do you select the correct poller on the form ?
Do you have any debug/informations when you run it from Centreon ?

Best regards.
--
Romain LE MERLUS | Directeur des projets

rlemer...@merethis.com 
Tel. +33 (0)1 49 69 97 12
Mob. +33(0)6 85 05 02 82

MERETHIS est éditeur du logiciel Centreon.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get



___
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
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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 -->> ndo2db -->> centreon

2009-06-04 Thread Romain Le Merlus
Hi,

On Thu, Jun 4, 2009 at 6:18 PM, James Pifer  wrote:

> I have two nagios hosts.cfg files:
> /etc/nagios/hosts.cfg
> /usr/local/centreon/filesGeneration/nagiosCFG/1/hosts.cfg
>
> neither of them contains the host I created...
> I grepped all of the cfg files and none of them contain it...


It seems that you did not generate & restart your configuration from the
main Centreon server ?
Configuration > Nagios > Nagios

Do you select the correct poller on the form ?
Do you have any debug/informations when you run it from Centreon ?

Best regards.
-- 
Romain LE MERLUS | Directeur des projets

rlemer...@merethis.com
Tel. +33 (0)1 49 69 97 12
Mob. +33(0)6 85 05 02 82

MERETHIS est éditeur du logiciel Centreon.
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] Hostgroup subtraction?

2009-06-04 Thread Israel Brewster

On Jun 3, 2009, at 1:25 PM, Marc Powell wrote:



On Jun 3, 2009, at 2:43 PM, Chris Pepper wrote:


We use several hostgroups. I'd like to ensure each host is in a
group for its building. My concern is that we need to avoid adding a
host without adding it to a building hostgroup.

	I tried putting the generic parent object in a hostgroup for our  
main

location, and using 'hostgroups -mainlocation,+actuallocation', but
apparently hostgroups only allows '+', not '-' or '!'.

Is there a way to remove hosts from inherited hostgroups?


In this specific example, using the following in the host{} definition
will override the template definition and the host would only be in
actuallocation --

hostgroups actuallocation


For this example, that works, and perhaps for the original poster it's  
good enough. I'm running into a very similar situation, however, where  
I have a list of hostgroups in a base definition, and I just want to  
remove one hostgroup from that list. I don't want to override the  
entire list, however, because it might change in the future, and then  
I'd have to change it in two spots. Plus, I want to keep the other  
hostgroups, I just don't want the one specific one. So is there a way  
to remove one (or more) item(s) from an inherited hostgroup list,  
without overriding the entire thing? Thanks.


---
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---
BEGIN:VCARD
VERSION:3.0
N:Brewster;Israel;;;
FN:Israel Brewster
ORG:Frontier Flying Service;MIS
TITLE:PC Support Tech II
EMAIL;type=INTERNET;type=WORK;type=pref:isr...@frontierflying.com
TEL;type=WORK;type=pref:907-450-7293
item1.ADR;type=WORK;type=pref:;;5245 Airport Industrial Wy;Fairbanks;AK;99701;
item1.X-ABADR:us
X-ABUID:36305438-95EA-4410-91AB-45D16CABCDDC\:ABPerson
END:VCARD
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] serviceescalations question

2009-06-04 Thread Matt Nelson
I would like to apply this serviceescalation to all services.  Anyway to
say:

service_description *

this does not work ---

define serviceescalation{
hostgroup_name  All Hosts
service_description(I HAVE TO SPECIFY THIS FOR EACH SERVICE...)
contact_groups  managers
first_notification  5
last_notification   0
notification_interval   60
}
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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 -->> ndo2db -->> centreon

2009-06-04 Thread James Pifer
> And nagios is showing this host in it's GUI?
> 

I have two nagios hosts.cfg files:
/etc/nagios/hosts.cfg
/usr/local/centreon/filesGeneration/nagiosCFG/1/hosts.cfg

neither of them contains the host I created... 

I grepped all of the cfg files and none of them contain it...

ARGH
James


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread James Pifer

> And nagios is showing this host in it's GUI?
> 

No it doesn't. I had suspected this was an issue a while back, but got
side tracked by all the ndo problems. Any idea how centreon sends the
information to nagios?

Thanks,
James


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] nSvcEvent and nSvcNotify traps

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 10:22 AM, Meyer Jerome wrote:

> The only problem that I've seen, it's when a macro contains a  
> sentence such as $SERVICEOUTPUT$ -> "NTP CRITICAL: No response from  
> NTP server", each word is a parameter instead of a string 

Yes, of course. Your shell passes each space-separated value as a  
unique $VAR; that's expected for any shell script. That's why I  
originally recommended quoting $SERVICEOUTPUT$ in your command  
definition - '$SEVICEOUTPUT'. That will prevent the breakout from  
happening and the shell will assign the entire quoted sentence to a  
single $VAR.

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] nSvcEvent and nSvcNotify traps

2009-06-04 Thread Meyer Jerome
> -Ursprüngliche Nachricht-
> Von: Marc Powell [mailto:m...@ena.com]
> Gesendet: Donnerstag, 4. Juni 2009 16:08
> An: nagios-users Mailinglist
> Betreff: Re: [Nagios-users] nSvcEvent and nSvcNotify traps
> 
> 
> On Jun 4, 2009, at 8:34 AM, Meyer Jerome wrote:
> 
> >> 2 - Is this command being used as a service_notification_command
> >> for a
> >> contact or as an event_handler? $NOTIFICATIONTYPE$ isn't valid for
> >> event_handlers -- http://nagios.sourceforge.net/docs/3_0/macrolist.html
> >> .
> >
> > 1 - Yes and also to receive the words OK, WARNING, RECOVERY, etc
> > 2 - I checked the web's link and now I understood why this macro
> > never comes. For testing that, I made a script which gives me all
> > parameters and I noticed indeed that this macro does not exist for
> > the event_handler!
> >
> > Do you known how many parameter could send the event_handler?
> 
> There's effectively no limit within nagios that I am aware of. If
> there is, I suspect it's if the total command_line length exceeds 1024
> or 65536 characters but I don't really think those limits exist unless
> your shell imposes them.
>

Yes right! I made some test and it's running well...
The only problem that I've seen, it's when a macro contains a sentence such as 
$SERVICEOUTPUT$ -> "NTP CRITICAL: No response from NTP server", each word is a 
parameter instead of a string 


Thanks
Jerome
 
> > Because my script received a max. of 9 parameters, is't that right??
> 
> In the example from your e-mail, you only saw 8 because the 9th, and
> last one, was $NOTIFICATIONTYPE$ which isn't valid for event_handlers
> and was therefor null. If you passed other macros that are valid for
> event_handlers, you would see more.
> 
> --
> Marc
> 
> 
> -
> -
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> ___
> 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

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 10:00 AM, James Pifer wrote:

> On Thu, 2009-06-04 at 09:21 -0500, Marc Powell wrote:

>> If you query the database directly, do you see data?
>>
>> SELECT * FROM nagios.nagios_hosts WHERE host_name = 'your host_name';
>>
>> SELECT * FROM nagios.nagios_services s, nagios.nagios_hosts h WHERE
>> h.display_name='your host_name' AND  
>> h.host_object_id=s.host_object_id;
>
> host_name is not a valid column (see below).

Sorry, I did mean display_name there...

> If I select * from
> nagios_hosts I only see localhost and Centreon-Server, not the host I
> added.

And nagios is showing this host in it's GUI?

event_broker_options is still -1? Have you restarted nagios since  
fixing the ndo2db issues? I've never used Centreon so I'm just trying  
to cover logical things...

--
Marc

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread James Pifer
On Thu, 2009-06-04 at 09:21 -0500, Marc Powell wrote:
> On Jun 4, 2009, at 7:05 AM, James Pifer wrote
> 
> >> Ndo2db does not automatically start, you need to start it and create
> >> an init script to start the daemon during boot up.
> >
> > Yes, did this and ndo2db is running.
> 
> > But I still have a disconnect somewhere. I'm not getting monitoring
> > information in centreon for the host I have setup.
> 
> If you query the database directly, do you see data?
> 
> SELECT * FROM nagios.nagios_hosts WHERE host_name = 'your host_name';
> 
> SELECT * FROM nagios.nagios_services s, nagios.nagios_hosts h WHERE  
> h.display_name='your host_name' AND h.host_object_id=s.host_object_id;

host_name is not a valid column (see below). If I select * from
nagios_hosts I only see localhost and Centreon-Server, not the host I
added. 

Thanks,
James

mysql> SHOW COLUMNS FROM nagios_hosts;
+---+--+--+-+-++
| Field | Type | Null | Key | Default | 
Extra  |
+---+--+--+-+-++
| host_id   | int(11)  | NO   | PRI | NULL| 
auto_increment | 
| instance_id   | smallint(6)  | NO   | MUL | 0   | 
   | 
| config_type   | smallint(6)  | NO   | | 0   | 
   | 
| host_object_id| int(11)  | NO   | MUL | 0   | 
   | 
| alias | varchar(64)  | NO   | | | 
   | 
| display_name  | varchar(64)  | NO   | MUL | | 
   | 
| address   | varchar(128) | NO   | | | 
   | 
| check_command_object_id   | int(11)  | NO   | | 0   | 
   | 
| check_command_args| varchar(255) | NO   | | | 
   | 
| eventhandler_command_object_id| int(11)  | NO   | | 0   | 
   | 
| eventhandler_command_args | varchar(255) | NO   | | | 
   | 
| notification_timeperiod_object_id | int(11)  | NO   | | 0   | 
   | 
| check_timeperiod_object_id| int(11)  | NO   | | 0   | 
   | 
| failure_prediction_options| varchar(64)  | NO   | | | 
   | 
| check_interval| double   | NO   | | 0   | 
   | 
| retry_interval| double   | NO   | | 0   | 
   | 
| max_check_attempts| smallint(6)  | NO   | | 0   | 
   | 
| first_notification_delay  | double   | NO   | | 0   | 
   | 
| notification_interval | double   | NO   | | 0   | 
   | 
| notify_on_down| smallint(6)  | NO   | | 0   | 
   | 
| notify_on_unreachable | smallint(6)  | NO   | | 0   | 
   | 
| notify_on_recovery| smallint(6)  | NO   | | 0   | 
   | 
| notify_on_flapping| smallint(6)  | NO   | | 0   | 
   | 
| notify_on_downtime| smallint(6)  | NO   | | 0   | 
   | 
| stalk_on_up   | smallint(6)  | NO   | | 0   | 
   | 
| stalk_on_down | smallint(6)  | NO   | | 0   | 
   | 
| stalk_on_unreachable  | smallint(6)  | NO   | | 0   | 
   | 
| flap_detection_enabled| smallint(6)  | NO   | | 0   | 
   | 
| flap_detection_on_up  | smallint(6)  | NO   | | 0   | 
   | 
| flap_detection_on_down| smallint(6)  | NO   | | 0   | 
   | 
| flap_detection_on_unreachable | smallint(6)  | NO   | | 0   | 
   | 
| low_flap_threshold| double   | NO   | | 0   | 
   | 
| high_flap_threshold   | double   | NO   | | 0   | 
   | 
| process_performance_data  | smallint(6)  | NO   | | 0   | 
   | 
| freshness_checks_enabled  | smallint(6)  | NO   | | 0   | 
   | 
| freshness_threshold   | smallint(6)  | NO   | | 0   | 
   | 
| passive_checks_enabled| smallint(6)  | NO   | | 0   | 
   | 
| event_handler_enabled | smallint(6)  | NO   | | 0   | 
   | 
| active_checks_enabled | smallint(6)  | NO   | | 0   | 
   | 
| retain_status_information | smallint(6)  | NO   | | 0   | 
   | 
| retain_nonstatus_information

Re: [Nagios-users] Nagios not sending host or service notifications

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 1:48 AM, Tim Philips wrote:

> When a host (or service) experiences a problem the normal process  
> seems to be happening (from what I see in the UI and the logs):
>
> [1244096420] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00- 
> LogVol00;CRITICAL;SOFT;1;DISK CRITICAL - free space: / 17736 MB (4%  
> inode=99%):
> [1244096480] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00- 
> LogVol00;CRITICAL;SOFT;2;DISK CRITICAL - free space: / 17739 MB (4%  
> inode=99%):
> [1244096540] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00- 
> LogVol00;CRITICAL;SOFT;3;DISK CRITICAL - free space: / 17739 MB (4%  
> inode=99%):
> [1244096600] SERVICE ALERT: localhost;root /dev/mapper/VolGroup00- 
> LogVol00;CRITICAL;HARD;4;DISK CRITICAL - free space: / 17739 MB (4%  
> inode=99%):
> [1244096600] SERVICE NOTIFICATION: nagiosadmin;localhost;root /dev/ 
> mapper/VolGroup00-LogVol00;CRITICAL;notify-service-by-email;DISK  
> CRITICAL - free space: / 17739 MB (4% inode=99%):

This is good. Nagios is trying to execute the notify-service-by-email  
command.

> [1244096600.198454] [032.0] [pid=7951] 1 contacts were notified.   
> Next possible notification time: Thu Jun  4 19:23:20 2009
> [1244096600.198514] [032.0] [pid=7951] 1 contacts were notified.

... and nagios believes it was successful

> I'm able to manually use the mail command to send external e-mail  
> (have attempted this several times) and can confirm that I can  
> manually execute the command_line for the notification option:

as the nagios user? (just covering the base)...

> I have addjusted the command_line and changed it to something like  
> (for example):
>
> command_lineecho "testing" | /usr/bin/mail -s "** TEST  
> SUBJECT **" m...@email.address

How about eliminating /usr/bin/mail entirely and dumping text to a  
file in /tmp?

command_line echo `date` ' - I notified!' >> /tmp/notif.log

> All this said I'm not seeing anything in the mail server logs  
> indicating that Nagios is even attempting to use notify-service-by- 
> email and send e-mail.

That's interesting and my money is on it being some problem related  
to /usr/bin/mail. You might try capturing the output of /usr/bin/mail  
by redirecting to a log file --

command_lineecho "testing" | /usr/bin/mail -s "** TEST SUBJECT **" 
m...@email.address 
  >>/tmp/mail.err 2>&1

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 7:05 AM, James Pifer wrote

>> Ndo2db does not automatically start, you need to start it and create
>> an init script to start the daemon during boot up.
>
> Yes, did this and ndo2db is running.

> But I still have a disconnect somewhere. I'm not getting monitoring
> information in centreon for the host I have setup.

If you query the database directly, do you see data?

SELECT * FROM nagios.nagios_hosts WHERE host_name = 'your host_name';

SELECT * FROM nagios.nagios_services s, nagios.nagios_hosts h WHERE  
h.display_name='your host_name' AND h.host_object_id=s.host_object_id;

--
Marc

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] services alert interval and customization

2009-06-04 Thread Cyril Vieville
Hi everybody,


My services notification interval is 60 (1 hour) but ideally I would like to be 
able to send only 1 by day if the percent of my disk usage doesn´t change in 
the warning state. For example, if my /var is full at 91% but doesn't grow to 
reach 92% so only 1 alert by day. If it grows to reach 92% so alert.

However, I want to get an alert following my services notification interval of 
60 if the disk usage is in the critical state.



My actual threshold for disks are 90% (warning) and 95% (critical).

Best Regards,

Cyril Viéville

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] nSvcEvent and nSvcNotify traps

2009-06-04 Thread Meyer Jerome
Hi

Thanks for your answer!
See my remarks below...

> -Ursprüngliche Nachricht-
> Von: Marc Powell [mailto:m...@ena.com]
> Gesendet: Donnerstag, 4. Juni 2009 14:45
> An: Nagios Users
> Betreff: Re: [Nagios-users] nSvcEvent and nSvcNotify traps
> 
> 
> On Jun 4, 2009, at 3:26 AM, Ortner, Gerald wrote:
> 
> > Von: Meyer Jerome [mailto:jerome.me...@baldata.ch]
> > Gesendet: Mittwoch, 03. Juni 2009 16:27
> > An: Nagios-users@lists.sourceforge.net
> > Betreff: [Nagios-users] nSvcEvent and nSvcNotify traps
> >
> >
> >
> > As someone an Idea?
> >
> 
> > Define command{
> >
> > command_line$USER1$/send_trap server_test public $HOSTNAME$
> > $SERVICEDESC$ $SERVICESTATEID$ $SERVICEOUTPUT$ $NOTIFICATIONTYPE$
> >
> > }
> >
> 1 - You'll probably want to '$SERVICEOUTPUT$' for predictability
> 2 - Is this command being used as a service_notification_command for a
> contact or as an event_handler? $NOTIFICATIONTYPE$ isn't valid for
> event_handlers -- http://nagios.sourceforge.net/docs/3_0/macrolist.html.

1 - Yes and also to receive the words OK, WARNING, RECOVERY, etc
2 - I checked the web's link and now I understood why this macro never comes. 
For testing that, I made a script which gives me all parameters and I noticed 
indeed that this macro does not exist for the event_handler! 

Do you known how many parameter could send the event_handler? 
Because my script received a max. of 9 parameters, is't that right??

> 
> > Do a trap snmp sending only a nSvcEvent NOTIFICATION-TYPE or a
> > nSvcNotify NOTIFICATION-TYPE too ?
> >
> A notification to nagios is just running a script. It doesn't matter,
> know, or care what that script actually does. It could send an e-mail,
> send a trap, log to a file, and/or ring alarm bells in an underground
> fortress to send out battalions of techs. In all cases, any macro that
> is valid for notifications can be passed.
> > What's the difference between them 
> >
> I personally suspect that this isn't a notification but an
> event_handler.

Now, I think too...

> > Where should I find documentation about that 
> >
> The macros list above is your best source for knowing when/where
> specific macros can be used.


Thanks for the links, I'll read it...
Best regards
Jerome
> 
> --
> Marc
> 
> 
> -
> -
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> ___
> 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

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] nSvcEvent and nSvcNotify traps

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 8:34 AM, Meyer Jerome wrote:

>> 2 - Is this command being used as a service_notification_command  
>> for a
>> contact or as an event_handler? $NOTIFICATIONTYPE$ isn't valid for
>> event_handlers -- http://nagios.sourceforge.net/docs/3_0/macrolist.html 
>> .
>
> 1 - Yes and also to receive the words OK, WARNING, RECOVERY, etc
> 2 - I checked the web's link and now I understood why this macro  
> never comes. For testing that, I made a script which gives me all  
> parameters and I noticed indeed that this macro does not exist for  
> the event_handler!
>
> Do you known how many parameter could send the event_handler?

There's effectively no limit within nagios that I am aware of. If  
there is, I suspect it's if the total command_line length exceeds 1024  
or 65536 characters but I don't really think those limits exist unless  
your shell imposes them.

> Because my script received a max. of 9 parameters, is't that right??

In the example from your e-mail, you only saw 8 because the 9th, and  
last one, was $NOTIFICATIONTYPE$ which isn't valid for event_handlers  
and was therefor null. If you passed other macros that are valid for  
event_handlers, you would see more.

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] Load and memory problems with Nagios 3.0.6

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 5:46 AM, Tómas Edwardsson wrote:

> Hi
>
> I've been running into problems with Nagios 3.0.6 where CPU and Load  
> go up quick after each start and memory consumption gradually grows.
>
> At the start of the graphs below you see where Nagios was started,  
> it runs for something around 20 hours, then it hits the open files  
> limit (1024). After that, the load goes down but memory consumption  
> remains high.
>
> Any suggestions as to what might be bugging me?

Do you have the embedded perl interpreter enabled? Are all your perl  
plugins specifically built to work with the embedded perl interpreter  
(they need to be). I'd try disabling the embedded perl interpreter in  
nagios.cfg and see if that makes a difference. If so, you can try to  
identify the specific plugin(s) that are a problem by re-enabling it,  
disable ePN for all the plugins with '# nagios: -epn' then re-enable  
individually to see if the leak re-appears. Information on how to  
control plugin execution through the ePN can be found near the bottom  
of http://nagios.sourceforge.net/docs/3_0/embeddedperl.html

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] nSvcEvent and nSvcNotify traps

2009-06-04 Thread Marc Powell

On Jun 4, 2009, at 3:26 AM, Ortner, Gerald wrote:

> Von: Meyer Jerome [mailto:jerome.me...@baldata.ch]
> Gesendet: Mittwoch, 03. Juni 2009 16:27
> An: Nagios-users@lists.sourceforge.net
> Betreff: [Nagios-users] nSvcEvent and nSvcNotify traps
>
>
>
> As someone an Idea?
>

> Define command{
>
> command_line$USER1$/send_trap server_test public $HOSTNAME$  
> $SERVICEDESC$ $SERVICESTATEID$ $SERVICEOUTPUT$ $NOTIFICATIONTYPE$
>
> }
>
1 - You'll probably want to '$SERVICEOUTPUT$' for predictability
2 - Is this command being used as a service_notification_command for a  
contact or as an event_handler? $NOTIFICATIONTYPE$ isn't valid for  
event_handlers -- http://nagios.sourceforge.net/docs/3_0/macrolist.html.

> Do a trap snmp sending only a nSvcEvent NOTIFICATION-TYPE or a  
> nSvcNotify NOTIFICATION-TYPE too ?
>
A notification to nagios is just running a script. It doesn't matter,  
know, or care what that script actually does. It could send an e-mail,  
send a trap, log to a file, and/or ring alarm bells in an underground  
fortress to send out battalions of techs. In all cases, any macro that  
is valid for notifications can be passed.
> What’s the difference between them 
>
I personally suspect that this isn't a notification but an  
event_handler.
> Where should I find documentation about that 
>
The macros list above is your best source for knowing when/where  
specific macros can be used.

--
Marc


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 -->> ndo2db -->> centreon

2009-06-04 Thread James Pifer
On Thu, 2009-06-04 at 10:19 +1000, Simon Finch wrote:
> HTML document attachment (Text.htm)
> James,
>  
> The instance name refers to the Nagios instance id and 'Central' is
> the default created by Centreon.
> Port 5668 is the default port that the NDO broker module will send
> data to. The corresponding NDO receiver port is defined in the
> ndo2db.cfg file and these 2 need to match up.

Yes, these match. 

>  
> 2 things to look at, when you compiled NDO the modules generated were
> ndomod-2x.o and ndomod-3x.o, your config is referring to ndomod.o, did
> you rename the compiled module to match ?

Yes, using the 2x.o version

>  
> Ndo2db does not automatically start, you need to start it and create
> an init script to start the daemon during boot up.

Yes, did this and ndo2db is running. 

Since yesterday evening I have this in:
/var/lib/nagios/nagios.log


[1244077263] Auto-save of retention data completed successfully.
[1244080863] Auto-save of retention data completed successfully.
[1244084463] Auto-save of retention data completed successfully.
[1244088063] Auto-save of retention data completed successfully.
[1244091663] Auto-save of retention data completed successfully.
[1244095263] Auto-save of retention data completed successfully.
[1244098863] Auto-save of retention data completed successfully.
[1244102463] Auto-save of retention data completed successfully.
[1244106063] Auto-save of retention data completed successfully.
[1244109663] Auto-save of retention data completed successfully.
[1244113263] Auto-save of retention data completed successfully.

But I still have a disconnect somewhere. I'm not getting monitoring
information in centreon for the host I have setup. 

Thanks,
James


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 does not run any check anymore

2009-06-04 Thread MAD
Sorry if that question was already answered but I wasn't able to find a 
solution.

I have Nagios v3.0.6 running some test to check the access to some URL and 
supervising some local metrics (cpu load, disk space...). For some reason I 
can't figure out, Nagios stopped running the test and re-scheduled them to June 
the 6th instead of running them every 5 minutes. I tried to restart it and 
everything seemed to work fine again for 10 minutes and then the checks 
were postponed again to June the 6th.
Besides, when I restarted the server, Nagios unloaded the ndo module 10minutes 
after the restart.

Here is the last lines of the logfile:

[Thu Jun  4 11:33:21 2009] SERVICE ALERT: host1;url1;CRITICAL;SOFT;2;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:33:21 2009] SERVICE ALERT: host1;url2;CRITICAL;SOFT;2;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:33:21 2009] SERVICE ALERT: host1;url3;CRITICAL;SOFT;2;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:34:21 2009] SERVICE ALERT: host1;url1;CRITICAL;SOFT;3;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:34:21 2009] SERVICE ALERT: host1;url2;CRITICAL;SOFT;3;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:34:21 2009] SERVICE ALERT: host1;url3;CRITICAL;SOFT;3;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 12:37:30 2009] Caught SIGTERM, shutting down...
[Thu Jun  4 12:37:30 2009] Successfully shutdown... (PID=2715)
[Thu Jun  4 12:37:41 2009] Nagios 3.0.6 starting... (PID=1369)
[Thu Jun  4 12:37:41 2009] Local time is Thu Jun 04 12:37:41 CEST 2009
[Thu Jun  4 12:37:41 2009] LOG VERSION: 2.0
[Thu Jun  4 12:37:41 2009] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 
2005-2007 Ethan Galstad (nag...@nagios.org)
[Thu Jun  4 12:37:41 2009] ndomod: Successfully connected to data sink.  0 
queued items to flush.
[Thu Jun  4 12:37:41 2009] Event broker module 
'/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[Thu Jun  4 12:37:41 2009] Warning: Host 'host2' has no services associated 
with it!
[Thu Jun  4 12:37:41 2009] Warning: Host 'host3' has no services associated 
with it!
[Thu Jun  4 12:37:41 2009] Warning: Host 'host4' has no services associated 
with it!
[Thu Jun  4 12:37:41 2009] Finished daemonizing... (New PID=1372)
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host5;urlA;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host1;url1;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host1;url2;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host1;url3;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:47:37 2009] ndomod: Shutdown complete.
[Thu Jun  4 12:47:37 2009] Event broker module 
'/usr/local/nagios/bin/ndomod-3x.o' deinitialized successfully.


Does someone know what is happening and how I could fix it?

Thank you

Marc-André

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] nSvcEvent and nSvcNotify traps

2009-06-04 Thread Ortner, Gerald
Von: Meyer Jerome [mailto:jerome.me...@baldata.ch] 
Gesendet: Mittwoch, 03. Juni 2009 16:27
An: Nagios-users@lists.sourceforge.net
Betreff: [Nagios-users] nSvcEvent and nSvcNotify traps

 

As someone an Idea?

 

When an event occurs, Nagios is sending the variable $NOTIFICATIONTYPE
within Email :

 

===email

TEST* Nagios *

Notification Type: PROBLEM

Service: Ntp

Host: test1

Address: server_test

State: CRITICAL

Date/Time: Tue Jun 2 16:37:59 CEST 2009

Additional Info:

NTP CRITICAL: No response from NTP server

 

===checkcommand.cfg

 

define command{

command_namenotify-by-email

command_line/usr/bin/printf "%b" "TEST* Nagios
*\n\nNotificatio

n Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $

HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info

:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service
Alert: $HOSTALI

AS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

}

 

But it doesn't run with snmp trap ?:

 

===checkcommand.cfg

 

Define command{

command_line$USER1$/send_trap server_test public $HOSTNAME$
$SERVICEDESC$ $SERVICESTATEID$ $SERVICEOUTPUT$ $NOTIFICATIONTYPE$

}

 

===/usr/local/nagios/libexec/send_trap==

 

/usr/bin/snmptrap -v 2c -c $2 $1 '' NAGIOS-NOTIFY-MIB::nSvcEvent \

nSvcHostname s "$3" nSvcDesc s "$4" nSvcStateID i $5 nSvcOutput s "$6"
nSvcNotifyType i "$7"

 

echo `date` >>//etc/nagios/send_trap_result.txt

echo "Param. 1:"$1 >>/etc/nagios/send_trap_result.txt

echo "Param. 2:"$2 >>/etc/nagios/send_trap_result.txt

echo "Param. 3:"$3 >>/etc/nagios/send_trap_result.txt

echo "Param. 4:"$4 >>/etc/nagios/send_trap_result.txt

echo "Param. 5:"$5 >>/etc/nagios/send_trap_result.txt

echo "Param. 6:"$6 >>/etc/nagios/send_trap_result.txt

echo "Param. 7:"$7 >>/etc/nagios/send_trap_result.txt

echo "Param. 8:"$8 >>/etc/nagios/send_trap_result.txt

echo "Param. 9:"$9 >>/etc/nagios/send_trap_result.txt

echo "Param.10:"$10 >>/etc/nagios/send_trap_result.txt

echo "Param.11:"$11 >>/etc/nagios/send_trap_result.txt

echo "Param.12:"$12 >>/etc/nagios/send_trap_result.txt

echo "Param.13:"$13 >>/etc/nagios/send_trap_result.txt

echo `date` >>//etc/nagios/send_trap_result.txt

 

===send_trap.result.txt===

 

Tue Jun 2 16:42:52 CEST 2009

Param. 1:

Param. 2:

Param. 3:test1

Param. 4:Ntp

Param. 5:0

Param. 6:NTP

Param. 7:OK:

Param. 8:Offset

Param. 9:unknown

Param.10:

Param.11:

Param.12:

Param.13:

Tue Jun 2 16:42:52 CEST 2009

 

I'd like to receive in my snmp trap the nSvcNotifyType like :

Notification Type: PROBLEM 

Notification Type: RECOVERY

...

 

Do a trap snmp sending only a nSvcEvent NOTIFICATION-TYPE or a
nSvcNotify NOTIFICATION-TYPE too ?

What's the difference between them 

Where should I find documentation about that 

 

regards

jerome 

 

Hi !

NAGIOS_NOTIFY_MIB says :

nHostEvent  NOTIFICATION-TYPE

DESCRIPTION

"The SNMP trap that is generated as a result of an event with the
host

in Nagios."

 

nHostNotify NOTIFICATION-TYPE

DESCRIPTION

"The SNMP trap that is generated as a result of an event requiring

notification for a host in Nagios."

 

 

$NOTIFICATIONTYPE$ is a string and the MIB uses integer.#

http://nagios.sourceforge.net/docs/3_0/macrolist.html#notificationtype

 

Does send_trap cover that?

 

if not:

Today I finished a  small C program to translate the string into integer
and send traps (for nHostNotify and nSvcNotify) based on Nagiosmib 1.0.1

If you are interested in...  (maybe some parts need a bit of improvement
as I am not an advanced c programmer )

 

 

regards

Gerald

 





OOe. Gesundheits- und Spitals-AG
Techcenter, Hafenstrasse 47-51, 4020 Linz
DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] SNMP configuration for Nagios: sysUpTime.

2009-06-04 Thread Ian Masters
If your command is working from the command line chances are it will succeed if
you configure your cfg file as I indicated.

I have noticed that hrSystemUptime.0 gives more accurate information than
sysUpTime.0 if you have access to that oid.

On the system I'm checking (a linux box) hrSystemUptime.0 agrees with the uptime
command but sysUpTime.0 does not. I have no idea why. I'd be interested to know.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] SNMP configuration for Nagios: sysUpTime.

2009-06-04 Thread Kevin Keane
No. These two files are related to the SNMP daemon and the SNMP trap
handling, respectively.

Basically, SNMP has two different ways it operates. You can query client
machines using SNMP, or the client machines can actively send you
information (usually only when some event occurs). Actively sending
information is called a trap. While you can probably make it work with
Nagios, that would be somewhat unusual, and is not what you are looking
for here. The snmptrapd.conf file deals with traps.

check_snmp (and snmpwalk, snmpget etc.) use a plain client/server
approach. On the nagios machine, you have a client - check_snmp. On the
monitored client, you have an SNMP "server" called snmpd (in Linux).
Windows, as well as many routers, switches etc. all also have similar
SNMP servers running.

As the name suggests, snmpd.conf is used to configure this daemon. In
other words, you would need to set that up on the monitored client if it
is a Linux client. check_snmp and snmpget don't use it.

Off the top of my head, I don't know how to configure snmp (probably a
file called snmp.conf - without the d, along with a whole directory tree
under /etc/snmp), but in most Linux distributions it should be pretty
much already configured the way you need it. You may need to install a
couple MIBs for devices you want to monitor.

Most of what you would need to do is done on the command line to the
check_snmp command.

Jimmyboy wrote:
> I have snmpd.conf and snmptrapd.conf files within the path '/etc/snmp/'.
> Shouldn't one need to make changes within these configuration files in 
> order to pass/retrieve relevant information to the web interface of 
> Nagios?
>  
> What I feel is Nagios is unable to query the network entity and so 
> unable to get the needed information.
>  
> Appreciate your help!!
>  
> Thanks,
> Jim
>  
> =-=-=-=
>
> 2009/6/4 Ian Masters mailto:i...@acces.co.jp>>
>
> This works fine for me:
> check_command   check_snmp! -H 172.16.1.1 -C  -o sysUpTime.0
>
>
> 
>
> --
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> looking to deploy the next generation of Solaris that includes the latest 
> innovations from Sun and the OpenSource community. Download a copy and 
> enjoy capabilities such as Networking, Storage and Virtualization. 
> Go to: http://p.sf.net/sfu/opensolaris-get
> 
>
> ___
> 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



-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to 
Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information 
herein is intended only for use by the intended recipient(s) named 
above. If you have received this transmission in error, please notify 
the sender immediately and permanently delete the e-mail and any copies, 
printouts or attachments thereof.

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] Today Nordic Meet On Nagios continues with live video

2009-06-04 Thread Peter Andersson
Hi list,

Today Nordic Meet on Nagios continues. The program and live video can be 
found at:
http://nordicmeetonnagios.op5.org/

Regards
Peter Andersson

-- 
I blog, therefore I am.
http://www.it-slav.net/blogs 


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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 not sending host or service notifications

2009-06-04 Thread Tim Philips

Hi,

We have hit a weird situation with Nagios and I hope someone in the 
community can assist or provide some details of additional 
troubleshooting steps we can/should take.


The situation is Nagios doesn't seem to be sending out host or service 
notifications.  I have done the following debugging:


  1. Ensure there is no Nagios configuration errors with nagios -v
 nagios.cfg (no configuration errors)
  2. Stopped and started Nagios to ensure there are no configuration
 errors that -v isn't aware of (and no errors and Nagios restarts
 correctly)
  3. Stopped Nagios and deleted both objects.cache retention.dat and
 restarted to ensure there was nothing legacy in the configuration
  4. Ensure that both on a service, host and global basis that
 notifications are enabled (and they are)
  5. Reviewing the nagios configuration (both in the files and via
 "view config" from the Nagios UI)


When a host (or service) experiences a problem the normal process seems 
to be happening (from what I see in the UI and the logs):


[1244096420] SERVICE ALERT: localhost;root 
/dev/mapper/VolGroup00-LogVol00;CRITICAL;SOFT;1;DISK CRITICAL - free 
space: / 17736 MB (4% inode=99%):
[1244096480] SERVICE ALERT: localhost;root 
/dev/mapper/VolGroup00-LogVol00;CRITICAL;SOFT;2;DISK CRITICAL - free 
space: / 17739 MB (4% inode=99%):
[1244096540] SERVICE ALERT: localhost;root 
/dev/mapper/VolGroup00-LogVol00;CRITICAL;SOFT;3;DISK CRITICAL - free 
space: / 17739 MB (4% inode=99%):
[1244096600] SERVICE ALERT: localhost;root 
/dev/mapper/VolGroup00-LogVol00;CRITICAL;HARD;4;DISK CRITICAL - free 
space: / 17739 MB (4% inode=99%):
[1244096600] SERVICE NOTIFICATION: nagiosadmin;localhost;root 
/dev/mapper/VolGroup00-LogVol00;CRITICAL;notify-service-by-email;DISK 
CRITICAL - free space: / 17739 MB (4% inode=99%):


After enabling debugging (debug_level=32) I see the following in the 
debug log:


[1244096600.182820] [032.0] [pid=7951] ** Service Notification Attempt 
** Host: 'localhost', Service: 'root /dev/mapper/VolGroup00-LogVol00', 
Type: 0, Options: 0, Current State: 2, Last Notification: Thu Jan  1 
12:00:00 1970

[1244096600.182945] [032.0] [pid=7951] Notification viability test passed.
[1244096600.182986] [032.1] [pid=7951] Current notification number: 1 
(incremented)
[1244096600.183016] [032.1] [pid=7951] Service notification will NOT be 
escalated.
[1244096600.183042] [032.1] [pid=7951] Adding normal contacts for 
service to notification list.
[1244096600.198454] [032.0] [pid=7951] 1 contacts were notified.  Next 
possible notification time: Thu Jun  4 19:23:20 2009

[1244096600.198514] [032.0] [pid=7951] 1 contacts were notified.

I'm able to manually use the mail command to send external e-mail (have 
attempted this several times) and can confirm that I can manually 
execute the command_line for the notification option:


# 'notify-service-by-email' command definition
define command{
command_namenotify-service-by-email
command_line/usr/bin/printf "%b" "* Nagios 
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: 
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional 
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ 
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" 
$CONTACTEMAIL$

}

I have addjusted the command_line and changed it to something like (for 
example):


command_lineecho "testing" | /usr/bin/mail -s "** TEST SUBJECT 
**" m...@email.address


Nagios doesn't have any configuration errors, starts up but still 
doesn't seem to fire the command!!



All this said I'm not seeing anything in the mail server logs indicating 
that Nagios is even attempting to use notify-service-by-email and send 
e-mail.


Would really appreciate any suggestion anyone can assist with.


Cheers

--

Tim Philips


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] Rebuild Nagios-packages for RHEL 5

2009-06-04 Thread Kenneth Holter
Hi all.


I'd like to rebuild (from source RPM) a few RHEL 5 Nagios-plugins found in
the EPEL repo. Examples of such plugins are "nagios-plugins-load" and
"nagios-plugins-disk".

The only relevant source RPM I've found is the "nagios-plugins" package.
This package seems to include all plugins. Should I use this package to
build the above mentioned plugins? If so, does anyone know how to stip the
spec file down to just a selected few plugins? I'm quite new to building
RPMs, and could use some guidance.

Regards,
Kenneth Holter
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] SNMP configuration for Nagios: sysUpTime.

2009-06-04 Thread Jimmyboy
I have snmpd.conf and snmptrapd.conf files within the path '/etc/snmp/'.
Shouldn't one need to make changes within these configuration files in order
to pass/retrieve relevant information to the web interface of Nagios?

What I feel is Nagios is unable to query the network entity and so unable to
get the needed information.

Appreciate your help!!

Thanks,
Jim

=-=-=-=

2009/6/4 Ian Masters 

> This works fine for me:
> check_command   check_snmp! -H 172.16.1.1 -C  -o sysUpTime.0
>
>
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] SNMP configuration for Nagios: sysUpTime.

2009-06-04 Thread Ian Masters
> I am trying to get SNMP to work within the /web interface of NAGIOS/.
> I have a Windows-based machine installed with SNMP service and 
> configured with its public community. However, Nagios' web interface is 
> unable to pull the *sysUpTime.0* from this Windows machine though PING 
> works.

Have you tried the command from the command line first? e.g.
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -C  -o sysUpTime.0


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] SNMP configuration for Nagios: sysUpTime.

2009-06-04 Thread Ian Masters
This works fine for me:
check_command   check_snmp! -H 172.16.1.1 -C  -o sysUpTime.0


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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