[Nagios-users] Regarding snmp databyte multiplication

2009-06-22 Thread Sujeet Mulmi
Hi,

   I have used nagios to get some information of disk usage of my 
NAS . However I could get the correct parameter with the correct OID, 
but I felt to scaled it . I was wondering how can I do multiplication of 
the output value with some units to get the exact result. Any highlight 
will be appreciated.

 Thanks in advance.

Rgds,
Sujeet

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] Return code of 142 is out of bounds

2009-06-22 Thread victory
It is either or.

I have tried it with $HOSTADDRESS$ as well. The command defined is for
$HOSTADDRESS$


2009/6/22 Mathew Walker 

>  just a thought...
>
> is $HOSTNAME$ valid?  sure you don't mean $HOSTADDRESS$ instead?
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> --
> Date: Sat, 20 Jun 2009 11:34:17 +0530
> Subject: Re: [Nagios-users] Return code of 142 is out of bounds
> From: victor...@gmail.com
> To: lmw94...@hotmail.com
> CC: nagios-users@lists.sourceforge.net
>
>
> I am using the snmp commands. The following are a coupld of examples:
>
> check_snmp_ntpstat -H $HOSTNAME$ -C COMMUNITY_NAME
> check_snmp_disk -H $HOSTNAME$ -C COMMUNITY_NAME
>
> I have seen the faqs mentioned by you and it says the same thing as
> mentioned by you. But interestingly, error "Return code of 142" started to
> show up from version 3.x. I did not find that in any previous versions.
>
> Regards,
>
> On Thu, Jun 18, 2009 at 8:24 PM, Mat W  wrote:
>
> there's the FAQ... http://www.nagios.org/faqs/viewfaq.php?faq_id=17
>
> I think this can also happen when some checks returns -no- value, or return
> a string when expecting an integer, etc.  essentially encountering something
> the plugin isn't expecting which could be leading to "bad exit" from the
> script.
>
> Can you recreate this from the command line?
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> --
> Date: Thu, 18 Jun 2009 10:38:18 +0530
> From: victor...@gmail.com
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Return code of 142 is out of bounds
>
>
> Hi All,
>
> I am running Nagios 3.0.2 on FC5 server.
>
> I have been encountering this strange error intermittently on a few checks.
>
> (Return code of 142 is out of bounds)
>
> I am using the nagios with snmp (net-snmp-5.2 & net-snmp-5.3) on a few
> servers.
>
> This normally happens with snmp-load checks or snmp-disk checks.
>
> I could not find anything related to this problem over the internet. Hoping
> to get a solution to this problem here.
>
> Regards,
>
>
> --
> Windows LiveT: Keep your life in sync. Check it 
> out.
>
>
>
>
> --
> Regards,
> Gagan Brahmi
> (SKY)
> +919860091019
>
> (¨`ˇ.ˇ´¨) Always
> `ˇ.¸(¨`ˇ.ˇ´¨) Keep
> (¨`ˇ.ˇ´¨)¸.ˇ´ Smiling!
>  `ˇ.¸.ˇ´
>
> --
> Lauren found her dream laptop. Find the PC that's right for 
> you.
>



-- 
Regards,
Gagan Brahmi
(SKY)
+919860091019

(¨`ˇ.ˇ´¨) Always
`ˇ.¸(¨`ˇ.ˇ´¨) Keep
(¨`ˇ.ˇ´¨)¸.ˇ´ Smiling!
 `ˇ.¸.ˇ´
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] ping dependency

2009-06-22 Thread Jeremiah Jester
For some reason I'm having a hard time understanding exactly how
dependencies work.

What I'm trying to do is create a service dependcy  that will halt
notifications of any number of servers file if that host cannot be pinged.

Can anyone assist?

Here is the required basic syntax of a basic servicedependency definition in
nagios2.


define servicedependency{
  host_name
  service_description
  dependent_host_name
  dependent_service_description
}


Much appreciated,

Jeremiah
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] - NRPE 2.12 ./configure error on solaris 9

2009-06-22 Thread chethan.mnc
Dear All,
 
I m trying to configure NRPE 2.12 on one of my sun server (solaris 9)... i m 
getting the following error.
 
I also tried to give path of ssl libraries... ie 
./configure with-ssl=/usr/sfw/ with-ssl-lib=/usr/sfw/lib/   --- didnt work 
either..  
 
 
ecking for getopt_long... no
checking for getopt_long in -liberty... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... yes
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
checking for SSL headers... SSL headers found in /usr/local/ssl
checking for SSL libraries... configure: error: Cannot find ssl libraries

Please let me know the work around for this. 
 
Thanks in advance.
 
 
Regards,
Chethan
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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 UP alert 0, email weirdness

2009-06-22 Thread jeff
Hello!

We have updated our Nagios installation from 2.12 to the latest stable
3.x. For the most part, things seem to be working okay. One bit of
weirdness, though, is that we are occasionally getting email delivered
to "$@.com" instead of "@.com". Our head
IT person is getting all these alerts, since he is the designated bounce
address for the domain.

Here is our host notify by email command:

define command {
  command_name host-notify-by-email
  command_line /usr/bin/printf "%b" "* Nagios  *\n\nNotification
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$ for
$HOSTDURATION$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n\nACKed by: $HOSTACKAUTHOR$ \nComment: $HOSTACKCOMMENT$
\n" | /bin/mail -v -s "Host $HOSTSTATE$ alert $HOSTNOTIFICATIONNUMBER$
for $HOSTNAME$!" $CONTACTEMAIL$
}

The other weird thing is that the notification # seems to be resetting
back to 0 when the host recovers. Is this normal?

Thanks!

Jeff Orr
Attributor Corporation

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] Generic SNMP query

2009-06-22 Thread Mark Gius
You may find this perl script helpful.  It takes a base OID, does an 
snmpwalk on it, and then compares the results to a specified regex or 
warning/critical threshold. 


Gius

Livio Zanol Puppim wrote:
I've searched this at monitoring exchange, but I haven't found many 
scripts. What options I have to use as "generic" SNMP checks? Passing 
OIDs or tables and comparing with values for critical and warning 
states, and passing data trought performance output.


What scripts do you use?
 
--

[]'s

Lívio Zanol Puppim



check_snmp_generic.pl
Description: Perl program
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] Generic SNMP query

2009-06-22 Thread Marc Powell

On Jun 22, 2009, at 3:35 PM, Livio Zanol Puppim wrote:

> I've searched this at monitoring exchange, but I haven't found many  
> scripts. What options I have to use as "generic" SNMP checks?  
> Passing OIDs or tables and comparing with values for critical and  
> warning states, and passing data trought performance output.
>
> What scripts do you use?

check_snmp, in the standard plugins, is pretty darn generic letting  
you query any OID and searching for numbers, strings or regexes and  
alerting based on those values. Do you need more than that?

--
Marc


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] Generic SNMP query

2009-06-22 Thread Livio Zanol Puppim
I've searched this at monitoring exchange, but I haven't found many scripts.
What options I have to use as "generic" SNMP checks? Passing OIDs or tables
and comparing with values for critical and warning states, and passing data
trought performance output.

What scripts do you use?

-- 
[]'s

Lívio Zanol Puppim
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] ndoutils 1.3.1

2009-06-22 Thread Carsten Schmidt
Hello Natalie,

you need to compile ndoutils with mysql-support. A normal ./configure 
should find the required files, so maybe:

a) your system lacks the mysql-development-libraries (on debian/ubuntu 
the package is called "libmysqlclient-dev" I think).
configure should write out the following lines:
-
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
MySQL library and include file(s) were found!
-
If you have installed the development files just do "./configure && 
make" again.

b) configure can't just find them, for that case the README at 
ndoutils-1.4b7 told the following:

-
Use the following commands to compile the NDO broker module, NDO2DB 
daemon, and
additional utilities:

./configure
make

If the configure script is unable to locate your MySQL or PostgreSQL 
development
libraries, you may need to help it out by using the --with-mysql-lib or
--with-pgsql-lib options.  Here's an example:

./configure --with-mysql-lib=/usr/lib/mysql
-

