[Nagios-users] Integrating nagios with nagiosgraph and drraw - URL problem

2008-11-15 Thread Steve Burton
Hi,

I've  been using nagios for a while (since 1.x) but recently I've been
inspired  by  David  Josephsen's  book to try to integrate nagios with
nagiosgraph and drraw.

I have it all working on a test server *except* that I cannot link the
graphs  I  define  with  drraw  using  the  'action_url'  in  my hosts
definitions.
The  problem  is  that  URL  produced  by drraw has a semicolon in it.

E.g. http://nagios.my.domain/drraw/drraw.cgi?Mode=view;Graph=1226789709.8592

This  value is sanitized by nagios and the URL is truncated before the
offending character.

I  tried using %3b in the config. file but then this is not decoded by
drraw.cgi.

I  had  a look at the nagios source but I can't see where it chops the
line.

Can anyone point me in the right direction?

Steve.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Integrating nagios with nagiosgraph and drraw - URL problem

2008-11-15 Thread Steve Burton
Hi,

I've  been using nagios for a while (since 1.x) but recently I've been
inspired  by  David  Josephsen's  book to try to integrate nagios with
nagiosgraph and drraw.

I have it all working on a test server *except* that I cannot link the
graphs  I  define  with  drraw  using  the  'action_url'  in  my hosts
definitions.
The  problem  is  that  URL  produced  by drraw has a semicolon in it.

E.g. http://nagios.my.domain/drraw/drraw.cgi?Mode=view;Graph=1226789709.8592

This  value is sanitized by nagios and the URL is truncated before the
offending character.

I  tried using %3b in the config. file but then this is not decoded by
drraw.cgi.

I  had  a look at the nagios source but I can't see where it chops the
line.

Can anyone point me in the right direction?

Steve.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Integrating nagios with nagiosgraph and drraw - URLproblem

2008-11-17 Thread Steve Burton
 Hey Steve:

 I don't know if it will work or not but you could try escaping the
 semicolon. 

 E.g.
 ://nagios.my.domain/drraw/drraw.cgi?Mode=view\;Graph=1226789709.8592

 -Jake

Middle posting :)

Jake,

yes  and  no!  inserting the \ in action_url does stop nagios removing
the  end  of  the  line  but  then \; gives a 'Invalid Request' in the
browser when you click on the link.

Steve.

 -Original Message-
 From: Steve Burton [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 15, 2008 10:15 PM
 To: nagios-users
 Subject: [Nagios-users] Integrating nagios with nagiosgraph and drraw -
 URLproblem

 Hi,

 I've  been using nagios for a while (since 1.x) but recently I've been
 inspired  by  David  Josephsen's  book to try to integrate nagios with
 nagiosgraph and drraw.

 I have it all working on a test server *except* that I cannot link the
 graphs  I  define  with  drraw  using  the  'action_url'  in  my hosts
 definitions.
 The  problem  is  that  URL  produced  by drraw has a semicolon in it.

 E.g.
 http://nagios.my.domain/drraw/drraw.cgi?Mode=view;Graph=1226789709.8592

 This  value is sanitized by nagios and the URL is truncated before the
 offending character.

 I  tried using %3b in the config. file but then this is not decoded by
 drraw.cgi.

 I  had  a look at the nagios source but I can't see where it chops the
 line.

 Can anyone point me in the right direction?

 Steve.


 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Integrating nagios with nagiosgraph and drraw - URLproblem

2008-11-17 Thread Steve Burton
 On Mon, Nov 17, 2008 at 16:45, Steve Burton
 [EMAIL PROTECTED]wrote:

  Hey Steve:

  I don't know if it will work or not but you could try escaping the
  semicolon.

  E.g.
 
 ://nagios.my.domain/drraw/drraw.cgi?Mode=view\;Graph=1226789709.8592

  -Jake

 Middle posting :)

 Jake,

 yes  and  no!  inserting the \ in action_url does stop nagios removing
 the  end  of  the  line  but  then \; gives a 'Invalid Request' in the
 browser when you click on the link.


 What about url-escaping the value of ;?

 RFC1738 would argue, but try:

 ://nagios.my.domain/drraw/drraw.cgi?Mode=view%3BGraph=1226789709.8592

 Allan

No  that  doesn't  work.  I  gets  past  nagios but then drraw doesn't
understand URI encoding.

Steve.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check snmp

2008-11-18 Thread Steve Burton
Simon Kainz wrote:
 Melanie Pfefer wrote:
   
 Hi

 perhaps I was not clear in my question.

 What is the OID that should be used to see if snmp service is up or down?

 thank you
 

 Hi!
 I would suggest using snmpwalk to see which services are available
 first. This normally returns a pretty long list of values to pick one from.

 regards,

   
