Re: [Nagios-users] Event Handlers

2007-01-24 Thread edalB
Thanks for all the help people I got it working the script was working
the problem was the accepting of the ssh key to known-hostes.

Regards

On 1/23/07, edalB [EMAIL PROTECTED] wrote:
 Ok I have followed the white rabbit.

 I have followed the docs and I have modified the the script to work
 the way I need it to work for me.

 But still no luck.

 After trying allot of stuff I have now changed my config in the .cfg
 file and it looks like folloes.

 define service{
 use local-service

 host_name   imap-1.rba.ispafrica.net
 service_description HTTP
 event_handler_enabled   1
 event_handler   restart-httpd
 check_command   check_http
 }

 Then the commands.cfg file looks like follows.


 define command{
 command_namerestart-httpd
 command_line/usr/local/nagios/libexec/restart-httpd
 $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
 }

 But I still dont have any luck with the Event Handlers.

 Regards

 On 1/19/07, Hari Sekhon [EMAIL PROTECTED] wrote:
 
   I was think that, I've done event handlers and the way you have tried to do
  that is just wrong. Look at the docs, there is a template bash script to get
  you started. That is what I based my event handlers on and it makes much
  more sense. You can choose when to do certain actions, not every single time
  the status changes which can be a heck of a lot.
 
   For example when one of my known problem websites fails, the event handler
  only fires if it's critical and the plugin output tells me that a certain
  condition has occurred. I don't do anything when it's a warning state or a
  soft error or if the service check just timed out as sometimes happens since
  the website isn't down or broken.
 
   Otherwise a congested pipe that causes the service check to time out and
  temporarily go critical then results in you trashing the website and kicking
  out users!
 
   Follow the white rabbit... I mean... follow the docs...
 
 
   -h
   Hari Sekhon
 
 
 
   Marc Powell wrote:
 
 
   -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of edalB
  Sent: Friday, January 19, 2007 7:46 AM
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] Event Handlers
 
  Hi all.
 
  I have created a event handler as a test to see how it works. The hard
  part I have done.
 
 
   [chop]
 
 
 
   define service{
   use local-service
 
   host_name imap-1.rba.ispafrica.net
   service_description HTTP
   event_handler restart-httpd
   check_command check_http
   }
 
   Do you have 'event_handler_enabled 1' in your local-service template?
  You need it either there or in this definition. Enabling event handlers
  in nagios.cfg isn't sufficient. You need to tell nagios which services
  it should actually run them for.
 
 
 
   And the command
 
 
  define command{
   command_name restart-httpd
   command_line /usr/bin/ssh -p 222 -i
  /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo
  /etc/init.d/apache2 res
  tart
   }
 
  So now nagios still does not want to execute my command
 
   You really should follow the documented methodology for event handlers
  (http://nagios.sourceforge.net/docs/2_0/eventhandlers.html).
  I'm not
  sure the above is going to work and if it does, it will attempt to
  restart httpd on any kind of status change, even WARNING - OK. I'm sure
  that you don't want that. Additionally, if you follow the documented way
  you can easily send debugging output to a file so that you can see if
  your event handler is being run, how and what it's doing.
 
  --
  Marc
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios version, plugin version (-v) and OS when reporting
  any issue.
  ::: Messages without supporting info will risk being sent to /dev/null
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios 

[Nagios-users] Howto not check a service each day from 03-06

2007-01-24 Thread Martin Møller Pedersen
Hi,
  Every night some oracle databases are stopped. Is it possible to specifiy that
the a specific service (eg. check_oracle) shouldn't be tested beetween
eg. 03-06 each day.

Regards
Martin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Howto not check a service each day from 03-06

2007-01-24 Thread Andy Shellam (Mailing Lists)
Martin Møller Pedersen wrote:
 Hi,
   Every night some oracle databases are stopped. Is it possible to specifiy 
 that
 the a specific service (eg. check_oracle) shouldn't be tested beetween
 eg. 03-06 each day.
   

Certainly - define yourself a time period which doesn't include these 
times :)
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#timeperiod

e.g.

define timeperiod{
timeperiod_name oracle-downtime
alias   Oracle Downtime
sunday  00:00-03:00,06:00-24:00
- repeat for monday - saturday -
}