good luck
-- Carsten


Natalie Aloi schrieb:
> Hello
>  
> I need some additional help for installing NDOUtils1.3.1 I am running 
> nagios v2.11 and am trying to get nagvis installed
> I have installed the mysql database and it has this information in it
>
> mysql> CREATE DATABASE nagios;
> ERROR 1007 (HY000): Can't create database 'nagios'; database exists
> mysql> show databases;
> ++
> | Database |
> ++
> | information_schema |
> | cactidb |
> | mysql |
> | nagios |
> | test |
> ++
> 5 rows in set (0.00 sec)
>
> mysql> GRANT ALL ON nagios.* TO nag...@localhost IDENTIFIED BY "nagios";
> Query OK, 0 rows affected (0.00 sec)
>
> mysql> FLUSH PRIVILEGES;
> Query OK, 0 rows affected (0.00 sec)
>
> mysql> quit
>
> I have run through the entire install process but when I get to this 
> (see below) - I get an error referncing the database...I don't know 
> what I am missing...Any help would be appreciated
>
> [r...@nagios sbin]# ndo2db-2x -c /etc/nagios/ndo2db.cfg
> Support for the specified database server is either not yet supported, 
> or was not found on your system.
> e-mail:na...@experisdatacenters.com

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] ndoutils 1.3.1

2009-06-22 Thread Natalie Aloi

Hello

I need some additional help for installing NDOUtils1.3.1 I am running nagios 
v2.11 and am trying to get nagvis installed

I have installed the mysql database and it has this information in it
mysql> CREATE DATABASE nagios;
ERROR 1007 (HY000): Can't create database 'nagios'; database exists
mysql> show databases;
++
| Database |
++
| information_schema |
| cactidb |
| mysql |
| nagios |
| test |
++
5 rows in set (0.00 sec)
mysql> GRANT ALL ON nagios.* TO nag...@localhost IDENTIFIED BY "nagios";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
I have run through the entire install process but when I get to this (see 
below) - I get an error referncing the database...I don't know what I am 
missing...Any help would be appreciated

[r...@nagios sbin]# ndo2db-2x -c /etc/nagios/ndo2db.cfg
Support for the specified database server is either not yet supported, or was 
not found on your system.

e-mail:na...@experisdatacenters.com
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] Access Control for disable notification?

2009-06-22 Thread Litwin, Matthew
This would disable notifications across the board, wouldn't it?

 



From: Sean Carley [mailto:scar...@gmi-mr.com] 
Sent: Friday, June 19, 2009 1:47 PM
To: Litwin, Matthew; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Access Control for disable notification?

 

You could always use an apache rewrite rule to discourage those
commands:

 

   RewriteEngine On

   RewriteCond %{QUERY_STRING} ^(cmd_typ=25)(.*)

   RewriteRule ^cmd\.cgi$ /nagios/nodisable.html

 

   RewriteCond %{QUERY_STRING} ^(cmd_typ=23)(.*)

   RewriteRule ^cmd\.cgi$ /nagios/nodisable.html

 

   RewriteCond %{QUERY_STRING} ^(cmd_typ=29)(.*)

   RewriteRule ^cmd\.cgi$ /nagios/nodisable.html

 

 

 

From: Mat W [mailto:lmw94...@hotmail.com] 
Sent: Friday, June 19, 2009 12:32 PM
To: mlit...@stubhub.com; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Access Control for disable notification?

 

cgi.cfg has the options for security access to the webUI.  
 
authorized_for_all_service_commands
 
You can't get that much more granular out of the box I don't think.
Might be some addons out there, but I haven't dug into it.

-- 
Mat W. - http://www.techadre.com  


 



Date: Fri, 19 Jun 2009 11:48:39 -0700
From: mlit...@stubhub.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Access Control for disable notification?

Is there a way to control user access for just the controls to
disable/enable notification alerts for a monitor in nagios.cfg or
elsewhere?

 



Bing(tm) brings you maps, menus, and reviews organized in one place. Try
it now.
 

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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 SLA tool

2009-06-22 Thread Ulf Karlsson
Hi Felipe,

I have written a small Python script that uses pycurl to retrieve the
Nagios availability web page, and then PyQuery to parse the HTML and
retrieve the table with the availability report and put it into a
custom HTML body and then smtplib to send an email. It was pretty
straight forward, tell me if you're interested and perhaps I can
prepare a version without passwords etc.

/Ulf

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] socket time out

2009-06-22 Thread Param Srinivas
Connectivity is excellent, check_ping works fine. No firewall and DNS -
using host by ip only.

Also for the socket time out error tried increasing the time by 50 sec but
still the same.

Now NC_NET when installed , it requires few changes in its configuration
right ? Like in active_ip_accept_list  included the ip address of the Nagios
server , and changing the startup.cfg file by commenting out port and
ipaddress.

Note :  When opening the config files for NC_NET i select open as word pad

Is this right ?

There is not proper documentation on how to troubleshoot issues with NC_NET


Thanks
Param
On Mon, Jun 22, 2009 at 11:31 AM, Mathew Walker wrote:

> sounds like a possible connectivity issue between the boxes...
>
> check connectivity, services, firewall settings, and DNS (if using host
> addresses vs. IPs).  that's my usual run down of issues.
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> --
> Date: Mon, 22 Jun 2009 11:20:25 -0400
> From: prmsr...@gmail.com
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] socket time out
>
>
> Hello guys,
>
> We are facing problem with one windows server that has socket time out
> error for a long time.
>  NC_NET is installed on this server. C drive is showing "socket timeout
> after 20 sec" error.
>
> Can any body tell why is this hapenning ?
> --
> Best Regards
> Param S
>
> --
> Bing™ brings you maps, menus, and reviews organized in one place. Try it
> now.
>



-- 
Best Regards
Param S
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] socket time out

2009-06-22 Thread Mathew Walker

sounds like a possible connectivity issue between the boxes... 

 

check connectivity, services, firewall settings, and DNS (if using host 
addresses vs. IPs).  that's my usual run down of issues.

-- 
Mat W. - http://www.techadre.com


 


Date: Mon, 22 Jun 2009 11:20:25 -0400
From: prmsr...@gmail.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] socket time out


Hello guys,
 
We are facing problem with one windows server that has socket time out error 
for a long time. 

NC_NET is installed on this server. C drive is showing "socket timeout after 20 
sec" error. 
 
Can any body tell why is this hapenning ?
-- 
Best Regards
Param S

_
Bing™  brings you maps, menus, and reviews organized in one place.   Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TEXT_MLOGEN_Core_tagline_local_1x1--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] REPOST: Problem in Preflight Check with commands.cfg

2009-06-22 Thread Mathew Walker

Ahhh... perhaps you're calling the directory as well as the file explicitly in 
nagios.cfg?  