Or, if you're working on a Windows box, use the browser in Getif 
(http://www.wtcs.org/snmp4tpc/getif.htm)

Steve.

   
 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 

 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Integrating nagios with nagiosgraph and drraw - URLproblem

2008-11-18 Thread Steve Burton
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Steve Burton wrote:
 On Mon, Nov 17, 2008 at 16:45, Steve Burton

 ://nagios.my.domain/drraw/drraw.cgi?Mode=view%3BGraph=1226789709.8592
 
 No  that  doesn't  work.  I  gets  past  nagios but then drraw doesn't
 understand URI encoding.

 Time to fix drraw.

 Hugo.

Hugo,

I  was looking into that but it uses CGI.pm and I won't go there. Then
Cristophe Kalt on the drraw-users list suggested using '' rather than
';' in the action_url and that works.

e.g.action_url /drraw/drraw.cgi?Mode=viewGraph=1226789709.8592

Thanks to all for your help and interest,

Steve.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check snmp

2008-11-19 Thread Steve Burton
Melanie Pfefer wrote:
 Hi,

 I am getting:

 No services matching 10.1.192.10 found : CRITICAL 

 Even though snmp is up.


 In command.cfg:

 define command{
 command_name check_snmp_win
 command_line $USER1$/check_snmp_win.pl -H $HOSTADDRESS$ -C public -2 
 -n $ARG1$
 }


 In services.cfg:
 define  service {
 use generic-service
 hostjupiter
 service_description snmp check
 check_command   check_snmp_win!$HOSTADDRESS$!snmp!
 }


 ./check_snmp_win.pl -H jupiter -C public -2 -n snmp
 1 services active (matching snmp) : OK

 any idea?

 thank you

   

Melanie,

$HOSTADDRESS$ is not used in the service definition (it uses host_name 
or hostgroup_name) so I would write:

In services.cfg:
define  service {
use generic-service 
host_name   jupiter   --- I changed 
this line
service_description snmp check
check_command   check_snmp_win!snmp   --- and this line
}


Steve

 --- On Wed, 19/11/08, Thomas Guyot-Sionnest [EMAIL PROTECTED] wrote:

   
 From: Thomas Guyot-Sionnest [EMAIL PROTECTED]
 Subject: Re: [Nagios-users] check snmp
 To: Patrick Morris [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net nagios-users@lists.sourceforge.net
 Date: Wednesday, 19 November, 2008, 9:17 AM
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 18/11/08 08:06 PM, Patrick Morris wrote:
 
 On Wed, 19 Nov 2008, Thomas Guyot-Sionnest wrote:

   
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 18/11/08 07:59 AM, Simon Kainz wrote:
 
 Melanie Pfefer wrote:
   
 Hi

 perhaps I was not clear in my question.

 What is the OID that should be used to see
 
 if snmp service is up or down?
 
 thank you
 
 At the rick of stating the obvious, if the SNMP
   
 service is down, the OID
 
 you're checking doesn't matter. Just pick
   
 anything your server supports,
 
 and if the service is down, it won't work. Pretty
   
 simple stuff.

 True, although you better:

 1. Get an OID that will show up on all server (Windows,
 Linux, BSD, etc)
 2. Don't get one that may vanish
 3. Ideally, get one that prints something nice (SNMP
 OK - 32173980
 isn't very clear about what it's chercking)

 Hence, SNMPv2-MIB::sysDescr.0 :)

 - --
 Thomas
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -
 http://enigmail.mozdev.org

 iD8DBQFJI72S6dZ+Kt5BchYRAhz2AJ99nThQRMv0lk1xAkMgxSvzfy5XzACgpryL
 Bxa5T1EIckusdF4NEbMfAzI=
 =6zXO
 -END PGP SIGNATURE-

 -
 This SF.Net email is sponsored by the Moblin Your Move
 Developer's challenge
 Build the coolest Linux based applications with Moblin SDK
  win great prizes
 Grand prize is a trip for two to an Open Source event
 anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and
 OS when reporting any issue. 
 ::: Messages without supporting info will risk being sent
 to /dev/null
 


   

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

   


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net

Re: [Nagios-users] Perl version

2008-11-26 Thread Steve Burton
Gary Hartl wrote:
 Netra1#/usr/local/bin/nagios
 /usr/local/bin/nagios: Exec format error. Binary file not executable.
 

 Interesting... I'm not at all familiar with the FreeBSD package system  
 but the error above indicates to me that you've installed a version of  
 nagios that's not compatible with your system (i.e. 64bit nagios on  
 32bit system or linux version of nagios with no linux binary support  
 on your system). Is that possible? What is the output of the following  
   
