[Nagios-users] Nagios Neat

2009-05-30 Thread Lars Stavholm
Hi All,

I'm trying out the Nagios Neat CSS style from monitoringexchange.org,
but I can't seem to get the sidebar formatting going for me.

Has anyone else seen this problem?

Any ideas appreciated
/Lars S

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-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] Trouble-shooting nagiosgrapher

2008-04-24 Thread Lars Stavholm
mjn wrote:
 Is there any decent documentation for nagiosgrapher or boards that I can 
 search that are not in german?
 
 I've got it setup and configured but the one graph that I've configured 
 give me an image with this error:
 
 RRD Error: opening /var/lib/nagios/rrd/linux_narsil/': Permission denied
 
 That dir is:
 
 [EMAIL PROTECTED] nagios]# ls -lahR
 .:
 total 24K
 drwxr-xr-x  3 root   root   4.0K 2008-04-24 12:20 .
 drwxr-xr-x 42 root   root   4.0K 2008-04-24 12:20 ..
 drwxr-xr-x  3 nagios apache 4.0K 2008-04-24 13:22 rrd

Group writable maybe.

 ./rrd:
 total 24K
 drwxr-xr-x 3 nagios apache 4.0K 2008-04-24 13:22 .
 drwxr-xr-x 3 root   root   4.0K 2008-04-24 12:20 ..
 drwxr-xr-x 2 nagios nagios 4.0K 2008-04-24 13:22 linux_narsil

Group apache and group writable maybe.

 ./rrd/linux_narsil:
 total 16K
 drwxr-xr-x 2 nagios nagios 4.0K 2008-04-24 13:22 .
 drwxr-xr-x 3 nagios apache 4.0K 2008-04-24 13:22 ..
 
 I'd appreciate a kick in the right direction or some a decent howto...

Hope the above helps. I do believe your web instance of nagios
is run by the apache user, so you have to make sure that the
directory permissions allows the apache process to write and
create files.
/L

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] monitoring windows NT workstation.

2008-04-05 Thread Lars Stavholm
[EMAIL PROTECTED] wrote:
 
 Hi All
 
 I have some servers in NT 4 , in which nsclient++ can't be installed , 
 So how can i make nagios to monitor those NT sytems.

SNMP?
/L

 The information contained in this e-mail message is intended only for 
 the use of the individual or entity to which it is addressed. If you are 
 not the intended recipient, you should return it to the sender 
 immediately. Please note that while we scan all e-mails for viruses we 
 cannot guarantee that any e-mail is virus-free and accept no liability 
 for any damage caused by any virus transmitted by this email.
 
 
 
 
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Register now and save $200. Hurry, offer ends at 11:59 p.m., 
 Monday, April 7! Use priority code J8TLD2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 
 
 
 
 ___
 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 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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 percentages

2008-03-11 Thread Lars Stavholm
$ cat /proc/meminfo | awk '{print $2}'

On Tue, Mar 11, 2008 at 03:33:22PM +0200, Machiel Richards wrote:
 Thanks a lot, now I've learned something new...
 
 This works perfectly.
 
 -Original Message-
 From: Giles Coochey [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2008 2:59 PM
 To: Machiel Richards; nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] Nagios memory percentages
 
 Perhaps, rather than cut, try grep -o '[0-9][0-9]*'
 
 
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Machiel 
 Richards
 Sent: 11 March 2008 13:41
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios memory percentages
 
 Hi
 
   I am trying to use this option but the issue I have now is with the 
 following:
 
 The output from the /proc/meminfo is  as follows:
 
     MemFree:  206788 kB
 
    However, when I try to use cut in order to only get the numeric value, the 
 output I get back does not work that well as it still includes the spaces 
 infront of the numeric value as well as the kb at the end...
 
     I have even tried this with free and the same result
 
     What should I use as delimiter to the cut command?
 
     Any other suggestions on how to only get the numeric value?
 
     Commands used with output:
 
 cat /proc/meminfo | grep MemTotal | cut -f 2 -d :
 
 output :
 
   2067884 kB
 
 
   As you can see the spaces are all out of place.
 
   I have also noticed that when using a space as delimiter and counting 
 the spaces to the value, then you get the result, however if the numeric 
 value increase by one digit (i.e. from 6 digits to 7 digits for instance) 
 then the amount of spaces change and the program does not work.
 
 
 
 
 
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dale J. Chatham
 Sent: Tuesday, March 11, 2008 1:15 PM
 To: Machiel Richards
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios memory percentages
 
 Looc at the /proc/meminfo file and the vmstat command.
 
 Divide memory parameter (free, used, whatever) by total memory, multiply by 
 100 and you have percent.
 
 Machiel Richards wrote: 
 Hi Everyone
  
   Maybe someone can assist me, but this may be a more linux specific question 
 than Nagios even though related to Nagios.
  
    I need to monitor the memory usage in percentage on Nagios and would like 
 to rather write my own scripts for this.
  
  
    I know there are snmp versions of this to do the job for me, however I do 
 not want to complicate the systems with too many clients running on them.
  
 Currently we are using the normal nrpe to connect to the systems and run 
 scripts remotely, however we do not have one to monitor the memory.
  
     On the web there are a lot of references to the snmp commands but 
 as all the systems are production and we might be having a couple of upgrades 
 soon, I would like to rather keep it simple and only run one client on it for 
 all Nagios connections.
  
  
     My question is this... I can use the command free to get the 
 amount of memory , used, free etc... 
  
     How can I write this into a script to display as percentages... 
 is there another command I can use or maybe an option that I do not know 
 about?
  
 tx
 *** Disclaimer *** 
 The information contained in this e-mail is confidential and legally 
 privileged and is intended solely for the addressee and to others who have 
 the authority to receive it. Access to this e-mail by anyone else is 
 unauthorized and as such, any disclosure, copying, distribution or any action 
 taken or omitted in reliance on it is unlawful. If you have received this 
 e-mail in error, please notify the sender immediately. 
 The views expressed in this e-mail are the views of the individual sender and 
 should in no way be construed as the views of the Company. 
 The Company is not liable to ensure that outgoing e-mails are virus-free. 
 The Company is not liable, should information or data, for whatever reason, 
 be corrupted or fail to reach its intended addressee. 
 The Company is not liable for any loss or damage of whatsoever nature and 
 howsoever arising resulting from the opening or the use of the information in 
 this e-mail, including its attachments and links. 
 The sender of this e-mail is subject to and bound by the terms and conditions 
 of Company's Electronic Communications Usage Policy. 
 
 
 
 
 
 
 
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 
 
 
 
 
 
 
 
 
 
 
 ___
 Nagios-users mailing 

Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released

2008-02-19 Thread Lars Stavholm
Fair enough, looking forward to version 2 of NLG!
Cheers
/Lars

Andy Shellam wrote:
 Hi Lars,
 
 I agree with you 100%.  If I, as a user (techie or not), looking at my own
 machines, I'd expect some sort of summary; I wouldn't care about anyone
 else's or even the network as a whole.  As you quite rightly said Lars, the
 'overall health' needs to be aimed at the users select machines.  NLG v1,
 however, has no concept of machine ownership, it simply shows the entire
 Nagios estate.
 
 This isn't a fault, that's how it was designed.  It is, however, also where
 it falls down, and the need for a solution targeted to a different audience
 becomes apparent, hence the v2 project.  
 
 I designed v1 originally for my own use, to present users who have signed up
 to my services as an ISP with an overview of my network and how well (or
 badly) it was performing.  Users didn't have machines or services of their
 own; they just wanted to be able to see if network problems were affecting
 the servers they may use.
 
 Since I released it to the Nagios community last year, a wider audience have
 seen the potential for using NLG in ways it wasn't originally designed,
 which is fantastic because it means I get the chance to build on the success
 of the project, and hopefully design and build a solution that more and more
 people will find useful :-)
 
 The host-filter hack was indeed a hack as many people were requesting the
 same thing, but with the current code architecture it wasn't possible to do
 a permanent fix, and it was indeed a hack put in simply to tide people over
 until v2 is ready.
 
 Andy
 
 
 - Original Message -
 Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released
 From: Lars Stavholm [EMAIL PROTECTED]
 To: Andy Shellam [EMAIL PROTECTED]
 CC: Giles Coochey
 [EMAIL PROTECTED],nagios-users@lists.sourceforge.net
 nagios-users@lists.sourceforge.net
 Date: 19/02/2008 7:01


 Andy Shellam wrote:
 Hi Giles,

 Thanks for your comments.  The 'Network Health' page is designed to
 reflect
 the status of the network as a whole which, I agree, can be confusing
 when
 host-specific filters are specified.  An example scenario of the
 reasoning
 behind this is:

 You're viewing the 'network health' page and select the down hosts
 only
 filter.  All the hosts in this filter will be down, thus rendering the
 network 100% down, which obviously looks bad.
 Of course it does, and as an example of the situation at hand,
 pretty useless.

 How about viewing this problem from the users point of view?
 And I mean the non-techie user. Then it would be quite obvious
 that Network Health should reflect the network health of the
 users machines, otherwise you would have a bit of explaining
 to do to a bunch of not so happy users, that would look at you
 with those eyes saying now there's a real techie, he hasn't
 got a clue, let's get out of here.

 When using the down hosts only filter, one might consider not
 letting this reflect on the overall Network Health at all,
 actually. IMHO the Network Health should show the summary of
 health for the users select machines only, at all times,
 filter or not.

 Other than that, NLG is a brilliant solution, badly needed
 out there (here at least), and I've been looking forward to
 try it out with nagios 3.x. Thanks for the effort Andy!

 Just my 2c worth

 Cheers
 /Lars

 NLG v2 is going to be designed to work better with users, permissions
 and
 groups and will be better suited to those who don't want a simple
 network
 overview and would like to restrict what different users and groups can
 see.

 In terms of licensing, clause 4c states that if the work, ie. NLG, is
 publicly displayed then all copyright notices must be kept intact,
 including
 the author's name, designated company, title of the work and URL. 
 Therefore
 if you're providing access to NLG through a publicly-available URL or
 website, the copyright notice must be left intact, otherwise if it is
 only
 available to a set number of users (e.g. through an internal URL or
 intranet) I'm happy for the copyright notice to be removed.

 Regards,

 Andy

 - Original Message -
 Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released
 From: Giles Coochey [EMAIL PROTECTED]
 To: nagios-users@lists.sourceforge.net
 Date: 18/02/2008 15:59


 Andy,

 I thought I'd take a look at your project, as I have some interest in
 having some sort of dynamic portal which customers can query and I've
 seen
 your project surface time-and-time again on this list.
 I've implemented the 'hack' to limit which hosts a particular user can
 see, but notice that they still see the Overall Network Health still
 shows
 the values for all hosts  services, rather than those in the currently
 selected filter.
 It would be much better if the granularity for this tool followed the
 'Nagios way' and used the contact group for all visibility.
 Unfortunately
 this is very important for our environment.
 In terms

Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released

2008-02-18 Thread Lars Stavholm
Andy Shellam wrote:
 Hi Giles,
 
 Thanks for your comments.  The 'Network Health' page is designed to reflect
 the status of the network as a whole which, I agree, can be confusing when
 host-specific filters are specified.  An example scenario of the reasoning
 behind this is:
 
 You're viewing the 'network health' page and select the down hosts only
 filter.  All the hosts in this filter will be down, thus rendering the
 network 100% down, which obviously looks bad.

Of course it does, and as an example of the situation at hand,
pretty useless.

How about viewing this problem from the users point of view?
And I mean the non-techie user. Then it would be quite obvious
that Network Health should reflect the network health of the
users machines, otherwise you would have a bit of explaining
to do to a bunch of not so happy users, that would look at you
with those eyes saying now there's a real techie, he hasn't
got a clue, let's get out of here.

When using the down hosts only filter, one might consider not
letting this reflect on the overall Network Health at all,
actually. IMHO the Network Health should show the summary of
health for the users select machines only, at all times,
filter or not.

Other than that, NLG is a brilliant solution, badly needed
out there (here at least), and I've been looking forward to
try it out with nagios 3.x. Thanks for the effort Andy!

Just my 2c worth

Cheers
/Lars

 NLG v2 is going to be designed to work better with users, permissions and
 groups and will be better suited to those who don't want a simple network
 overview and would like to restrict what different users and groups can
 see.
 
 In terms of licensing, clause 4c states that if the work, ie. NLG, is
 publicly displayed then all copyright notices must be kept intact, including
 the author's name, designated company, title of the work and URL.  Therefore
 if you're providing access to NLG through a publicly-available URL or
 website, the copyright notice must be left intact, otherwise if it is only
 available to a set number of users (e.g. through an internal URL or
 intranet) I'm happy for the copyright notice to be removed.
 
 Regards,
 
 Andy
 
 - Original Message -
 Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released
 From: Giles Coochey [EMAIL PROTECTED]
 To: nagios-users@lists.sourceforge.net
 Date: 18/02/2008 15:59


 Andy,

 I thought I'd take a look at your project, as I have some interest in
 having some sort of dynamic portal which customers can query and I've seen
 your project surface time-and-time again on this list.
 I've implemented the 'hack' to limit which hosts a particular user can
 see, but notice that they still see the Overall Network Health still shows
 the values for all hosts  services, rather than those in the currently
 selected filter.
 It would be much better if the granularity for this tool followed the
 'Nagios way' and used the contact group for all visibility. Unfortunately
 this is very important for our environment.
 In terms of the license, what if I want to remove all references to Nagios
 Looking Glass, your name etc... from the portal interface? Is that going to
 be an issue? I'm not talking about removing any copyright or license
 information from the source files itself, just the customer facing side.
 Thanks

 Giles

 
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Andy
 Shellam
 Sent: 18 February 2008 13:06
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released

 The Nagios Looking Glass is pleased to announce the availability of NLG
 1.1.0 beta 1.
 This is the first release in the 1.1 series that makes NLG compatible with
 Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility with
 Nagios 2.x.
 The major changes in this version against 1.0.6 are:
 * Added configuration option to change the location of cached files
 client-side (http://tracker.networkmail.eu/task/337)
 * Locking for cache files (http://tracker.networkmail.eu/task/336)
 * comments.dat and downtime.dat no longer available (change these to
 status.dat in server/sync-files/s3_config.inc.php)
 (http://tracker.networkmail.eu/task/333)
 * Allow override of default timezone
 (http://tracker.networkmail.eu/task/214)
 * Ability to disable client-side caching
 (http://tracker.networkmail.eu/task/126)
 The new release
 can be downloaded from www.nagioslookingglass.co.uk/downloads.
 Regards,

 Andy Shellam
 Lead Developer

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin 

Re: [Nagios-users] [ANN] WebReboot Nagios Plugin 1.1 Released

2008-01-30 Thread Lars Stavholm
Kevin Menard wrote:
 On 1/30/08 9:23 AM, Lars Stavholm [EMAIL PROTECTED] wrote:
 
 More info on the release and discount coupon codes:
 Coupon codes?
 I think you're missing something fundamental here!
 
 Perhaps.  I'm certainly not a marketing guy.  If you'd like, you can pay
 full price ;-)

Are you mad, or just very young?

 Our marketing folks tend to be pretty selective about promotions.  I try to
 push for one when we do plugin releases.  Sometimes I win, sometimes I lose.
 The Nagios community has been pretty good to us, though, so we try to offer
 them something a little more.  I tend to push for coupons just because
 they're simple to use *shrug*

You're still missing the point!
This mailing list is not for pushing anything,
whether it's from your marketing guys or yourself.
/L


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] [ANN] WebReboot Nagios Plugin 1.1 Released

2008-01-30 Thread Lars Stavholm


Kevin Menard wrote:
 Hi all,
 
 I just wanted to let you know that we've published the 1.1 release of our
 open source integration plugins for Nagios.  Since a common question we
 receive is what these plugins actually do or look like, I've put together a
 little screencast available at:
 
 http://www.servprise.com/products/nagios/
 
 
 More info on the release and discount coupon codes:

Coupon codes?
I think you're missing something fundamental here!
/L

 http://dev.servprise.com/weblog/articles/2008/01/29/webreboot-nagios-plugin-
 1-1-release
 
 Key changes are:
 - Improved installer
 - Bug fix that lets the plugin work with older versions of Python
 - Added the ability to log to a syslog server
 - Plugins are more resilient to WebReboot network failures
 
 
 Thanks again to all of you that used the 1.0 release and offered up bug
 reports  feature requests.  This release features changes related to both.
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] [ANN] WebReboot Nagios Plugin 1.1 Released

2008-01-30 Thread Lars Stavholm


John A. Sullivan III wrote:
 On Wed, 2008-01-30 at 14:48 +, Lars Stavholm wrote:
 Kevin Menard wrote:
 On 1/30/08 9:23 AM, Lars Stavholm [EMAIL PROTECTED] wrote:

 More info on the release and discount coupon codes:
 Coupon codes?
 I think you're missing something fundamental here!
 Perhaps.  I'm certainly not a marketing guy.  If you'd like, you can pay
 full price ;-)
 Are you mad, or just very young?

 Our marketing folks tend to be pretty selective about promotions.  I try to
 push for one when we do plugin releases.  Sometimes I win, sometimes I lose.
 The Nagios community has been pretty good to us, though, so we try to offer
 them something a little more.  I tend to push for coupons just because
 they're simple to use *shrug*
 You're still missing the point!
 This mailing list is not for pushing anything,
 whether it's from your marketing guys or yourself.
 /L

 snip
 Lars, I think you have misunderstood Kevin.  I was first taken aback by
 at the thought of needing a coupon to buy an addon to Nagios until I
 went to their site.  The plugin is entirely free and a great
 contribution in support of Nagios.  The hardware that enables the
 product to work is what is sold.  I wouldn't expect them to be providing
 the hardware for free ;)