-- 
Mat W. - http://www.techadre.com


 
> Date: Mon, 22 Jun 2009 05:12:29 -0700
> From: subscript...@kkeane.com
> CC: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] REPOST: Problem in Preflight Check with 
> commands.cfg
> 
> I would suggest that you use grep to be sure you really caught all 
> configuration files (grep -ri "check_dns" /etc/nagios3).
> 
> My guess, though - just a hunch - is that you may be accidentally 
> including the same file twice in your nagios.cfg. For instance, you may 
> have explicitly specified it in nagios.cfg, and it may also get 
> automatically included because it is in the conf.d directory.
> 
> Another possibility is that the directory structures of the old and new 
> nagios servers don't match, and you somehow ended up with two separate 
> command.cfg files.
> 
> Kaplan, Andrew H. wrote:
> > Hi there--
> > 
> > I am reposting this question due to a lack of response. I really am in need 
> > of 
> > help here, and any would be greatly appreciated. Thanks.
> >
> > I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
> > using the apt-get utility. We currently have a Nagios 2.6 server running, 
> > and 
> > I wanted to import the configuration files into the newer server. To that 
> > end, 
> > I have placed the appropriate configuration files in the /etc/nagios3/conf.d
> > directory, and modified the nagios.cfg file to reflect the location of the
> > configuration files.
> > 
> > I ran the preflight check and the following error message appeared 
> > on-screen:
> > 
> > /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
> > Nagios 3.0.6
> > Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> > Last Modified: 12-01-2008
> > License: GPL
> > Reading configuration data...
> > Warning: Duplicate definition found for command 'check_dns' (config file
> > '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> > Error: Could not add object property in file 
> > '/etc/nagios3/conf.d/commands.cfg'
> > on line 91.
> > ***> One or more problems was encountered while processing the config 
> > files...
> > Check your configuration file(s) to ensure that they contain valid
> > directives and data defintions. If you are upgrading from a previous
> > version of Nagios, you should be aware that some variables/definitions
> > may have been removed or modified in this version. Make sure to read
> > the HTML documentation regarding the config files, as well as the
> > 'Whats New' section to find out what has changed.
> > 
> > I checked the commands.cfg, and several other files, and I do not see where 
> > the
> > duplicate definition is occurring. 
> > Can someone lend a hand on this? Thanks.
> >
> > -Original Message-
> > From: Kaplan, Andrew H. 
> > Sent: Friday, June 19, 2009 4:52 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Problem in Preflight Check with commands.cfg
> >
> > Hi there --
> > 
> > I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
> > using the apt-get utility. 
> > We currently have a Nagios 2.6 server running, and I wanted to import the
> > configuration files into the
> > newer server. To that end, I have placed the appropriate configuration 
> > files in
> > the /etc/nagios3/conf.d
> > directory, and modified the nagios.cfg file to reflect the location of the
> > configuration files.
> > 
> > I ran the preflight check and the following error message appeared 
> > on-screen:
> > 
> > /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
> > Nagios 3.0.6
> > Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> > Last Modified: 12-01-2008
> > License: GPL
> > Reading configuration data...
> > Warning: Duplicate definition found for command 'check_dns' (config file
> > '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> > Error: Could not add object property in file 
> > '/etc/nagios3/conf.d/commands.cfg'
> > on line 91.
> > ***> One or more problems was encountered while processing the config 
> > files...
> > Check your configuration file(s) to ensure that they contain valid
> > directives and data defintions. If you are upgrading from a previous
> > version of Nagios, you should be aware that some variables/definitions
> > may have been removed or modified in this version. Make sure to read
> > the HTML documentation regarding the config files, as well as the
> > 'Whats New' section to find out what has changed.
> > 
> > I checked the commands.cfg, and several other files, and I do not see where 
> > the
> > duplicate definition is occurring. 
> > Can someone lend a hand on this? Thanks.
> > 
> 
> -- 
> 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 
> propr

[Nagios-users] socket time out

2009-06-22 Thread Param Srinivas
Hello guys,

We are facing problem with one windows server that has socket time out error
for a long time.
 NC_NET is installed on this server. C drive is showing "socket timeout
after 20 sec" error.

Can any body tell why is this hapenning ?
-- 
Best Regards
Param S
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] Infrastructure help!

2009-06-22 Thread Kevin Keane
If you don't want to receive these emails, you have to unsubscribe from 
the list.

cms.mahape wrote:
>
> Please don’t send mail again
>
> Atish
>
> 
>
> *From:* Harald Böhmecke [mailto:harald.boehme...@bertelsmann.de]
> *Sent:* Monday, June 22, 2009 4:38 PM
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* [Nagios-users] Infrastructure help!
>
> Hi guys,
>
> We are currently about to fully engage with Nagios.
>
> Our current VM which has aprox. 1200 services and 200 hosts will be 
> deleted and a new "distributed monitoring" will be setup.
>
> Thing is, we need to monitor aprox. 500 hosts with aprox. 6000 services.
>
> Almost all Servers are in a single location. So there should be no 
> need for Nagios "probes" distributed on big locations...
>
> Has anyone had an experience with Nagios with this ammount of 
> hosts/services to be monitored? I need a basic guidance regarding 
> hardware and distribution model to be used.
>
>
> Thanks in advance for your suggestions.
>
> Regards,
>
> Harald
>
>  
>  
> 
>
> --
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> 
>
> ___
> 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.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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 dont care about time periods

2009-06-22 Thread Gabriel Sosa
great!!! thats the problem!!!

hahah... I can't believe I miss that!! I mean.. I can believe I miss that.. :P

thank you

On Mon, Jun 22, 2009 at 11:56 AM, Guy Waugh wrote:
> Hello,
>
> I might be misunderstanding you here, but it looks like the timeperiods
> might not be defined correctly for what you want.
>
> It looks like the first timeperiod is defined as the entire week except for
> Tuesday, Thursday and Saturday, midnight to 9 mins past midnight, and
> 10:00pm to midnight. So the only times in the week that aren't lying within
> the timeperiod are about two hours and nine minutes on each of those three
> days. The second timeperiod is defined similarly, but for the days Monday,
> Wednesday and Friday instead of Tuesday, Thursday and Saturday.
>
> Here is a timeperiod we use to define 'non-working hours' -- it might give
> you a bit of help in crafting your own timeperiods...:
>
> define  timeperiod {
>     timeperiod_name nonworkhours
>     alias   Non Working Hours
>     sunday  00:00-24:00
>     monday  00:00-09:00,17:00-24:00
>     tuesday 00:00-09:00,17:00-24:00
>     wednesday   00:00-09:00,17:00-24:00
>     thursday    00:00-09:00,17:00-24:00
>     friday  00:00-09:00,17:00-24:00
>     saturday    00:00-24:00
>     }
>
> Regards,
> Guy.
>
>
> On Mon, Jun 22, 2009 at 3:42 PM, Gabriel Sosa  wrote:
>>
>> guys,
>>
>> we are two sysAdmin and for that I added two time periods for alerts
>> but nagios still sending alerts to both. It was working fine but from
>> one week ago when I added some other services to check we both
>> starting getting alerts.
>>
>> And I'm sure about something its working wrong because when I go to
>> nagios and check the log or alerts sent I can see that were sent to
>> both.
>>
>> Any ideas? Thank you!
>>
>>
>> here is my timeperiods config:
>>
>> define timeperiod{
>>        timeperiod_name LUNES_MIERCOLES_VIERNES_DOMINGO
>>        alias          3 DAYS A WEEK AND SUNDAY
>>        sunday          00:00-24:00
>>        monday          00:00-24:00
>>        tuesday         00:09-22:00
>>        wednesday       00:00-24:00
>>        thursday        00:09-22:00
>>        friday          00:00-24:00
>>        saturday        00:09-22:00
>>        }
>>
>> define timeperiod{
>>        timeperiod_name MARTES_JUEVES_SABADOS_DOMINGO
>>        alias           JONY 3 DAYS A WEEK AND SUNDAY
>>        sunday          00:00-24:00
>>        monday          00:09-22:00
>>        tuesday         00:00-24:00
>>        wednesday       00:09-22:00
>>        thursday        00:00-24:00
>>        friday          00:09-22:00
>>        saturday        00:00-24:00
>>        }
>>
>>
>> AND MY CONTACTs CONFIG
>>
>>
>> define contact{
>>        contact_name jonathan
>>        use generic-contact
>>        alias Jonathan
>>        email x...@
>>        service_notification_period MARTES_JUEVES_SABADOS_DOMINGO
>>        host_notification_period MARTES_JUEVES_SABADOS_DOMINGO
>> }
>>
>> define contact{
>>        contact_name gabriel
>>        use generic-contact
>>        alias Gabriel
>>        email x...@a
>>        service_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
>>        host_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
>> }
>>
>>
>> --
>> Gabriel Sosa
>> Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
>>
>>
>> --
>> Are you an open source citizen? Join us for the Open Source Bridge
>> conference!
>> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
>> $250.
>> Need another reason to go? 24-hour hacker lounge. Register today!
>>
>> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
>> ___
>> 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
>
>



-- 
Gabriel Sosa
Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] REPOST: Problem in Preflight Check with commands.cfg

2009-06-22 Thread Kevin Keane
I would suggest that you use grep to be sure you really caught all 
configuration files (grep -ri "check_dns" /etc/nagios3).