I'm on my umpteenth nagios implementation on FreeBSD and I've never had 
a problem installing. However, I note that the OS version is old (Legacy 
Release is 6.3 and Release is 7.0) and I suspect that the package may be 
newer than the OS and not supported on this version or architecture.
I normally use the ports system which will build the application for the 
installed system. To do so you must first ensure that you have the ports 
tree installed, see 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html.
Then
cd /usr/ports/net-mgmt/nagios # for version 3
or
cd /usr/ports/net-mgmt/nagios2 # for version 2
or
cd /usr/ports/net-mgmt/nagios12 # for version 1.2

then type:
make install clean
This will either build the correct binaries for your machine or fail if 
the port is not supported on your architecture.

Please note: I have only ever used FreeBSD/nagios on 32 bit intel Intel 
so YMMV.

Steve.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Nagiosgraph graphs have gaps

2008-11-29 Thread Steve Burton
Hi,

I  have  nagios  3.0.4 running on FreeBSD and I'm using nagiosgraph to
generate  rrd's  on  the  data.  I'm  visualizing  the  data with both
nagiosgraph and drraw.

My  problem  is that the graphs have gaps so I guessing that the rrd's
are  not  being  updated.  I'm  concentrating  on just one service for
debugging   and   I've  run  the  plugin  (which  I  wrote)  from  the
command-line  many times for a local server and I haven't seen it fail
to  connect  or  report  or to time out. It is as though nagios is not
checking  the service within the heartbeat of the rrd's in question. I
have  set  the service check interval to 5 minutes, which I believe to
be  the  default nagiosgraph step time and the heartbeat is set to the
nagiosgraph default of 600 seconds.

Can anyone advise me if if this is likely to be the problem and if not
how I can diagnose what is actually going on?

Steve.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Nagiosgraph graphs have gaps

2008-11-30 Thread Steve Burton
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Steve Burton wrote:
 Hi,
 
 I  have  nagios  3.0.4 running on FreeBSD and I'm using nagiosgraph to
 generate  rrd's  on  the  data.  I'm  visualizing  the  data with both
 nagiosgraph and drraw.
 
 My  problem  is that the graphs have gaps so I guessing that the rrd's
 are  not  being  updated.  I'm  concentrating  on just one service for
 debugging   and   I've  run  the  plugin  (which  I  wrote)  from  the
 command-line  many times for a local server and I haven't seen it fail
 to  connect  or  report  or to time out. It is as though nagios is not
 checking  the service within the heartbeat of the rrd's in question. I
 have  set  the service check interval to 5 minutes, which I believe to
 be  the  default nagiosgraph step time and the heartbeat is set to the
 nagiosgraph default of 600 seconds.
 
 Can anyone advise me if if this is likely to be the problem and if not
 how I can diagnose what is actually going on?

 I have put a diagnose on the mailinglist for something that is either
 the same problem or something similar.

 The problem is that nagios can send several commands into the pipe at
 once and the other end will only pick up one of them. So the RRD info is
 not written. The work around is not to allow Nagios to run things in
 parallel. But it will severly limit the amount of hosts and services one
 can check with Nagios.

 This should have been fixed by using the file interface instead of the
 named pipe. The file interface was introduced about a year ago or even
 longer back.

 Please check the mailinglist archives for more details.

 Hugo.

Hugo,
I have the following in my nagios.cfg

# grep service_perfdata ../nagios.cfg|grep -v #
service_perfdata_file=/var/spool/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata

Also, the perfdata.log file size changes with time, all of which seems
to suggest to me that I'm using the file interface. Is this correct?

Steve.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Nagiosgraph graphs have gaps