Fair enough, sounds reasonable. But I still would like
this list, and all the rest of the mailing lists I attend,
to stay clear of expressions like discount coupon codes.
There's got to be other ways of advertising your products.

And please don't misunderstand me: I'm all for products
like WebReboot and others that takes the excellent nagios
software in to the corporate world. If done properly, that
can only be good for the product in question, and therefor
good for anyone using the product, be it in a non-profit or
commercial capacity (like myself:).

However, I still don't want to be lured into reading
discount coupon codes or anything similar on this
or any other open source software mailing list.

The advertising of open source (or any other) software
products already occupy most if not all other media
channels. Leave the mailing lists alone!

Cheers
/Lars


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] [ANN] WebReboot Nagios Plugin 1.1 Released

2008-01-30 Thread Lars Stavholm
Alex Howells wrote:
 However, I still don't want to be lured into reading
 discount coupon codes or anything similar on this
 or any other open source software mailing list.

 
 OT
 I don't speak for anyone but myself, but I have no problem with his post
 about the new plugin, nor the link to discount coupon codes.  :(
 
 It's always nice to see companies giving discounts, and he clearly
 wasn't making a blatant sales pitch to this mailing list
 
 If you can't tolerate that, feel free to bury your head in the sand, or
 just script your MTA so that any corporate (ie: non-consumer ADSL)
 domains go straight to /dev/null to save yourself *shrug*
 /OT

Yes, of course you're right, I can see the light now.
Looking forward to more sales pitches ad's and whatnot.
And why not indeed, I'm a relic. I know I shouldn't
complain, my bad. Hey, on the contrary, thanks for
the discount coupon!
/L


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] APC or Triplite links anyone ?

2008-01-30 Thread Lars Stavholm
Ennis Ibarra wrote:
 Can anybody point me to a decent howto or some example on how to setup
 and use check_apc_ups.pl plugin for APC UPSs?
 
 Or options to monitor APCs and Triplite UPSs if you have found any
 that's worth checking.
 
 Any help is appreciated.

Well, this is just the checks that we use:

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_online
  servicegroups hardware
  check_command check_apc!status!0!0!0!0
}

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_temp
  servicegroups hardware
  check_command check_apc!temp!35!40!10!5
}

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_ld
  servicegroups hardware
  check_command check_apc!load!80!90!0!0
}

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_bcharge
  servicegroups hardware
  check_command check_apc!bcharge!20!10!0!0
}

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_time
  servicegroups hardware
  check_command check_apc!time!8!5!0!0
}

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_linev
  servicegroups hardware
  check_command check_apc!linev!235!240!225!220
}

define service {
  use   generic-service
  host_name @NAME@
  service_description   apcups_linefreq
  servicegroups hardware
  check_command check_apc!linefreq!51!52!49!48
}

And here's the command definition:

define command {
  command_name check_apc
  command_line $USER1$/extras/check_apc $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$
}


Hope you find it useful, I know we do:)
/L


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] APC or Triplite links anyone ?

2008-01-30 Thread Lars Stavholm
Ennis Ibarra wrote:
 Hey thanks, one extra favor though.   Where do I download the check_apc
 plugin, I only have check_apc_ups, but I don't think it is the same.

Sorry, my bad, forgot about the most cruical part of it all:)

We originaly got our check_apc from nagiosexchange.org:
http://www.nagiosexchange.org/Misc.54.0.html?tx_netnagext_pi1[p_view]=615

We had to make some changes to it though,
so I've attached a copy of ours.

Good Luck
/L

 On Wed, 2008-01-30 at 23:46 +0100, Lars Stavholm wrote:
 Ennis Ibarra wrote:
  Can anybody point me to a decent howto or some example on how to setup
  and use check_apc_ups.pl plugin for APC UPSs?
  
  Or options to monitor APCs and Triplite UPSs if you have found any
  that's worth checking.
  
  Any help is appreciated.

 Well, this is just the checks that we use:

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_online
   servicegroups hardware
   check_command check_apc!status!0!0!0!0
 }

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_temp
   servicegroups hardware
   check_command check_apc!temp!35!40!10!5
 }

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_ld
   servicegroups hardware
   check_command check_apc!load!80!90!0!0
 }

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_bcharge
   servicegroups hardware
   check_command check_apc!bcharge!20!10!0!0
 }

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_time
   servicegroups hardware
   check_command check_apc!time!8!5!0!0
 }

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_linev
   servicegroups hardware
   check_command check_apc!linev!235!240!225!220
 }

 define service {
   use   generic-service
   host_name @NAME@
   service_description   apcups_linefreq
   servicegroups hardware
   check_command check_apc!linefreq!51!52!49!48
 }

 And here's the command definition:

 define command {
   command_name check_apc
   command_line $USER1$/extras/check_apc $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$
 }


 Hope you find it useful, I know we do:)
 /L
 __
 Ennis Ibarra - NSASr
 



check_apc.sh
Description: application/shellscript
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Sun Monitoring

2008-01-29 Thread Lars Stavholm
Brian Loe wrote:
 Can someone monitoring Sun servers, and Sun clusters, contact me
 off-list for pointers and other assorted stuff... :) Thanks!

Or on-list, I'm interested too, as I'm sure others are as well.
That's kinda' why they invented mail lists in the first place.
/L

 Perhaps nagiosexchange should have add onto their wiki howto section
 by host type or something - that would be handy. Sample configs and
 all that.
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Sun Monitoring

2008-01-29 Thread Lars Stavholm
Edwin Zoeller wrote:
 We are monitoring ~75 Sun Servers via Nagios. What information would you
 like to know. 

Top down...
1. method used (nsca, nrpe, snmp) and why?
2. what specific checks are you using?

That's about it, I think

R
/L

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lars
 Stavholm
 Sent: Tuesday, January 29, 2008 2:13 PM
 To: Brian Loe
 Cc: Nagios Users
 Subject: Re: [Nagios-users] Sun Monitoring
 
 Brian Loe wrote:
 Can someone monitoring Sun servers, and Sun clusters, contact me 
 off-list for pointers and other assorted stuff... :) Thanks!
 
 Or on-list, I'm interested too, as I'm sure others are as well.
 That's kinda' why they invented mail lists in the first place.
 /L
 
 Perhaps nagiosexchange should have add onto their wiki howto section 
 by host type or something - that would be handy. Sample configs and 
 all that.

 --
 --- This SF.net email is sponsored by: Microsoft Defy all challenges. 
 Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft Defy all challenges.
 Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] nagios-3.0rc2 application/wav

2008-01-29 Thread Lars Stavholm
Hi All,

downloaded nagios-3.0rc2, installed and seems to work nicely.
However, in my Firefox browser, when looking at the nagios
web interface, I get a message saying that I should install
missing plugin for application/wav (both on Linux - Firefox
2.0.0.10 - and Windows XP - Firefox 2.0.0.11).

Where can I find such a plugin (and what's the story)?

R
/Lars


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 monitor intermittent clients

2008-01-24 Thread Lars Stavholm
Thomas Guyot-Sionnest wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 19/01/08 05:42 AM, Hugo van der Kooij wrote:
 Lars Stavholm wrote:
 | Hi All,
 |
 | I know this is a bit of an odd one, but still:
 |
 | I'm looking for ways of monitoring intermittent
 | clients, i.e. client computers that are not always
 | there, like laptops that come and go or similar,
 | clients that gets switched off after work hours.
 |
 | Ideally, without installing anything on the clients,
 | so that sort of rules out passive checking. Instead,
 | I would like to use active checking (e.g. using SNMP),
 | but configured in a way so that when a host is unreachable
 | or down, that's OK, and the services needn't be checked.
 | Whereas if the client host is on line, all defined
 | services should be checked and issue alarms and so on
 | if check results in CRITICAL or WARNING, as per usual.

 Make sure you can ping them. Then setup a service to do that at a
 relative high rate. And make all other services dependent on that ping
 service. Then say you do not care about unreachable services.

 Just make sure that ping reaches a hard state before any service can
 reach a hard state.
 
 You don't even need that. Obviously you won't need to know then these
 systems are down, so just set the notification_options to n in the
 host setup and you'll never get paged when the host is down.

Good one. Implemented.

 Nagios check logic is to make sure a host is up before sending a service
 alert. If the host is down, you get HOST DOWN notification instead of
 any service alert, and obviously id you disable host notifications
 you'll get nothing.

Very good.

 Take note of the following:
 
 If you need to monitor many hosts, you will likely be more comfortable
 with Nagios 3 as it can schedule host checks instead of running them in
 serial, which can be a problem if many hosts are down.

I'm on latest 3.x with just a few hosts.

 Ideally use check_icmp instead of check_ping and fine-tune the
 parameters so that it returns within one second on dead hosts. This will
 make the host check be performed much faster. This is most useful in
 Nagios 2 due to the limitation mentioned above.

I wouldn't know how to tweak it, but I'm trying check_icmp -n 1
at the moment, and it seems to take about 1.08 to 1.15 seconds.
Good enough maybe? Or can you give any further advice on tweaking
check_icmp?

 The tricky part is host coming back up. On some systems the network
 comes up before all services are up so you'll get notifications for
 these services. There's no easy way around that, but personally I'd look
 into event handlers.

Seems like a good idea. I have a feeling that
the new Adaptive Monitoring might be useful.
I will try that in the next step of testing.

Thanks for your help, I'll report back to this
list on my progress.

Thanks
/Lars

 You could set-up an event handler for hosts and:
 
 - - When a volatile host goes HARD DOWN, disable notifications for all
 services by sending the appropriate command to the host.
 - - When a volatile host goes HARD UP, sleep 1 or 2 minutes then enable
 notifications for all services. You will probably have to fork before
 any sleep in your event handler to avoid blocking Nagios...
 
 References:
 http://nagios.sourceforge.net/docs/2_0/notifications.html
 http://nagios.sourceforge.net/docs/2_0/checkscheduling.html
 http://nagios.sourceforge.net/docs/2_0/eventhandlers.html
 http://www.nagios.org/developerinfo/externalcommands/commandlist.php
 
 Thomas
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFHkmrK6dZ+Kt5BchYRAmtUAKCYE4Zu30G7TM10yUXz9oHyZ0HGWACg6s0Y
 rbSKYe/x2Q/oyU+Riz7GVyQ=
 =jaja
 -END PGP SIGNATURE-
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] NagiosGrapher 2008-01-08 issue on Centos

2008-01-20 Thread Lars Stavholm
Hugo van der Kooij wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hugo van der Kooij wrote:
 | Hi,
 |
 | I might have missed something trivial here but it seems I am not getting
 | any graphs build and I end up with a lot of small files on a pretty new
 | installation on Centos 5.1 with Nagios 2.10
 |
 | Nagios is runing fine for the current handfull of hosts in the config.
 | So I decided I wanted to give NagiosGrapher a spin.
 
 I found the first issue. In the rc there is the line:
 DAEMON=/usr/lib/nagios/contrib/nagios_grapher/collect2.pl
 
 But there is not even an directory called /usr/lib/nagios/contrib
 
 The file was in fact installed in /usr/lib/nagios/plugins/contrib/
 
 In this regard the value in the Fedora init script is better as this
 part of the diff shows:
 - --- nagios_grapher.fc   2007-08-10 17:05:31.0 +0200
 +++ nagios_grapher.redhat   2007-08-10 17:05:31.0 +0200
 - -DAEMON=/usr/lib/nagios/plugins/contrib/collect2.pl
 +DAEMON=/usr/lib/nagios/contrib/nagios_grapher/collect2.pl
 
 Fixing the issue and adding the perl-GD package did result in the
 startup of the daemon.
 
 The files are now read as I would expect them to be.
 
 But I am not yet getting any graphs. Int he logs it seems all of the
 lines are ignored.
 
 In the ngrap.ncfg file I have:
 
 # Includes
 cfg_dir=/etc/nagios/ngraph.d
 
 And I copied the template file for ping to this directry and made sure
 the file was now named check_ping.ncfg but this did not work yet. I then
 renamed the file to PING.ncfg and this time the restart seems to get it
 right.
 
 Is this a known issue with the names of the template files? Must they
 match the service name exactly?