My guess, though - just a hunch - is that you may be accidentally 
including the same file twice in your nagios.cfg. For instance, you may 
have explicitly specified it in nagios.cfg, and it may also get 
automatically included because it is in the conf.d directory.

Another possibility is that the directory structures of the old and new 
nagios servers don't match, and you somehow ended up with two separate 
command.cfg files.

Kaplan, Andrew H. wrote:
> Hi there--
>  
> I am reposting this question due to a lack of response. I really am in need 
> of 
> help here, and any would be greatly appreciated. Thanks.
>
> I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
> using the apt-get utility. We currently have a Nagios 2.6 server running, and 
> I wanted to import the configuration files into the newer server. To that 
> end, 
> I have placed the appropriate configuration files in the /etc/nagios3/conf.d
> directory, and modified the nagios.cfg file to reflect the location of the
> configuration files.
>  
> I ran the preflight check and the following error message appeared on-screen:
>  
> /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
> Nagios 3.0.6
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 12-01-2008
> License: GPL
> Reading configuration data...
> Warning: Duplicate definition found for command 'check_dns' (config file
> '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> Error: Could not add object property in file 
> '/etc/nagios3/conf.d/commands.cfg'
> on line 91.
> ***> One or more problems was encountered while processing the config files...
>  Check your configuration file(s) to ensure that they contain valid
>  directives and data defintions.  If you are upgrading from a previous
>  version of Nagios, you should be aware that some variables/definitions
>  may have been removed or modified in this version.  Make sure to read
>  the HTML documentation regarding the config files, as well as the
>  'Whats New' section to find out what has changed.
>  
> I checked the commands.cfg, and several other files, and I do not see where 
> the
> duplicate definition is occurring. 
> Can someone lend a hand on this? Thanks.
>
> -Original Message-
> From: Kaplan, Andrew H. 
> Sent: Friday, June 19, 2009 4:52 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Problem in Preflight Check with commands.cfg
>
> Hi there --
>  
> I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
> using the apt-get utility. 
> We currently have a Nagios 2.6 server running, and I wanted to import the
> configuration files into the
> newer server. To that end, I have placed the appropriate configuration files 
> in
> the /etc/nagios3/conf.d
> directory, and modified the nagios.cfg file to reflect the location of the
> configuration files.
>  
> I ran the preflight check and the following error message appeared on-screen:
>  
> /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
> Nagios 3.0.6
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 12-01-2008
> License: GPL
> Reading configuration data...
> Warning: Duplicate definition found for command 'check_dns' (config file
> '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> Error: Could not add object property in file 
> '/etc/nagios3/conf.d/commands.cfg'
> on line 91.
> ***> One or more problems was encountered while processing the config files...
>  Check your configuration file(s) to ensure that they contain valid
>  directives and data defintions.  If you are upgrading from a previous
>  version of Nagios, you should be aware that some variables/definitions
>  may have been removed or modified in this version.  Make sure to read
>  the HTML documentation regarding the config files, as well as the
>  'Whats New' section to find out what has changed.
>  
> I checked the commands.cfg, and several other files, and I do not see where 
> the
> duplicate definition is occurring. 
> Can someone lend a hand on this? Thanks.
>   

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


--
Are you an open source citizen? Join us for t

Re: [Nagios-users] Infrastructure help!

2009-06-22 Thread cms.mahape
Please don’t send mail again

 

Atish

 

  _  

From: Harald Böhmecke [mailto:harald.boehme...@bertelsmann.de] 
Sent: Monday, June 22, 2009 4:38 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Infrastructure help!

 

Hi guys,

We are currently about to fully engage with Nagios.

Our current VM which has aprox. 1200 services and 200 hosts will be deleted
and a new "distributed monitoring" will be setup.

Thing is, we need to monitor aprox. 500 hosts with aprox. 6000 services.

Almost all Servers are in a single location. So there should be no need for
Nagios "probes" distributed on big locations...

Has anyone had an experience with Nagios with this ammount of hosts/services
to be monitored? I need a basic guidance regarding hardware and distribution
model to be used.


Thanks in advance for your suggestions.

Regards,

Harald

 
 
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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 dont care about time periods

2009-06-22 Thread Guy Waugh
Hello,

I might be misunderstanding you here, but it looks like the timeperiods
might not be defined correctly for what you want.

It looks like the first timeperiod is defined as the entire week except for
Tuesday, Thursday and Saturday, midnight to 9 mins past midnight, and
10:00pm to midnight. So the only times in the week that aren't lying within
the timeperiod are about two hours and nine minutes on each of those three
days. The second timeperiod is defined similarly, but for the days Monday,
Wednesday and Friday instead of Tuesday, Thursday and Saturday.

Here is a timeperiod we use to define 'non-working hours' -- it might give
you a bit of help in crafting your own timeperiods...:

define  timeperiod {
timeperiod_name nonworkhours
alias   Non Working Hours
sunday  00:00-24:00
monday  00:00-09:00,17:00-24:00
tuesday 00:00-09:00,17:00-24:00
wednesday   00:00-09:00,17:00-24:00
thursday00:00-09:00,17:00-24:00
friday  00:00-09:00,17:00-24:00
saturday00:00-24:00
}

Regards,
Guy.


On Mon, Jun 22, 2009 at 3:42 PM, Gabriel Sosa  wrote:

> guys,
>
> we are two sysAdmin and for that I added two time periods for alerts
> but nagios still sending alerts to both. It was working fine but from
> one week ago when I added some other services to check we both
> starting getting alerts.
>
> And I'm sure about something its working wrong because when I go to
> nagios and check the log or alerts sent I can see that were sent to
> both.
>
> Any ideas? Thank you!
>
>
> here is my timeperiods config:
>
> define timeperiod{
>timeperiod_name LUNES_MIERCOLES_VIERNES_DOMINGO
>alias  3 DAYS A WEEK AND SUNDAY
>sunday  00:00-24:00
>monday  00:00-24:00
>tuesday 00:09-22:00
>wednesday   00:00-24:00
>thursday00:09-22:00
>friday  00:00-24:00
>saturday00:09-22:00
>}
>
> define timeperiod{
>timeperiod_name MARTES_JUEVES_SABADOS_DOMINGO
>alias   JONY 3 DAYS A WEEK AND SUNDAY
>sunday  00:00-24:00
>monday  00:09-22:00
>tuesday 00:00-24:00
>wednesday   00:09-22:00
>thursday00:00-24:00
>friday  00:09-22:00
>saturday00:00-24:00
>}
>
>
> AND MY CONTACTs CONFIG
>
>
> define contact{
>contact_name jonathan
>use generic-contact
>alias Jonathan
>email x...@
>service_notification_period MARTES_JUEVES_SABADOS_DOMINGO
>host_notification_period MARTES_JUEVES_SABADOS_DOMINGO
> }
>
> define contact{
>contact_name gabriel
>use generic-contact
>alias Gabriel
>email x...@a
>service_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
>host_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
> }
>
>
> --
> Gabriel Sosa
> Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
>
>
> --
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
>
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> ___
> 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
>
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] REPOST: Problem in Preflight Check with commands.cfg

2009-06-22 Thread Gabriel - IP Guys
I would suggest that you install version 2.6 on ubuntu, and then upgrade
through the versions. It will take some time, but jumping from 2.6 to
3.0.6 is asking for issues. There are just too many things that have
changed. Besides, it will also teach you about the upgrade process :)

