Re: [Nagios-users] Nagios memory Leaks
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: 24 January 2007 02:07 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios memory Leaks Dear Sir, I am writing to thank you for your valuable letter and say, > From: Tobias Klausmann <[EMAIL PROTECTED]> > Subject: [Nagios-users] Memory leaks > > Hi! > > (First off: if this should also go to nagios-devel, just yell at > me.) > I don't think so because it deals with the aspects of the implementation that are visible (and in fact, the letter doesn't propose detailed solutions). > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. > > First off, their approximate extent. > > 2.5 and 2.6 without perl cache have the smallest memory leaks. A > fairly busy Nagios server (hardware quoted below) with about 3000 > services on about 330 hosts will degrade from 330M used (that's > *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 > MB per hour. The very same machine behaves neutral if Nagios is > not running, so it's definitely Nagios itself. Do you mean: 2.5 and 2.6 Nagios with embedded Perl but without the Perl plugin cache option ? If so, the fault is not Nagios, but the embedded Perl implementation and or Perl. Your next paragraph suggest that this is plain vanilla Nagios without any Perl options to configure. Is that correct ? > > Activating the embedded Perl interpreter and -cache will increase > the amount of lost memory to about 5-6M per hour. In this case, > however, sometimes the memory usage snaps back, i.e. some of the > lost memory is collected. I've not yet found out what triggers > the reclaim. Still, over the course of hours, more and more > memory is lost. Still, it's roughly linear memory loss. > I have never witnessed memory being reclaimed after ePN leaks it. I can't conceive of the process memory size being reduced while the process is running (free() and friends only return the memory to the process heap). I think the leak is caused by the ePN implementation. I a hoping to trying some measurements with several pilot implementations to see what is the most promising way of doing this. ... (snip) Yep. I agree. The leak is bad. > The question that remains is, if this can (and will) be tackled > before 3.0 is released. A related question is if Nagios 3 will be > prone to the same problem. > Certainly it will if the current ePN implementation remains. If (pretty big if) I can provide you stuff to try are you willing to repeat your measurements on candidate implementations (wrt 2.5 or 2.6 code base) ? I am not sure of my willingness/energy quotient but if they look Ok, I may not have anything to show until March this year. > Any thoughts, ideas etc. are appreciated. > > Regards, > Tobias Yours sincerely. Morning !! I have been reading with interest about these memory leaks. I see you mention 2.5 & 2.6. Does this happen with 2.4 as well ?? Thanks !!! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] 3D Nagios?
yeah my boss want it too just dont want the local cpu box to spike because of the 3D java updatate that gonna do like every 15 sec. also i have about like 85 hosts so far, what would be best way to add these host in the extended host config file separte coordinate for every host ? How would you know where 0,0 would be on the map ? is this trial by error I downloaded corna that 3D generator once i make the changes and restart nagios i guess it will take affect ? right thanks On 1/23/07, Jim Perrin <[EMAIL PROTECTED]> wrote: On 1/23/07, Nedim Bicic <[EMAIL PROTECTED]> wrote: > Nagios 2.4 > Hey people i has anyone attempted to make nagios look neater look better in > terms of 3D view where you can rotate zoom in and out using a VRML i know > its in the docs in extneded hosts just is it worth creating it and does it > require or take up a lot of cpu load? > > Status World CGI (VRML) Entirely up to you. I don't use it, but I have it enabled mostly because it keeps my boss occupied. Short of having him chase a laser pointer around the wall, it's the only way I can keep him out of my hair long enough for me to accomplish actual work. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell - 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.php&p=sourceforge&CID=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] 3D Nagios?
On 1/23/07, Nedim Bicic <[EMAIL PROTECTED]> wrote: > Nagios 2.4 > Hey people i has anyone attempted to make nagios look neater look better in > terms of 3D view where you can rotate zoom in and out using a VRML i know > its in the docs in extneded hosts just is it worth creating it and does it > require or take up a lot of cpu load? > > Status World CGI (VRML) Entirely up to you. I don't use it, but I have it enabled mostly because it keeps my boss occupied. Short of having him chase a laser pointer around the wall, it's the only way I can keep him out of my hair long enough for me to accomplish actual work. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell - 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.php&p=sourceforge&CID=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] 3D Nagios?
Nagios 2.4 Hey people i has anyone attempted to make nagios look neater look better in terms of 3D view where you can rotate zoom in and out using a VRML i know its in the docs in extneded hosts just is it worth creating it and does it require or take up a lot of cpu load? *Status World CGI (VRML)* - 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.php&p=sourceforge&CID=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] Kyle Niederhauser is out of the office.
I will be out of the office starting 01/23/2007 and will not return until 01/25/2007. I will be out of the office Wednesday, January 24th. If you need assistance, please call the BP Operations Center at 1-877-471-6079 and ask for BP UNIX support. Clarify queue. IBM: UNIX HOSTS- 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.php&p=sourceforge&CID=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] NMS Comparison
Anyone ever used OpenNMS ? Maybe could share plus and minus of OpenNMS compared to Nagios ? Thx. Regards, Herman - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Several map views of Nagios
Dear Morris, I saw in the Map View, there is listbox to include/exclude drawing layer of certain hostgroups. When I select to include hostgroups A, then servers not in hostgroups A will disappear. Unfortunately during the next automatic screen refresh, the listbox selection was not pertained and the map view screen returned back all map view. Any idea ? Regards, Herman > -Original Message- > From: Morris, Patrick [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 23, 2007 1:33 PM > To: Herman (ISTD); Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Several map views of Nagios > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Herman (ISTD) > > Sent: Monday, January 22, 2007 9:13 PM > > To: Nagios-Users (E-mail) > > Subject: [Nagios-users] Several map views of Nagios > > > > Is it possible for Nagios to do several map views ? > > Sure. Take a look at the map page, and you'll see boxes to show or hide > all the hostgroups you've set up. - 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.php&p=sourceforge&CID=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] Nagios memory Leaks
Dear Sir, I am writing to thank you for your valuable letter and say, > From: Tobias Klausmann <[EMAIL PROTECTED]> > Subject: [Nagios-users] Memory leaks > > Hi! > > (First off: if this should also go to nagios-devel, just yell at > me.) > I don't think so because it deals with the aspects of the implementation that are visible (and in fact, the letter doesn't propose detailed solutions). > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. > > First off, their approximate extent. > > 2.5 and 2.6 without perl cache have the smallest memory leaks. A > fairly busy Nagios server (hardware quoted below) with about 3000 > services on about 330 hosts will degrade from 330M used (that's > *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 > MB per hour. The very same machine behaves neutral if Nagios is > not running, so it's definitely Nagios itself. Do you mean: 2.5 and 2.6 Nagios with embedded Perl but without the Perl plugin cache option ? If so, the fault is not Nagios, but the embedded Perl implementation and or Perl. Your next paragraph suggest that this is plain vanilla Nagios without any Perl options to configure. Is that correct ? > > Activating the embedded Perl interpreter and -cache will increase > the amount of lost memory to about 5-6M per hour. In this case, > however, sometimes the memory usage snaps back, i.e. some of the > lost memory is collected. I've not yet found out what triggers > the reclaim. Still, over the course of hours, more and more > memory is lost. Still, it's roughly linear memory loss. > I have never witnessed memory being reclaimed after ePN leaks it. I can't conceive of the process memory size being reduced while the process is running (free() and friends only return the memory to the process heap). I think the leak is caused by the ePN implementation. I a hoping to trying some measurements with several pilot implementations to see what is the most promising way of doing this. ... (snip) Yep. I agree. The leak is bad. > The question that remains is, if this can (and will) be tackled > before 3.0 is released. A related question is if Nagios 3 will be > prone to the same problem. > Certainly it will if the current ePN implementation remains. If (pretty big if) I can provide you stuff to try are you willing to repeat your measurements on candidate implementations (wrt 2.5 or 2.6 code base) ? I am not sure of my willingness/energy quotient but if they look Ok, I may not have anything to show until March this year. > Any thoughts, ideas etc. are appreciated. > > Regards, > Tobias Yours sincerely. - 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.php&p=sourceforge&CID=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: checking actual health of a disk.
David Rivera wrote: > Hi all, > > I was wondering is anyone has done this, I am wondering if there are plugins > already out there I can use to check the health of Sun boxes and linux boxes. > > I know 'checking the health' is very vague, since there are a number of > things to check. For Sun, checking metadevices or disks not under any any > voluem manager. > > linux, not sure how to check on them? > > > thanks much > David > Hi, For our linux boxes, we're using the check_snmp_storage.pl plugin from : "http://www.manubulon.com/nagios/"; to check partition space. - Josh - 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.php&p=sourceforge&CID=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: checking actual health of a disk.
I have SMART enabled on my hard disks, and have a plugin downloaded from Nagios Exchange (it requires Python) that parses the SMART output and reports an OK or Bad status. (I think it's called check_smartmon.py). Andy. David Rivera wrote: > Hi all, > > I was wondering is anyone has done this, I am wondering if there are > plugins already out there I can use to check the health of Sun boxes > and linux boxes. > > I know 'checking the health' is very vague, since there are a number > of things to check. For Sun, checking metadevices or disks not under > any any voluem manager. > > linux, not sure how to check on them? > > > thanks much > David > > > > Money can't buy happiness, but neither can poverty. > -Leo Rosten > !DSPAM:37,45b69bfc118211922293640! > > > - > 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.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45b69bfc118211922293640! > > > > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45b69bfc118211922293640! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - 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.php&p=sourceforge&CID=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] Nagios: checking actual health of a disk.
Hi all, I was wondering is anyone has done this, I am wondering if there are plugins already out there I can use to check the health of Sun boxes and linux boxes. I know 'checking the health' is very vague, since there are a number of things to check. For Sun, checking metadevices or disks not under any any voluem manager. linux, not sure how to check on them? thanks much David Money can't buy happiness, but neither can poverty. -Leo Rosten - 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.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios upgrade
Carlos Sánchez wrote: > hi > how to upgrade nagios 2.5 to 2.6 > ummm ... RTFM ? =/ - Josh - 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.php&p=sourceforge&CID=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] nagios upgrade
hi how to upgrade nagios 2.5 to 2.6 _ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > These look fine (probably). Is 'client' a script or program that you > wrote or have visibility into? What does it do exactly. It is an application written in-house in C, I don't have any visibility into it but it basically just sends a message to its server component that then dials out to the paging company and sends the message. I've ran it as myself, nagios and root - they all work. - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 3:01 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Brian Loe <[EMAIL PROTECTED]> wrote: > > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > > > # 'notify-by-pager' command definition > > > define command{ > > >command_namenotify-by-pager > > >command_lineecho '/usr/local/pager/client $CONTACTADDRESS1$ > > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > > $SERVICESTATE$"' >> /tmp/nagios_notification.log > > >} > > > > Well, I really don't get this. That worked. If I just copy and paste > > that output (from echo) to the command line it works fine... > > > What permissions would that application need to have for Nagios to run it? > drwxr-xr-x /usr/local/pager > -rwxrwxrwx client These look fine (probably). Is 'client' a script or program that you wrote or have visibility into? What does it do exactly. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
> -Original Message- > From: Brian Loe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 23, 2007 2:58 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > # 'notify-by-pager' command definition > > define command{ > >command_namenotify-by-pager > >command_lineecho '/usr/local/pager/client $CONTACTADDRESS1$ > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > $SERVICESTATE$"' >> /tmp/nagios_notification.log > >} > > Well, I really don't get this. That worked. If I just copy and paste > that output (from echo) to the command line it works fine... That's a good start. Did you run your test as the nagios user? Perhaps your client script accesses some script/program/device that only root has permissions to use. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
On 1/23/07, Brian Loe <[EMAIL PROTECTED]> wrote: > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > # 'notify-by-pager' command definition > > define command{ > >command_namenotify-by-pager > >command_lineecho '/usr/local/pager/client $CONTACTADDRESS1$ > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > $SERVICESTATE$"' >> /tmp/nagios_notification.log > >} > > Well, I really don't get this. That worked. If I just copy and paste > that output (from echo) to the command line it works fine... > What permissions would that application need to have for Nagios to run it? drwxr-xr-x /usr/local/pager -rwxrwxrwx client - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > # 'notify-by-pager' command definition > define command{ >command_namenotify-by-pager >command_lineecho '/usr/local/pager/client $CONTACTADDRESS1$ > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$"' >> /tmp/nagios_notification.log >} Well, I really don't get this. That worked. If I just copy and paste that output (from echo) to the command line it works fine... - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 1:52 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > > > Doing what you suggest I see that it IS running the notification, > > > except that the quotation marks are lost (which my external app > > > actually needs - so maybe I can double them up?) and none of the > > > > I'm not sure what you mean. Post what you ended up with. Were they lost > > because I used double-quotes and you use double-quotes? If so, change > > mine to single-quotes. > Check command: > # 'notify-by-pager' command definition > define command{ >command_namenotify-by-pager >command_lineecho /usr/local/pager/client $CONTACTADDRESS1$ > ""Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$"" >> /tmp/nagios_notification.log >} Shell Scripting 101: quoting as above is nulls your quotes. You open a " then immediately close it leaving the rest to be interpreted as arguments to the echo command. Plus, you want the echo to be the entire command. What you want for this testing is -- # 'notify-by-pager' command definition define command{ command_namenotify-by-pager command_lineecho '/usr/local/pager/client $CONTACTADDRESS1$ "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"' >> /tmp/nagios_notification.log } __ Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
On 1/23/07, Josh Yost <[EMAIL PROTECTED]> wrote: > Hi, > > You should be able to backslash the quotes you need it to print: > $ echo "\"hi\"" > > I'm not sure where above you would want them, maybe something like > \"$SOMEMACRO$\" \"$SOMEOTHERMACRO$\" ? > > - Josh > The app I'm using takes two variables: /client "" Contact name I have defined in contacts.cfg as address1. The message has to be quoted when handed to the app. I would think this would work - as it does for sendmail which has the same requirements...I thought. - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > Doing what you suggest I see that it IS running the notification, > > except that the quotation marks are lost (which my external app > > actually needs - so maybe I can double them up?) and none of the > > I'm not sure what you mean. Post what you ended up with. Were they lost > because I used double-quotes and you use double-quotes? If so, change > mine to single-quotes. Check command: # 'notify-by-pager' command definition define command{ command_namenotify-by-pager command_lineecho /usr/local/pager/client $CONTACTADDRESS1$ ""Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"" >> /tmp/nagios_notification.log } Result: /usr/local/pager/client networktech Service: NSLookupnHost: dns2nAddress: xx.xxx.xx.xxxnState: CRITICALnInfo: DNS CRITICAL - expected xx.xxx.xx.yyy but got xx.xxx.xx.zzznDate: Tue Jan 23 13:32:48 CST 2007 PROBLEM: dns2/NSLookup is CRITICAL So I was wrong a bit, it's filling in the IPs and hostnames... - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
Brian Loe wrote: > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: >> If the notification is being called but you don't see what you expect in >> your notification script, echo the command that nagios is running to a >> file to see if it's what you think it's supposed to be -- >> >> define command { >> command_name my_special_notification >> command_line echo "$USER1$/my-notification-script >> $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me >> } >> >> After nagios calls 'my_special_notification', the file >> /tmp/nagios-runs-me will contain the full command line that nagios >> _would_ have executed if it had really run the command. >> > > > Doing what you suggest I see that it IS running the notification, > except that the quotation marks are lost (which my external app > actually needs - so maybe I can double them up?) and none of the > variables have been filled in within the quotes that are there > (perhaps because it was an echo, and the echo command wiill take > anything with quotes as strings?). Hi, You should be able to backslash the quotes you need it to print: $ echo "\"hi\"" I'm not sure where above you would want them, maybe something like \"$SOMEMACRO$\" \"$SOMEOTHERMACRO$\" ? - Josh - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 1:29 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > > > If the notification is being called but you don't see what you expect in > > your notification script, echo the command that nagios is running to a > > file to see if it's what you think it's supposed to be -- > > > > define command { > > command_name my_special_notification > > command_line echo "$USER1$/my-notification-script > > $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me > > } > > > > After nagios calls 'my_special_notification', the file > > /tmp/nagios-runs-me will contain the full command line that nagios > > _would_ have executed if it had really run the command. > > > > > Doing what you suggest I see that it IS running the notification, > except that the quotation marks are lost (which my external app > actually needs - so maybe I can double them up?) and none of the I'm not sure what you mean. Post what you ended up with. Were they lost because I used double-quotes and you use double-quotes? If so, change mine to single-quotes. > variables have been filled in within the quotes that are there > (perhaps because it was an echo, and the echo command wiill take > anything with quotes as strings?). Nope. If you're using valid nagios $MACROS$ then nagios will do the all the substitutions before the echo is even called so you should see the actual full command line exactly as it is run. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
On 1/23/07, Marc Powell <[EMAIL PROTECTED]> wrote: > > If the notification is being called but you don't see what you expect in > your notification script, echo the command that nagios is running to a > file to see if it's what you think it's supposed to be -- > > define command { > command_name my_special_notification > command_line echo "$USER1$/my-notification-script > $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me > } > > After nagios calls 'my_special_notification', the file > /tmp/nagios-runs-me will contain the full command line that nagios > _would_ have executed if it had really run the command. > Doing what you suggest I see that it IS running the notification, except that the quotation marks are lost (which my external app actually needs - so maybe I can double them up?) and none of the variables have been filled in within the quotes that are there (perhaps because it was an echo, and the echo command wiill take anything with quotes as strings?). - 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.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] external notification commands
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 12:45 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] external notification commands > > I have a notification configured to run an app and pass it Nagios > parameters. For what ever reason I can watch the log and see a device > go critical, but it never runs the notification command, or, if it > does, it doesn't work. > > Any way to see deeper into this process? Make sure you have log_notifications=1 in nagios.cfg. Then you'll be able to see in nagios.log whether your notification is being called. If it is not then it's a simple configuration issue (notifications not enabled globally, not enabled specifically for that host or service or for that specific contact). If the notification is being called but you don't see what you expect in your notification script, echo the command that nagios is running to a file to see if it's what you think it's supposed to be -- define command { command_name my_special_notification command_line echo "$USER1$/my-notification-script $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me } After nagios calls 'my_special_notification', the file /tmp/nagios-runs-me will contain the full command line that nagios _would_ have executed if it had really run the command. If the notification is being called, modify your notification script to output interesting information to a log file. In all my event handlers the first thing it does is log the parameters it was called with ala -- LOGFILE=/usr/local/nagios/var/eventhandler.log; export LOGFILE echo -n `date` . " " >> $LOGFILE 2>&1 echo "winbind service check ($1) ($2) ($3) ($4)... " >> $LOGFILE 2>&1 Whenever there's something interesting happening, I log that -- echo -n `date` . " " >> $LOGFILE 2>&1 echo -n "Restarting winbind service (2nd soft critical state) on $4... " >> $LOGFILE 2>&1 # Call the init script to restart the winbind server /usr/bin/ssh $4 'sudo /etc/init.d/winbind restart' >>$LOGFILE 2>&1 I also log if I don't do anything. I log errors from the scripts that I call from my event handler or anything else that might be interesting. I presume there's no reason you couldn't do this in your expanded notification script and you have no real limitations on how verbose you make the process. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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_dhcp on vlan interface
Hello My nagios server run on openbsd. I have one physical network interface (pcn0) with no ip. Upon pcn0, I have 5 vlan interfaces . This is an extract of ifconfig pcn0: flags=8843 mtu 1500 lladdr 00:50:56:a7:5c:4a media: Ethernet autoselect (autoselect) inet6 fe80::250:56ff:fea7:5c4a%pcn0 prefixlen 64 scopeid 0x1 vlan1: flags=8843 mtu 1496 lladdr 00:50:56:a7:5c:4a vlan: 1 priority: 0 parent interface: pcn0 groups: vlan inet6 fe80::250:56ff:fea7:5c4a%vlan1 prefixlen 64 scopeid 0x6 inet 10.1.11.156 netmask 0x broadcast 10.1.255.255 vlan10: flags=8843 mtu 1496 lladdr 00:50:56:a7:5c:4a vlan: 10 priority: 0 parent interface: pcn0 groups: vlan egress inet6 fe80::250:56ff:fea7:5c4a%vlan10 prefixlen 64 scopeid 0x7 inet 10.10.10.25 netmask 0x broadcast 10.10.255.255 ... I try to check a dhcp server on vlan 1, my check command is check_dhcp -s 10.1.0.1 -i vlan1 When I tcpdump , the packet go out from vlan 10 ! Is it a bug or check_dhcp does'nt work with vlan interface ? Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] Add time host has been down to "HOST UP" emails
I am trying to add a line to "HOST UP" emails that shows for how long the host was down. The following is the current entry I have in my commands.cfg file #--BEGIN SNIPPET- /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n `/usr/local/bin/nagios_downtime \`date +%s\` $LASTHOSTUP$`\n" | mailx -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ #--END SNIPPET--- The following is my addition: `/usr/local/bin/nagios_downtime \`date +%s\` $LASTHOSTUP$` ** backticks included ** nagios_downtime - This is a perl script that takes arg1 and arg2 (in epoch time) and outputs the time that the host was down in the following format: HH:MM:SS "date +%s" - prints current time in epoch "$LASTHOSTUP$" - was *supposed* to print the last time that the host was in the UP state in epoch time. The problem that I am running into is this. The $LASTHOSTUP$ is only usefule *while* the host is down because of the following. When the host comes back up the value is reset to the current time not the old one that I needed. Can anyone think of any other way that they would approach adding a line that contained how long the host was down for in nagios? Other info $ rpm -q nagios redhat-release nagios-plugins nagios-2.6-1.el4.rf redhat-release-4AS-5.5 nagios-plugins-1.4.5-1.el4.rf Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] external notification commands
I have a notification configured to run an app and pass it Nagios parameters. For what ever reason I can watch the log and see a device go critical, but it never runs the notification command, or, if it does, it doesn't work. Any way to see deeper into this process? - 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.php&p=sourceforge&CID=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] strange probs
Daniel wrote: > > I set it now to: > "$NOTIFICATIONTYPE$: $HOSTNAME$ ($HOSTADDRESS$) ist $SERVICESTATE$" > > It wont work :( and i am sure this are less then 160 charactars ;) > If it's for a host notification, then it needs to be $HOSTSTATE$, not $SERVICESTATE$. Try it and see if you get any info: $NOTIFICATIONTYPE$: $HOSTNAME$ ($HOSTADDRESS$) ist $HOSTSTATE$ - Josh - 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.php&p=sourceforge&CID=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] Plugin to check pserver
Has anyone written a plugin to check pserver access to CVS? I'm just looking for something that would confirm that the server is responding to login requests. I didn't see anything on NagiosExchange. Thanks, Jesse - 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.php&p=sourceforge&CID=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] strange probs
Guten Tag Arno Lehmann, am Dienstag, 23. Januar 2007 um 17:36 schrieben Sie: > Hi, > On 1/23/2007 5:20 PM, Daniel wrote: >> Guten Tag Daniel, >> >> am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: >> >> >>>Hi there, >> >> >>>i setup up following method for notifications: >> >> >>>define command{ >>>command_name notify-by-sms >>>command_line /usr/bin/sudo /usr/local/sbin/sendsms >>>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ >>>Service $SERVICEDESC$ is $SERVICESTATE$" >> >> >>>he sends the sms and everthinks works BUT he dont display me >>>the UP/DOWN message ($SERVICESTATE$) >> >> >>>When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN >>>text. >> >> >> Mh i can set everthink after $SERVICEDESC$ and no variable is >> displayed ;( > How long are your SMSes? 160 Characters? > Then you simply hit the length limitation for an SMS. I set it now to: "$NOTIFICATIONTYPE$: $HOSTNAME$ ($HOSTADDRESS$) ist $SERVICESTATE$" It wont work :( and i am sure this are less then 160 charactars ;) -- greetz daniel - 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.php&p=sourceforge&CID=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] strange probs
SMS is limited to 120 characters. I don't know, but it makes sense that notify-by-sms would trim off any extra characters. Perhaps this is the problem? Daniel wrote: > Hi there, > > i setup up following method for notifications: > > define command{ > command_name notify-by-sms > command_line /usr/bin/sudo /usr/local/sbin/sendsms $CONTACTPAGER$ > "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ Service $SERVICEDESC$ is > $SERVICESTATE$" > > he sends the sms and everthinks works BUT he dont display me > the UP/DOWN message ($SERVICESTATE$) > > When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN > text. > > > > - 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.php&p=sourceforge&CID=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] strange probs
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Daniel > Sent: Tuesday, January 23, 2007 10:41 AM > To: Arno Lehmann > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] strange probs > > Guten Tag Arno Lehmann, > > am Dienstag, 23. Januar 2007 um 17:36 schrieben Sie: > > > Hi, > > > On 1/23/2007 5:20 PM, Daniel wrote: > >> Guten Tag Daniel, > >> > >> am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: > >> > >> > >>>Hi there, > >> > >> > >>>i setup up following method for notifications: > >> > >> > >>>define command{ > >>>command_name notify-by-sms > >>>command_line /usr/bin/sudo /usr/local/sbin/sendsms > >>>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ > >>>Service $SERVICEDESC$ is $SERVICESTATE$" > >> > >> [chop] > > How long are your SMSes? 160 Characters? > > Yep support up to 160 characters > > > Then you simply hit the length limitation for an SMS. > > The message which comes from nagios is not 160 signs. > Its funny: the sms is like: > > Host BLA IP: xx.xx.xx.xx Server: is > There is missing the varibales... This would be explained if this were a host notification and not a service notification. Is that the case? -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] strange probs
Guten Tag Arno Lehmann, am Dienstag, 23. Januar 2007 um 17:36 schrieben Sie: > Hi, > On 1/23/2007 5:20 PM, Daniel wrote: >> Guten Tag Daniel, >> >> am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: >> >> >>>Hi there, >> >> >>>i setup up following method for notifications: >> >> >>>define command{ >>>command_name notify-by-sms >>>command_line /usr/bin/sudo /usr/local/sbin/sendsms >>>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ >>>Service $SERVICEDESC$ is $SERVICESTATE$" >> >> >>>he sends the sms and everthinks works BUT he dont display me >>>the UP/DOWN message ($SERVICESTATE$) >> >> >>>When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN >>>text. >> >> >> Mh i can set everthink after $SERVICEDESC$ and no variable is >> displayed ;( > How long are your SMSes? 160 Characters? Yep support up to 160 characters > Then you simply hit the length limitation for an SMS. The message which comes from nagios is not 160 signs. Its funny: the sms is like: Host BLA IP: xx.xx.xx.xx Server: is There is missing the varibales... -- greetz daniel - 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.php&p=sourceforge&CID=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] Remote Linux Client Appears Down ButServicesAreMonitored
> -Original Message- > From: Kaplan, Andrew H. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 23, 2007 8:04 AM > To: Marc Powell; Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Remote Linux Client Appears Down > ButServicesAreMonitored > > I ran the command in question, and it did time out. I believe I know > why that is happening, and I am contacting the appropriate people to > hopefully have it resolved. Until that happens, is there a workaround > that I can put into place? Sure, change your host check_command to something that actually works. For the short term, it could be as simple as a check_tcp for the NRPE port. Of course, that wouldn't tell you if the host is down only but it's better than nothing. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] strange probs
Hi, On 1/23/2007 5:20 PM, Daniel wrote: > Guten Tag Daniel, > > am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: > > >>Hi there, > > >>i setup up following method for notifications: > > >>define command{ >>command_name notify-by-sms >>command_line /usr/bin/sudo /usr/local/sbin/sendsms >>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ >>Service $SERVICEDESC$ is $SERVICESTATE$" > > >>he sends the sms and everthinks works BUT he dont display me >>the UP/DOWN message ($SERVICESTATE$) > > >>When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN >>text. > > > Mh i can set everthink after $SERVICEDESC$ and no variable is > displayed ;( How long are your SMSes? 160 Characters? Then you simply hit the length limitation for an SMS. Arno > > > -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] problems with Nagios Looking Glass
Frost, Mark {PBG} wrote: > As a followup, it looks like (perhaps among other issues) the > s3_poller.php script is timing out. > > I've turned on the displaying of PHP error messages and when I put the > s3_poller.php URL in and wait, I eventually get: > > Fatal error: Maximum execution time of 30 seconds exceeded in > /usr/local/nlg_101/server/sync-files/s3_functions.inc.php on line 248 > Yep what that's doing is parsing your var/status.dat file to get the current services and their statuses. How big is your Nagios installation? (i.e. how many hosts/services?) > Looking at that file, this seems to be looking at one of my nagios "var" > files... > > preg_match_all("/(?:\n|\r\n)\w*service > {(?:\n|\r\n)\s*host_name=" . $ServerObject->HostName . "(?:\n|\r\n)/", > stream_get_contents($StatusFileHandle), $ServiceMatches, > PREG_OFFSET_CAPTURE, 0); > > Mark > Andy. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] problems with Nagios Looking Glass
As a followup, it looks like (perhaps among other issues) the s3_poller.php script is timing out. I've turned on the displaying of PHP error messages and when I put the s3_poller.php URL in and wait, I eventually get: Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/nlg_101/server/sync-files/s3_functions.inc.php on line 248 Looking at that file, this seems to be looking at one of my nagios "var" files... preg_match_all("/(?:\n|\r\n)\w*service {(?:\n|\r\n)\s*host_name=" . $ServerObject->HostName . "(?:\n|\r\n)/", stream_get_contents($StatusFileHandle), $ServiceMatches, PREG_OFFSET_CAPTURE, 0); Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frost, Mark {PBG} Sent: Tuesday, January 23, 2007 11:05 AM To: Nagios Users mailinglist Subject: [Nagios-users] problems with Nagios Looking Glass Hello. I've been trying to use Nagios Looking Glass and have so far been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. When I go to the client URL (http://nagioshost/nlg/client) it sits there working on it for 30 seconds and gives me back an error page which includes: The checksum I received with the feed is invalid compared to my local check. Network problems may be causing packet loss The long wait before the error was consistent with behavior in 1.0Pre and 1.0, but each version has given me different errors (or none at all I think with 1.0Pre). I'm running Nagios 2.6 with authentication to the Nagios "share" directory. I've got both the NLG client and server on the same box which is the same as the Nagios server itself. One thing I'm doing differently here (and maybe I can't do this) is that I put the NLG stuff *outside* of the nagios share directory. I tweaked my Apache config so that it would find 'nlg' as a separate URL with no authentication. So the NLG URLs would be something like http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php I modified the php include files per the 1.0PRE documentation (that's still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a little unclear about authentication here because I wasn't sure that NLG would need it as it's accessing files directly. That is, since the entire /nlg URL tree is unauthenticated and I thought NLG would access Nagios' files directly (i.e. not using the Nagios URLs) no authentication was necessary. I can't find any error logs and I'm having some difficulty figuring out how I might turn debugging on in the code to tell me what I might have done wrong. Any help would be greatly appreciated. thanks Mark - 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.php&p=sourceforge&CID=DEVDE V ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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.php&p=sourceforge&CID=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] problems with Nagios Looking Glass
Hi Mark, If you enable the debugging option in the client/s3_config_stub.inc.php file ($Stub_ClientEnableDebugging) to 1, then visit "http://nagioshost/nlg/client/?debug=yes";, that will generate your debugging output, but I'm guessing it will go as far as the error it's already generated in the front-end. 1.0.0#PRE didn't give any error messages apart from "feed download failed" - that was fixed in 1.0.0. 1.0.1 literally only changed one line of code, so it's strange if it's giving you a different error to 1.0.0. :S As a private e-mail, can you send me your config files and the debug output? (Obviously strip any usernames/passwords out of your config before-hand!) Just glancing over your e-mail, is this just an oversight, or is this actually in your config? - You say you're using the same server as both client and server, and your client address starts http://nagioshost, but your server address starts http://nagios - this would cause the delay you're seeing, but I think I'm being a bit hopeful that this is all it is ;) As per your question about authentication, the sync'd files are requested from the normal file-system (when configured), but the poller still uses a HTTP request - this is something I'm hoping to change in 1.0.2. FYI you don't have to put NLG in the share directory of Nagios - I've done exactly the same trick as you did with my server feed, and my client UI is sitting on a completely different server to Nagios. Thanks Andy. Frost, Mark {PBG} wrote: > Hello. I've been trying to use Nagios Looking Glass and have so far > been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. > > When I go to the client URL (http://nagioshost/nlg/client) it sits there > working on it for 30 seconds and gives me back an error page which > includes: > > The checksum I received with the feed is invalid compared to my > local check. Network problems may be causing packet loss > > The long wait before the error was consistent with behavior in 1.0Pre > and 1.0, but each version has given me different errors (or none at all > I think with 1.0Pre). > > I'm running Nagios 2.6 with authentication to the Nagios "share" > directory. I've got both the NLG client and server on the same box > which is the same as the Nagios server itself. > > One thing I'm doing differently here (and maybe I can't do this) is that > I put the NLG stuff *outside* of the nagios share directory. I tweaked > my Apache config so that it would find 'nlg' as a separate URL with no > authentication. So the NLG URLs would be something like > > http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php > > I modified the php include files per the 1.0PRE documentation (that's > still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a > little unclear about authentication here because I wasn't sure that NLG > would need it as it's accessing files directly. That is, since the > entire /nlg URL tree is unauthenticated and I thought NLG would access > Nagios' files directly (i.e. not using the Nagios URLs) no > authentication was necessary. > > I can't find any error logs and I'm having some difficulty figuring out > how I might turn debugging on in the code to tell me what I might have > done wrong. > > Any help would be greatly appreciated. > > thanks > > Mark > > - > 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.php&p=sourceforge&CID=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 > > !DSPAM:37,45b632b0118219947612590! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 - 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.php&p=sourceforge&CID=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] strange probs
Guten Tag Daniel, am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: > Hi there, > i setup up following method for notifications: > define command{ > command_name notify-by-sms > command_line /usr/bin/sudo /usr/local/sbin/sendsms > $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ > Service $SERVICEDESC$ is $SERVICESTATE$" > he sends the sms and everthinks works BUT he dont display me > the UP/DOWN message ($SERVICESTATE$) > When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN > text. Mh i can set everthink after $SERVICEDESC$ and no variable is displayed ;( -- greetz daniel - 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.php&p=sourceforge&CID=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] FW: Memory leaks
-Original Message- From: nagios-users On Behalf Of Tobias Klausmann Sent: 23 January 2007 15:32 > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. I have also had problems with memory leaks, such that the kernel (2.6.0-42.0.3) reaches the stage of killing processes to try to preserve the system. In my experience the first processes killed are nagios and nsca. Our configuration is relatively large with just under 16,000 services and 750 hosts. As a consequence we run two slave servers which run the checks and report to the master; on the master all checks are passive except local checks. We have only seen the out of memory problems on the master. I had thought that the problems were caused by NagiosGrapher which we were running, but were not using; certainly the problem was reduced by removing that process from the mix. For us the problem seems to start (according to the message log) at about 4:45 in the morning, so perhaps there is another factor as well (cron jobs ?). Any input would be welcome, though I will continue to investigate as I have time. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory - 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.php&p=sourceforge&CID=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] problems with Nagios Looking Glass
Hello. I've been trying to use Nagios Looking Glass and have so far been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. When I go to the client URL (http://nagioshost/nlg/client) it sits there working on it for 30 seconds and gives me back an error page which includes: The checksum I received with the feed is invalid compared to my local check. Network problems may be causing packet loss The long wait before the error was consistent with behavior in 1.0Pre and 1.0, but each version has given me different errors (or none at all I think with 1.0Pre). I'm running Nagios 2.6 with authentication to the Nagios "share" directory. I've got both the NLG client and server on the same box which is the same as the Nagios server itself. One thing I'm doing differently here (and maybe I can't do this) is that I put the NLG stuff *outside* of the nagios share directory. I tweaked my Apache config so that it would find 'nlg' as a separate URL with no authentication. So the NLG URLs would be something like http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php I modified the php include files per the 1.0PRE documentation (that's still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a little unclear about authentication here because I wasn't sure that NLG would need it as it's accessing files directly. That is, since the entire /nlg URL tree is unauthenticated and I thought NLG would access Nagios' files directly (i.e. not using the Nagios URLs) no authentication was necessary. I can't find any error logs and I'm having some difficulty figuring out how I might turn debugging on in the code to tell me what I might have done wrong. Any help would be greatly appreciated. thanks Mark - 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.php&p=sourceforge&CID=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] strange probs
Hi there, i setup up following method for notifications: define command{ command_name notify-by-sms command_line /usr/bin/sudo /usr/local/sbin/sendsms $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ Service $SERVICEDESC$ is $SERVICESTATE$" he sends the sms and everthinks works BUT he dont display me the UP/DOWN message ($SERVICESTATE$) When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN text. -- greetz daniel - 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.php&p=sourceforge&CID=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] Memory leaks
Hi! (First off: if this should also go to nagios-devel, just yell at me.) Nagios 2.6 and 2.5 have memory leaks. They are not that big that within hours your machine will be swapping, but they degrade performance in other ways. First off, their approximate extent. 2.5 and 2.6 without perl cache have the smallest memory leaks. A fairly busy Nagios server (hardware quoted below) with about 3000 services on about 330 hosts will degrade from 330M used (that's *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 MB per hour. The very same machine behaves neutral if Nagios is not running, so it's definitely Nagios itself. Activating the embedded Perl interpreter and -cache will increase the amount of lost memory to about 5-6M per hour. In this case, however, sometimes the memory usage snaps back, i.e. some of the lost memory is collected. I've not yet found out what triggers the reclaim. Still, over the course of hours, more and more memory is lost. Still, it's roughly linear memory loss. And finally, there's the advanced permission patch. With that patch, memory leaking skyrockets to about 15M/hour. Now all of this could be alleviated by simply restarting Nagios every night. It's not actually a bugfix but merely doctoring on the symptoms, but still, it's pragmatic. Unfortunately, performance degradation is not just on the memory used front. With increased memory usage, check latency increases. In the worst case, this can mean that latency increases by 120s in about six hours. This has the net effect that for our case, we have to restart Nagios every two hours. For the case of 2.5 and 2.6 without the permissions patch, it's a lot less bad, but still bad enough to require restarting Nagios at least every eight hours. Without all the fancy stuff, we get to restarting Nagios every 24 hours, as described above. Further observations: the permission patch causes latency degradation to be directly correlated to amount of notifications, The more notifications, the quicker things get nasty. For vanilla Nagios, at least it's clear that in whatever way memory is wasted, it also slows Nagios down - a possibility would be a linked list that is walked and gets appended over and over. But I guess those with knowledge of the inner workings of Nagios have more clue about this than I do. The question that remains is, if this can (and will) be tackled before 3.0 is released. A related question is if Nagios 3 will be prone to the same problem. Any thoughts, ideas etc. are appreciated. Regards, Tobias PS: On a whim, I tried running Nagios through/in Valgrind but honestly got knocked over by the amount of info Valgrind spewed at me. PPS: Our setup uses only active service checks, notifications by mail (some of it to SMS gateways etc). All host checks are active yet only are executed if needed (the usual way Nagios works). All host checks are using ping. All plugins have a hard timeout of 10s. PPPS: Hardware specs of the machine I tested with: Dual dualcore Opteron 2.2GHz (Model 2214) 2GBytes of RAM (if there's anything else relevant, drop me a line) - 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.php&p=sourceforge&CID=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 CGI authentication woes.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Ericsson wrote: > > htaccess=$(find /usr/local -type f -name .htaccess) > path_to=$(find /usr/local -type f -name "*users") > sed -i "s/\\(AuthUserFile \\).*/\1 $path_to/" $htaccess > Actually... nagios on the system in question really is stored in /local and the full path really is /local/nagios/etc/nagios.users Just my quirky way of doing things. - -- Peter L. Berghold [EMAIL PROTECTED] "Those who fail to learn from history are condemned to repeat it." AIM: redcowdawgYahoo IM: blue_cowdawg ICQ: 11455958 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org iD8DBQFFtiLbUM9/01RIhaARAtxBAKC7XhUcrnQOiLy1qbGonmiED2k7KQCfTgdy 80DUizo9pkoAU/qT0V3fSAc= =ws7z -END PGP SIGNATURE- begin:vcard fn:Peter L. Berghold n:Berghold;Peter org:IBM;GSD email;internet:[EMAIL PROTECTED] title:Unix Specialist tel;work:(732) 918-1487 tel;fax:(732) 982-1632 x-mozilla-html:FALSE url:http://www.berghold.net version:2.1 end:vcard - 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.php&p=sourceforge&CID=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 CGI authentication woes.
Jay Chandler wrote: > Marc Powell wrote: >> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto:nagios-users- >>> [EMAIL PROTECTED] On Behalf Of Peter L. Berghold >>> Sent: Monday, January 22, 2007 3:26 PM >>> To: nagios Users Mailing List >>> Subject: [Nagios-users] Nagios CGI authentication woes. >>> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> Hi folks, >>> >>> Just put up a new installation of Nagios (version 2.6) and it's not >>> >> like >> >>> I haven't done this before so there is obviously something I'm >>> overlooking. >>> >>> When I set up authentication I did the same things I've done before (I >>> think) but it ain't working. When I try to log in I see in the Apache >>> error logs: >>> >>> [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to >>> /nagios/cgi-bin/status.cgi failed, reason: verification of user id >>> 'peter' not configured, referer: http://monitor.berghold.net/side.html >>> >>> >> [chop] >> >> >>> The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess >>> file that looks like this: >>> >>> - -rw-r--r-- 1 apache root 104 Jan 22 15:58 .htaccess >>> >>> permissions wise and has the following contents: >>> >>> AuthName "Nagios Access" >>> AuthType Basic >>> AuthUserFile /local/nagios/etc/nagios.users >>> require valid-user >>> >> Is that *really* the path to nagios.users? I would expect that to be >> /usr/local/nagios/etc/nagios.users. I place my bets here ;) > I'd go one further and bet it's /usr/local/nagios/etc/nagios/users. > I put my money with htaccess=$(find /usr/local -type f -name .htaccess) path_to=$(find /usr/local -type f -name "*users") sed -i "s/\\(AuthUserFile \\).*/\1 $path_to/" $htaccess -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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] Remote Linux Client Appears Down ButServicesAreMonitored
I ran the command in question, and it did time out. I believe I know why that is happening, and I am contacting the appropriate people to hopefully have it resolved. Until that happens, is there a workaround that I can put into place? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Monday, January 22, 2007 6:11 PM To: Nagios-Users (E-mail) Subject: Re: [Nagios-users] Remote Linux Client Appears Down ButServicesAreMonitored > -Original Message- > From: Kaplan, Andrew H. [mailto:[EMAIL PROTECTED] > Sent: Monday, January 22, 2007 3:56 PM > To: Marc Powell; Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Remote Linux Client Appears Down But > ServicesAreMonitored > > > I am interpreting this to mean that the Host status for the remote host > is > > CRITICAL but the services on the host, checked by NRPE, show as OK. > > If that is the case then the check_command in the host{} definition for > > the client does not accurately determine the status of the host. What is > > that check_command and does it work if you run it as the nagios user > from > > your nagios machine? > > If I understand you correctly, you are referring to the check-host-alive > command > in the hosts.cfg file. I'm sorry if I sound like and idiot, but there is > no > check_host_alive plugin in the libexec directory. What command should I > run in > this case? You'll have a file with all the command{} definitions in it (typically named commands.cfg or checkcommands.cfg). One of those command{} definitions will be named 'check-host-alive'. That command definition will specify a command_line that will be run to check if the host is alive. That command_line, substituting in proper variables as required, would be the command you should be testing as the nagios user. It's probably something like define command{ command_namecheck-host-alive command_line$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 } In which case, as the nagios user, you'd run '/path/to/nagios/libexec/check_ping -H -w 3000.0,80% -c 5000.0,100% -p 1 Where is the value for 'address' specified in the client host{} definition. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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 THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. - 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.php&p=sourceforge&CID=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] ANNOUNCE: Nagios Looking Glass 1.0.1 released!
Nagios Looking Glass v1.0.1 is available for download! *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a possible vulnerability has been patched *** The Important Bits === = The official project site is: http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. The files on Nagios Exchange will be upgraded once the documentation has been released, so please download from the project site (above.) To upgrade from a previous version, please see UPGRADING.TXT in the distribution. The documentation is not currently in the distribution but will be added in the next few days. The 1.0.0#PRE administrator manual is still available on the NLG project website under "Documentation" and the majority of it still applies for 1.0.0. More Detail == NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a "network summary" view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=8 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2 Regards, Andy Shellam - 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.php&p=sourceforge&CID=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] different check_command output on host than on server
hi guys, when I execute a certain command on the client itself it is OK, but when executed from the server I get an other output. I have no idea where to look for this, What is different from executing it from the server or on the client itself, or that I'm forgetting? I thought the output on the nagios server should be the same as the output of the script in the client?? script executed on the client (GD6): [EMAIL PROTECTED] a125507]# /usr/lib/nagios/plugins/check_dell_sensors.pl OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power Supplies=Ok; Processors=Ok; Temperatures=Ok; Voltages=Ok; script ran from the server with nrpe: [EMAIL PROTECTED] a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd6 -c check_omchassis ALARM: omreport could not obtain user name. -- omreport could not obtain user name.=Error!**; same script ran from the server but on an other machine(GD5) here it does work. [EMAIL PROTECTED] a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd5 -c check_omchassis OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power Supplies=Ok; Processors=Ok; Temperatures=Ok; Voltages=Ok; I don't know where to look. Can someone point me in the right direction? Thanks in Advance, Jan Lenaerts - 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.php&p=sourceforge&CID=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] Event Handlers
Ok I have followed the white rabbit. I have followed the docs and I have modified the the script to work the way I need it to work for me. But still no luck. After trying allot of stuff I have now changed my config in the .cfg file and it looks like folloes. define service{ use local-service host_name imap-1.rba.ispafrica.net service_description HTTP event_handler_enabled 1 event_handler restart-httpd check_command check_http } Then the commands.cfg file looks like follows. define command{ command_namerestart-httpd command_line/usr/local/nagios/libexec/restart-httpd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } But I still dont have any luck with the Event Handlers. Regards On 1/19/07, Hari Sekhon <[EMAIL PROTECTED]> wrote: > > I was think that, I've done event handlers and the way you have tried to do > that is just wrong. Look at the docs, there is a template bash script to get > you started. That is what I based my event handlers on and it makes much > more sense. You can choose when to do certain actions, not every single time > the status changes which can be a heck of a lot. > > For example when one of my known problem websites fails, the event handler > only fires if it's critical and the plugin output tells me that a certain > condition has occurred. I don't do anything when it's a warning state or a > soft error or if the service check just timed out as sometimes happens since > the website isn't down or broken. > > Otherwise a congested pipe that causes the service check to time out and > temporarily go critical then results in you trashing the website and kicking > out users! > > Follow the white rabbit... I mean... follow the docs... > > > -h > Hari Sekhon > > > > Marc Powell wrote: > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of edalB > Sent: Friday, January 19, 2007 7:46 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > > > [chop] > > > > define service{ > use local-service > > host_name imap-1.rba.ispafrica.net > service_description HTTP > event_handler restart-httpd > check_command check_http > } > > Do you have 'event_handler_enabled 1' in your local-service template? > You need it either there or in this definition. Enabling event handlers > in nagios.cfg isn't sufficient. You need to tell nagios which services > it should actually run them for. > > > > And the command > > > define command{ > command_name restart-httpd > command_line /usr/bin/ssh -p 222 -i > /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo > /etc/init.d/apache2 res > tart > } > > So now nagios still does not want to execute my command > > You really should follow the documented methodology for event handlers > (http://nagios.sourceforge.net/docs/2_0/eventhandlers.html). > I'm not > sure the above is going to work and if it does, it will attempt to > restart httpd on any kind of status change, even WARNING -> OK. I'm sure > that you don't want that. Additionally, if you follow the documented way > you can easily send debugging output to a file so that you can see if > your event handler is being run, how and what it's doing. > > -- > Marc > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV > > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ---
Re: [Nagios-users] Several map views of Nagios
Dear Patrick, Did you mean that we can groups several hosts as one hostgroup and then we can select only to view the hosts in the hostgroup at the Map. Previously I thought the hostgroup is used to define some correspond parameters of several hosts, just know that it was for display purpose. Thank you very much. Best Regards, Herman > -Original Message- > From: Morris, Patrick [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 23, 2007 1:33 PM > To: Herman (ISTD); Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Several map views of Nagios > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Herman (ISTD) > > Sent: Monday, January 22, 2007 9:13 PM > > To: Nagios-Users (E-mail) > > Subject: [Nagios-users] Several map views of Nagios > > > > Is it possible for Nagios to do several map views ? > > Sure. Take a look at the map page, and you'll see boxes to show or hide > all the hostgroups you've set up. - 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.php&p=sourceforge&CID=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