No, to my understanding they can be named anything, but the files
has to have the .ncfg at the end. The actual matching takes place
in the service_name statement of the .ncfg file against the
service_description of the nagios service definition. I have, on
the other hand, been bitten by the permission of the files. The
files need to be owned by nagios, if indeed nagios is the process
owner of collect.pl.
/L

 - --
 [EMAIL PROTECTED]   http://hugo.vanderkooij.org/
 PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
 
   A: Yes.
   Q: Are you sure?
   A: Because it reverses the logical flow of conversation.
   Q: Why is top posting frowned upon?
 
 Bored? Click on http://spamornot.org/ and rate those images.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 
 iD8DBQFHkharBvzDRVjxmYERApN7AKCDatun2c6HATDGU1GFbkYQxA9BugCgo5Pj
 r18vL4RCuDhuku9HwHlZopY=
 =wuRm
 -END PGP SIGNATURE-
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] rrd gaps

2008-01-20 Thread Lars Stavholm
Hugo van der Kooij wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Gerd Mueller wrote:
 | 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
 
 Did anyone allready write up a spec file for the software dated
 2008-01-08? I do not mind having to write one myself but I rather not
 waste time on duplicates.

Not sure what you mean there, but here's an rpm spec file for rc5:
http://www.linadd.org/browser/trunk/nagios/grapher/grapher.spec.in.
We've tried the latest package, the one labeled latest (the one
after rc5), but never got that one working, so we're sticking with
rc5 for the moment.
/L

 - --
 [EMAIL PROTECTED]   http://hugo.vanderkooij.org/
 PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
 
   A: Yes.
   Q: Are you sure?
   A: Because it reverses the logical flow of conversation.
   Q: Why is top posting frowned upon?
 
 Bored? Click on http://spamornot.org/ and rate those images.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 
 iD8DBQFHkgW7BvzDRVjxmYERAtTLAKCZBFAErGkz7Bc9Fq9kdffvuiwpHQCcD1nT
 kPU3xjtcpPziQT3QljtGlco=
 =WCMq
 -END PGP SIGNATURE-
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Howto monitor intermittent clients

2008-01-19 Thread Lars Stavholm
Hi All,

I know this is a bit of an odd one, but still:

I'm looking for ways of monitoring intermittent
clients, i.e. client computers that are not always
there, like laptops that come and go or similar,
clients that gets switched off after work hours.

Ideally, without installing anything on the clients,
so that sort of rules out passive checking. Instead,
I would like to use active checking (e.g. using SNMP),
but configured in a way so that when a host is unreachable
or down, that's OK, and the services needn't be checked.
Whereas if the client host is on line, all defined
services should be checked and issue alarms and so on
if check results in CRITICAL or WARNING, as per usual.

Any ideas appreciated
/Lars


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] 2.x cfg - 3.x install?

2008-01-12 Thread Lars Stavholm
Max wrote:
 I have not seen any RPMs for distros yet but I usually build from
 source for Nagios :) because the installs I have seen generally do not
 include the embedded perl interpreter which is something I make heavy
 use of :p.
 
 Dag Wieers is where I go for RPMs for Redhat-like systems; I don't see
 anything but 2.x RPMs there yet.  I think most places wait until a
 stable release is out (which makes sense) before releasing RPMs.

We have 3.x rpm's at http://linadd.org.
So far only tested on SuSE Linux 10.x.
Test on Fedora 8 commencing next week.
/L

 Yes, transitioning from 1.x to 2.x was a pretty big deal and not so
 easy, I remember that clearly.  Moving to 3.x was much easier and the
 new configuration directives in the Nagios 3 configuration language
 along with custom variables really help make for a much easier to read
 and manage configuration :).
 
 - Max
 
 On Jan 12, 2008 4:23 PM, Rogelio [EMAIL PROTECTED] wrote:
 Very cool.  Thank you, Max!

 I'm putting together a proposal, and since the admins want to install and
 maintain everything via package, I'm using 2.10 (via rpm / yum). Haven't yet
 seen any Debian or RPM packages for 3.x, but maybe I'm not looking in the
 right place?

 In any case, I want to make sure that 2.x-3.x is an easier transition than
 1.x-2.x was for me!
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] 10g

2008-01-08 Thread Lars Stavholm
Marc Powell wrote:
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Mad Unix
 Sent: Tuesday, January 08, 2008 12:16 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] 10g

 Does Nagios work with 10g ?

Search for oracle at http://nagiosexchange.org.
You'll get a lot of hits, maybe some of the
checks work with Oracle 10G.
/L


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] Permission issues

2008-01-07 Thread Lars Stavholm
You might have better luck getting an answer if you use
a new thread as opposed to using a thread that is not
relevant to your specific problem.

Just a friendly hint
/L

Sudheer Muddappa wrote:
 Hi All,
 
 I am running Nagios 1.4 on  Debian.
 Everything was running fine. I guess one of our admins did a update on 
 some packages, and now I get the following error.
 
 It appears as though you do not have permission to view information for 
 any of the hosts you requested...
 
 If you believe this is an error, check the HTTP server authentication 
 requirements for accessing this CGI
 and check the authorization options in your CGI configuration file.
 
 I have all the permissions to log on. htaccess is right, cgi.cfg and 
 nagios.cfg are right. Let me know where might be the problem.
 
 Thanks,
 
 Sudheer Muddappa 
  
 
 
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] rrd gaps

2008-01-07 Thread Lars Stavholm
Eric Aiken wrote:
 Hi Gerd   
 
 Hi Gerd
 
 I'm struggling with the undocumented interface-file feature.  I have the 
 same gaps problem.  I've implemented your suggestions, but I'm confused about 
 how the data get's converted into rrd's.
 
 with the pipe's version my command.cfg contained
 define command{
   command_nameprocess-service-perfdata
   command_line/usr/lib64/nagios/plugins/contrib/fifo_write.pl  
 /var/log/nagios/rw/ngraph.pipe '$HOSTNAME$  $SERVICEDESC$   
 $SERVICEOUTPUT$ $SERVICEPERFDATA$' 3
   }
 This passed the data into the pipe where the collect2.pl was watching and 
 converted the data in rrd's
 
 with the file version, I removed that definition and replaced it with:
 
 define command{
command_name process-service-perfdata-file
command_line mv /usr/local/nagios/var/service-perfdata 
 /usr/local/nagios/var/service-perfdata.$TIMET$
}
 
 Now Nagios sends the data to service-prefdata, which is mv'd to a timestamped 
 file periodically.
 
 How is the data supposed to get converted into rrd's now?  How does the 
 collect2.pl daemon know when to process the files?  As it is now, no rrd 
 files are generated.  collect2.pl is running, nagios is sending the data to 
 /dev/shm/service-perfdata and then they are moved to 
 /dev/shm/service-perfdata.stamp.

The collect2.pl picks up the timestamped files,
processes them and deletes them. Provided that
the NagiosGrapher configuration file, i.e
/etc/nagios/ngraph.ncfg or something similar,
has the correct (file) settings.

As I said earlier, following Gerds instructions
to the letter worked just fine for me.
/L

 my fifo version worked, it just had gaps.
 
 
 thanks for your help
 
 - Eric Aiken (Eric.Aiken)
 
 - Eric Aiken (Eric.Aiken)
 
 ---
 This thread is located in the archive at this URL:
 http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=7829
   
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] rrd gaps

2008-01-07 Thread Lars Stavholm
Eric Aiken wrote:
 Hi Brock  
 
 Ok, upon further review I see that the write_fifo program is still required. 
 despite not using a fifo.  Here's what I have for relavant config info
 
 ngraph.ncfg
 
 buffer  1024
 interface   file
 perffile_path   /dev/shm
 step60
 heartbeat   600
 rrdpath /var/log/nagios/rrd/
 cfg_file=/etc/nagios/ngraph_graphs.cfg
  This file contains all my graph definitions
 
 Q: Do I need a HOOK Statement?  I've tried all of them with no success.
 
 nagios.cfg
 
 process_performance_data=1
 service_perfdata_command=process-service-perfdata

Maybe you should comment this one (above) out.

 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=process-service-perfdata-file
 
 Commands.cfg
define command{
command_nameprocess-service-perfdata
command_line/usr/lib64/nagios/plugins/contrib/fifo_write.pl  
 /var/log/nagios/rw/ngraph.pipe 
 '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
}
 
define command{
command_nameprocess-service-perfdata-file
command_linemv /dev/shm/service-perfdata 
 /dev/shm/service-prefdata.$TIMET$
}
 
 My datafiles are created and time-stamped, but not processed into rrds.
 Also note that graphing worked as a fifo albeit with gaps.
  This really comes down to why collect2.pl is not converting
 the files into rrds.  How can I verify that it's trying to run?

Look at the log file, which should be defined using the log_file
directive together wth the log_level in /etc/nagios/ngraph.cfg,
or wherever you keep the NagiosGrapher configuration file.

I have the following, which gives loads of info in the log:

  log_file /var/lib/nagios/grapher.log
  log_level1023

/L

 ---
 This thread is located in the archive at this URL:
 http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=8007
   
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
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] net-snmp raid check

2008-01-06 Thread Lars Stavholm
Anyone know of a way to use net-snmp to check for Linux sw raid status?
/L


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] rrd gaps

2008-01-04 Thread Lars Stavholm
Gerd Mueller wrote:
 :-) Yes, many thanks to Peter Tuschy, who wrote this patch.
 
 BTW: Today we put a current release on NagiosExchange. Hopefully this
 will be the next stable release. Zooming of graphs is the newest feature
 in this version.

I tried it and it works alright in the sense that the graphs
gets created, but unfortunately the graph icons shows up with
the red border and no graph. Clicking on it does however take
me to a good grahp, as per usual.

Also, the zoom function your talking about, where do I find it?

Cheers
/Lars

 Am Donnerstag, den 03.01.2008, 16:47 -0700 schrieb Brock Kuhse:
 Likewise here.  Those gaps were driving me crazy, and switching the
 interface to file made them go away (and made our clients happier).

 Thank you very much, Gerd.

 - Brock

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lars
 Stavholm
 Sent: Thursday, January 03, 2008 4:42 PM
 To: Gerd Mueller
 Cc: Nagios Users Mailinglist
 Subject: Re: [Nagios-users] rrd gaps

 Yup, thanks Gerd, that did the trick.

 I followed your instructions to the letter
 and ended up with no gaps:)

 Thanks
 /L

 Gerd Mueller wrote:
 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




  
 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=process-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$
 }



 Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen:
 Lars and Gerd,

 I am having a similar problem with rrd gaps.
 It was doing fine until I added 3 more hosts and 8 more services and then
 suddenly I get the rrd gaps, some graphs are even blank.

 My latency are as below (they seem pretty high compared to yours?):

 # nagiostats | grep -i latency
 Active Service Latency:   6.804 / 330.675 / 238.562 sec
 Active Host Latency:  0.000 / 0.000 / 0.000 sec


 nagiostats | grep -i total
 Used/High/Total Command Buffers:  0 / 8 / 4096
 Used/High/Total Check Result Buffers: 85 / 106 / 4096
 Total Services:   106
 Total Service State Change:   0.000 / 0.000 / 0.000 %
 Total Hosts:  36
 Total Host State Change:  0.000 / 0.000 / 0.000 %


 I also use the rpm package from linadd.org.
 nagios-2.9-1.i586.rpm,
 nagios-web-2.9-1.i586.rpm,
 nagios-plugins-1.4.9-1.i586.rpm,
 nagios-plugins-extras-1.4.9-1.i586.rpm
 nagios-graph-1.6.1-rc3.i586.rpm

 If you find any solution for this I would be more than happy :)

 Thanks,
 - Palle

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lars
 Stavholm
 Sent: Wednesday, January 02, 2008 7:06 AM
 To: Mad Unix
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] rrd gaps

 Mad Unix wrote:
 Can you tell me how did you implement graph beside the nagios
 Let's keep this on the list, shall we?

 I used rpm packages from linadd.org.

 Thanks
 You're welcome.
 /L

 On Jan 2, 2008 12:01 PM, Lars Stavholm [EMAIL PROTECTED] wrote:
 Gerd Mueller wrote:
 Hi Lars,

 which interface are you using? And how big is your nagios' latency?
 I don't quite understand the first question there?
 We use the Nagios web interface with the nuvola theme?

 We have only a few hosts and around a hundred service checks,
 i.e. no heavy load here:

 # nagiostats | grep -i latency
 Active Service Latency: 0.000 / 0.335 / 0.135 sec
 Passive Service Latency:0.000 / 0.000 / 0.000 sec
 Active Host Latency:0.000 / 0.284 / 0.152 sec
 Passive Host Latency:   0.000 / 0.000 / 0.000 sec

 # nagiostats | grep -i total
 Used/High/Total Command Buffers:0 / 1 / 4096
 Total Services: 114
 Total Service State Change: 0.000 / 12.110 / 0.106 %
 Total Hosts:19
 Total Host State Change:0.000 / 0.000 / 0.000 %

 /L


 Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm:
 Hi All,

 we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5.

 It all works very well, except for one annoying problem:
 I get gaps

Re: [Nagios-users] rrd gaps Virus checked

2008-01-03 Thread Lars Stavholm
Marcus Fleige wrote:
 Hi there,
 
 here's my 2 cents about the gaps:
 
 From my experience, gaps are normally caused by missing datasets over a
 period of time. RRD expects data within a time window defined in
 the step and heartbeat variables. If data doesn't arrive in this
 window, the value for the defined time frame is set to NaN (Not a
 number), resulting in not being displayed in the generated image.
 
 Missing datasets are often caused by:
 
 - Huge service latencies, e.g. if you got lots of services to be checked
 in a rather short period of time. (Got this with 3k services, which
 should be checked in a period of 2 minutes - 25 Checks/second is quite
 a lot...)
 
 - non-fitting service check intervals. If you check your services in a
 15 minute interval, but your rrd files expect data every 5 minutes, only
 every third time frame will be filled, resulting in gaps.
 
 Maybe this is of some use.

It is, it explains a lot. I'll do some adjustments
and tests and report back to this thread.

Thanks
/L


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] rrd gaps

2008-01-02 Thread Lars Stavholm
Gerd Mueller wrote:
 Hi Lars,
 
 which interface are you using? And how big is your nagios' latency?

I don't quite understand the first question there?
We use the Nagios web interface with the nuvola theme?

We have only a few hosts and around a hundred service checks,
i.e. no heavy load here:

# nagiostats | grep -i latency
Active Service Latency: 0.000 / 0.335 / 0.135 sec
Passive Service Latency:0.000 / 0.000 / 0.000 sec
Active Host Latency:0.000 / 0.284 / 0.152 sec
Passive Host Latency:   0.000 / 0.000 / 0.000 sec

# nagiostats | grep -i total
Used/High/Total Command Buffers:0 / 1 / 4096
Total Services: 114
Total Service State Change: 0.000 / 12.110 / 0.106 %
Total Hosts:19
Total Host State Change:0.000 / 0.000 / 0.000 %

/L

 Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm:
 Hi All,

 we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5.

 It all works very well, except for one annoying problem:
 I get gaps in the graphs, and I don't understand why.

 Any ideas appreciated, sample graph attached.

 R
 /Lars
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___ 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] rrd gaps