Then in your Oracle service check, use oracle-downtime as the value for 
check_period


Andy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Memory leaks

2007-01-24 Thread Andreas Ericsson
Tobias Klausmann wrote:
 Hi! 
 
 (First off: if this should also go to nagios-devel, just yell at
  me.)
 
 Nagios 2.6 and 2.5 have memory leaks. They are not that big that
 within hours your machine will be swapping, but they degrade
 performance in other ways.
 
 First off, their approximate extent.
 
 2.5 and 2.6 without perl cache have the smallest memory leaks. A
 fairly busy Nagios server (hardware quoted below) with about 3000
 services on about 330 hosts will degrade from 330M used (that's
 *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4
 MB per hour. The very same machine behaves neutral if Nagios is
 not running, so it's definitely Nagios itself.
 
 Activating the embedded Perl interpreter and -cache will increase
 the amount of lost memory to about 5-6M per hour. In this case,
 however, sometimes the memory usage snaps back, i.e. some of the
 lost memory is collected. I've not yet found out what triggers
 the reclaim. Still, over the course of hours, more and more
 memory is lost. Still, it's roughly linear memory loss.
 

Yes. Embedded perl is known to be leaky. It's also mentioned in various
documents around the web.


 And finally, there's the advanced permission patch. With that
 patch, memory leaking skyrockets to about 15M/hour.
 

Yes. I pointed out where a few of those leaks where in a previous
email. I'd recommend you don't use that patch, actually. At least
not until whoever wrote it comes up with a fixed version of it.


 Unfortunately, performance degradation is not just on the memory
 used front. With increased memory usage, check latency increases.
 In the worst case, this can mean that latency increases by 120s in
 about six hours. This has the net effect that for our case, we
 have to restart Nagios every two hours. 
 

The latency increase should only happen when the machine starts swapping.
For large networks with the access-patch thingie that could happen fairly
quickly though, I imagine.

 For the case of 2.5 and 2.6 without the permissions patch, it's
 a lot less bad, but still bad enough to require restarting Nagios
 at least every eight hours. 
 
 Without all the fancy stuff, we get to restarting Nagios every 24
 hours, as described above.
 

That seems a bit obsessive. Are you doing anything unusual with the system?
We have several (well over a hundred) installations where Nagios has been up
and running for several months without requiring a restart.

 
 For vanilla Nagios, at least it's clear that in whatever way
 memory is wasted, it also slows Nagios down - a possibility would
 be a linked list that is walked and gets appended over and over.
 But I guess those with knowledge of the inner workings of Nagios
 have more clue about this than I do.
 

Anyone wanting to look into it should probably take a look at the
event scheduling queue.

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Memory leaks

2007-01-24 Thread Tobias Klausmann
Hi! 

On Wed, 24 Jan 2007, Andreas Ericsson wrote:
  Activating the embedded Perl interpreter and -cache will increase
  the amount of lost memory to about 5-6M per hour. In this case,
  however, sometimes the memory usage snaps back, i.e. some of the
  lost memory is collected. I've not yet found out what triggers
  the reclaim. Still, over the course of hours, more and more
  memory is lost. Still, it's roughly linear memory loss.
 
 Yes. Embedded perl is known to be leaky. It's also mentioned in various
 documents around the web.

Well, I think I can live without the embedded interpreter, the
machine is beefy enough.

  Unfortunately, performance degradation is not just on the memory
  used front. With increased memory usage, check latency increases.
  In the worst case, this can mean that latency increases by 120s in
  about six hours. This has the net effect that for our case, we
  have to restart Nagios every two hours. 
 
 The latency increase should only happen when the machine starts swapping.
 For large networks with the access-patch thingie that could happen fairly
 quickly though, I imagine.

No, it's definitely not swapping (as the graphs show). My
conclusions about the reasons for the degradation were drawn with
exactly that in mind.


  For the case of 2.5 and 2.6 without the permissions patch, it's
  a lot less bad, but still bad enough to require restarting Nagios
  at least every eight hours. 
  
  Without all the fancy stuff, we get to restarting Nagios every 24
  hours, as described above.
 
 That seems a bit obsessive. Are you doing anything unusual with the system?
 We have several (well over a hundred) installations where Nagios has been up
 and running for several months without requiring a restart.

Well, the system is a standalone Nagios server which is only
that, no other services. I'll take a very close look at all the
cronjobs etc. that might cause additional friction, but I doubt
they're causing any trouble.

  For vanilla Nagios, at least it's clear that in whatever way
  memory is wasted, it also slows Nagios down - a possibility would
  be a linked list that is walked and gets appended over and over.
  But I guess those with knowledge of the inner workings of Nagios
  have more clue about this than I do.
 
 Anyone wanting to look into it should probably take a look at the
 event scheduling queue.

Thanks, I'll ask our resident C guru to take a close look at it.

Regards,
Tobias

-- 
Never touch a burning system.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] external notification commands