2008-12-02 Thread Steve Burton
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Steve Burton wrote:
 Hi,
 
 I  have  nagios  3.0.4 running on FreeBSD and I'm using nagiosgraph to
 generate  rrd's  on  the  data.  I'm  visualizing  the  data with both
 nagiosgraph and drraw.
 
 My  problem  is that the graphs have gaps so I guessing that the rrd's
 are  not  being  updated.  I'm  concentrating  on just one service for
 debugging   and   I've  run  the  plugin  (which  I  wrote)  from  the
 command-line  many times for a local server and I haven't seen it fail
 to  connect  or  report  or to time out. It is as though nagios is not
 checking  the service within the heartbeat of the rrd's in question. I
 have  set  the service check interval to 5 minutes, which I believe to
 be  the  default nagiosgraph step time and the heartbeat is set to the
 nagiosgraph default of 600 seconds.
 
 Can anyone advise me if if this is likely to be the problem and if not
 how I can diagnose what is actually going on?

 I have put a diagnose on the mailinglist for something that is either
 the same problem or something similar.

 The problem is that nagios can send several commands into the pipe at
 once and the other end will only pick up one of them. So the RRD info is
 not written. The work around is not to allow Nagios to run things in
 parallel. But it will severly limit the amount of hosts and services one
 can check with Nagios.

 This should have been fixed by using the file interface instead of the
 named pipe. The file interface was introduced about a year ago or even
 longer back.

 Please check the mailinglist archives for more details.

 Hugo.

 Hugo,
 I have the following in my nagios.cfg

 # grep service_perfdata ../nagios.cfg|grep -v #
 service_perfdata_file=/var/spool/nagios/perfdata.log
 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
 service_perfdata_file_mode=a
 service_perfdata_file_processing_interval=30
 service_perfdata_file_processing_command=process-service-perfdata

 Also, the perfdata.log file size changes with time, all of which seems
 to suggest to me that I'm using the file interface. Is this correct?

 Steve.

talking to myself
I've  tweaked  one  plugin  to write a log file. So far I'm getting an
entry  about every five minutes, as expected but I'll see what happens
after daybreak when things get busy.
If  this  test  succeeds  I'll  try  taking apart an rrd but I've been
putting that off.

Steve.

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 checks and DNS queries

2008-12-03 Thread Steve Burton
Dirk H. Schulz wrote:
 Hi folks,

 I have two servers running Nagios, one is 2.3.1 on Debian, the other 3.0.5 
 on CentOS. With both I have a peculiar problem:

 Both of the servers have 3 different nameserves in /etc/resolv.conf, but 
 when the first nameserver fails, then more than half of the service checks 
 fail (plugin timed out). The failure does not occur just shortly, but 
 takes as long as the first nameserver is not running.
 This first nameserver in /etc/resolv.conf is not the master nameserver (all 
 of them are slaves), so it is not a problem of the slave stopping answering 
 when the master fails or any misconfiguration between the nameservers.

 This should not be occuring, but it can be reproduced reliably. Now I hope 
 that there is some configuration item I overlooked, but googling did not 
 deliver any hint.

 Any help is appreciated.

 Dirk

   
Dirk,

my solution was to run a slave name server on the Nagios server itself , 
restricted to only answer queries from localhost.

Steve.

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

   


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 checks and DNS queries