2008-01-02 Thread Lars Stavholm
Mad Unix wrote:
 Can you tell me how did you implement graph beside the nagios

Let's keep this on the list, shall we?

I used rpm packages from linadd.org.

 Thanks

You're welcome.
/L

 On Jan 2, 2008 12:01 PM, Lars Stavholm [EMAIL PROTECTED] wrote:
 Gerd Mueller wrote:
 Hi Lars,

 which interface are you using? And how big is your nagios' latency?
 I don't quite understand the first question there?
 We use the Nagios web interface with the nuvola theme?

 We have only a few hosts and around a hundred service checks,
 i.e. no heavy load here:

 # nagiostats | grep -i latency
 Active Service Latency: 0.000 / 0.335 / 0.135 sec
 Passive Service Latency:0.000 / 0.000 / 0.000 sec
 Active Host Latency:0.000 / 0.284 / 0.152 sec
 Passive Host Latency:   0.000 / 0.000 / 0.000 sec

 # nagiostats | grep -i total
 Used/High/Total Command Buffers:0 / 1 / 4096
 Total Services: 114
 Total Service State Change: 0.000 / 12.110 / 0.106 %
 Total Hosts:19
 Total Host State Change:0.000 / 0.000 / 0.000 %

 /L


 Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm:
 Hi All,

 we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5.

 It all works very well, except for one annoying problem:
 I get gaps in the graphs, and I don't understand why.

 Any ideas appreciated, sample graph attached.

 R
 /Lars
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___ 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: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Environmental monitoring

2007-12-20 Thread Lars Stavholm
Mark Lucia wrote:
 Who would be interested in a  $100 network device that would allow temp  
 humidity monitoring? http and maybe SNMP...

+1
/L


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Contacting Ethen

2007-11-15 Thread Lars Stavholm
[EMAIL PROTECTED] wrote:
 I'd like to get ahold of Ethen about consulting Nagios installations. I
 want to start doing installs of the Nagios system for businesses in my
 area, as there is a lot of need for it. How would be the best way to get
 in contact with him to discuss this?

Was it too much trouble for you to check the website?
http://www.nagios.org/contact.
/L


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.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] SCRIPT BASH monitor big files

2007-09-05 Thread Lars Stavholm
riky.none wrote:
 I need one script BASH that looking for all files big more xx
 in ML  there is one god BASH programmer???  :)
 
 syntax check_file_size volume MAX MB  (es. check_file_size /home 400)
 output
 OK no big file
 ERROR there is file1 file2 file3  of MAX
 
 i have create one but is terrible ed not work
 
 why BASH
 because i can not install sw in HPUX e LINUX machine (i use ssh to run 
 remote command)
 bye

Maybe this will help:

--- Begin Included Message ---

check_file_size.sh:

#!/bin/bash
# @(#) $Id$
# @(#) Check file sizes using find(1) and alert if out of bounds.

# preliminaries...
pgm=`basename $0`
ver=`echo '$Revision: 1.0 $' | sed -e 's/[^0-9.]//g'`
dir=/home; wsize=20M; csize=50M
usg=usage: $pgm [-h,--help] [-V,--version] [-g, --debug]
  [{-w,--warning} size] [{-c,--critical} size] [dir]
Scan dir for file sizes using find(1) and issue a...
o warning if size is between -w size and -c size, or a...
o critical if bigger than -c size, or...
o OK if no files bigger than -w size were found.
-h, --help this text, no other action
-V, --version  display verion, no other action
-g, --debugturn on debug mode
-w, --warning size   warning file size, default $wsize
-c, --critical size  critical file size, default $csize
dir  directory to scan, default $dir

# Nagios states...
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3

# error handling...
err()
{
  echo 2 $pgm: $*
  exit $STATE_UNKNOWN
}

# get and validate inpt options...
args=`getopt -o hVgw:c: \
 -l help,version,debug,warning:,critical: \
 -u -n$0 -- $@`
[ $? = 0 ] || err aborted
set -- $args

# parse input options...
while true; do
  case $1 in
-h|--help) echo $usg; exit $STATE_OK;;
 -V|--version) echo $pgm version $ver; exit $STATE_OK;;
   -g|--debug) set -x; shift;;
 -w|--warning) wsize=$2; shift 2;;
-c|--critical) csize=$2; shift 2;;
   --) shift; break;;
*) err internal error;;
  esac
done
# get the last item, if there at all...
[ -n $* ]  dir=$*

# validate directory exists...
[ -d $dir ] || err $dir: not found

# prepare...
xargs=xargs -r ls -lh
awk=awk '{print \$3,\$5,\$9}'
state=$STATE_OK

# look for warnings...
find=find $dir -warn -size +$wsize -a -size -$csize
warn=`$find | $xargs | eval $awk`
[ -n $warn ]  state=$STATE_WARNING  wcount=`$find | wc -l`

# look for critical...
find=find $dir -size +$csize
crit=`$find | $xargs | eval $awk`
[ -n $crit ]  state=$STATE_CRITICAL  ccount=`$find | wc -l`

# display some output...
case $state in
$STATE_OK) echo File size check OK - no files  matched criteria;;
   $STATE_WARNING) echo Warning: $wcount files matched criteria - $warn;;
  $STATE_CRITICAL) echo Critical: $ccount files matched criteria - $crit;;
esac

# exit with proper state...
exit $state

--- End Included Message ---


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.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] status changing to Pending

2007-08-15 Thread Lars Stavholm
trevor obba wrote:
 I am running nagios version 2.5, monitoring 240 hosts and 2500
 services however every time I stop and start nagios or reload nagios 
 configuration.10
 hosts recheck and it service status changes to “PENDING” 
 
 Those hosts are acting like are they have just be added to nagios
 for the first time but they have being added 6 month ago.
 
 How can I fix this so that it does not recheck or the service
 status change to “PENDING” every time nagios is restarted.

Look for the word retention in the nagios.cfg. Or, check out:
http://nagios.sourceforge.net/docs/2_0/configmain.html#retain_state_information
/L


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.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] execute command as root user

2007-07-23 Thread Lars Stavholm
Martin Koeck wrote:
 Hello,
 
 I know this is more OS related and not so much nagios related, but I 
 thought maybe somebody has stumbled across this:
 
 I need, on a critical failure that is trapped by nagios (this works for 
 me), to restart an application which I usually restart as root user on 
 this machine.
 
 To be specific: Tomcat is giving up work now and then on this machine, I 
 can trap it, and need to restart it. Normally I do this by 
 /etc/init.d/tomcat restart -- but I need to be root for this, so nagios 
 cannot do this automatically for me, because it runs as nagios user.
 
 What is the best way to approach this ? Changing the owner of the 
 tomcat-related startup files so that nagios can do it ? Writing a file 
 on-critical-error and restarting tomcat (as a cron-job), whenever that 
 file exists ? Something else ?

sudo and nagios eventhandler should do it. For security reasons,
be as specific as possible in your sudo configuration, e.g.:

[snip]
nagios  ALL=NOPASSWD:/etc/init.d/tomcat restart
[snip]

You'll have to look in nagios doco for eventhandlers,
i've never used them.

Another alternative, that we use here successfully, is
to use monit from http://www.tildeslash.com/monit.
Works like a charm and is a bit easier to setup than nagios
eventhandlers (I think:). In monit you define simple criterias
and subsequent actions, like restart. For example: memory out
of bounds: restart, process missing: start, etc.

Hope this helps
/Lars


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.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] using Nagios to detect rogue DHCP servers?

2007-07-11 Thread Lars Stavholm
Hari Sekhon wrote:
 err, that is not at all nagios or automatic or anything.
 
 I am not personally going to __manually__ check for rogue dhcp servers, 
 don't have the time for that.
 
 I check my dhcp servers anyway, if I get an extra offer, an alarm is raised.
 
 This is automatic, has no extra overhead as I check my dhcp servers 
 anyway as part of my monitoring.
 
 I have never seen a dhcpoffer being missed, but at the very least I run 
 the check every 3 minutes so you're not going to get away with it here 
 for more than that.
 
 
 I think the wrapper to check_dhcp is quick and effective with no overhead.

What wrapper would that be, If one might ask?
/Lars

 The best solution would be to extend the check_dhcp plugin, get into the 
 C and add the functionality.
 Maybe if it's not done in the future I will come back and do it.
 
 Until then, the wrapper does exactly what I need.
 
 -h
 
 Hari Sekhon
 
 
 
 Brian A. Seklecki wrote:
 What about writing a custom plugin that uses this GPL prog to return the
 warning/critical/ok/pending values?
 That sounds very reasonable; there's always the possibility that you 
 won't see, within your run time threshold, offers from a rouge server 
 due to race conditions or other crud (slow networks, etc.).

 Of course, then you have a lot of proactive bogus DHCP Client activity 
 coming from your Nagios system.

 The best solution of course, but not always the most feasible, is a 
 SPAN port in your core:

 Simply:

 $ sudo tcpdump -n -e -vvv 'src port bootps  !ether src 
 0:50:da:28:37:62'

 Replace the MAC with your know DHCP server.  Matches are rouge.  If 
 you see them, get out the jumper cables.

 ~BAS


 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring Postfix

2007-07-09 Thread Lars Stavholm
[EMAIL PROTECTED] wrote:
 Sorry guys but i am new to nagios and people here at work are already
 asking me to start monitiring a Postfix mail queue. Searching the
 docuemntion, FAQ, web, and other sources was no good, so you are my last
 chance of finding a nagios plugin for monitoring Postfix.
 Thanks for any help.

We use check_mailq from the standard nagios-plugins package.
/Lars


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 XML Engine problems

2007-07-05 Thread Lars Stavholm
 magic_rooter wrote:
 Hello everybody!
 I installed NXE and all useful libraries and addons but have problems
 with launching.
 
 The main question is the next. For what version of Nagios NXE written?