2007-01-24 Thread Brian Loe
On 1/23/07, Marc Powell [EMAIL PROTECTED] wrote:
   Well, I really don't get this. That worked. If I just copy and paste
   that output (from echo) to the command line it works fine...
  
  What permissions would that application need to have for Nagios to run
 it?
  drwxr-xr-x   /usr/local/pager
  -rwxrwxrwx client

 These look fine (probably). Is 'client' a script or program that you
 wrote or have visibility into? What does it do exactly.


So, any other thoughts on this? Running it in echo I see that the
command line is correct for this application, and I know that it is
configured to run correctly but it still doesn't get ran.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] external notification commands

2007-01-24 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Brian Loe
 Sent: Wednesday, January 24, 2007 8:21 AM
 To: Nagios Users mailinglist
 Subject: Re: [Nagios-users] external notification commands
 
 On 1/23/07, Marc Powell [EMAIL PROTECTED] wrote:
Well, I really don't get this. That worked. If I just copy and
paste
that output (from echo) to the command line it works fine...
   

[chop]

 
 So, any other thoughts on this? Running it in echo I see that the
 command line is correct for this application, and I know that it is
 configured to run correctly but it still doesn't get ran.

Well, it should be working. Stepping through the process --
1) nagios is running the notification command as necessary
2) the notification command is properly formatted (seen by echo
output)
3) the notification command succeeds when run as the nagios user
from the command line

That really should be sufficient. The only other issue I can think of is
that your pager program relies on some program, path, environment
variable or library that is available when in a login shell but
unavailable to forked processes. Do you set any special variables,
aliases or anything in your login scripts? Can the people that wrote it
provide any insight or add debugging code to the program?

Try this to see if the program is reporting any errors --

# 'notify-by-pager' command definition
define command{
   command_namenotify-by-pager
   command_line/usr/local/pager/client $CONTACTADDRESS1$
Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate:
$LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$' /tmp/nagios_notification.log 21

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Removing old comments from extended info page

2007-01-24 Thread ankush grover
hi friends,

I have configured Nagios 2.6 in a Production Environment. There are
about 200 servers and about 1000 services which are being monitored by
nagios.

I want to Remove old comments from extended info page, is there any
command through which I can achieve this.


Thanks  Regards


Ankush Grover

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] external notification commands

2007-01-24 Thread Brian Loe
On 1/24/07, Marc Powell [EMAIL PROTECTED] wrote:


 Try this to see if the program is reporting any errors --

 # 'notify-by-pager' command definition
 define command{
command_namenotify-by-pager
command_line/usr/local/pager/client $CONTACTADDRESS1$
 Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:
 $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate:
 $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is
 $SERVICESTATE$' /tmp/nagios_notification.log 21


Okay, did that, it created the file but didn't put anything in it.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] external notification commands

2007-01-24 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Brian Loe
 Sent: Wednesday, January 24, 2007 11:21 AM
 To: Marc Powell
 Cc: Nagios Users mailinglist
 Subject: Re: [Nagios-users] external notification commands
 
 On 1/24/07, Marc Powell [EMAIL PROTECTED] wrote:
 
 
  Try this to see if the program is reporting any errors --
 
  # 'notify-by-pager' command definition
  define command{
 command_namenotify-by-pager
 command_line/usr/local/pager/client $CONTACTADDRESS1$
  Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:
  $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate:
  $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is
  $SERVICESTATE$' /tmp/nagios_notification.log 21
 
 
 Okay, did that, it created the file but didn't put anything in it.
 

Well, then the script is being called but doesn't output anything. Is
that normal? It's looking more and more to me that you need to get more
verbose output from the 'client' program. Everything we've done so far
indicates that nagios is doing exactly what it's supposed to.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] external notification commands

2007-01-24 Thread Brian Loe
On 1/24/07, Marc Powell [EMAIL PROTECTED] wrote:

  Okay, did that, it created the file but didn't put anything in it.
 

 Well, then the script is being called but doesn't output anything. Is
 that normal? It's looking more and more to me that you need to get more
 verbose output from the 'client' program. Everything we've done so far
 indicates that nagios is doing exactly what it's supposed to.

 --
 Marc

The client app, once a message has been sent, responds with a message
saying its been cued. Along the lines of, Message accepted - Entry
queued for delivery so I would have expected the log file to contain
that at least.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Getting errors during install nagios plugins

2007-01-24 Thread raghavendra kristam

Hi,

I installed nagios-2.7 and while trying to install nagios plugin
nagios-plugins-1.4.5 getting the following error
Please let me know how to sort out these errors.

1) ./configure --with-mysql=/usr/local/mysql
2 ) make