2008-12-03 Thread Steve Burton
Sean McAfee wrote:
 Steve Burton wrote:
   
 Dirk,

 my solution was to run a slave name server on the Nagios server itself , 
 restricted to only answer queries from localhost.

 Steve.

 
 Why not set something like options timeout:1 attempts:1 in 
 resolv.conf?  From man resolv.conf:*

 timeout:*/n/
 sets the amount of time the resolver will wait for a response from a 
 remote name server before retrying the query via a different name 
 server. Measured in seconds, the default is RES_TIMEOUT (currently 5, 
 see resolv.h http://linux.die.net/include/resolv.h).*

 attempts:*/n/
 sets the number of times the resolver will send a query to its name 
 servers before giving up and returning an error to the calling 
 application. The default is RES_DFLRETRY (currently 2, see resolv.h 
 http://linux.die.net/include/resolv.h).

 With the defaults, you're looking at 10 seconds (2 attempts, 5s apart) 
 before it moves onto the next server.  Since 10 seconds is the default 
 timeout for those checks, you'll always hit a timeout unless the DNS 
 server becomes responsive again.

   
Sean,

I reason I set up the slave server was so my nagios instance could 
monitor the 'real' DNS servers by name and check the host and other 
services on those hosts (they're Windows DCs) even if (or especially if) 
the DNS service had failed.

Steve.


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Nagiosgraph graphs have gaps

2008-12-04 Thread Steve Burton
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Steve Burton wrote:
 Hi,
 
 I  have  nagios  3.0.4 running on FreeBSD and I'm using nagiosgraph to
 generate  rrd's  on  the  data.  I'm  visualizing  the  data with both
 nagiosgraph and drraw.
 
 My  problem  is that the graphs have gaps so I guessing that the rrd's
 are  not  being  updated.  I'm  concentrating  on just one service for
 debugging   and   I've  run  the  plugin  (which  I  wrote) from  the
 command-line  many times for a local server and I haven't seen it fail
 to  connect  or  report  or to time out. It is as though nagios is not
 checking  the service within the heartbeat of the rrd's in question. I
 have  set  the service check interval to 5 minutes, which I believe to
 be  the  default nagiosgraph step time and the heartbeat is set to the
 nagiosgraph default of 600 seconds.
 
 Can anyone advise me if if this is likely to be the problem and if not
 how I can diagnose what is actually going on?

 I have put a diagnose on the mailinglist for something that is either
 the same problem or something similar.

 The problem is that nagios can send several commands into the pipe at
 once and the other end will only pick up one of them. So the RRD info is
 not written. The work around is not to allow Nagios to run things in
 parallel. But it will severly limit the amount of hosts and services one
 can check with Nagios.

 This should have been fixed by using the file interface instead of the
 named pipe. The file interface was introduced about a year ago or even
 longer back.

 Please check the mailinglist archives for more details.

 Hugo.

 Hugo,
 I have the following in my nagios.cfg

 # grep service_perfdata ../nagios.cfg|grep -v #
 service_perfdata_file=/var/spool/nagios/perfdata.log
 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
 service_perfdata_file_mode=a
 service_perfdata_file_processing_interval=30
 service_perfdata_file_processing_command=process-service-perfdata

 Also, the perfdata.log file size changes with time, all of which seems
 to suggest to me that I'm using the file interface. Is this correct?

 Steve.

 talking to myself
 I've  tweaked  one  plugin  to write a log file. So far I'm getting an
 entry  about every five minutes, as expected but I'll see what happens
 after daybreak when things get busy.
 If  this  test  succeeds  I'll  try  taking apart an rrd but I've been
 putting that off.

 Steve.

I cocked-up the first attempt but I think I've corrected that now. The
log  shows  that  the plugin is apparently not being called every five
minutes.  There  are  gaps. The longest gap I've seen is several hours
long. The gaps are not the same for each server so I'll re-examine the
plugin to ensure it's not failing *before* the log entry is written.

BTW  I set up nagiosgraph according to the 'new' method in the INSTALL
file that came with the source.

Steve.

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Nagiosgraph graphs have gaps

2008-12-04 Thread Steve Burton
 Hi Hugo,

 Thanks for the reply I am also facing the same issue. 

 As per you suggestion I have gone through the archieve and found one big
 thread regarding Nagios graph gap.

 https://sourceforge.net/mailarchive/message.php?msg_id=007301c84e20$4def
 [EMAIL PROTECTED]

 In the thread the working solution as per people is but when I went
 through the it then found 
 We need to make change in ngraph.ncfg but in current nagiosgraph there
 is no such file.

 Pls guide how to solve graph this gap issue.

 In my machine heartbeat is 600 sec and perf_file_iterval is 60 sec.

 thanks

 ==
 Hi,

 the old NagiosGrapher interfaces (network/pipe) can cause huge
 latency :-(. Thanks to a patch we got there is a new interface type
 file. The main advantages of this new interface are:
 * no gaps any more
 * no latency caused by NagiosGrapher
 * restarting NagiosGrapher does not cause any gaps

 I am sorry but the documentation totally lacks this interface. But below
 is all you need.

 Cheers,

 Gerd




 =20
 ngraph.ncfg:

 interface file
 perffile_path /dev/shm

 nagios.cfg:

 process_performance_data=1
 service_perfdata_file=/dev//shm/service-perfdata
 service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT
 $\t$SERVICEPERFDATA$\t$TIMET$
 service_perfdata_file_mode=a
 service_perfdata_file_processing_interval=60

 service_perfdata_file_processing_command=3Dprocess-service-perfdata-file


 commands.cfg:
 define command{
 command_name process-service-perfdata-file
 command_line
 mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$
 }
 ==



 Thanks  Regards
 Novin Jaiswal
 Ishi Systems Inc.
 201-521-3155(Direct)
 732-318-8156(Cell)



 -Original Message-
 From: Hugo van der Kooij [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 30, 2008 2:44 AM
 To: Nagios Users Mailinglist
 Subject: Re: [Nagios-users] Nagiosgraph graphs have gaps

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Steve Burton wrote:
 Hi,
 
 I  have  nagios  3.0.4 running on FreeBSD and I'm using nagiosgraph to
 generate  rrd's  on  the  data.  I'm  visualizing  the  data with both
 nagiosgraph and drraw.
 
 My  problem  is that the graphs have gaps so I guessing that the rrd's
 are  not  being  updated.  I'm  concentrating  on just one service for
 debugging   and   I've  run  the  plugin  (which  I  wrote)  from  the
 command-line  many times for a local server and I haven't seen it fail
 to  connect  or  report  or to time out. It is as though nagios is not
 checking  the service within the heartbeat of the rrd's in question. I
 have  set  the service check interval to 5 minutes, which I believe to
 be  the  default nagiosgraph step time and the heartbeat is set to the
 nagiosgraph default of 600 seconds.
 
 Can anyone advise me if if this is likely to be the problem and if not
 how I can diagnose what is actually going on?

 I have put a diagnose on the mailinglist for something that is either
 the same problem or something similar.

 The problem is that nagios can send several commands into the pipe at
 once and the other end will only pick up one of them. So the RRD info is
 not written. The work around is not to allow Nagios to run things in
 parallel. But it will severly limit the amount of hosts and services one
 can check with Nagios.

 This should have been fixed by using the file interface instead of the
 named pipe. The file interface was introduced about a year ago or even
 longer back.

 Please check the mailinglist archives for more details.

 Hugo.

This seems to refer to nagiosgrapher, see:
http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1659.html

whereas I'm trying to set up nagiosgraph, see:

http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1501.html

Steve.


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
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] Nagiosgraph graphs have gaps

2008-12-08 Thread Steve Burton
Steve Burton wrote:
 Hi Hugo,
 

   
 Thanks for the reply I am also facing the same issue. 
 

   
 As per you suggestion I have gone through the archieve and found one big
 thread regarding Nagios graph gap.
 

   
 https://sourceforge.net/mailarchive/message.php?msg_id=007301c84e20$4def
 [EMAIL PROTECTED]
 

   
 In the thread the working solution as per people is but when I went
 through the it then found 
 We need to make change in ngraph.ncfg but in current nagiosgraph there
 is no such file.
 

   
 Pls guide how to solve graph this gap issue.
 

   
 In my machine heartbeat is 600 sec and perf_file_iterval is 60 sec.
 

   
 thanks
 

   
 ==
 Hi,
 

   
 the old NagiosGrapher interfaces (network/pipe) can cause huge
 latency :-(. Thanks to a patch we got there is a new interface type
 file. The main advantages of this new interface are:
 * no gaps any more
 * no latency caused by NagiosGrapher
 * restarting NagiosGrapher does not cause any gaps
 

   
 I am sorry but the documentation totally lacks this interface. But below
 is all you need.
 

   
 Cheers,
 

   
 Gerd
 




   
 =20
 ngraph.ncfg:
 

   
 interface file
 perffile_path /dev/shm
 

   
 nagios.cfg:
 

   
 process_performance_data=1
 service_perfdata_file=/dev//shm/service-perfdata
 service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT
 $\t$SERVICEPERFDATA$\t$TIMET$
 service_perfdata_file_mode=a
 service_perfdata_file_processing_interval=60
 

   
 service_perfdata_file_processing_command=3Dprocess-service-perfdata-file
 


   
 commands.cfg:
 define command{
 command_name process-service-perfdata-file
 command_line
 mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$
 }
 ==
 



   
 Thanks  Regards
 Novin Jaiswal
 Ishi Systems Inc.
 201-521-3155(Direct)
 732-318-8156(Cell)
 



   
 -Original Message-
 From: Hugo van der Kooij [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 30, 2008 2:44 AM
 To: Nagios Users Mailinglist
 Subject: Re: [Nagios-users] Nagiosgraph graphs have gaps
 

   
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 

   
 Steve Burton wrote:
 
 Hi,

 I  have  nagios  3.0.4 running on FreeBSD and I'm using nagiosgraph to
 generate  rrd's  on  the  data.  I'm  visualizing  the  data with both
 nagiosgraph and drraw.

 My  problem  is that the graphs have gaps so I guessing that the rrd's
 are  not  being  updated.  I'm  concentrating  on just one service for
 debugging   and   I've  run  the  plugin  (which  I  wrote)  from  the
 command-line  many times for a local server and I haven't seen it fail
 to  connect  or  report  or to time out. It is as though nagios is not
 checking  the service within the heartbeat of the rrd's in question. I
 have  set  the service check interval to 5 minutes, which I believe to
 be  the  default nagiosgraph step time and the heartbeat is set to the
 nagiosgraph default of 600 seconds.

 Can anyone advise me if if this is likely to be the problem and if not
 how I can diagnose what is actually going on?
   

   
 I have put a diagnose on the mailinglist for something that is either
 the same problem or something similar.
 

   
 The problem is that nagios can send several commands into the pipe at
 once and the other end will only pick up one of them. So the RRD info is
 not written. The work around is not to allow Nagios to run things in
 parallel. But it will severly limit the amount of hosts and services one
 can check with Nagios.
 

   
 This should have been fixed by using the file interface instead of the
 named pipe. The file interface was introduced about a year ago or even
 longer back.
 

   
 Please check the mailinglist archives for more details.
 

   
 Hugo.
 

 This seems to refer to nagiosgrapher, see:
 http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1659.html

 whereas I'm trying to set up nagiosgraph, see:

 http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1501.html

 Steve.


 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to help
 pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 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 was me, mea culpa (or as they say in Seattle, my bad).

Everything I tried pointed to Nagios not checking hosts and services

Re: [Nagios-users] Hostgroup Issue

2009-01-20 Thread Steve Burton
Alex Dehaini wrote:
 Hi,

 What config do you want me to post? I added the members to the hostgroup

Do you have a 'hostgroups.cfg' or equivalent file?

It should contain the definitions of any hostgroups you use.
E.g. (cut from the documentation)
define hostgroup{

hostgroup_name  hostgroup_name

alias   alias

members hosts

hostgroup_members   hostgroups

notes   note_string

notes_url   url

action_url  url
}


Steve.


 On Tue, Jan 20, 2009 at 1:52 PM, Marc Powell m...@ena.com 
 mailto:m...@ena.com wrote:


 On Jan 20, 2009, at 3:36 AM, Alex Dehaini wrote:

  In the cgi view, I see the hostgroup but it says there are no host
  or services added to it even after adding the host and service.
 
  Strange

 If you want useful help for this you're going to have to post the
 relevant config information. At this point it seems that the hostgroup
 has no members or you are not permitted to see them.

 --
 Marc


 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 mailto: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




 -- 
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com http://www.alexdehaini.com
 Email - alexdeha...@gmail.com mailto:alexdeha...@gmail.com
 

 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 

 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Embedded Perl Problem

2009-01-23 Thread Steve Burton
Hi,

I am running nagios 3.0.6 under FreeBSD 6.3 (installed from ports).

I recently upgraded perl from 5.8.8 to 5.8.9 (also from ports) because 
of an imagined problem I had. I also rebuilt all ports that depended on 
perl including nagios, its libraries and plugins. Then nagios wouldn't 
start quoting a problem with libperl.so.
I cannot find where I saved the original error message (I was slightly 
stressed at the time. :).
I rebuilt nagios without embedded perl support to get it running but I 
now have much increased server load.

Can anyone point me towards a solution to this?

Steve.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Embedded Perl Problem

2009-01-25 Thread Steve Burton
 Steve Burton wrote:
 Hi,
 
 I am running nagios 3.0.6 under FreeBSD 6.3 (installed from ports).
 
 I recently upgraded perl from 5.8.8 to 5.8.9 (also from ports) because
 of an imagined problem I had. I also rebuilt all ports that depended on
 perl including nagios, its libraries and plugins. Then nagios wouldn't
 start quoting a problem with libperl.so.
 I cannot find where I saved the original error message (I was slightly
 stressed at the time. :).
 I rebuilt nagios without embedded perl support to get it running but I
 now have much increased server load.
 
 Can anyone point me towards a solution to this?

 Hi,

 It has been noted by several people that upgraded Perl on FreeBSD but
 I'm sure we'll see a solution soon.

 http://lists.freebsd.org/pipermail/freebsd-ports/2009-January/052510.html

 This is what I got in nagios.log:

 [1232880371] Local time is Sun Jan 25 11:46:11 CET 2009
 [1232880371] LOG VERSION: 2.0
 [1232880371] Error: p1.pl file required for embedded Perl interpreter is
 missing!
 [1232880371] Bailing out due to errors encountered while initializing
 the embedded Perl interpreter. (PID=59302)
 [1232880958] Caught SIGTERM, shutting down...
 [1232880958] Successfully shutdown... (PID=7489)


 --
 per
Per,

thanks for the update. I thought it must be me :)

Steve.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] CPU Critical

2009-02-16 Thread Steve Burton
Jon Angliss wrote:
 On Fri, 13 Feb 2009 00:54:34 -, Martyn mar...@chetnet.co.uk
 wrote:

   
 Hi All
 I have noticed whilst monitoring my NT server the CPU load level has been at
 critical status for 3d 8h 29m 32s and sitting at 100%,  this is good news
 
 from a monitoring point of view as it was spotted, however I need to solve
   
 it.
 

   
 I know I can just jump on to my server and look at the processors I would
 find what was hogging it but is there a plugin/module or add-on that I can
 use to see what processors maxing out.
 

 If you're any good at scripting, you can tinker with the WMI script
 from here:


 http://www.databasejournal.com/features/mssql/article.php/3560366/Monitor-CPU-Usage-of-All-Running-Processes--Part-I.htm

 It's a WMI script that will walk through all the processes, and return
 the CPU usage.  With some tweaking, you can probably sort the results,
 add the values, and use it as a CPU counter, and return the top
 process as part of the check.
   
Also, if you only want the _Total_ processor usage and have NSCP 
installed you can access the perfmon counter with a check_command like:

define command{
   command_name check-processor-nscp
   command_line $USER1$/check_nt -H $HOSTADDRESS$ -v COUNTER -l 
\\Processor(_Total)\\% Processor Time,Processor Used %2.f%% -p 12489
   }

(NB I run nscp on port 12489 hence the -p argument).

Steve.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] Which books are best for Nagios 3

2009-02-20 Thread Steve Burton




Lee Azzarello wrote:

  On Wed, Feb 4, 2009 at 12:01 PM, Paul Weaver paul.wea...@bbc.co.uk wrote:
  
  

  On Jan 19, 2009, at 11:25 AM, James Miller wrote:

  
  
Recently I upgraded us from 2.9 to 3.0.6 and I'm looking for
recommendations for a book or two on 3.0 to take my

  
  knowledge to the
  
  
next level.  I've found the following books available and I'm
wondering which ones are the best:

  
  
Any suggestions would be _greatly_ appreciated!

  
  5. This list. Try to discover the answer to as many questions
as you can yourself by reading the docs and source and by
trial. Try to understand the why of an answer you discover or
provided by someone else. I consider it a much more
interesting and varied resource than the few standard
examples a book might have; plus it's free =).
  

Only once you reach a certain level. There are no doubt many lurkers
who have trouble getting started. I know I did. I got a copy of
"Building a Monitoring Infrastructure with Nagios" (Feb07) and found
that invaluable, but we're still on nagios version 2

  
  
Agreed. Dave Josephsen's book is excellent. I'm currently on the
visualization chapter. It's very comprehensive and practical. He's
opinionated enough to make reading chapters interesting.

-lee

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

  

I agree about the book. You may like to know that Dave Josephsen has
also written some excellent articles in ;login: (the Journal of USENIX
http://www.usenix.org). Unfortunately, all but the first article
(http://www.usenix.org/publications/login/2007-08/pdfs/josephsen.pdf)
are only available to members at this time.

Steve Burton.


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__




--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
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 to send text notification

2013-07-10 Thread Steve Burton
On 11 July 2013 02:12:02, , Roy wrote:
 Hi,

  Anyone can help me to setup SMS notification from Nagios

 Thanks




 --
 See everything from the browser to the database with AppDynamics
 Get end-to-end visibility with application monitoring from AppDynamics
 Isolate bottlenecks and diagnose root cause in seconds.
 Start your free trial of AppDynamics Pro today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk


 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

I think this is visible to all...

http://c59951.r51.cf2.rackcdn.com/5435-212-josephsen.pdf

Describes one method of integrating SMS into Nagios.


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
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 to send text notification

2013-07-10 Thread Steve Burton
On 11 July 2013 02:39:33, MAHONEY, DANIEL wrote:
 You need to find the email gateway for your subscriber’s providers,
 and set up the notify-host-by-eager and notify-service-by-epager scripts.

 *From:*, Roy [mailto:rp...@njit.edu]
 *Sent:* Wednesday, July 10, 2013 8:12 PM
 *To:* nagios-users
 *Subject:* [Nagios-users] How to send text notification

 Hi,

  Anyone can help me to setup SMS notification from Nagios

 Thanks



 --
 See everything from the browser to the database with AppDynamics
 Get end-to-end visibility with application monitoring from AppDynamics
 Isolate bottlenecks and diagnose root cause in seconds.
 Start your free trial of AppDynamics Pro today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk


 ___
 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

you should bear in mind that an email to SMS gateway won't let you know 
email is down or report some network outages.  You might consider using 
a phone connected to your Nagios server to send the SMS

Steve.


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
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 to send text notification

2013-07-10 Thread Steve Burton
On 11/07/2013 02:12, , Roy wrote:
 Hi,

   Anyone can help me to setup SMS notification from Nagios

 Thanks




 --
 See everything from the browser to the database with AppDynamics
 Get end-to-end visibility with application monitoring from AppDynamics
 Isolate bottlenecks and diagnose root cause in seconds.
 Start your free trial of AppDynamics Pro today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk



 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

I think this is visible to all...

http://c59951.r51.cf2.rackcdn.com/5435-212-josephsen.pdf

Describes one method of integrating SMS into Nagios.



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
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