It would appear (http://nxe.sf.net) that NXE was published
in July 2003 and hasn't been touched since. I would guess
it was tested with the nagios version of that time. A lot
of things has happened in nagios since 2003.
/L

 I ask this because in nxe.config I see strange file status.log. There
 is no such file in Nagios 2.5. It was in nagios 1.0. So what I must
 write instead of this? No it called status.dat. So I need to write:
 status1=/usr/local/nagios/var/status.dat?
 
 Also I have another problem. When I run this command I see:
 [EMAIL PROTECTED]:/usr/src/distr/NXEperl nxe.pl status status1
 Use of uninitialized value in string eq at nxe.pl line 62.
 Use of uninitialized value in string eq at nxe.pl line 325, CONFIG line 11.
 Use of uninitialized value in string eq at nxe.pl line 325, CONFIG line 11.
 Use of uninitialized value in string eq at nxe.pl line 73, STATUS line 1.
 Use of uninitialized value in string eq at nxe.pl line 88, STATUS line 1.
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE NXE_RESULT PUBLIC -//RSMEXPERTS//DTD Nagios XML Engine
 Output//EN// http://nxe.sourceforge.net/dtd/NXEv1r0.dtd;
 
 NXE_RESULT NAME=Nagios XML Engine Report
  ERROR CODE=900Invalid format in the following entry:
  /ERROR
 /NXE_RESULT
 Error: Inappropriate ioctl for device at nxe.pl line 118, STATUS line 1.
 [EMAIL PROTECTED]:/usr/src/distr/NXE
 
 _
 
 [EMAIL PROTECTED]:/usr/src/distr/NXEperl nxe_client.pl
 http://nagios/cgi-bin/nxe.pl?type=statusparam=status1
 [1] 22815
 [EMAIL PROTECTED]:/usr/src/distr/NXEUse of uninitialized value in string at
 nxe_client.pl line 85.
 Use of uninitialized value in concatenation (.) or string at
 /usr/lib/perl5/site_perl/5.8.0/Frontier/RPC2.pm line 55.
 Fault returned from XML RPC Server, fault code 3: no such method `'
 
 
 [1]+  Exit 255perl nxe_client.pl
 http://nagios/cgi-bin/nxe.pl?type=status
 [EMAIL PROTECTED]:/usr/src/distr/NXE
 ___
 
 When I open this page in Firefox
 http://nagios/cgi-bin/nxe.pl?type=statusparam=status1
 I see the next thing:
 
 −
NXE_RESULT NAME=Nagios XML Engine Report
 ERROR CODE=900Can't open Nagios Status File . Check config file./ERROR
 /NXE_RESULT
 
 _
 I will be very pleased if you help me because I need xml output very much:(
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 vs ganglia

2007-07-04 Thread Lars Stavholm
howard chen wrote:
 Hello,
 
 I am comparing these two monitoring systems.
 
 My findings is: nagios provides more features than ganglia, but I know
 many people use them together.
 
 I don't why, is that some features is missing from nagios?

From reading the doco:
ganglia: more or less zero configuration,
 default checks geared towards clusters/grids.
nagios:  vast configuration options,
 create your own checks in addition to the default set.

Deploying a cluster monitoring solution is far less work with
ganglia. However, adding your own checks seems to require that
you fiddle with the C code yourself.

Or something to that effect.

/Lars


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] FW: NSClient++ on windows machine

2007-06-15 Thread Lars Stavholm
Palle Jensen wrote:
 Hej :=)
 
 Thanks Lars, still struggling in between, to get the ngraphs working for my
 Check_nt services.
 
 I tried what you said and i got the output data, but how to change it in the
 ngraph definition? That seems to be not all that easy.
 
 For example:
 check_nt -H ip.ad.dre.ss -v USEDDISKSPACE -l c -p 12489 -w 90 -c 95 
 
 Will give the output:
 c:\ - total: 3.95 Gb - used: 2.44 Gb (62%) - free 1.51 Gb (38%) | 'c:\ Used
 Space'=2.44Gb;3.55;3.75;0.00;3.95 
 
 If I understand it correct it's the code in graph_perf_regex ([0-9]+)MB
 that needs to match or read the output perf data from check_nt e.g | 'c:\
 Used Space'=2.44Gb;3.55;3.75;0.00;3.95 
   
   define ngraph {
   graph_legend Used Space
   graph_perf_regex ([0-9]+)MB

graph_perf_regex ([0-9]+)Gb would match the above output's first column.

   graph_value MBused
   hide yes
   rrd_color 00a000
   rrd_plottype AREA
   service_name Filesystems
 }
 
 
 Another example is the Check_nt Memory used
 | 'Memory usage'=1367.25Mb;3588.48;4037.04;0.00;4485.60
 
 Compared to output from Check_mem (native plugin)
 | /=2848MB;17278;17268;0;17358 /boot=16MB;18;8;0;98
 /dev/shm=0MB;170;160;0;250
 
 And the Ngraph definition for the native plugin looks like this:
 
 define ngraph {
   graph_legend Memory Used
   graph_perf_regex MemUsed=([0-9]+)%

There's a '%' character in the expected regular expression,
but there's no '%' character in the above output, hence it
doesn't match.

   graph_value MemUsed
   hide yes
   rrd_color 00a000
   rrd_plottype AREA
   service_name Memuse
 }
 
 What do you think, or are there anyone else that knows how to changes this
 so that I can get the perf data to be picked up by ngraph?

I think you might need to read up on regular expression matching:)
/Lars

 -Original Message-
 From: Lars Stavholm [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 06, 2007 4:23 PM
 To: Palle Jensen
 Cc: 'Nagios Users'
 Subject: Re: [Nagios-users] FW: NSClient++ on windows machine
 
 Palle Jensen wrote:
 Hi to all,
 
 Hej:)
 
 I have been trying to find out how you get the graphs for monitored
 service on Windows/Nsclient++.

 It is working fine for the locahost (FC9) Memory, load, procs and users.
 I added a windows machine with NSClient++, I added the service Ping to
 both localhost and the windows machine, and the graphs are showing up
 fine. But when I add Memory, procs, load service to the windows machine
 no graphs shows. How come it works with ping for both localhost and
 Windows machine? Even though I made sure that the service_description is
 the same as for the localhost

 I am about to go insain, please help? I know this belongs under
 NagiosGrapher mailinglist, and I posted there as well, but I got 0
 answers there, hoping that someone can help me here.
 
 I'll just assume that you remembered to restart/reload
 both NagiosGrapher and nagios when adding stuff in config.
 
 There might be a difference in the performance data handed
 back by NSClient as compared to the native check plugins.
 
 The check_load, for instance, can be run manually. Now run the
 check_load for the Windows boxes (whatever it's called) and
 compare the output, especially the output to the righ of the '|'
 character, i.e. the performance data delimiter. If they are not
 the same, they wont fit the same graph definition.
 
 Min you, I have no experience with NSClient at all, but still.
 
 Cheers
 /Lars
 
 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] FW: NSClient++ on windows machine

2007-06-06 Thread Lars Stavholm
Palle Jensen wrote:
 Hi to all,

Hej:)

 I have been trying to find out how you get the graphs for monitored
 service on Windows/Nsclient++.
 
 It is working fine for the locahost (FC9) Memory, load, procs and users.
 I added a windows machine with NSClient++, I added the service Ping to
 both localhost and the windows machine, and the graphs are showing up
 fine. But when I add Memory, procs, load service to the windows machine
 no graphs shows. How come it works with ping for both localhost and
 Windows machine? Even though I made sure that the service_description is
 the same as for the localhost
 
 I am about to go insain, please help? I know this belongs under
 NagiosGrapher mailinglist, and I posted there as well, but I got 0
 answers there, hoping that someone can help me here.

I'll just assume that you remembered to restart/reload
both NagiosGrapher and nagios when adding stuff in config.

There might be a difference in the performance data handed
back by NSClient as compared to the native check plugins.

The check_load, for instance, can be run manually. Now run the
check_load for the Windows boxes (whatever it's called) and
compare the output, especially the output to the righ of the '|'
character, i.e. the performance data delimiter. If they are not
the same, they wont fit the same graph definition.

Min you, I have no experience with NSClient at all, but still.

Cheers
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] 3d statusmap error

2007-05-16 Thread Lars Stavholm
Palle Jensen wrote:
 Hi,
 
 I have a problem with the 3D status map in Nagios / Firefox
 
 Running on a Fedora Core 6 – Nagios 2.9 /plugin v1.4.7
 
 I've installed the FreeWRL 1.19.2 (rpm) package successfully and the 3D
 status map shows up, I see the green boxes but they don’t link anywhere
 (show details).
 
 Also i get an error messages in the Console windows:
 
 “ /usr/bin/FreeWRL_Message Could not locate URL for texture 0 (last
 choice was /nagios/images/logos/nagiosvrml.png “

I get the same problems on SuSE Linux 10.2 with one exception:
the diagram looks OK as far as I can see, boxes and connections
between them, but the screen becoms so dark that it's difficult
to see, and I cannot change background color. When I click on
one of the background colors in the Navigate menu, nothing happens.

I used wget to download the wrl file
(e.g. wget http://localhost/nagios/cgi-bin/statuswrl.cgi) and
saved the file as status.wrl and then opened it up in the freewrl
client. Again, all the boxes are there with links between them,
but error messages about url's not found. So I removed all the
url definitions from the status.wrl file and it seems to work OK.
Again, I couldn't change the background color using freewrl, so
I edited the status.wrl and changed the color definition in there.
I also picked a few of the URLs from the status.wrl file and
verified that they are correct.

Other than that, I have no idea as to how to solve this.

Any one else?

R
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] No output returned from plug-in

2007-05-15 Thread Lars Stavholm
I ment the failing check plugin,
i.e show us the output from sudo -u nagios check_
/L

Williams, John wrote:
 When running the check I use the following command:
 
 
 sudo -u nagios -H nagios -v /etc/nagios/nagios.cfg
 
 and get the resulting output:
 
 newton2:/usr/sbin# sudo -u nagios -H nagios -v /etc/nagios/nagios.cfg
 
 Nagios 1.4
 Copyright (c) 1999-2006 Ethan Galstad ([EMAIL PROTECTED])
 Last Modified: 05-03-2006
 License: GPL
 
 Reading configuration data...
 
 Running pre-flight check on configuration data...
 
 Checking services...
 Checked 484 services.
 Checking hosts...
 Checked 151 hosts.
 Checking host groups...
 Checked 25 host groups.
 Checking contacts...
 Checked 28 contacts.
 Checking contact groups...
 Checked 26 contact groups.
 Checking service escalations...
 Checked 0 service escalations.
 Checking host group escalations...
 Checked 0 host group escalations.
 Checking service dependencies...
 Checked 26 service dependencies.
 Checking host escalations...
 Checked 0 host escalations.
 Checking host dependencies...
 Checked 95 host dependencies.
 Checking commands...
 Checked 145 commands.
 Checking time periods...
 Checked 19 time periods.
 Checking for circular paths between hosts...
 Checking for circular service execution dependencies...
 Checking global event handlers...
 Checking obsessive compulsive service processor command...
 Checking misc settings...
 
 Total Warnings: 0
 Total Errors:   0
 
 Things look okay - No serious problems were detected during the
 pre-flight check
 
 
 I checked through the archives and the suggestions that I found didn't
 fix the problem. I agree, it's probably a common problem that I am
 having.
 
 I went back through my install of nagios and checked permissions
 (against the install that is working) of the following:
 
 /etc/nagios (and sub directories)
 /etc/nagios-plugins
 /usr/share/nagios (and sub directories)
 /usr/lib/nagios (and sub directories)
 /usr/sbin/nagios
 /usr/sbin/nrpe
 
 I also checked file sizes of the contents in the /etc/nagios directory
 against the working server and they matched. I then went though, line by
 line, the config files and they matched.
 
 I added the host names of the client to my /etc/host file (it was
 already in dns) and that didn't help. I did the same thing on the client
 machine with the server names. Same result.
 
 For each host defined in my services config file, not everything is
 failing to report back. It seems like a only the checks that would be
 defined in the nrpe.cfg file on the target machine. If it's just a
 straight plugin check, then it appears to work. For example:
 
 On our netbackup server, the checks for ping and ssh work fine. The
 custom commands for checking tape drive status doesn't. 
 
 
 I also ensured that the package list that was installed on the working
 server also matched the problem server.
 
 Thanks
 -Original Message-
 From: Lars Stavholm [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 15, 2007 12:09 AM
 To: Williams, John
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] No output returned from plug-in
 
 Williams, John wrote:
 I am having an issue with a new nagios server where some of the
 plugins
 are showing No output returned from plugin on the nagios webpage.
 The
 check that is running is a command that is defined on the remote host
 in
 nrpe.cfg.
 
 This usually indicates permission problems.
 
 I looked around the archives and didn't find anything that would fix
 the
 problem that I am having.
 
 It's a common enough problem so you should have found something.
 
 I am running Debian Linux, Apache2, and Nagios 1.4.

 Each remote machine is running nrpe and as the user nagios I can
 manually run the check_nrpe -H hostname -c command and it works fine.
 It's when I am running the command through the webpage that it doesn't
 work.
 
 When you run the check manually, do you run it as user nagios?
 /Lars
 
 The new nagios server is replacing a nagios 1.3 server, which ran fine
 (
 the hardware is out of warranty which is why we are replacing it ).

 Each remote host has the IP address of the new nagios server defined
 in
 nrpe.cfg and nrpe has been restarted on the remote hosts.

 Doing a tail -f /var/log/nagios/nagios.log will show the command being
 executed, but no reply data.

 Nagios was installed using the Debian apt-get, so it was a
 pre-packaged bundle from Debian.

 All plugins have been installed.

 On the backup nagios 1.4 server (I am using linux clustering) all
 checks
 work fine. I can't find anything different between file ownership,
 permissions, etc... with the 1.4 server that is working and the 1.4
 server
 that isn't.

 All checks are being done on the same subnet, so routing isn't an
 issue.
 Any help you can give would be greatly appreciated. If you need more
 info on my config I would be happy to post it.

 Thanks

Re: [Nagios-users] No output returned from plug-in

2007-05-15 Thread Lars Stavholm
Williams, John wrote:
 The plugin doesn't fail when run manually:
 
 newton2:/usr/lib/nagios/plugins# sudo -u nagios ./check_nrpe -H DWDEV -c
 disks_DWDEV
 All filesystems at less than 95% capacity.
 
 It only fails to show output on the webpage.

I see, now that's tricky. I'm sorry, but I have no more ideas.
Maybe something's available in the environment when run interactively,
whereas when nagios runs the check in the background there's
something missing. Compare env's for the two cases maybe?

Sorry I couldn't be of more help.
/Lars

 -Original Message-
 From: Lars Stavholm [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 15, 2007 9:52 AM
 To: Williams, John
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] No output returned from plug-in
 
 I ment the failing check plugin,
 i.e show us the output from sudo -u nagios check_
 /L
 
 Williams, John wrote:
 When running the check I use the following command:


 sudo -u nagios -H nagios -v /etc/nagios/nagios.cfg

 and get the resulting output:

 newton2:/usr/sbin# sudo -u nagios -H nagios -v /etc/nagios/nagios.cfg

 Nagios 1.4
 Copyright (c) 1999-2006 Ethan Galstad ([EMAIL PROTECTED])
 Last Modified: 05-03-2006
 License: GPL

 Reading configuration data...

 Running pre-flight check on configuration data...

 Checking services...
 Checked 484 services.
 Checking hosts...
 Checked 151 hosts.
 Checking host groups...
 Checked 25 host groups.
 Checking contacts...
 Checked 28 contacts.
 Checking contact groups...
 Checked 26 contact groups.
 Checking service escalations...
 Checked 0 service escalations.
 Checking host group escalations...
 Checked 0 host group escalations.
 Checking service dependencies...
 Checked 26 service dependencies.
 Checking host escalations...
 Checked 0 host escalations.
 Checking host dependencies...
 Checked 95 host dependencies.
 Checking commands...
 Checked 145 commands.
 Checking time periods...
 Checked 19 time periods.
 Checking for circular paths between hosts...
 Checking for circular service execution dependencies...
 Checking global event handlers...
 Checking obsessive compulsive service processor command...
 Checking misc settings...

 Total Warnings: 0
 Total Errors:   0

 Things look okay - No serious problems were detected during the
 pre-flight check


 I checked through the archives and the suggestions that I found didn't
 fix the problem. I agree, it's probably a common problem that I am
 having.

 I went back through my install of nagios and checked permissions
 (against the install that is working) of the following:

 /etc/nagios (and sub directories)
 /etc/nagios-plugins
 /usr/share/nagios (and sub directories)
 /usr/lib/nagios (and sub directories)
 /usr/sbin/nagios
 /usr/sbin/nrpe

 I also checked file sizes of the contents in the /etc/nagios directory
 against the working server and they matched. I then went though, line
 by
 line, the config files and they matched.

 I added the host names of the client to my /etc/host file (it was
 already in dns) and that didn't help. I did the same thing on the
 client
 machine with the server names. Same result.

 For each host defined in my services config file, not everything is
 failing to report back. It seems like a only the checks that would be
 defined in the nrpe.cfg file on the target machine. If it's just a
 straight plugin check, then it appears to work. For example:

 On our netbackup server, the checks for ping and ssh work fine. The
 custom commands for checking tape drive status doesn't. 


 I also ensured that the package list that was installed on the working
 server also matched the problem server.

 Thanks
 -Original Message-
 From: Lars Stavholm [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 15, 2007 12:09 AM
 To: Williams, John
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] No output returned from plug-in

 Williams, John wrote:
 I am having an issue with a new nagios server where some of the
 plugins
 are showing No output returned from plugin on the nagios webpage.
 The
 check that is running is a command that is defined on the remote host
 in
 nrpe.cfg.
 This usually indicates permission problems.

 I looked around the archives and didn't find anything that would fix
 the
 problem that I am having.
 It's a common enough problem so you should have found something.

 I am running Debian Linux, Apache2, and Nagios 1.4.

 Each remote machine is running nrpe and as the user nagios I can
 manually run the check_nrpe -H hostname -c command and it works fine.
 It's when I am running the command through the webpage that it
 doesn't
 work.

 When you run the check manually, do you run it as user nagios?
 /Lars

 The new nagios server is replacing a nagios 1.3 server, which ran
 fine
 (
 the hardware is out of warranty which is why we are replacing it ).

 Each remote host has the IP address of the new

Re: [Nagios-users] No output returned from plug-in

2007-05-14 Thread Lars Stavholm
Williams, John wrote:
 I am having an issue with a new nagios server where some of the plugins
 are showing “No output returned from plugin” on the nagios webpage. The
 check that is running is a command that is defined on the remote host in
 nrpe.cfg.

This usually indicates permission problems.

 I looked around the archives and didn’t find anything that would fix the
 problem that I am having.

It's a common enough problem so you should have found something.

 I am running Debian Linux, Apache2, and Nagios 1.4.
 
 Each remote machine is running nrpe and as the user “nagios” I can
 manually run the check_nrpe –H hostname –c command and it works fine.
 It’s when I am running the command through the webpage that it doesn’t work.

When you run the check manually, do you run it as user nagios?
/Lars

 The new nagios server is replacing a nagios 1.3 server, which ran fine (
 the hardware is out of warranty which is why we are replacing it ).
 
 Each remote host has the IP address of the new nagios server defined in
 nrpe.cfg and nrpe has been restarted on the remote hosts.
 
 Doing a tail –f /var/log/nagios/nagios.log will show the command being
 executed, but no reply data.
 
 Nagios was installed using the Debian “apt-get”, so it was a
 pre-packaged bundle from Debian.
 
 All plugins have been installed.
 
 On the backup nagios 1.4 server (I am using linux clustering) all checks
 work fine. I can’t find anything different between file ownership,
 permissions, etc… with the 1.4 server that is working and the 1.4 server
 that isn’t.
 
 All checks are being done on the same subnet, so routing isn’t an issue.
 
 Any help you can give would be greatly appreciated. If you need more
 info on my config I would be happy to post it.
 
 Thanks in advance
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] New release of plugin check_logfiles

2007-05-14 Thread Lars Stavholm
Gerhard Lausser wrote:
 Hi list,
 
 maybe some of you already use check_logfiles to scan their logfiles for
 certain patterns and error messages respectively. I completely rewrote the
 plugin and corrected lots of bugs.
 You may find it together with documentation and examples at
 http://www.consol.com/opensource/nagios/check-logfiles or in german at
 http://www.consol.de/opensource/nagios/check-logfiles

This looks great and I'm about to try it out.

Question: by looking at the documentation and examples I get the
impression that there has to be one config file for each service
check. Is that correct? I was aiming at having one configuration
file for all checks. Is there a way to do that, i.e. can I select
which part of the configuration to use for a check_logfiles run?

Any advice appreciated
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] HP Printer

2007-04-27 Thread Lars Stavholm
Valdinger, Stephen (DOV, MSX) wrote:
 I've got a few HP printers I want to monitor. I'm particularly
 interested in knowing when they are out of paper, and when their toner
 is running low. I've done some research and can't seem to find any good
 place with the OID's that I need. Can anyone point me in the right
 direction? Thanks.

check_hpjd from nagios-plugins might do the job for you.
/Lars Stavholm

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_hpjd timeout issues

2007-04-26 Thread Lars Stavholm
Valdinger, Stephen (DOV, MSX) wrote:
 Nagios 3.0a2
 
 Plugins 1.4.8
 
 We just set up monitoring on our HP printers, just one to start and
 test, and the service is timing out. The printer responds to a normal
 ping, but not the Nagios ping. Community name and hostname are set
 correctly. Will setting the snmp version work on the command with the -v
 swich in command_line of the command definition file?

Different HP printers use different versions of snmp.
snmp uses version 3 by default. Try snmpwalk against
the printer and figure out the snmp version it uses,
then update your command definition accordingly.

Good Luck
/Lars Stavholm

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] 3D status map problem

2007-04-26 Thread Lars Stavholm
Hi All,

I have a problem with the 3D status map display in Firefox
on SuSE Linux 10.2 that I wonder if anyone can help with.

I've built and installed the FreeWRL package successfully,
and the 3D status map does show up (almost) properly.

However, there's a lot of error messages showing up in the
Console Display saying:

/usr/bin/FreeWRL_Message Could not locate URL for texture
(last choice was /nagios/images/logos/imagepak-andrade/this-and-that.png

When picking up the aforementioned address in the browser,
I can see the image, so there's no access problem.

Any ideas?

Thankful for any ideas in this area
/Lars Stavholm

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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, Zabbix, OpenNMS?

2007-04-23 Thread Lars Stavholm
Carsten Philipp wrote:
 Hello,
 
 i work at a german research institute.
 We are searching for a good monitoring tool, which can control many PCs
 with Debian Linux and some with Windows.
 We already have a Nagios with many selfmade scripts here, but my boss
 also wants statistics with nice graphs like rrdtool.  ;-) 
 The nagiosgrapher isn`t running yet, because of some problems with cpan
 and perl.

We use NagiosGrapher, it's brilliant.
/L

 Does anybody have some experiences with Zabbix, OpenNMS or Cacti? I read
 something about nagios scripts support in the latest opennms version?
 
 We also need special scripts for swapping, cpu, printers (SNMP),
 bacula (backup), SMART, ...
 So what can you recommend?
 
 
 Regards,
 Carsten Philipp
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Question

2007-04-18 Thread Lars Stavholm
Fabio Silva wrote:
 Hi all, is there any way to nagios get information about the disk if it
 will
 fail ... Like insight manager from HP does... The server send a trap to the
 insightmanager and the insightmanager know that the information is about a
 problem in a disk...
 
 Anybody has any solution or idea on how make it?

I don't know what insight manager from HP does,
it would have helped if you told us.

I take it that the overall problem you want to
solve is monitoring disk(s).

Have you tried check_disk for space problems
and check_sensors for S.M.A.R.T. disks.
check_linux_raid for Linux software RAID.

On nagiosexchange you'll find some Solaris specific
checks for disk health including mirrored devices.
I do believe I've seen some HP specific ones as well.

If you state your problem more clearly,
it's easier to help you out.

Cheers
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] graphdeps.pl