> -Original Message-
> From: Kaplan, Andrew H. [mailto:ahkap...@partners.org]
> Sent: 22 June 2009 12:56
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] REPOST: Problem in Preflight Check with
> commands.cfg
> Importance: High
> 
> Hi there--
> 
> I am reposting this question due to a lack of response. I really am in
> need of
> help here, and any would be greatly appreciated. Thanks.
> 
> I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04
> server
> using the apt-get utility. We currently have a Nagios 2.6 server
> running, and
> I wanted to import the configuration files into the newer server. To
> that end,
> I have placed the appropriate configuration files in the
> /etc/nagios3/conf.d
> directory, and modified the nagios.cfg file to reflect the location of
> the
> configuration files.
> 
> I ran the preflight check and the following error message appeared on-
> screen:
> 
> /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
> Nagios 3.0.6
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 12-01-2008
> License: GPL
> Reading configuration data...
> Warning: Duplicate definition found for command 'check_dns' (config
> file
> '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> Error: Could not add object property in file
> '/etc/nagios3/conf.d/commands.cfg'
> on line 91.
> ***> One or more problems was encountered while processing the config
> files...
>  Check your configuration file(s) to ensure that they contain
valid
>  directives and data defintions.  If you are upgrading from a
> previous
>  version of Nagios, you should be aware that some
> variables/definitions
>  may have been removed or modified in this version.  Make sure to
> read
>  the HTML documentation regarding the config files, as well as the
>  'Whats New' section to find out what has changed.
> 
> I checked the commands.cfg, and several other files, and I do not see
> where the
> duplicate definition is occurring.
> Can someone lend a hand on this? Thanks.
> 
> -Original Message-
> From: Kaplan, Andrew H.
> Sent: Friday, June 19, 2009 4:52 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Problem in Preflight Check with commands.cfg
> 
> Hi there --
> 
> I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04
> server
> using the apt-get utility.
> We currently have a Nagios 2.6 server running, and I wanted to import
> the
> configuration files into the
> newer server. To that end, I have placed the appropriate configuration
> files in
> the /etc/nagios3/conf.d
> directory, and modified the nagios.cfg file to reflect the location of
> the
> configuration files.
> 
> I ran the preflight check and the following error message appeared on-
> screen:
> 
> /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
> Nagios 3.0.6
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 12-01-2008
> License: GPL
> Reading configuration data...
> Warning: Duplicate definition found for command 'check_dns' (config
> file
> '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> Error: Could not add object property in file
> '/etc/nagios3/conf.d/commands.cfg'
> on line 91.
> ***> One or more problems was encountered while processing the config
> files...
>  Check your configuration file(s) to ensure that they contain
valid
>  directives and data defintions.  If you are upgrading from a
> previous
>  version of Nagios, you should be aware that some
> variables/definitions
>  may have been removed or modified in this version.  Make sure to
> read
>  the HTML documentation regarding the config files, as well as the
>  'Whats New' section to find out what has changed.
> 
> I checked the commands.cfg, and several other files, and I do not see
> where the
> duplicate definition is occurring.
> Can someone lend a hand on this? 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.
> 
> 
>
---
> ---
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of
> unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!

[Nagios-users] nagios dont care about time periods

2009-06-22 Thread Gabriel Sosa
guys,

we are two sysAdmin and for that I added two time periods for alerts
but nagios still sending alerts to both. It was working fine but from
one week ago when I added some other services to check we both
starting getting alerts.

And I'm sure about something its working wrong because when I go to
nagios and check the log or alerts sent I can see that were sent to
both.

Any ideas? Thank you!


here is my timeperiods config:

define timeperiod{
       timeperiod_name LUNES_MIERCOLES_VIERNES_DOMINGO
       alias          3 DAYS A WEEK AND SUNDAY
       sunday          00:00-24:00
       monday          00:00-24:00
       tuesday         00:09-22:00
       wednesday       00:00-24:00
       thursday        00:09-22:00
       friday          00:00-24:00
       saturday        00:09-22:00
       }

define timeperiod{
       timeperiod_name MARTES_JUEVES_SABADOS_DOMINGO
       alias           JONY 3 DAYS A WEEK AND SUNDAY
       sunday          00:00-24:00
       monday          00:09-22:00
       tuesday         00:00-24:00
       wednesday       00:09-22:00
       thursday        00:00-24:00
       friday          00:09-22:00
       saturday        00:00-24:00
       }


AND MY CONTACTs CONFIG


define contact{
       contact_name jonathan
       use generic-contact
       alias Jonathan
       email x...@
       service_notification_period MARTES_JUEVES_SABADOS_DOMINGO
       host_notification_period MARTES_JUEVES_SABADOS_DOMINGO
}

define contact{
       contact_name gabriel
       use generic-contact
       alias Gabriel
       email x...@a
       service_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
       host_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
}


--
Gabriel Sosa
Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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 dont care about time periods

2009-06-22 Thread Gabriel Sosa
guys,

we are two sysAdmin and for that I added two time periods for alerts
but nagios still sending alerts to both. It was working fine but from
one week ago when I added some other services to check we both
starting getting alerts.

And I'm sure about something its working wrong because when I go to
nagios and check the log or alerts sent I can see that were sent to
both.

Any ideas? Thank you!


here is my timeperiods config:

define timeperiod{
timeperiod_name LUNES_MIERCOLES_VIERNES_DOMINGO
alias  3 DAYS A WEEK AND SUNDAY
sunday  00:00-24:00
monday  00:00-24:00
tuesday 00:09-22:00
wednesday   00:00-24:00
thursday00:09-22:00
friday  00:00-24:00
saturday00:09-22:00
}

define timeperiod{
timeperiod_name MARTES_JUEVES_SABADOS_DOMINGO
alias   JONY 3 DAYS A WEEK AND SUNDAY
sunday  00:00-24:00
monday  00:09-22:00
tuesday 00:00-24:00
wednesday   00:09-22:00
thursday00:00-24:00
friday  00:09-22:00
saturday00:00-24:00
}


AND MY CONTACTs CONFIG


define contact{
contact_name jonathan
use generic-contact
alias Jonathan
email x...@
service_notification_period MARTES_JUEVES_SABADOS_DOMINGO
host_notification_period MARTES_JUEVES_SABADOS_DOMINGO
}

define contact{
contact_name gabriel
use generic-contact
alias Gabriel
email x...@a
service_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
host_notification_period LUNES_MIERCOLES_VIERNES_DOMINGO
}


-- 
Gabriel Sosa
Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] Return code of 142 is out of bounds

2009-06-22 Thread Mathew Walker

just a thought... 

 

is $HOSTNAME$ valid?  sure you don't mean $HOSTADDRESS$ instead?

-- 
Mat W. - http://www.techadre.com


 


Date: Sat, 20 Jun 2009 11:34:17 +0530
Subject: Re: [Nagios-users] Return code of 142 is out of bounds
From: victor...@gmail.com
To: lmw94...@hotmail.com
CC: nagios-users@lists.sourceforge.net

I am using the snmp commands. The following are a coupld of examples:

check_snmp_ntpstat -H $HOSTNAME$ -C COMMUNITY_NAME
check_snmp_disk -H $HOSTNAME$ -C COMMUNITY_NAME

I have seen the faqs mentioned by you and it says the same thing as mentioned 
by you. But interestingly, error "Return code of 142" started to show up from 
version 3.x. I did not find that in any previous versions.

Regards,


On Thu, Jun 18, 2009 at 8:24 PM, Mat W  wrote:


there's the FAQ... http://www.nagios.org/faqs/viewfaq.php?faq_id=17
 
I think this can also happen when some checks returns -no- value, or return a 
string when expecting an integer, etc.  essentially encountering something the 
plugin isn't expecting which could be leading to "bad exit" from the script.

Can you recreate this from the command line?

-- 
Mat W. - http://www.techadre.com


 


Date: Thu, 18 Jun 2009 10:38:18 +0530
From: victor...@gmail.com

To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Return code of 142 is out of bounds




Hi All,

I am running Nagios 3.0.2 on FC5 server.

I have been encountering this strange error intermittently on a few checks.

(Return code of 142 is out of bounds)

I am using the nagios with snmp (net-snmp-5.2 & net-snmp-5.3) on a few servers.

This normally happens with snmp-load checks or snmp-disk checks.

I could not find anything related to this problem over the internet. Hoping to 
get a solution to this problem here.

Regards,




Windows LiveT: Keep your life in sync. Check it out.

-- 
Regards,
Gagan Brahmi
(SKY)
+919860091019

(¨`ˇ.ˇ´¨) Always
`ˇ.¸(¨`ˇ.ˇ´¨) Keep
(¨`ˇ.ˇ´¨)¸.ˇ´ Smiling!
 `ˇ.¸.ˇ´

_
Lauren found her dream laptop. Find the PC that's right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] Infrastructure help!

2009-06-22 Thread Harald Böhmecke
I am sorry. The mail was stuck on the outbox of Evolution. I did not
notice it was being re-sent.

Regards,

Harald


-Original Message-
From: cms.mahape 
To: 'Harald Böhmecke' ,
nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Infrastructure help!
Date: Mon, 22 Jun 2009 16:42:30 +0530

Please don’t send mail again

 

Atish

 



From: Harald Böhmecke [mailto:harald.boehme...@bertelsmann.de] 
Sent: Monday, June 22, 2009 4:38 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Infrastructure help!


 

Hi guys,

We are currently about to fully engage with Nagios.

Our current VM which has aprox. 1200 services and 200 hosts will be
deleted and a new "distributed monitoring" will be setup.

Thing is, we need to monitor aprox. 500 hosts with aprox. 6000 services.

Almost all Servers are in a single location. So there should be no need
for Nagios "probes" distributed on big locations...

Has anyone had an experience with Nagios with this ammount of
hosts/services to be monitored? I need a basic guidance regarding
hardware and distribution model to be used.


Thanks in advance for your suggestions.

Regards,

Harald


 
 
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] StatusMaps Nagios With Google Maps

2009-06-22 Thread Traiano Welcome

Hi Deocir

I have a (not very elegant) but working implementation of this, below is 
a description that you may be able to use as a rough example to 
construct your own, and attached is the scripts I use:



The system is composed of a number of components

1. Google API Frontend (NAGIOS-monitored sites over a map display):
--

The GoogleMaps frontend scripts are based on examples provided in the 
API tutorial, and modified to display sites stored in a mysql database 
table. The scripts draw individual sites with markers coloured blue or 
red depending on whether the site is up or down, and also links 
(representing WAN links) between sites defined by two GPS end-points.



2. Node and Link Editing Interface (so users can edit WAN links and site 
markers)

---

PHP scripts provide an interface to define single nodes on a map, which 
represent sites monitored by NAGIOS, and also WAN links between two
sites that have been defined. Basically, the scripts allow you to enter 
site details and GPS coordinates into a database table, which the Google API

code will read and represent on the GoogleMap.

3. Database Backend (to hold site GPS coordinates and site status info):
-

Mysql database tables hold information defining a "site" on the map, i.e 
GPS coordinates, colour of the marker, name of the site and
a short textual description of the site which will pop up on the map "on 
mouse-over ".


The GoogleMap frontend code reads these tables in order to draw links 
and individual sites. The tables are edited through a simple HTML/PHP 
frontend in order to define sites and links.


4. Site Marker update script (to update the status of site markers on 
the map according to NAGIOS alerts)

--

NAGIOS sends alerts via email to an email alias on the web server, the 
alias is to a perl script which parses the email and updates the status 
of the site in the database table. Depending on the status of a site 
(UP/DOWN) the colour of the marker for a given site is changed between 
Blue and Red, and this will show up on the GoogleMap frontend.



Attached are the scripts that comprise the system, below is a 
description of how they're arranged in the file hierarchy on my web server:


Web front-end scripts:

-
trai...@sparklight:/var/www/maps/# ls -l

-rw-r--r-- 1 root root 3921 2009-06-19 13:40 index.html
-rw-r--r-- 1 root root 4950 2009-06-19 13:40 mapedit.php

-rwxr-xr-x 1 root root 90 2009-06-19 13:40 phpsqlajax_dbinfo.php
-rwxr-xr-x 1 root root 1277 2009-06-19 13:40 phpsqlajax_genxml_lines.php
-rwxr-xr-x 1 root root 1238 2009-06-19 13:40 phpsqlajax_genxml.php

-rwxr-xr-x 1 root root 1965 2009-06-19 13:40 store_link.php



Perl code and files to update the status of sites in the database


trai...@sparklight:/var/local/google_mapping# ls -la *

-rw-rw-rw- 1 root staff 98222 2009-06-03 19:36 msg.log
-rw-r--r-- 1 root staff 230 2009-02-09 15:33 sample.dat
-rw-rw-rw- 1 root staff 773 2009-06-03 19:36 site_status.dat

bin:
total 12
drwxr-sr-x 2 root staff 4096 2009-02-09 15:38 .
drwxrwsrwx 3 root staff 4096 2009-06-19 13:45 ..
-rwxr-xr-x 1 root staff 2279 2009-02-09 15:38 update_marker_status.pl


Database schema and sample data:


--- tables in the google mapping database 

mysql> show tables;

+--+
| Tables_in_google_mapping |
+--+
| map_items |
| map_links |
| map_node_relations |
| map_nodes |
| markers |
+--+
5 rows in set (0.00 sec)


--- map_items 

The map_items table holds items for a drop down list so the user can 
select the colour of a link when defining it through the interface:



mysql> describe map_items;
+-+--+--+-+-++
| Field | Type | Null | Key | Default | Extra |
+-+--+--+-+-++
| id | int(11) | NO | PRI | NULL | auto_increment |
| link_colour | varchar(255) | NO | | #FF | |
| link_width | int(16) | NO | | 3 | |
+-+--+--+-+-++
3 rows in set (0.00 sec)


mysql> select * from map_items;
++-++
| id | link_colour | link_width |
++-++
| 1 | #FF | 1 |
| 2 | #FFF200 | 2 |
| 3 | #00FF00 | 3 |
| 4 | #FF5F00 | 4 |
++-++
4 rows in set (0.00 sec)



--- map_links 

The map_links table holds the coordinate information required for the 
GoogleMap API to draw a link. The coords are taken from sites that have 
already been defined in the "markers" ta

Re: [Nagios-users] Infrastructure help!

2009-06-22 Thread Mathew Walker

Alot depends on the type of checks, the check frequency, and timeout values.

 

For example, we have ALOT of webinject (perl script) tests which can take 20-40 
seconds to complete.  With a retry_interval of 1min, when we have some 
"issues", we can quickly have many checks running simultaneously (even hanging, 
waiting for the 60sec timeout).  This can quickly suck memory and may cause 
Nagios to crash.

 

In my situation, I have several small VPS systems that do external monitoring, 
testing and development that check to ensure Nagios is running on the our core 
monitoring box and page me to death if that check fails.  :-)


On a very reasonable spec'd server I'm sure you should be able to handle it.  


-- 
Mat W. - http://www.techadre.com


 
> From: t.h.amund...@usit.uio.no
> To: harald.boehme...@bertelsmann.de
> Date: Mon, 22 Jun 2009 13:44:41 +0200
> CC: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Infrastructure help!
> 
> Harald Böhmecke  writes:
> 
> > We are currently about to fully engage with Nagios.
> >
> > Our current VM which has aprox. 1200 services and 200 hosts will be
> > deleted and a new "distributed monitoring" will be setup.
> >
> > Thing is, we need to monitor aprox. 500 hosts with aprox. 6000
> > services.
> >
> > Almost all Servers are in a single location. So there should be no
> > need for Nagios "probes" distributed on big locations...
> >
> > Has anyone had an experience with Nagios with this ammount of
> > hosts/services to be monitored? I need a basic guidance regarding
> > hardware and distribution model to be used.
> 
> We currently have ~850 host and ~13000 service checks running on a
> single, standalone server. The hardware is nothing fancy, a plain HP
> ProLiant DL360 G5 with 8GB of RAM. You should be fine with a single
> server, but there are a few things to look out for:
> 
> * The 'enable_environment_macro' should be set to 0. Enabling this
> config option seriously increased the load on our server.
> 
> * PNP4Nagios and similar addons may significantly increase the load on
> your server. We collect perfdata and use PNP4Nagios for only a few
> select services.
> 
> * The Nagios embedded perl interpreter (ePN) was a major PITA, it
> leaked memory and we ended up compiling Nagios without ePN
> completely.
> 
> * You may have to adjust the command_check_interval and similar config
> settings.
> 
> * We mostly use NRPE plugins and only monitor UNIX/Linux hosts. You
> may have to take care not to use plugins that consume a lot of
> resources on your Nagios server.
> 
> These are the only tuning tips I can think of for now, but YMMV :)
> 
> We don't use distributed monitoring, but are looking into it. When a
> more streamlined clustered Nagios setup becomes available for production
> use (probably with the Merlin backend), we will definately be
> interested.
> 
> Cheers,
> -- 
> Trond Hasle Amundsen 
> Center for Information Technology Services, University of Oslo
> 
> --
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> ___
> 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

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] WG: nagiosgrapher-1.7.1 -> graphs performance tools?

2009-06-22 Thread Meyer Jerome
Hi again,

 

I've read some webpage about nagiosgrapher... and it will be replace
with netwaysgrapher2 ;(

So, nagiosgrapher doesn't run well and I want to install a new
performance graph tools.

I've seen on Internet about: PNP4Nagios, opcp, nagiosgraph, n2rrd, and
so on...

 

Do you have experience feedback about performance graphs?

 

 

Thank a lot for your help,

jerome

 

Von: Meyer Jerome 
Gesendet: Montag, 22. Juni 2009 11:20
An: 'Nagios-users@lists.sourceforge.net'
Betreff: nagiosgrapher-1.7.1

 

Hi

 

I've installed nagiosGrapher-1.7.1 and a icon (without image) appears at
side from the PING service into the < Service Status Detail > webpage.
When I clic on it the explorer open a new windows with < NETWAYS Nagios
Graph > Title with some infos at the top and with some Current graph,
Daily graph,... boxes at the bottom (see attach file)!

The problem are that no graph appears at all! The only possibility is to
view the graph as PNG,PDF,and so on...

 

I've checked all config. files, read the doc again but I don't find the
problem ?

 

Has anyone some idea?

 

Best regards

Jerome

 

 

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] REPOST: Problem in Preflight Check with commands.cfg

2009-06-22 Thread Guy Waugh
Hi there,

All I can suggest is:

1. "cd /etc/nagios3/conf.d; grep -r check_dns *" and see if the command
definition appears twice anywhere;
2. Vet your nagios.cfg carefully and make sure you're not inadvertently
including the same file twice, files from somewhere else etc.; and
3. Deleting the lines around the definition of the check_dns command, and
the command definition itself, and retyping it manually (to make sure no
strange characters have found their way in there somewhere).

You've probably done the equivalent of all those already, but that's all I
can think of...

Cheers,
Guy.

On Mon, Jun 22, 2009 at 12:55 PM, Kaplan, Andrew H.
wrote:

> Hi there--
>
> I am reposting this question due to a lack of response. I really am in need
> of
> help here, and any would be greatly appreciated. Thanks.
>
> I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04
> server
> using the apt-get utility. We currently have a Nagios 2.6 server running,
> and
> I wanted to import the configuration files into the newer server. To that
> end,
> I have placed the appropriate configuration files in the
> /etc/nagios3/conf.d
> directory, and modified the nagios.cfg file to reflect the location of the
> configuration files.
>
> I ran the preflight check and the following error message appeared
> on-screen:
>
> /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
> Nagios 3.0.6
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 12-01-2008
> License: GPL
> Reading configuration data...
> Warning: Duplicate definition found for command 'check_dns' (config file
> '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> Error: Could not add object property in file
> '/etc/nagios3/conf.d/commands.cfg'
> on line 91.
> ***> One or more problems was encountered while processing the config
> files...
> Check your configuration file(s) to ensure that they contain valid
> directives and data defintions.  If you are upgrading from a previous
> version of Nagios, you should be aware that some variables/definitions
> may have been removed or modified in this version.  Make sure to read
> the HTML documentation regarding the config files, as well as the
> 'Whats New' section to find out what has changed.
>
> I checked the commands.cfg, and several other files, and I do not see where
> the
> duplicate definition is occurring.
> Can someone lend a hand on this? Thanks.
>
> -Original Message-
> From: Kaplan, Andrew H.
> Sent: Friday, June 19, 2009 4:52 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Problem in Preflight Check with commands.cfg
>
> Hi there --
>
> I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04
> server
> using the apt-get utility.
> We currently have a Nagios 2.6 server running, and I wanted to import the
> configuration files into the
> newer server. To that end, I have placed the appropriate configuration
> files in
> the /etc/nagios3/conf.d
> directory, and modified the nagios.cfg file to reflect the location of the
> configuration files.
>
> I ran the preflight check and the following error message appeared
> on-screen:
>
> /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
> Nagios 3.0.6
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 12-01-2008
> License: GPL
> Reading configuration data...
> Warning: Duplicate definition found for command 'check_dns' (config file
> '/etc/nagios3/conf.d/commands.cfg', starting on line 90)
> Error: Could not add object property in file
> '/etc/nagios3/conf.d/commands.cfg'
> on line 91.
> ***> One or more problems was encountered while processing the config
> files...
> Check your configuration file(s) to ensure that they contain valid
> directives and data defintions.  If you are upgrading from a previous
> version of Nagios, you should be aware that some variables/definitions
> may have been removed or modified in this version.  Make sure to read
> the HTML documentation regarding the config files, as well as the
> 'Whats New' section to find out what has changed.
>
> I checked the commands.cfg, and several other files, and I do not see where
> the
> duplicate definition is occurring.
> Can someone lend a hand on this? 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.
>
>
>
> --
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need 

Re: [Nagios-users] Infrastructure help!

2009-06-22 Thread Trond Hasle Amundsen
Harald Böhmecke  writes:

> We are currently about to fully engage with Nagios.
>
> Our current VM which has aprox. 1200 services and 200 hosts will be
> deleted and a new "distributed monitoring" will be setup.
>
> Thing is, we need to monitor aprox. 500 hosts with aprox. 6000
> services.
>
> Almost all Servers are in a single location. So there should be no
> need for Nagios "probes" distributed on big locations...
>
> Has anyone had an experience with Nagios with this ammount of
> hosts/services to be monitored? I need a basic guidance regarding
> hardware and distribution model to be used.

We currently have ~850 host and ~13000 service checks running on a
single, standalone server. The hardware is nothing fancy, a plain HP
ProLiant DL360 G5 with 8GB of RAM. You should be fine with a single
server, but there are a few things to look out for:

  * The 'enable_environment_macro' should be set to 0. Enabling this
config option seriously increased the load on our server.

  * PNP4Nagios and similar addons may significantly increase the load on
your server. We collect perfdata and use PNP4Nagios for only a few
select services.

  * The Nagios embedded perl interpreter (ePN) was a major PITA, it
leaked memory and we ended up compiling Nagios without ePN
completely.

  * You may have to adjust the command_check_interval and similar config
settings.

  * We mostly use NRPE plugins and only monitor UNIX/Linux hosts. You
may have to take care not to use plugins that consume a lot of
resources on your Nagios server.

These are the only tuning tips I can think of for now, but YMMV :)

We don't use distributed monitoring, but are looking into it. When a
more streamlined clustered Nagios setup becomes available for production
use (probably with the Merlin backend), we will definately be
interested.

Cheers,
-- 
Trond Hasle Amundsen 
Center for Information Technology Services, University of Oslo

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] REPOST: Problem in Preflight Check with commands.cfg

2009-06-22 Thread Kaplan, Andrew H.
Hi there--
 
I am reposting this question due to a lack of response. I really am in need of 
help here, and any would be greatly appreciated. Thanks.

I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
using the apt-get utility. We currently have a Nagios 2.6 server running, and 
I wanted to import the configuration files into the newer server. To that end, 
I have placed the appropriate configuration files in the /etc/nagios3/conf.d
directory, and modified the nagios.cfg file to reflect the location of the
configuration files.
 
I ran the preflight check and the following error message appeared on-screen:
 
/usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL
Reading configuration data...
Warning: Duplicate definition found for command 'check_dns' (config file
'/etc/nagios3/conf.d/commands.cfg', starting on line 90)
Error: Could not add object property in file '/etc/nagios3/conf.d/commands.cfg'
on line 91.
***> One or more problems was encountered while processing the config files...
 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.
 
I checked the commands.cfg, and several other files, and I do not see where the
duplicate definition is occurring. 
Can someone lend a hand on this? Thanks.

-Original Message-
From: Kaplan, Andrew H. 
Sent: Friday, June 19, 2009 4:52 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Problem in Preflight Check with commands.cfg

Hi there --
 
I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
using the apt-get utility. 
We currently have a Nagios 2.6 server running, and I wanted to import the
configuration files into the
newer server. To that end, I have placed the appropriate configuration files in
the /etc/nagios3/conf.d
directory, and modified the nagios.cfg file to reflect the location of the
configuration files.
 
I ran the preflight check and the following error message appeared on-screen:
 
/usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL
Reading configuration data...
Warning: Duplicate definition found for command 'check_dns' (config file
'/etc/nagios3/conf.d/commands.cfg', starting on line 90)
Error: Could not add object property in file '/etc/nagios3/conf.d/commands.cfg'
on line 91.
***> One or more problems was encountered while processing the config files...
 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.
 
I checked the commands.cfg, and several other files, and I do not see where the
duplicate definition is occurring. 
Can someone lend a hand on this? 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.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensour

[Nagios-users] Infrastructure help!

2009-06-22 Thread Harald Böhmecke
Hi guys,

We are currently about to fully engage with Nagios.

Our current VM which has aprox. 1200 services and 200 hosts will be
deleted and a new "distributed monitoring" will be setup.

Thing is, we need to monitor aprox. 500 hosts with aprox. 6000 services.

Almost all Servers are in a single location. So there should be no need
for Nagios "probes" distributed on big locations...

Has anyone had an experience with Nagios with this ammount of
hosts/services to be monitored? I need a basic guidance regarding
hardware and distribution model to be used.


Thanks in advance for your suggestions.

Regards,

Harald



--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] Infrastructure help!

2009-06-22 Thread Harald Böhmecke
Hi guys,

We are currently about to fully engage with Nagios.

Our current VM which has aprox. 1200 services and 200 hosts will be
deleted and a new "distributed monitoring" will be setup.

Thing is, we need to monitor aprox. 500 hosts with aprox. 6000 services.

Almost all Servers are in a single location. So there should be no need
for Nagios "probes" distributed on big locations...

Has anyone had an experience with Nagios with this ammount of
hosts/services to be monitored? I need a basic guidance regarding
hardware and distribution model to be used.


Thanks in advance for your suggestions.

Regards,

Harald




-Original Message-
From: Mat W 
To: dmor...@digitalmorris.com, nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Best Way to Catch Windows Reboots in Nagios
withNSClient++
Date: Fri, 19 Jun 2009 11:30:18 -0400

Are you opposed to adding NagEventLog with an NCSA service for the
passive checks?  You can write an event check filter in NagEventLog to
look for the specific events in the Event logs.
 
I don't believe the bult-in UPTIME check supports thresholds but you
could "wrap" it in some code to do it.

-- 
Mat W. - http://www.techadre.com


 
> Date: Fri, 19 Jun 2009 09:40:43 -0400
> From: dmor...@digitalmorris.com
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Best Way to Catch Windows Reboots in Nagios
with NSClient++
> 
> Anybody have a good way to Catch Windows Reboots in Nagios with
NSClient++.
> Some times nagios misses the reboot due to timing i think.
> 
> -Derek
> 
>
--
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> 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



Microsoft brings you a new way to search the web. Try Bing™ now

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___ 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
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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-22 Thread Jimmyboy
Hi Ian,

You were absolutely correct. I just had to edit the 'command.cfg' and
'windows.cfg' files to get the system uptime value within Nagios' web
interface.

Also, 'hrSystemUptime.0' fetches the Windows-based system's uptime, whereas,
'sysUpTime.0' fetches the uptime of SNMP service.

Hats off to you!!

Now, I need to do some more research for additional parameters. Will keep
you updated.


Thanks,
Jim

=-=-=-=

2009/6/4 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.
>
>
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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 SLA tool

2009-06-22 Thread Felipe Ferreira

Hello fellow nagios fan,

I am looking for an addon that provides me easy and clean reporting 
capabilities, to allow correct SLA reports.


For the front end I use Centreon 2.0.2 and it is a really nice tool, but 
the Reporting does not allow
me simple things like selecting timeperiod, SLAs are only from 8:00 to 
17:00 and how can I get that information?
I saw few scripts but they are all outdated, NaReTo seems to work only 
with v2.0 anyone got it working for nagios 3?


Functions I would like to see:

   * /Allow to create groups of services/hosts to genereate report from/
   * /Define time periods /
   * /Sort by problems/
   * /Export to CSV,PDF/
   * /Auto email reports previsouly defined, weekly or monthly,/
   * /Get TOP X most downtime servers/services./


Any advise is very welcome.

cheers,
Felipe
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] nagiosgrapher-1.7.1

2009-06-22 Thread Meyer Jerome
Hi

 

I've installed nagiosGrapher-1.7.1 and a icon (without image) appears at
side from the PING service into the < Service Status Detail > webpage.
When I clic on it the explorer open a new windows with < NETWAYS Nagios
Graph > Title with some infos at the top and with some Current graph,
Daily graph,... boxes at the bottom (see attach file)!

The problem are that no graph appears at all! The only possibility is to
view the graph as PNG,PDF,and so on...

 

I've checked all config. files, read the doc again but I don't find the
problem ?

 

Has anyone some idea?

 

Best regards

Jerome

 

 



NagiosGrapher.pdf
Description: NagiosGrapher.pdf
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
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] trimming nagvis database via cron

2009-06-22 Thread Johannes Dagemark
Michael W. Lucas wrote:
> Hi,
>
> After a few months of use, our NagVis database grew to 23GB and
> overwhelmed my (tiny) server.  Shutting down the system, dropping the
> database, and recreating it solved my issues.
>
> Surely someone has already written a script to purge the NagVis
> database on a regular basis, trimming old data to keep the database at
> a reasonable size.  If so, could you share it?
>
>   
Nagvis-1.4 added support for Merlin's database, which has a much slimmer 
profile than NDO. Merlin is not quite recommended for production use yet 
but we are working on it so it will be in a few weeks time, you might 
want to check it out.

Cheers

-- 
Johannes Dagemark
CTO / VP Engineering


op5 AB
Första Långgatan 19
SE-413 27 Gothenburg
cell: +46 733-70 90 24
fax:  +46 31-774 04 32
Email: j...@op5.com
http://www.op5.com/


> I'm sure I can figure this out, but I can't believe that nobody else
> has had this issue.
>
> Thanks,
> ==ml
>
>
>   

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] How often does Nagios need restarting? (Quis custodiet ipsos custodes?)

2009-06-22 Thread cms.mahape
Don’t send mails again

Atish

-Original Message-
From: Angel L. Mateo [mailto:ama...@um.es] 
Sent: Monday, June 22, 2009 11:50 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] How often does Nagios need restarting? (Quis
custodiet ipsos custodes?)

El vie, 19-06-2009 a las 15:35 -0600, Kustner, Tom escribió:
> I am a Nagios user, not the administrator.  We are running Nagios 2.9 on
> RHEL 4 or 5.  Overall, 200+ hosts with 3000 services being monitored. I
> have access for monitoring a smaller number of hosts.
> 
> In another posting, I alluded to an issue where a host had gone down but
> no alert was sent out.   The issue surfaced again today and as was done
> the other time, Nagios was restarted to "fix" the problem.   I am
> naturally concerned about the unreliability.  
> 
Maybe the problem was a previous problematic restart. In our
installation, nagios (nagios3, but previously nagios 1) is working
smoothly. We don't have any problem like you, but sometimes when we
restart it to reload configuration (if we have added hosts or services).
Sometimes, the restart fails and we have several instances of nagios
running and appears a similar problem. Killing all nagios processes and
starting again fix the problem.

We configure nagios with centreon and we don't know if this a
problem
related with centreon or with a startup scripts (centreon uses them).

But, if we don't reload nagios, it runs without problems.

-- 
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información   _o)
y las Comunicaciones Aplicadas (ATICA)  / \\
http://www.um.es/atica_(___V
Tfo: 868887590
Fax: 86337



--
Are you an open source citizen? Join us for the Open Source Bridge
conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference:
$250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.o
rg
___
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


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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