Errors


# make
make  all-recursive
make[1]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5'
Making all in lib
make[2]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib'
make  all-recursive
make[3]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib'
Making all in tests
make[4]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib/tests'
make[4]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib'
make[3]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib'
make[2]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib'
Making all in plugins
make[2]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/plugins'
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I.
-I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap  -I/usr/include
-I/usr/include/mysql  -I/usr/include/mysql -g -pipe -m32 -march=i386
-mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF
.deps/check_mysql-check_mysql.Tpo -c -o check_mysql-check_mysql.o `test -f
'check_mysql.c' || echo './'`check_mysql.c; \
then mv -f .deps/check_mysql-check_mysql.Tpo
.deps/check_mysql-check_mysql.Po; else rm -f
.deps/check_mysql-check_mysql.Tpo; exit 1; fi
check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: error: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: error: (Each undeclared identifier is reported only once
check_mysql.c:73: error: for each function it appears in.)
check_mysql.c:73: error: syntax error before mysql
check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function)
check_mysql.c:74: error: `res' undeclared (first use in this function)
check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function)
check_mysql.c:75: error: syntax error before row
check_mysql.c:91: error: `mysql' undeclared (first use in this function)
check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in
this function)
check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this
function)
check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this
function)
check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this
function)
check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this
function)
check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in
this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from
integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from
integer without a cast
check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in
this function)
check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this
function)
check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this
function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from
integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from
integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from
integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from
integer without a cast
check_mysql.c:146: error: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from
integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from
integer without a cast
check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this
function)
check_mysql.c:165: error: `fields' undeclared (first use in this function)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5'
make: *** [all] Error 2


Thanks,
Raghavendra.

Re: [Nagios-users] nagios upgrade

2007-01-24 Thread Marcel Mitsuto Fucatu Sugano
On Tue, 2007-01-23 at 17:04 -0500, Carlos Sánchez wrote:
 hi
 how to upgrade nagios 2.5 to 2.6

cd /path/to/nagios/source
./configure
make all
/etc/init.d/nsca stop
/etc/init.d/nagios stop
make install
/etc/init.d/nagios start
/etc/init.d/nsca start


 
 _
 The MSN Entertainment Guide to Golden Globes is here.  Get all the scoop. 
 http://tv.msn.com/tv/globes2007/?icid=nctagline2
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Several map views of Nagios

2007-01-24 Thread naim abu darwish
Well, i have similar problem,
I have 530 hosts, so having all those on one map would be meaningless.
I just need the routers and the wireless machines on there. If i chose
what to exclude from the status map, it will still keep links pointing
to hidden devices and thus the map will still be cluttered. I found a
patch on  the Pkg-nagios-devel debian mailing list, a post dating back
to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe
nagios-1.x ?? anyway, link to original post ::

http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html

this is supposed to make the map only show certain selective
hostgroups on the statusmap. i tried the patch on statusmap.c , I am
using nagios 2.5. the patch failed. Im not very good at reading C
code, could someone help out here ? maybe fix the patch for the
current nagios version, also seems a good idea to include in future
nagios versions

Help appreciated

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios upgrade

2007-01-24 Thread Carlos S�nchez


thanks


From: Marcel Mitsuto Fucatu Sugano [EMAIL PROTECTED]
To: Carlos Sánchez [EMAIL PROTECTED]
CC: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios upgrade
Date: Wed, 24 Jan 2007 16:23:22 -0200

On Tue, 2007-01-23 at 17:04 -0500, Carlos Sánchez wrote:
 hi
 how to upgrade nagios 2.5 to 2.6

cd /path/to/nagios/source
./configure
make all
/etc/init.d/nsca stop
/etc/init.d/nagios stop
make install
/etc/init.d/nagios start
/etc/init.d/nsca start



 _
 The MSN Entertainment Guide to Golden Globes is here.  Get all the 
scoop.

 http://tv.msn.com/tv/globes2007/?icid=nctagline2


 
-

 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share 
your

 opinions on IT  business topics through brief surveys - and earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue.

 ::: Messages without supporting info will risk being sent to /dev/null


AVISO: A informação contida neste e-mail, bem como em qualquer de seus 
anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) 
acima referido(s), podendo conter informações sigilosas e/ou legalmente 
protegidas. Caso você não seja o destinatário desta mensagem, informamos 
que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de 
qualquer de seus anexos é absolutamente proibida. Solicitamos que o 
remetente seja comunicado imediatamente, respondendo esta mensagem, e que o 
original desta mensagem e de seus anexos, bem como toda e qualquer cópia 
e/ou impressão realizada a partir destes, sejam permanentemente apagados 
e/ou destruídos. Informações adicionais sobre nossa empresa podem ser 
obtidas no site http://sobre.uol.com.br/.


NOTICE: The information contained in this e-mail and any attachments 
thereto is CONFIDENTIAL and is intended only for use by the recipient named 
herein and may contain legally privileged and/or secret information. If you 
are not the e-mail´s intended recipient, you are hereby notified that any 
dissemination, distribution or copy of this e-mail, and/or any attachments 
thereto, is strictly prohibited. Please immediately notify the sender 
replying to the above mentioned e-mail address, and permanently delete 
and/or destroy the original and any copy of this e-mail and/or its 
attachments, as well as any printout thereof. Additional information about 
our company may be obtained through the site http://www.uol.com.br/ir/.


_
Search for grocery stores. Find gratitude. Turn a simple search into 
something more. 
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitudeFORM=WLMTAG



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Several map views of Nagios

2007-01-24 Thread Sébastien Barbereau

Hi,
you may want to have a look a nagvis (http://www.nagvis.org/doku.php) which
is interresting to provide different customisable views and has a simple
built in editor. Of course if you have more than 50 hosts it starts to be
difficult to set them up by hand. Therefor I'd suggest you also look at
graphviz ( http://www.graphviz.org/) to automagically calculate proper
coordinates for your hosts based on the parent relationship between them ...

Seb.

On 1/24/07, naim abu darwish [EMAIL PROTECTED] wrote:


Well, i have similar problem,
I have 530 hosts, so having all those on one map would be meaningless.
I just need the routers and the wireless machines on there. If i chose
what to exclude from the status map, it will still keep links pointing
to hidden devices and thus the map will still be cluttered. I found a
patch on  the Pkg-nagios-devel debian mailing list, a post dating back
to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe
nagios-1.x ?? anyway, link to original post ::


http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html

this is supposed to make the map only show certain selective
hostgroups on the statusmap. i tried the patch on statusmap.c , I am
using nagios 2.5. the patch failed. Im not very good at reading C
code, could someone help out here ? maybe fix the patch for the
current nagios version, also seems a good idea to include in future
nagios versions

Help appreciated

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] TWO instances of Nagios on one server - possible?

2007-01-24 Thread Semir H.

Hi everyone,

Would it be possible to run two instances on Nagios on one machine?
The server would be Debian (with Apache).
I want one Nagios instance to monitor one lot of hosts and the other to
monitor a different lot of computers and they should be independent of each
other.
How would I go about doing this?
Simply installing Nagios in two different locations and making Apache server
each?

Thanks
Semir
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios memory Leaks

2007-01-24 Thread Tobias Klausmann
Hi! 

On Wed, 24 Jan 2007, John Longland wrote:
 I have been reading with interest about these memory leaks.
 I see you mention 2.5  2.6.
 Does this happen with 2.4 as well ??

I can't really tell: back when I used 2.4 I wasn't aware of this
problem and hadn't added so many machines/services yet. I figure
the problem *probably* exists. On the other hand: if it hasn't
bitten you yet, why worry? Just keep an eye on your nagiostats
output. Any Nagios admin should IMO do that anyway, regardless of
known problems.

Regards,
Tobias

PS: Think about adjusting your quoting style.

-- 
Never touch a burning system.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] TWO instances of Nagios on one server - possible?

2007-01-24 Thread Andrew Cruse
I see no reason that wouldn't work.  If you're using NCSA you'd have to run
them on different ports, but other than that it should work.  Keep in mind
though that with user groups and hostgroups you can achieve the same effect
while still using only one instance of Nagios.
 
Andrew

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Semir H.
Sent: Wednesday, January 24, 2007 4:29 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] TWO instances of Nagios on one server - possible?


Hi everyone,

Would it be possible to run two instances on Nagios on one machine?
The server would be Debian (with Apache).
I want one Nagios instance to monitor one lot of hosts and the other to
monitor a different lot of computers and they should be independent of each
other. 
How would I go about doing this?
Simply installing Nagios in two different locations and making Apache server
each?

Thanks
Semir

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] TWO instances of Nagios on one server - possible?

2007-01-24 Thread Arno Lehmann
Hi,

On 1/24/2007 10:29 PM, Semir H. wrote:
 Hi everyone,
 
 Would it be possible to run two instances on Nagios on one machine?

Yes

 The server would be Debian (with Apache).
 I want one Nagios instance to monitor one lot of hosts and the other to 
 monitor a different lot of computers and they should be independent of 
 each other.
 How would I go about doing this?
 Simply installing Nagios in two different locations and making Apache 
 server each?

One location for Nagios is sufficient, but configuration and state files 
must be separate.

You'll probably need two different sets of CGIs, compiled with their 
respective paths. IIRC, there is an environment vraiable you can set to 
point the CGIs at their state file, but setting this in an apache CGI 
environment is not something I know how to do :-)

Also, one apache is enough, just set up two locations for Naegios.

Of course the machine you run all this on should offer enough 
performance - Nagios can use lots of power.

Arno

 Thanks
 Semir
 
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 
 
 
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Several map views of Nagios

2007-01-24 Thread Chris Moody
The statusmap.cgi does not re-draw the map in regards to screen 
coordinates when hiding groups.  Your maps will remain cluttered even 
though you can filter what's even displayed.  This is a known limitation 
of the statusmap.cgi map.

I've had (very minor) success is setting the scale larger.
##
fittipaldi cgi # diff statusmap.c statusmap.c-ORIG
72,73c72,73
 #define DEFAULT_NODE_VSPACING   45
 #define DEFAULT_NODE_HSPACING   85
---
  #define DEFAULT_NODE_VSPACING   15
  #define DEFAULT_NODE_HSPACING   45
84c84
 #define CIRCULAR_DRAWING_RADIUS 200
---
  #define CIRCULAR_DRAWING_RADIUS 100
1745c1745
   /*else if(host_services_ratio=1.5)
---
else if(host_services_ratio=1.5)
1750c1750
 
outer_radius=DEFAULT_NODE_WIDTH*0.4;*/
---
  
outer_radius=DEFAULT_NODE_WIDTH*0.4;
1752,1754c1752
 
/*outer_radius=DEFAULT_NODE_WIDTH*0.2;*/
   /* MODIFIED BY CMOODY - 11.29.05 */
   outer_radius=DEFAULT_NODE_WIDTH;
---
  
outer_radius=DEFAULT_NODE_WIDTH*0.2;
2690c2688
   int parent_drawing_width=1;
---
int parent_drawing_width=0;
##

I have yet to find a perfect solution.  I'm in a situation where I have 
several thousand nodes to watch.

My interim solution has been to create multiple nagios instances with 
apache vhosts.  This way I can group systems logically and represent 
them in a cleaner fashion.  I have 0.1-rev code available via 
nagios-exchange to build the different vhosts. (I'm hoping to have a 
newer build available soon (with support for 2.x train of Nagios).)

Were my C skillz better, I'd try to take on a building a more adaptive 
drawing algo...

Cheers,
-Chris

naim abu darwish wrote:
 Well, i have similar problem,
 I have 530 hosts, so having all those on one map would be meaningless.
 I just need the routers and the wireless machines on there. If i chose
 what to exclude from the status map, it will still keep links pointing
 to hidden devices and thus the map will still be cluttered. I found a
 patch on  the Pkg-nagios-devel debian mailing list, a post dating back
 to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe
 nagios-1.x ?? anyway, link to original post ::
 
 http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html
 
 this is supposed to make the map only show certain selective
 hostgroups on the statusmap. i tried the patch on statusmap.c , I am
 using nagios 2.5. the patch failed. Im not very good at reading C
 code, could someone help out here ? maybe fix the patch for the
 current nagios version, also seems a good idea to include in future
 nagios versions
 
 Help appreciated
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null
 
 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Several map views of Nagios

2007-01-24 Thread naim abu darwish
using  something like  graphiz like  Sébastien Barbereau suggested, or
 nagviz  i could easily manage the locations of hosts on the map, its
a bit of a hassle since every time a host is added you have to move
around some 10 other hosts, but its better than nothing.

Algorithms that automatically draw maps and do proper spacing  would
be great, something like graphiz, but the more immediate problem is
getting only selected hostgroups to appear in the map, because even
when i hide certain hostgroups, lines still point to their hosts.

Really it should be a simple patch, just include some config below
default_statusmap_layout in cgi.cfg , say included_hostgroups=
routers,wireless... whatever.
But i dont know C,
any volunteers ? you get a big thankyou :D

On 1/25/07, Chris Moody [EMAIL PROTECTED] wrote:
 The statusmap.cgi does not re-draw the map in regards to screen
 coordinates when hiding groups.  Your maps will remain cluttered even
 though you can filter what's even displayed.  This is a known limitation
 of the statusmap.cgi map.

 I've had (very minor) success is setting the scale larger.
 ##
 fittipaldi cgi # diff statusmap.c statusmap.c-ORIG
 72,73c72,73
  #define DEFAULT_NODE_VSPACING   45
  #define DEFAULT_NODE_HSPACING   85
 ---
   #define DEFAULT_NODE_VSPACING   15
   #define DEFAULT_NODE_HSPACING   45
 84c84
  #define CIRCULAR_DRAWING_RADIUS 200
 ---
   #define CIRCULAR_DRAWING_RADIUS 100
 1745c1745
/*else if(host_services_ratio=1.5)
 ---
 else if(host_services_ratio=1.5)
 1750c1750
 
 outer_radius=DEFAULT_NODE_WIDTH*0.4;*/
 ---
  
 outer_radius=DEFAULT_NODE_WIDTH*0.4;
 1752,1754c1752
 
 /*outer_radius=DEFAULT_NODE_WIDTH*0.2;*/
/* MODIFIED BY CMOODY - 11.29.05 */
outer_radius=DEFAULT_NODE_WIDTH;
 ---
  
 outer_radius=DEFAULT_NODE_WIDTH*0.2;
 2690c2688
int parent_drawing_width=1;
 ---
 int parent_drawing_width=0;
 ##

 I have yet to find a perfect solution.  I'm in a situation where I have
 several thousand nodes to watch.

 My interim solution has been to create multiple nagios instances with
 apache vhosts.  This way I can group systems logically and represent
 them in a cleaner fashion.  I have 0.1-rev code available via
 nagios-exchange to build the different vhosts. (I'm hoping to have a
 newer build available soon (with support for 2.x train of Nagios).)

 Were my C skillz better, I'd try to take on a building a more adaptive
 drawing algo...

 Cheers,
 -Chris

 naim abu darwish wrote:
  Well, i have similar problem,
  I have 530 hosts, so having all those on one map would be meaningless.
  I just need the routers and the wireless machines on there. If i chose
  what to exclude from the status map, it will still keep links pointing
  to hidden devices and thus the map will still be cluttered. I found a
  patch on  the Pkg-nagios-devel debian mailing list, a post dating back
  to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe
  nagios-1.x ?? anyway, link to original post ::
 
  http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html
 
  this is supposed to make the map only show certain selective
  hostgroups on the statusmap. i tried the patch on statusmap.c , I am
  using nagios 2.5. the patch failed. Im not very good at reading C
  code, could someone help out here ? maybe fix the patch for the
  current nagios version, also seems a good idea to include in future
  nagios versions
 
  Help appreciated
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios version, plugin version (-v) and OS when 
  reporting any issue.
  ::: Messages without supporting info will risk being sent to /dev/null
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting 

Re: [Nagios-users] Howto not check a service each day from 03-06

2007-01-24 Thread Marcel Mitsuto Fucatu Sugano
On Wed, 2007-01-24 at 10:07 +, Andy Shellam (Mailing Lists) wrote:
 
 define timeperiod{
 timeperiod_name oracle-downtime
 alias   Oracle Downtime
 sunday  00:00-03:00,06:00-24:00
 - repeat for monday - saturday -
 }
 
 Then in your Oracle service check, use oracle-downtime as the value
 for check_period 

just being itchy, the name leads to misunderstanding, it should be
called oracle-uptime, as this timeperiod is defined to check the running
oracle instance, not the downtimed period.

;)

Marcel


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Howto not check a service each day from 03-06

2007-01-24 Thread Andy Shellam (Mailing Lists)
Marcel Mitsuto Fucatu Sugano wrote:
 On Wed, 2007-01-24 at 10:07 +, Andy Shellam (Mailing Lists) wrote:
   
 define timeperiod{
 timeperiod_name oracle-downtime
 alias   Oracle Downtime
 sunday  00:00-03:00,06:00-24:00
 - repeat for monday - saturday -
 }

 Then in your Oracle service check, use oracle-downtime as the value
 for check_period 
 

 just being itchy, the name leads to misunderstanding, it should be
 called oracle-uptime, as this timeperiod is defined to check the running
 oracle instance, not the downtimed period.
   

Hehe yep good point, I was just making it obvious that it's a time 
period for a specific-use, but yep I agree!



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Compiling check_icmp.c 1.9

2007-01-24 Thread Aseltine, Dick
I'm having a problem compiling check_icmp 1.9 from cvsroot. I am quite a
novice and need some pointer on how to do it. I compiled version 1.8. I
thought I simply did this: gcc check_icmp.c . I must have been smarter
that day than I am now. Any pointers will be appreciated.

 

Thanks

 

 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Howto not check a service each day from 03-06

2007-01-24 Thread Hugo van der Kooij
On Wed, 24 Jan 2007, Marcel Mitsuto Fucatu Sugano wrote:

 On Wed, 2007-01-24 at 10:07 +, Andy Shellam (Mailing Lists) wrote:

 define timeperiod{
 timeperiod_name oracle-downtime
 alias   Oracle Downtime
 sunday  00:00-03:00,06:00-24:00
 - repeat for monday - saturday -
 }

 Then in your Oracle service check, use oracle-downtime as the value
 for check_period

 just being itchy, the name leads to misunderstanding, it should be
 called oracle-uptime, as this timeperiod is defined to check the running
 oracle instance, not the downtimed period.

If one reads it like oracle - downtime the formula matches the task. ;-)

Hugo.

-- 
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] TWO instances of Nagios on one server - possib le?

2007-01-24 Thread John Longland
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Semir H.
Sent: 24 January 2007 23:29
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] TWO instances of Nagios on one server - possible?


Hi everyone,

Would it be possible to run two instances on Nagios on one machine?
The server would be Debian (with Apache).
I want one Nagios instance to monitor one lot of hosts and the other to
monitor a different lot of computers and they should be independent of each
other. 
How would I go about doing this?
Simply installing Nagios in two different locations and making Apache server
each?

Thanks
Semir

[John Longland] 
 
Semir
 
I agree with the other posts. I don;t know your system / setup, but I would
suggest your consider
using different log-files for the 2 instances. I *accidently* ran more than
one server at some stage
and it caused havoc in my particular setup. You could'nt make out what was
going on when
reading the archive / log entries.
 
Just a suggestion  ;-)
 
Best !
John 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null