2007-04-09 Thread Lars Stavholm
Anyone got the graphdeps.pl from nagiosexchange.org working?
If so, how?
/L

-
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] NSCA for Windows???

2007-04-06 Thread Lars Stavholm
Richard Luys-Nagios User wrote:
 Hi folks,
 
 Quick question: We like to submit passive checks from a Windows server,  
 but the NSCA package does not provide a Windows 'send_nsca'. Does  
 something like that exist or should we proceed in another way?

Look for NC_net or similar at http://nagiosexchange.org.
/Lars

-
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] NagiosGrapher problems

2007-04-06 Thread Lars Stavholm
Hi All,

I downloaded the latest NagiosGrapher-1.6.1-rc3a, and failed miserably
to get it working. In the process I lost my NagiosGrapher-1.6.1-rc3,
which worked perfectly. The nagiosexchange website doesn't seem to have
the older versions available.

So, does anyone have NagiosGrapher-1.6.1-rc3 available?

Cheers
/Lars

-
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] active response

2007-04-04 Thread Lars Stavholm
Rob Blake wrote:
 On 4/4/07, Jesús Arnáiz [EMAIL PROTECTED] wrote:

 Hi there.

 I use the doc. about event handlers and I define this one:

 # SERVICE CLAMD
 define service {
  use generic-service
  host_name   MYHOST
  service_description CLAMD
  check_command   check_clamd
  max_check_attempts 2
  event_handler   event_clamd
 }

 # COMMAND
 define command {
  command_nameevent_clamd
  command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c
 event_clamd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
 }

 And, on the remote machine I configure nrpe.cfg like this:

 command[event_clamd]=/data/general/nagios/libexec/event_clamd $ARG1$
 $ARG2$ $ARG3$

 Also, I put that script (event_clamd), with 755 permission. This script
 write to a file in /tmp in order to see if it run or not. I see it don't
 takes the args (SERVICESTATETYPE SERVICESTATE...), so I try to run the
 script by hand like this:

 libexec/check_nrpe -H MYHOST -c event_clamd OK HARD 1

 And I see it run but it doesn't get that arguments (OK, HARD, 1). I try
 also:

 libexec/check_nrpe -H MYHOST -c event_clamd -a OK HARD 1
 CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs
 for error messages.

 Any help?
 
 
 
 By default NRPE will ignore any passed command arguments. Have you made
 sure
 that you have dont_blame_nrpe set to 1 so that command arguments are
 allowed?

In addition, nrpe need to be built with --enable-command-args.
It's all in the new doc's:
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
/Lars

-
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] Which tool is best for me: Nagios, OpenNMS, or something else?

2007-04-01 Thread Lars Stavholm
Mike Hamrick wrote:
 I can't speak for OpenNMS, but I think for Nagios the answer for a lot
 of your questions is going to be:
 
 There isn't a way of doing this with the standard nagios plugin
 package, but someone has probably written a plugin that does this,
 check the Nagios Exchange site.
 
 % Confirm each machine is up/pingable/reachable [obviously!]
 
 Obviously.
 
 % nmap each machine to make sure correct ports (varies by machine) and
 no others are open
 
 This isn't a standard nagios plugin, however somebody has a plugin that
 does this, a quick google search found:
 
 http://ubermonkey.wordpress.com/2006/09/28/nagios-nmap-plugin/
 
 % Not all tests all the time: some tests should run less frequently
 (reduce the load);
 
 You can define the check_interval on a service by service basis.
 
 % For machines running httpd, download several pages, diff to last
 copies of these pages, report big differences...
 
 I'm guessing you'll have to code this plugin yourself in nagios.
 
 % For machines running sendmail, send a test email to one of the other
 machines running sendmail, which then confirms receipt; alert if not
 received. Also do other mail routing/delivery tests.
 
 This is becomming a frequently asked question on this list.  Various
 people have written plugins to do this, but it's been my experience
 that most people who need this end up writing their own.
 
 % For machines running popd/imapd, simulate login to confirm
 authentication is working (popd/imapd auth isn't always local for us)
 
 See default answer.  A quick google search found this page, which
 confirms authentication on pop/imap.
 
 http://www.jhweiss.de/software/nagios.html
 
 % Monitor files in /etc (eg, passwd, shadow, crontab) for changes.
 
 You could do this with tripwire and then write a plugin that reads
 the snmp trap, or trap logfile.

Or, you could use check_rootkit plugin from
http://nagiosexchange.org and rkhunter from
http://www.rootkit.nl (comes preinstalled on
SuSE Linux 10.x).
/Lars

 % Ideally, the something bad has happened reporting can be
 configured-- it may be OK for mailq -v to be large for 10-15
 minutes, but not for 30 minutes (for example).
 
 You can do this with nagios.  You can check every five minutes and
 not go to a hard failure state until the check has failed six times.
 
 Mike


-
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] service timeout

2007-03-28 Thread Lars Stavholm
Marc Powell wrote:
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lars Stavholm
 Sent: Tuesday, March 27, 2007 4:44 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] service timeout

 
 
 Q: Is there any way one could define time out on one service
rather than all services?
 
 Standard plugins mostly support a -t switch to specify the timeout for
 the plugin. The nagios.cfg service check timeout is a catch-all for
 those that don't terminate themselves when they should. Ideally, each
 command definition would have a specific timeout for each plugin defined
 with -t and the nagios.cfg timeout would be the max possible value of
 your timeouts. In that scenario individual plugins would have unique
 timeout values and your max would catch any runaways. You could go
 further with that and actually pass the timeout value as a $ARGx$ macro
 to the command from your service definition allowing you very specific
 granularity in your timeout control.
 
 Since the duration of the run-time for your check is so long, I agree
 that it probably makes more sense to either run it out of cron and have
 it submit a passive check result or have it update a file that you then
 parse as an active check in nagios.

Thanks for that. The plugin in question (check_rootkit) is a
simple shell without any timeout option. I'm going for the
passive check solution.

Thank you
/Lars


-
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] SNMP MIB Dell 2748

2007-03-28 Thread Lars Stavholm
Has anyone made a check plugin for the Dell 2748 switch?
Anyone know the SNMP MIB values to monitor,
or know where I can find information about it?

Any thoughts appreciated
/Lars

-
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] SNMP MIB Dell 2748

2007-03-28 Thread Lars Stavholm
Hugo van der Kooij wrote:
 On Wed, 28 Mar 2007, Lars Stavholm wrote:
 
 Has anyone made a check plugin for the Dell 2748 switch?
 Anyone know the SNMP MIB values to monitor,
 or know where I can find information about it?
 
 Have you tried snmpwalk on the unit? My guess is that a lot of the stuff 
 is generic.

OK, thanks, I'll do that and then try check_iftraffic,
which seems to be a generic SNMP check plugin.
/L

-
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] service timeout

2007-03-27 Thread Lars Stavholm
I get (Service Check Timed Out) for one of my service checks
(check_rootkit [rkhunter]), which could take a few minutes at
times, so I've scheduled it to run every 20 minutes. Now, when
getting the timeout, I went looking in the doco for some time
out option and I couldn't find one. Well, I found the global
configuration option service_check_timeout, but that doesn't
really cut it for me. The check_rootkit plugin could take several
minutes, and I wouldn't want to adjust the timeout for all
services just because of the check_rootkit.

Q: Is there any way one could define time out on one service
   rather than all services?

Any thoughts appreciated
/Lars

-
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] Naigos-Plugins 1.4.6 check_by_ssh

2007-03-16 Thread Lars Stavholm
Danny Russell wrote:
 Everyone,
 
 I need to have check_by_ssh on my system. The current
 version of plugins I have installed does not have it
 (nagios-plugins-1.4.5-1.el4.rf). What version has that plugin in it?

It's definitely in nagios-plugins-1.4.6 (that's what I'm using:)
/L

-
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] FPing command plugin says - Status UNKOWN

2007-03-15 Thread Lars Stavholm
Nilesh Shastrakar wrote:
 Hello All,
 
 I have checked the check_fping plugin from shell it works fine 
 but when I add in command.cfg and localhost.cfg file the status shows me on 
 webinterface is UNKNOWN
 
 [EMAIL PROTECTED] libexec]# ./check_fping -H 192.168.0.32 -v
 /usr/sbin/fping -b 56 -c 1 192.168.0.32
 192.168.0.32 : [0], 84 bytes, 0.42 ms (0.42 avg, 0% loss)
 
 192.168.0.32 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.42/0.42/0.42
 FPING OK - 192.168.0.32 (loss=0%, rta=0.42 ms)|loss=0%;;;0;100 
 rta=0.000420s;;;0.00
 
 but in Nagios Weinterface it shows 
 
   Current Status:   UNKNOWN  
(for 0d 0h 40m 42s) 
   Status Information: /usr/sbin/fping -b 56 -c 1 192.168.0.32
   FPING UNKNOWN - 192.168.0.32

It seems check_fping needs to be owned and executed by root,
i.e. try:

chown root check_fping
chmod u+s check_fping

/L

 The Configurations in Command.cfg
 
 define command{
 command_namecheck_fping
 command_line$USER1$/check_fping -H 192.168.0.32 -v
 }
 
 The Configuration localhost.cfg
 
 define service{
 use local-service ; Name of 
 service template to use
 host_name   localhost
 service_description PING to 192.168.0.32
 check_command   check_fping
 }
 
 Could someone help to solve the problem
 
 Thanks in advance
 Nilesh.
 
 
 
 
 
 -
 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] [Nagiosplug-help] (no subject)

2007-03-15 Thread Lars Stavholm
Please keep on list!

Others might benefit from your problem(s) and the
subsequent solution(s).

Namazhwar, Baskar wrote:
 Hi,
 i need one more help.
 if any changes made in cfg file it doesnt show immediatly.
 it takes long time to show the state.
 in which file i have to change to reflect the changes immediately.

Try kill -HUP PID, where PID is the nagios process id.
This makes the nagios process reread the configuration files.
Or, you can simply restart the nagios process.

 then one more thing.
 currently number of users is 5.then new user login that system.it must
 shows 6.but it shows only 5 for long time.
 after long time it shows 6.
 
 in which configuration file to edit and what is that parameter.

That's probably because the normal_check_interval = 5 (minutes).
If you want quicker checks, change normal_check_interval to
a lower value.
/L

-
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] [Nagiosplug-help] (no subject)

2007-03-15 Thread Lars Stavholm
Namazhwar, Baskar wrote:
 Hi,
 I have tried lot of times.
 I am getting every time new problems
 So could you please send the check_disk and check_users file for solaris
 10.

As I said before, let's try to keep this on the list, shall we?

I don't have any check_disk or check_users or any other check_*
files for Solaris 10. I use what's in the plugin package.

It might be easier for the list to help you out if you
clearly specify your problem rather than asking for files
that might or might not exists. Show us a build log for
example.
/L

 -Original Message-
 From: Lars Stavholm [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 14, 2007 6:11 PM
 To: Namazhwar, Baskar
 Subject: Re: [Nagiosplug-help] (no subject)
 
 Namazhwar, Baskar wrote:
 Hi,
 
 Hi, let's keep this on the list shall we.
 
 Can you send the link to download in source forge.
 
 http://heanet.dl.sf.net/sourceforge/nagios-plugins/nagios-plugins-1.4.6
 .tar.gz
 
 In my server side I used plugin 1.4.5
 Can I use plugin 1.4.6 in client side.
 
 Don't matter, the plugins don't talk to each other.
 
 What are all the steps do I need
 I am having gcc 3.4.3 version
 
 Should be just fine.
 
 Inside /opt directory I don't have sfw directory
 
 That's a pitty then, I thought you had since your original
 build log had -L/usr/sfw/bin/openssl/lib in it.
 
 Anyways, I'm using Solaris 9 and the Solaris CD bundle
 contains a CD titled Solaris Software Companion. Use
 that to install /opt/sfw.
 
 Can you send the step by step installation and what are
 
 Unpack the sources and...
 
 1) I had to replace LDAP_OPT_SUCCESS with LDAP_SUCCESS
in plugins/check_ldap.c.
 
 2) The usual stuff:
./configure
make
make install
 
 Allt the prerequiste need.
 
 Well, the only prerequisites I've used is the aforementioned
 Solaris Software Companion and gcc. As far as I know I have
 an otherwise clean box.
 
 Good Luck
 /Lars
 
 -Original Message-
 From: Lars Stavholm [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 14, 2007 5:10 PM
 To: Namazhwar, Baskar
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagiosplug-help] (no subject)

 I've downloaded nagios-plugins-1.4.6 from sourceforge and
 it builds quite nicely on my solaris box with gcc-3.3.2
 with the Solaris Software Companion (/opt/sfw) installed.
 Why would you want to use an old version from an unofficial
 download site?
 /L

 Namazhwar, Baskar wrote:
 HI,
 I downloaded the nagios plugin 1.3.1 from
 http://non-gnu.uvt.nl/pub/nagios-plugins/solaris/src
 I ran ./configure script it doesn't show any error
 When I run make all it shows
 Making all in lib
 make[1]: Entering directory
 `/export/local/nagios/nagios-plugins-1.3.1/lib'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory
 `/export/local/nagios/nagios-plugins-1.3.1/lib'
 Making all in plugins
 make[1]: Entering directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 make  all-am
 make[2]: Entering directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 gcc  -g -O2  -L. -L/usr/sfw/bin/openssl/lib -o check_disk
 check_disk.o
 utils.o ../lib/libnagiosplug.a popen.o -lsnprintf -lsnprintf
 Undefined   first referenced
  symbol in file
 VA_COPY ./libsnprintf.a(snprintf.o)
 ld: fatal: Symbol referencing errors. No output written to check_disk
 collect2: ld returned 1 exit status
 make[2]: *** [check_disk] Error 1
 make[2]: Leaving directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 make: *** [all-recursive] Error 1

 I tried for  3 days.but still I didn't get any solution.
 Please can anyone help me
 Thanks in advance
 Reply to this mail id
 Regards
 Baskar.N





 
 
 -
 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=DEVDE
 V

 
 ___
 Nagiosplug-help mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
 ::: Please include plugins 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

Re: [Nagios-users] [Nagiosplug-help] (no subject)

2007-03-15 Thread Lars Stavholm
Namazhwar, Baskar wrote:
 Hi,
 sorry for disturbing once again
 where can i get nrpe deamon and plugin for opensuse10.2
 thankyou 

You don't listen too well, do you. KEEP IT ON THE LIST!
Try http://linadd.org/downloads. Or, you could try the
official distribution (i.e. the CDs for SuSE Linux 10.2).
/L

-
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] Struggling with Service Definitions without Hostgroups

2007-03-14 Thread Lars Stavholm
Brian E. Seppanen wrote:
 I'm a long time netsaint/nagios user.  At this time I'm still running 1.x 
 version 1.4.1.  I'm trying to make the migration to nagios-2.8, but I'm 
 struggling with object definitions for services in 2.x.  in 1.x I define 
 hostgroups with member hosts.  In the service definition I tie the 
 hostgroup to the service.  Easy binding of large numbers of hosts to a 
 single service, keeping the config sane.  I have ten distributed nagios 
 hosts with several hundred hosts and thousands of service checks, so I 
 cannot believe that services need to be defined on an individual basis for 
 hosts, so I'm assuming that I'm missing something fundamental to 2.x.
 
 If I have 2500 current services, am I to understand that I 
 need to define 2500 different services?   There has to be a short hand 
 method for this that I'm missing.Can someone point me to a best 
 practice that they've been able to implement in 2.x that will allow large 
 numbers of services to be defined in a minimally managed scenario.
 
 Any suggestions appreciated.  thanks for your time.

Maybe: http://nagios.sourceforge.net/docs/2_0/templatetricks.html.

/L

-
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] [Nagiosplug-help] (no subject)

2007-03-14 Thread Lars Stavholm
I've downloaded nagios-plugins-1.4.6 from sourceforge and
it builds quite nicely on my solaris box with gcc-3.3.2
with the Solaris Software Companion (/opt/sfw) installed.
Why would you want to use an old version from an unofficial
download site?
/L

Namazhwar, Baskar wrote:
 HI,
 I downloaded the nagios plugin 1.3.1 from
 http://non-gnu.uvt.nl/pub/nagios-plugins/solaris/src
 I ran ./configure script it doesn't show any error
 When I run make all it shows
 Making all in lib
 make[1]: Entering directory
 `/export/local/nagios/nagios-plugins-1.3.1/lib'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory
 `/export/local/nagios/nagios-plugins-1.3.1/lib'
 Making all in plugins
 make[1]: Entering directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 make  all-am
 make[2]: Entering directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 gcc  -g -O2  -L. -L/usr/sfw/bin/openssl/lib -o check_disk  check_disk.o
 utils.o ../lib/libnagiosplug.a popen.o -lsnprintf -lsnprintf
 Undefined   first referenced
  symbol in file
 VA_COPY ./libsnprintf.a(snprintf.o)
 ld: fatal: Symbol referencing errors. No output written to check_disk
 collect2: ld returned 1 exit status
 make[2]: *** [check_disk] Error 1
 make[2]: Leaving directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory
 `/export/local/nagios/nagios-plugins-1.3.1/plugins'
 make: *** [all-recursive] Error 1
 
 I tried for  3 days.but still I didn't get any solution.
 Please can anyone help me
 Thanks in advance
 Reply to this mail id
 Regards
 Baskar.N
 
 
 
 
 
 
 -
 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
 
 
 
 
 ___
 Nagiosplug-help mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
 ::: Please include plugins 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] Printable Documentation

2007-03-04 Thread Lars Stavholm
Andy Shellam wrote:
 Personally I use the official PDF:
 
 http://nagios.sourceforge.net/download/contrib/documentation/english/Nagios_2_0_Docs.pdf

Is that one really up to date?
/L

-
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] Having trouble installing nagios-plugin-1.4.6 - fedora 6

2007-02-19 Thread Lars Stavholm
abid dar wrote:
 Fedora Core release 6 (Zod)
 Linux  2.6.18-1.2798.fc6xen #1 
 
 Trying to install nagios-plugin-1.4.6
 
 error message im getting:
 
 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 `/root/nagios-plugins-1.4.6/plugins'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/root/nagios-plugins-1.4.6'
 make: *** [all] Error 2
 
 tried:
 ./configure --prefix=/usr/local/nagios/ --with-mysql=/usr/bin
 
 same error.
 
 suggestions:


Have you got mysql-devel installed?
/L

-
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 and DHCP

2007-02-15 Thread Lars Stavholm
Sean Thomas wrote:
 Hi guys
 
 Here is an example of my define host entries:
 
 define host{
   usegeneric-host   
   host_name  random.random.org
   alias   Random Server
   address  xxx.xxx.xxx.xxx
   parents   random
   check_command check-host-alive
   max_check_attempts   20
   notification_interval   60
   notification_period24x7
   notification_options  d,u,r
}
 
 How do configure the address line to work with a client who is given an 
 address via DHCP? 

We use DNS together with DHCP for our clients (and actually some
of the servers as well). The idea is that the DHCP client reports
its hostname for update of our own DNS server. In the service address
field we use the host name, not the IP address. In DHCP/DNS lingo this
is called Dynamic DNS Update (DDNS).

Hope this helps
/Lars

-
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] check_disks and NagiosGrapher

2007-02-14 Thread Lars Stavholm
Lars Stavholm wrote:
 Hi List!
 Does anyone know of a way to use the standard check_disk
 plugin (without specifying any partition, thus checking
 all filesystems with one service entry) together with
 NagiosGrapher in order to produce individual graphs of
 all avaiilable filesystems without specifying each of
 the filesystems in the *.ncfg configuration file?

Solved.

There's not that much doco around for newbies like myself.

Anyways, solution was to define proper services and service
descriptions, one for each monitored file system, e.g.
Disk Space: /home, Disk Space: /var, etc., and then use
the updated check_disk.ncfg from the NagiosGrapher forum.
That way I will still have to specify a service for each
file system, and that's OK, but I can use the same
check_disks.ncfg for all graphs and for all file systems.


Cheers
/Lars

-
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] NagiosGrapher + check_disk problem

2007-02-14 Thread Lars Stavholm
Hi All,

I wonder if anyone more knowledgeable than myself could help out:

We're using nagios 2.7 (latest) + NagiosGrapher 1.6.1 RC2 (latest)
together with the check_disk plugin from nagios-plugins 1.4.6.

We monitor 26 file systems on one machine, monitoring is fine,
and graphing for each of this is brilliant, except for one:
the culprit is mounted on /var/downloads and the only anomaly
I can think off is the name length,  14 char's. It's the longest
name we have. 2nd longest is /var/archive, 12 char's, which by the
way works just great, both monitoring and graphing (like all the rest
of the file system monitoring and graphing). In fact, all file systems
gets the great looking graphs, except for /var/downloads.

Symptoms:

1. NagiosGrapher usually fills the serviceext file with proper
configuration automatically. So it did for all the services,
except for the /var/downloads.

2. Clicking on the graph icon reveals an error at the beginning:

RRD Error: reading the cookie off /var/lib/nagios/perfdata/localhost failed.

(and yes, I've tried clearing out - deleting - all perf data
 and then start the NagiosGrapher and nagios again).

3. ngraph.log says:

2007-02-14 15:28:19 PIPE: localhost /var/downloads  DISK OK - free
space: /var/downloads 315 MB (30% inode=-):
/var/downloads=708MB;920;971;0;1023
2007-02-14 15:28:19 REGEX: 7 blocks for '/var/downloads' found.
2007-02-14 15:28:19 REGEX: perfdata=/var/downloads=708MB;920;971;0;1023
2007-02-14 15:28:19 REGEX: perfdata=/var/downloads=708MB;920;971;0;1023
2007-02-14 15:28:19 REGEX: perfdata=/var/downloads=708MB;920;971;0;1023
2007-02-14 15:28:19 REGEX: perfdata=/var/downloads=708MB;920;971;0;1023
2007-02-14 15:28:19 REGEX: perfdata=disk ok - free space: /var/downloads
315 mb (30% inode=-):
2007-02-14 15:28:19 VALUES: [localhost][/var/downloads]:No matching
output values found...

So the last line is supposedly telling me the problem.
Only thing is, I don't understand what it means.

Any help appreciated, this one got me baffled.
/Lars

-
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] check_disks and NagiosGrapher

2007-02-13 Thread Lars Stavholm
Hi List!
Does anyone know of a way to use the standard check_disk
plugin (without specifying any partition, thus checking
all filesystems with one service entry) together with
NagiosGrapher in order to produce individual graphs of
all avaiilable filesystems without specifying each of
the filesystems in the *.ncfg configuration file?
/L

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] check_iftraffic and NagiosGrapher

2007-02-13 Thread Lars Stavholm
Hi All,
I tried the check_iftraffic.pl and check_iftraffic.ncfg combo
for NagiosGrapher, but it does not work as advertised on my
SuSE Linux 10.2 platform with latest nagios and NagiosGrapher.
Has anyone got it working?
/L

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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_iftraffic and NagiosGrapher

2007-02-13 Thread Lars Stavholm
Lars Stavholm wrote:
 Hi All,
 I tried the check_iftraffic.pl and check_iftraffic.ncfg combo
 for NagiosGrapher, but it does not work as advertised on my
 SuSE Linux 10.2 platform with latest nagios and NagiosGrapher.
 Has anyone got it working?

Answering myself: yes, I did.
Sorry 'bout this post.
If anyone's in doubt, it all works as advertised at
http://www.nagiosexchange.org/Summary.85.0.html?tx_drwiki_pi1[keyword]=check_iftraffic.

Apologies
/Lars

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] That didn't work what next?

2007-02-08 Thread Lars Stavholm
Sam Fraser wrote:
 Thanks for being so helpful.

No worries, we've all been there.

 Ok, I've uninstalled mysql server and reinstalled mysql-server with 
 mysql-devel.  I tried again to ./configure and then make, it looks a lot 
 better but still get the errors.  Blow is the last section of output from the 
 ./configure, showing you that it has now found where the mysql_config and 
 following that my attempt at make.

OK, that's one good step forward.

 I'm running FC 6.

OK, fine.

 config.status: creating po/Makefile
 --with-apt-get-command: 
   --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d  %s
   --with-lwres: no
--with-ipv6: yes
   --with-mysql: /usr/bin/mysql_config
 --with-openssl: yes
  --with-gnutls: no
   --enable-emulate-getaddrinfo: no
--with-perl:  /usr/bin/perl
  --with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
 [EMAIL PROTECTED] nagios-plugins-1.4.5]# make
 make  all-recursive
 make[1]: Entering directory `/root/nagios-plugins-1.4.5'
 Making all in lib
 make[2]: Entering directory `/root/nagios-plugins-1.4.5/lib'
 make  all-recursive
 make[3]: Entering directory `/root/nagios-plugins-1.4.5/lib'
 Making all in tests
 make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib/tests'
 make[4]: Nothing to be done for `all'.
 make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib/tests'
 make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib'
 make[4]: Nothing to be done for `all-am'.
 make[4]: Leaving directory  `/root/nagios-plugins-1.4.5/lib'
 make[3]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
 make[2]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
 Making all in plugins
 make[2]: Entering directory `/root/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/u
 sr/include -I/usr/include/mysql  -I/usr/include/mysql -g -pipe 
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu
 ffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT che
 ck_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' || e
 cho './'`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
 /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_mysql  
 check_mysql-check_mysql.o netutils.o utils.o ../lib/libnagi
 osplug.a ../lib/libcoreutils.a  -lnsl -lresolv -L/usr/lib64/mysql 
 -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto -l
 ssl -lcrypto 
 gcc -g -O2 -o check_mysql check_mysql-check_mysql.o netutils.o utils.o  
 -L/root/nagios-plugins-1.4.5/plugins ../lib/libnagiosplug.a 
 ../lib/libcoreutils.a -lresolv -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt 
 -lnsl -lm -L/usr/lib64 -lssl -lcrypto
 /usr/bin/ld: cannot find -lmysqlclient
 collect2: ld returned 1 exit status
 make[2]: *** [check_mysql] Error 1
 make[2]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/root/nagios-plugins-1.4.5'
 make: *** [all] Error 2

OK, not too bad then.

It would appear that the build is looking for the MySQL
libraries to link with. On my SuSE Linux 10.2 I have a
file called /usr/lib/libmysqlclient.so.15 that most
certainly would be the one. Further investigation shows
that the file belongs to mysql-shared-5.0.26-12.i586.rpm
(on my distro at least). The rpm distro packagers do it
slightly differently on different distros, but would you
mind having a look and see if you got the mysql-shared rpm
package somewhere in your distro, and if so make sure it's
installed. Failing that, see if you can find any other mysql
related rpm packages that are not yet installed.
/L

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] Trend monitoring

2007-02-08 Thread Lars Stavholm
David Rivera wrote:
 Hello All,
 
 I was wondering?
 
 Is there additional trend monitoring add-ons for servers/services available.
 
 I currenlty am running Nagios v2.5 

Check out http://www.nagiosexchange.org/Charts.42.0.html.
I don't know which one is best though,
I'm trying NagiosGrapher at the moment.
There might be others as well,
like http://www.ederdrom.de/doku.php/nagios/pnp_en.
/Lars

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] best graph solution

2007-02-07 Thread Lars Stavholm
Hi List,

I'm looking for the best graphing addon solution available for nagios.

There's quite a lot of them. I've tried PNP, and it looked fine,
ut lacked NagiosGrapher's configuration capabilities, on the other
hand, I haven't yet got a working NagiosGrapher installation,
still struggling:). I haven't yet tried any of the other solutions.

So, any advice highly appreciated.

I know it might be a subjective view, but still,
I'd like to know what you all use out there.

Cheers
/Lars

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] That didn't work what next?

2007-02-07 Thread Lars Stavholm
Sam Fraser wrote:
 Hello Nagios users,
 
 I've been having trouble installing nagios plugins as part of my first nagios 
 installation.  I was advised by someone on this email group that it was 
 because I didn't have mysql server installed.  I've now installed mysql 
 server but still get some very strange errors when compiling the plugins and 
 i don't know what they mean.  Any other suggestions?

Well, I did actually say more than that:|

You still seem to be missing the mysql source files, especially
[/usr/include/]mysql/errmsg.h and [/usr/include/]mysql/mysql.h.
It's either that or, if your mysql source files are in place,
you have to tell the plugin build were they are by means
of the configure option --with-mysql, in case they are
in a nonstandard place. If you have a look at the configure
option --with-mysql, try ./configure --help, you'll see
that the --with-mysql is looking for the location of the file
mysql_config, which is part of the mysql-devel rpm package,
and therefore part of the source code. So, if you've installed
your mysql source code into /usr/local for example, the proper
configure statement would be ./configure --with-mysql=/usr/local

It would help, and make it easier to help you, if you told us some
details about your environment, such as OS, distro, version, etc.

For example, on a SuSE Linux 10.2 box with the mysql-devel rpm
package installed, the plugins builds nicely.

Also, since it's the continuation of the same problem,
you might want to stay within the original thread.

Good Luck
/L

 check_mysql.c:51:19: error: mysql.h: No such file or directory
 check_mysql.c:52:20: error: 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: expected ΓÇÿ;ΓÇÖ 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: expected ΓÇÿ;ΓÇÖ 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: cast to pointer from integer of different size
 check_mysql.c:112: warning: cast to pointer from integer of different size
 check_mysql.c:112: warning: cast to pointer from integer of different size
 check_mysql.c:112: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer 
 from integer without a cast
 check_mysql.c:112: warning: passing argument 2 of 
 ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast
 check_mysql.c:112: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes 
 pointer from integer without a cast
 check_mysql.c:112: warning: passing argument 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: cast to pointer from integer of different size
 check_mysql.c:127: warning: cast to pointer from integer of different size
 check_mysql.c:127: warning: cast to pointer from integer of different size
 check_mysql.c:127: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer 
 from integer without a cast
 check_mysql.c:127: warning: passing argument 2 of 
 ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast
 check_mysql.c:127: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes 
 pointer from integer without a cast
 check_mysql.c:127: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes 
 pointer from integer without a cast
 check_mysql.c:134: warning: cast to pointer from integer of different size
 check_mysql.c:134: warning: cast to pointer from integer of different size
 check_mysql.c:134: warning: cast to pointer from integer of different size
 check_mysql.c:134: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer 
 from integer without a cast
 

Re: [Nagios-users] AIX installation

2007-02-07 Thread Lars Stavholm
Akash Jhamb wrote:
 Hi
 
 I want to install nagios on AIX version. I understand that it was designed
 for Linux but is compatible with UNIX variants as well. I want to know
 specifically if it will work with AIX version 5.2.0.0

Don't see why not, it's *nix.
Just make sure that you have the requirements fulfilled.
/Lars

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] ascii frontend

2007-02-02 Thread Lars Stavholm
frank wrote:
 On Fri, 2 Feb 2007, Lars Stavholm wrote:
 
 Hi List,

 Does anyone know of an ascii/text/curses frontend to nagios.
 (dialog based maybe?)

 I have a situation were I don't have other than ssh access
 to the box and need to be able to get some sort of overview
 from a textbased frontend to nagios once logged in.

 Failing that, any ideas?
 Is there a published API for the frontend?

 Any thoughts appreciated.

 R
 /Lars
 
 Other people have mentioned console tools so I won't bother.
 
 But did you know that with ssh access you have access to every port on
 the remote machine?

Yes, thank you, the ssh tunneling solution has been considered.
The lines we are using do use ssh, but with no tunneling
capabilities built in. Also, there's too many hops before
we get to the target machine to make that solution feasible.

Thanks
/Lars

 SSH(1)
 
  -L [bind_address:]port:host:hostport
  Specifies that the given port on the local (client) host is to be
  forwarded to the given host and port on the remote side.  This
  works by allocating a socket to listen to port on the local side,
  optionally bound to the specified bind_address.  Whenever a con-
  nection is made to this port, the connection is forwarded over
  the secure channel, and a connection is made to host port
  hostport from the remote machine.
 
 ssh -L 8080:localhost:80 your-nagios-box
 
 http://localhost:8080/
 
 So here you're hitting port 8080 on your desktop machine and the packets
 are getting sent over your SSH connection to the HTTP port on the nagios
 server.
 
 If the HTTP server on the nagios box isn't bound to localhost you'll
 have to specify (in the ssh command) the hostname or IP that it is bound
 to.
 ('netstat -tnl | grep :80' can help you find out)
 
 Windows ssh clients such as PuTTY can also do port forwarding.
 
 -f
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] ascii frontend

2007-02-02 Thread Lars Stavholm
Thanks Steve, looks brilliant.

It still amazes me that if you're on the lookout for some functionality
that your missing, there's more than likely someone out there that has
solved the problem.

It looks brilliant from the screen shots, and it's exactly what I need.

However, I get build problems on SuSE Linux 10.2:

readv1.c: In function ‘read_v1_status’:
readv1.c:98: error: invalid lvalue in assignment
readv1.c:124: error: invalid lvalue in assignment
readv1.c:131: error: invalid lvalue in assignment
readv1.c:202: error: invalid lvalue in assignment
readv1.c:209: error: invalid lvalue in assignment
readv2.c: In function ‘read_v2_status’:
readv2.c:154: error: invalid lvalue in assignment
readv2.c:250: error: invalid lvalue in assignment
make: *** [cnagios] Error 1

On Solaris 9 (using gcc 3.3.2) It builds nicely
once I replaced getopt.h with unistd.h in cnagios.c.

Cheers
/Lars

[EMAIL PROTECTED] wrote:
 Anyone out there remember Rover?!  Merit et al used it to manage
 the Internet/NSFNet back when some of you were in diapers.  Smart
 sysadmins latched on to it in the 80s/early 90s.
 
   Does anyone know of an ascii/text/curses frontend to nagios.
   (dialog based maybe?)
 
 Try Cnagios?  It's a clone of the old Rover console for Nagios 
 with perl regexp filtering support.
 
 Screenshot...
 
  http://noc.hep.wisc.edu/cnagios.html
 
 Readme... 
 
  http://noc.hep.wisc.edu/cnagios.txt
 
 Download...
 
  ftp://noc.hep.wisc.edu/pub/src/cnagios
 
 steve 
 - - - 
 systems  network manager
 high energy physics
 university of wisconsin
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] ascii frontend

2007-02-01 Thread Lars Stavholm
Scott Lambert wrote:
 On Fri, Feb 02, 2007 at 06:10:53AM +0100, Lars Stavholm wrote:
 Hi List,

 Does anyone know of an ascii/text/curses frontend to nagios.
 (dialog based maybe?)

 I have a situation were I don't have other than ssh access
 to the box and need to be able to get some sort of overview
 from a textbased frontend to nagios once logged in.
 
 Are you talking about configuring Nagios? 

Nop. I'm a vi fan:)

 Or, viewing the web interface?

Yes, or to get some simplified overview,
not necessarily the web interface.

 The web interface works in w3m, lynx, ...

Yes, I know, I tried lynx, and although it is readable,
it's not the simplified overview that I'm looking for.
We aim to put this in the hands of end users that
might not be fluent in interpreting the lynx output.

 Or are you thinking along the lines of nagiostat?

Don't know what that is, I'll have a look.

Cheers
/Lars

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] ascii frontend

2007-02-01 Thread Lars Stavholm
Lars Stavholm wrote:
 Scott Lambert wrote:
 On Fri, Feb 02, 2007 at 06:10:53AM +0100, Lars Stavholm wrote:
 Hi List,

 Does anyone know of an ascii/text/curses frontend to nagios.
 (dialog based maybe?)

 I have a situation were I don't have other than ssh access
 to the box and need to be able to get some sort of overview
 from a textbased frontend to nagios once logged in.
 Are you talking about configuring Nagios? 
 
 Nop. I'm a vi fan:)
 
 Or, viewing the web interface?
 
 Yes, or to get some simplified overview,
 not necessarily the web interface.
 
 The web interface works in w3m, lynx, ...
 
 Yes, I know, I tried lynx, and although it is readable,
 it's not the simplified overview that I'm looking for.
 We aim to put this in the hands of end users that
 might not be fluent in interpreting the lynx output.
 
 Or are you thinking along the lines of nagiostat?
 
 Don't know what that is, I'll have a look.

Nop, nagiostat is a graphical trend tool.
/L

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] ascii frontend

2007-02-01 Thread Lars Stavholm
Santhosh Kumar A (RRT). wrote:
 Have u checked the 'nagcon' on nagiosexchange...
 
 I haven't tried, seems like what u r looking for

Yes, that will fit the bill.

Thanks
/Lars

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Lars
 Stavholm
 Sent: Friday, February 02, 2007 11:16 AM
 To: nagios-users@lists.sourceforge.net
 Cc: Scott Lambert
 Subject: Re: [Nagios-users] ascii frontend
 
 Lars Stavholm wrote:
 Scott Lambert wrote:
 On Fri, Feb 02, 2007 at 06:10:53AM +0100, Lars Stavholm wrote:
 Hi List,

 Does anyone know of an ascii/text/curses frontend to nagios.
 (dialog based maybe?)

 I have a situation were I don't have other than ssh access
 to the box and need to be able to get some sort of overview
 from a textbased frontend to nagios once logged in.
 Are you talking about configuring Nagios?
 Nop. I'm a vi fan:)

 Or, viewing the web interface?
 Yes, or to get some simplified overview,
 not necessarily the web interface.

 The web interface works in w3m, lynx, ...
 Yes, I know, I tried lynx, and although it is readable,
 it's not the simplified overview that I'm looking for.
 We aim to put this in the hands of end users that
 might not be fluent in interpreting the lynx output.

 Or are you thinking along the lines of nagiostat?
 Don't know what that is, I'll have a look.
 
 Nop, nagiostat is a graphical trend tool.
 /L
 
 
 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 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
 
 DISCLAIMER:
 
 Information transmitted by this e-mail may be proprietary to Ramco Systems 
 Ltd., and / or the authors of the information and is intended for use only by 
 the individual or entity to which it is addressed, and may contain 
 confidential or legally privileged information. If you are not the intended 
 recipient or it appears that this mail has been forwarded to you without 
 proper authority, you are not authorised to access, read, disclose, copy, use 
 or otherwise deal with it and any such actions are prohibited and may be 
 unlawful.
 
 Internet communications cannot be guaranteed to be secure or error-free as 
 information could be intercepted, corrupted, lost, arrive late or contain 
 viruses. Ramco Systems Limited therefore does not accept liability for any 
 errors, omissions, viruses or computer problems experienced as a result of 
 this transmission.
 
 If you have received this e-mail in error, please notify us immediately at 
 mail to: [EMAIL PROTECTED] and delete this mail from your records. Notice is 
 hereby given that no representation, contract or other binding obligation 
 shall be created by this e-mail.
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
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] Testing Plugins

2007-01-29 Thread Lars Stavholm
Paul Hunter wrote:
 I am getting the following error when Iattempt to check aplugin on Solaris
 10:
 
 ./check_ping -h
 ld.so.1: check_ping: fatal: libssl.so.0.9.8: open failed: No such file or
 directory
 Killed
 
 
 I did install SMCosl98d...

Check your LD_LIBRARY_PATH.
I take it  SMCosl98d is the OpenSSL package.
If so, make sure it includes SMCosl98d/lib or similar.

/Lars

-
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] check_fping

2007-01-21 Thread Lars Stavholm
Az wrote:
 Lars Stavholm wrote:
 I'm trying to use the check_fping plugin and when
 I run it separately on the command line it works
 just fine, but when I let nagios run it I always
 get a warning status. Anyone seen this?
   
 Have you tried running fping itself as the nagios user? You'll probably
 get the following...
 
 [EMAIL PROTECTED]:~$ /usr/local/sbin/fping
 This program can only be run by root, or it must be setuid root.
 
 Thus, you'll need to address this before the check_fping plugin will work.

Yes, thank you, I just discovered that. However, all I got from
check_fping was FPING - WARNING, somewhat misleading. A bit of
guesswork and trial and error showed that the check_fping has to
be executed as root. In my environment all nagios processes are
run by nagios, so I did the suid trick and now it works.

Thank you
/Lars

-
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] check_fping

2007-01-20 Thread Lars Stavholm
Hi All!

I'm trying to use the check_fping plugin and when
I run it separately on the command line it works
just fine, but when I let nagios run it I always
get a warning status. Anyone seen this?

/Lars

-
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] Periodic and automated reporting

2006-12-14 Thread Lars Stavholm
Horvath Tamas wrote:
 Hi listmembers!
 
 Our customer would like an automatic reporting mechanism with Nagios (for
 example it could run first days of every month for the last month).
 
 I can see how can I invoke for example the Availability Reporting CGI, but I
 think I can invoke it only from a browser. So I can't automatize it.
 
 Does anybody have such an experience, or some idea how can I do this?

http://htmldoc.org via cron job.
/L

-
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