From dcorbin at machturtle.com Sat Feb 1 01:01:31 2003 From: dcorbin at machturtle.com (David Corbin) Date: Fri, 31 Jan 2003 19:01:31 -0500 Subject: Alternative notifications References: <74D428BDBFD5D04CB54E84499ECA29DB014E13D8@PKDWB03C.ad.sprint.com> Message-ID: <3E3B0E5B.3070105@machturtle.com> Carroll, Jim P [Contractor] wrote: >I just realized something. > >If you have no Internet connection, how do you plan to make any sort of >Yahoo Messenger solution work? > > I'm talking about notification under two different conditions.... >jc > > > >>-----Original Message----- >>From: David Corbin [mailto:dcorbin at machturtle.com] >>Sent: Friday, January 31, 2003 6:30 AM >>To: Nagios Users >>Subject: [Nagios-users] Alternative notifications >> >> >>Is there a free package out there that I can use to send a Yahoo IM >>message from the command line? >> >>How about some way to send an SMS to a Cingular phone, without an >>internet connection? >> >>David >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From marek.dohojda at linksys.com Sat Feb 1 01:22:10 2003 From: marek.dohojda at linksys.com (Marek Dohojda) Date: Fri, 31 Jan 2003 16:22:10 -0800 Subject: Notifications question Message-ID: Hello everyone First of all, I am terribly sorry if this has been asked before. I looked through the archive and couldn't find the answer I was looking for. I of course read the TFM and read the FAQ. Which is not to say I am not just deaf/blind/stupid (hey it's Friday). That said. Nagios works great for me for everything except for one detail. It seems to only want to notified based on the hostgroup and not services or even escelations. That is to say if a server is a member of a hostgroup, but I am calling a service to another contactgroup. The only people who get the notifications are the people who belong to the hostgroup definition.... I can't seem to make service contact get anything. Hope I am clear. Thank you all! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Sat Feb 1 01:38:40 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 31 Jan 2003 19:38:40 -0500 Subject: Stange problem checking https In-Reply-To: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> References: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> Message-ID: <1044059919.7130.360.camel@localhost.localdomain> On Fri, 2003-01-31 at 13:59, DM wrote: > > Following Subhendu's suggestion, I've installed the latest check_http > plugin, > but unfortunately, Nagios is still issuing a "warning" status for a > seemingly fine > reponse from the web server. > > check_http (nagios-plugins 1.3.0-beta2) 1.12 CVS is at 1.19. One recent change to https section could be relevent - we used to send an extra CRLF. Any way you could send me an unscrubbed hostname etc so I could try and help pinpoint the problem, -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vabiro at yahoo.com Sat Feb 1 06:47:05 2003 From: vabiro at yahoo.com (Victor Biro) Date: Fri, 31 Jan 2003 21:47:05 -0800 (PST) Subject: Empty Directories after "make install" Message-ID: <20030201054705.91394.qmail@web11508.mail.yahoo.com> Hi, I have just attempted to compile and install Nagios on my recent installation of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs or list archives. To configure I run the command: ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios The first line is a warning configure: warning: /usr/local/nagios: invalid host type everything else 'seems' to go ok. However after the various make install* commands nothing seems to have been coppied to the /usr/local/nagios directory. I have done a chmod 777 for the /usr/local/nagios directory, just to see if it would make any difference. No good either. Any thoughts on what could be happening? Thanks in advance, Victor ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From adam at consulteaze.com Sat Feb 1 08:24:06 2003 From: adam at consulteaze.com (Adam Krause) Date: Fri, 31 Jan 2003 23:24:06 -0800 Subject: check_command parameters defined Message-ID: <000001c2c9c2$e87c3dd0$6401a8c0@b4i1> Can someone point me to a resource that defines Service and Host check_command parameters? I must be missing this in the documentation somewhere. Thanks, Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcorbin at machturtle.com Sat Feb 1 13:31:07 2003 From: dcorbin at machturtle.com (David Corbin) Date: Sat, 01 Feb 2003 07:31:07 -0500 Subject: Alternative notifications References: <74D428BDBFD5D04CB54E84499ECA29DB014E13D6@PKDWB03C.ad.sprint.com> Message-ID: <3E3BBE0B.3080709@machturtle.com> Carroll, Jim P [Contractor] wrote: >Check out Jabber and/or do a search for Yahoo on sourceforge.net. > > I have done as you suggested, but as near as I can tell, none of the existing clients are command line based. I guess I'll have to roll my own. >jc > > > >>-----Original Message----- >>From: David Corbin [mailto:dcorbin at machturtle.com] >>Sent: Friday, January 31, 2003 6:30 AM >>To: Nagios Users >>Subject: [Nagios-users] Alternative notifications >> >> >>Is there a free package out there that I can use to send a Yahoo IM >>message from the command line? >> >>How about some way to send an SMS to a Cingular phone, without an >>internet connection? >> >>David >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From RTorres at fie.uclv.edu.cu Sat Feb 1 23:07:33 2003 From: RTorres at fie.uclv.edu.cu (Ramon Torres Rojas) Date: Sat, 1 Feb 2003 17:07:33 -0500 Subject: Object no found! nagios Message-ID: <60C9615896E6674C97B982847785E39B08C677@volt.fie.uclv.edu.cu> Tengo problemas con nagios ya lo instale y lo configure... tambien el servicio esta arrancado y corriendo... abre la pagina de inicio y la de documentaci?n pero no abre ningun .cgi, es decir no abre ninguna otra pagina ... me parece que tiene que ver con el apache pero no estoy seguro... y he intentado varias cosas pero nada Cuando intento abrir una p?gina de configuraci?n u otra cualquiera el internet explorer me dice que esa pagina no esta en el servidor Que puede ser esto Saludos Ramon Torres PD: Me pueden escribir en ingles sin problemas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios.dm at wrhambrecht.com Sun Feb 2 02:09:16 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Sat, 1 Feb 2003 17:09:16 -0800 Subject: Stange problem checking https Message-ID: <000801c2ca57$b5098260$bb20a8c0@corp.wrhambrecht.com> Hi Karl, Unfortunately the app in question is on an intranet and not publicly available. With your direction, I'll be happy to perform additional diagnostics and send you the output. Also, please note that we are running check_http using the SSL option against many other servers and there are no problems. Could it be the fact that the "problem" server is responding to Nagios with HTTP v.1.0 as opposed to 1.1 like all the other servers? David -----Original Message----- From: Karl DeBisschop [mailto:karl at debisschop.net] Sent: Friday, January 31, 2003 4:39 PM To: DM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Stange problem checking https On Fri, 2003-01-31 at 13:59, DM wrote: > > Following Subhendu's suggestion, I've installed the latest check_http > plugin, > but unfortunately, Nagios is still issuing a "warning" status for a > seemingly fine > reponse from the web server. > > check_http (nagios-plugins 1.3.0-beta2) 1.12 CVS is at 1.19. One recent change to https section could be relevent - we used to send an extra CRLF. Any way you could send me an unscrubbed hostname etc so I could try and help pinpoint the problem, -- Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at debisschop.net Sun Feb 2 19:22:43 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 02 Feb 2003 13:22:43 -0500 Subject: Stange problem checking https In-Reply-To: <000801c2ca57$b5098260$bb20a8c0@corp.wrhambrecht.com> References: <000801c2ca57$b5098260$bb20a8c0@corp.wrhambrecht.com> Message-ID: <1044210163.9808.9.camel@localhost.localdomain> On Sat, 2003-02-01 at 20:09, DM wrote: > Hi Karl, > > Unfortunately the app in question is on an intranet and not publicly > available. > > With your direction, I'll be happy to perform additional diagnostics > and send you the output. I was hoping to save you the compile etc. But, alas, I cannot. My first step would be to download the current CVS tree, build the plugins, and try that. As I had noted, the http plugin has been revised several times, and some possibly relevent code was fixed. > Also, please note that we are running check_http using the SSL option > against many other > servers and there are no problems. > > Could it be the fact that the "problem" server is responding to Nagios > with HTTP v.1.0 as > opposed to 1.1 like all the other servers? I don't like to rule things out. And I won't. But I cannot see how that would impact the plugin. I will look, however. Meanwhile, I await your report against CVS. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Sun Feb 2 22:15:04 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Sun, 02 Feb 2003 16:15:04 -0500 Subject: "No lock file found" and SIGSEGV Message-ID: Nagios 1.0 starting... (PID=1467) Finished daemonizing... (New PID=1468) Caught SIGSEGV, shutting down... That's all I get from the log. On the console it just says "no lock file found in /usr/local/nagios/var/nagios.lock" and then quits. Any ideas? This is a VERY simple configuration I've got going here, just three hosts and one check_ping on each. Just about everything is commented out. Help? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ahead at wacoisd.org Mon Feb 3 03:57:49 2003 From: ahead at wacoisd.org (Andrew Head) Date: Sun, 02 Feb 2003 20:57:49 -0600 Subject: 3D WRL Message-ID: In the screenshots on the Nagios website, there is a picture where none of the 3D icons on the 3D Status Map are green. How does one make the green glow disappear from the map? Andrew Head Network Engineer Waco ISD ahead at wacoisd.org (254)755-9434 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Marian.ZUREK at cern.ch Mon Feb 3 09:29:22 2003 From: Marian.ZUREK at cern.ch (Marian Zurek) Date: Mon, 03 Feb 2003 09:29:22 +0100 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> Message-ID: <3E3E2862.7050007@cern.ch> An HTML attachment was scrubbed... URL: From Marian.ZUREK at cern.ch Mon Feb 3 10:04:21 2003 From: Marian.ZUREK at cern.ch (Marian Zurek) Date: Mon, 03 Feb 2003 10:04:21 +0100 Subject: Semi static information presentation/logging References: Message-ID: <3E3E3095.2050602@cern.ch> An HTML attachment was scrubbed... URL: From wojnicki at asw.waw.pl Mon Feb 3 11:22:28 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Mon, 03 Feb 2003 11:22:28 +0100 Subject: check_nt plugin Message-ID: <5.1.1.2.0.20030203111252.02572ec0@192.168.0.2> Here's my problem: I downloaded and installed nsclient for NT Copied the "check_nt" plugin to the libexec directory Added the necessary lines to "commands.cfg" and "services.cfg" to monitor the cpu load on my 2k server - nagios starts with no errors But when I lok at "service problems" in Nagios it shows: CRITICAL (Return code of 127 is out of bounds - plugin may be missing) It's probably something about downloading some kind of libraries and recompiling the plugins again - right? Pawel. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Mon Feb 3 12:57:08 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 3 Feb 2003 12:57:08 +0100 Subject: Hosts that have no services listed as pending Message-ID: Is it the 'expected behaviour', that hosts for which no services have been defined are never 'checked'? Within the 'Host Detail' option, service-less hosts show up as PENDING. As far as possible, I've tried to compare my settings to square-box.com's demo. They seem adding another service check to 'routers' besides the check-host-alive. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.albrizio at init.it Mon Feb 3 13:16:48 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Mon, 3 Feb 2003 13:16:48 +0100 Subject: Hosts that have no services listed as pending References: Message-ID: <008c01c2cb7e$2018a8c0$3302a8c0@init.it> Hosts that have no services listed as pendingI have the same problem but I cannot fix it without using services. There seems no way out :-( F. ----- Original Message ----- From: Brendon Caligari To: nagios-users at lists.sourceforge.net Sent: Monday, February 03, 2003 12:57 PM Subject: [Nagios-users] Hosts that have no services listed as pending Is it the 'expected behaviour', that hosts for which no services have been defined are never 'checked'? Within the 'Host Detail' option, service-less hosts show up as PENDING. As far as possible, I've tried to compare my settings to square-box.com's demo. They seem adding another service check to 'routers' besides the check-host-alive. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lou at ece.cmu.edu Mon Feb 3 13:46:31 2003 From: lou at ece.cmu.edu (Lou Anschuetz) Date: Mon, 03 Feb 2003 07:46:31 -0500 Subject: maximum site size Message-ID: <229170019.1044258391@beeblebrox.ece.cmu.edu> A general word of appreciation first. I'm running this from a Sun and testing many different functions and all work well. Nice job! Two quick questions: 1) My site will eventually be up to about 1100 hosts using various plugin tests. Is anyone else running anything near to that size? If so, what is the cycle run time? Some of my system administrators believe it will fall over and/or take days. I'm not convinced that this is the case :) 2) On several of the services I have full notification enabled on both mail and epager. The contacts get paged on outages and e-mail on recoveries (not both on both as configured). I'm open to theories as to what my error is. Lou Anschuetz, lou at ece.cmu.edu Network Manager, ECE Department, CMU 412-512-6052 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Mon Feb 3 13:48:48 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 3 Feb 2003 13:48:48 +0100 Subject: Hosts that have no services listed as pending In-Reply-To: ; from brendon@iwg.info on Mon, Feb 03, 2003 at 12:57:08PM +0100 References: Message-ID: <20030203134848.B3235@hpce.nec.com> On Mon, Feb 03, 2003 at 12:57:08PM +0100, Brendon Caligari wrote: > > Is it the 'expected behaviour', that hosts for which no services have > been defined are never 'checked'? Yes. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bas.vanderveen at kahuna.nl Mon Feb 3 14:46:45 2003 From: bas.vanderveen at kahuna.nl (Bas van der Veen) Date: Mon, 3 Feb 2003 14:46:45 +0100 Subject: Host dependency puzzle Message-ID: Hi, I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). However, I have a small qustion regarding host dependencies: Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: define hostdependency{ host_name Host1 dependent_host_name Host2 notification_failure_criteria d } When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. I'm quite clueless here, any help wouldy (ofcourse) be appreciated. Bas van der Veen Sysadmin Kahuna Group ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Mon Feb 3 14:36:32 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 3 Feb 2003 14:36:32 +0100 Subject: Images - cgi.cfg - nothing shows up Message-ID: In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; .in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon -------------- next part -------------- An HTML attachment was scrubbed... URL: From benny at bennyvision.com Mon Feb 3 15:31:39 2003 From: benny at bennyvision.com (C. Bensend) Date: Mon, 3 Feb 2003 08:31:39 -0600 Subject: Host dependency puzzle In-Reply-To: ; from bas.vanderveen@kahuna.nl on Mon, Feb 03, 2003 at 02:46:45PM +0100 References: Message-ID: <20030203083139.A4044@bennyvision.com> On Mon, Feb 03, 2003 at 02:46:45PM +0100, Bas van der Veen wrote: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: I think what you're looking for is the 'parents' directive in the hosts config file. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host Benny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Discharge of a nuclear weapon shall be deemed a warlike act, even if accidental." -- My homeowners insurance policy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Mon Feb 3 15:31:52 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Mon, 03 Feb 2003 14:31:52 +0000 Subject: Five Subdirectories problem..only Four? Message-ID: Hi, I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 The configuration script ran fine..and i did make all, make install, make install-init and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios why? can anyone help ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 3 15:50:03 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 03 Feb 2003 15:50:03 +0100 Subject: Five Subdirectories problem..only Four? References: Message-ID: <3E3E819B.F0DA01D2@gcc.dhl.com> rtfm... http://www.nagios.org/faqs/viewfaq.php?faq_id=49&expand=false&showdesc=true Raj Mudhar wrote: > > Hi, > > I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 > > The configuration script ran fine..and i did make all, make install, make install-init > > and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? > > i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios > > why? can anyone help > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Mon Feb 3 15:51:21 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 3 Feb 2003 15:51:21 +0100 Subject: Five Subdirectories problem..only Four? Message-ID: Same happened to me until I noticed the notice given at the end of the configure script :( make all - Build the application make install - This installs the main program, CGIs, and HTML files make install-init - This installs the init script in /etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs *SAMPLE* config files in /usr/local/nagios/etc You'll have to modify these sample files before you can use Nagios. Read the HTML documentation for more info on doing this. Pay particular attention to the docs on object configuration files, as they determine what/how things get monitored! B -----Original Message----- From: Raj Mudhar [mailto:Raj.Mudhar at nottingham.ac.uk] Sent: 03 February 2003 15:32 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Five Subdirectories problem..only Four? Hi, I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 The configuration script ran fine..and i did make all, make install, make install-init and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios why? can anyone help ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From chrisd at better-investing.org Mon Feb 3 15:43:25 2003 From: chrisd at better-investing.org (Chris Ditri) Date: Mon, 3 Feb 2003 09:43:25 -0500 Subject: Passive Service Checks and 127 Message-ID: <200302030943.25612.chrisd@better-investing.org> Hello everyone. This one is weird. I am monitoring a cluster of co-located servers from our place of work. We have to go through two firewalls to do this, so I decided to use passive service checks. Most of the time, Nagios is working great -- but every once in a while, (about once or twice a day) we get an error stating this: (Return code of 127 is out of bounds - plugin may be missing). I have seven machines I am monitoring with passive service checks, with an average of about eight processes. The problem does not appear to be plugin-related, as this error does not seem to favor any one machine or service in the cluster. I have each machine send out results on these checks every 5 minutes or so (each one staggered, to help ensure they don't all come in at once). I have freshness_check_interval set to 665 -- a litte over 11 minutes. Now, if checks come in every 5 minutes, and checks do not go stale for 11 minutes, theoretically I should never get this error (unless there is actually a problem). At first, I thought it might be because I was using a beta version of nagios, but when 1.0 came out, I updated it and the problem still occurs. Then I thought it might be the hub the nagios server was attached to, so we bought a new switch. This, of course, did not help either. I decided to log the output from nsca and it says that each check was sent successfully. This makes no sense to me. Prior to switching to Nagios, I used Netsaint with npre and nsca to acheive the same results and never had these problems -- and I had set my freshness checking interval to an even tighter window -- 7 minutes. Can anyone tell me what is going on here? Thank you! Chris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 3 15:52:17 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 03 Feb 2003 15:52:17 +0100 Subject: Host dependency puzzle References: Message-ID: <3E3E8221.512C6F93@gcc.dhl.com> Dear, What you are looking for is parent/child host relationships in your host definitions, not host dependencies. "parents: This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host's "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored." Bas van der Veen wrote: > > Hi, > > I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). > However, I have a small qustion regarding host dependencies: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: > > define hostdependency{ > host_name Host1 > dependent_host_name Host2 > notification_failure_criteria d } > When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. > I'm quite clueless here, any help wouldy (ofcourse) be appreciated. > Bas van der Veen > Sysadmin Kahuna Group > > ****************************************************************** > This footnote also confirms that this email message has > been swept by MIMEsweeper for the presence of > computer viruses. > ****************************************************************** > http://www.kahuna.nl > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Aleksey at loehmanns.com Mon Feb 3 15:52:57 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Mon, 3 Feb 2003 09:52:57 -0500 Subject: Images - cgi.cfg - nothing shows up Message-ID: <87273DB23407D511B8900008C7FA923301405D6B@EXCHANGE> Hi All I'm experiencing same problems I have nagios Version 1.0b6 installed from RPMs ON RH7.3 Thank You -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: Monday, February 03, 2003 8:37 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Nilsen at roxar.com Mon Feb 3 15:58:23 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 3 Feb 2003 15:58:23 +0100 Subject: 3D Map - fails Message-ID: Are there any special requirements for the 3D Status map to work? Trying to get it to work has so far only lead to a download window, which reports that the file cannot be downloaded. (Using IE). The demo site of Nagios works fine, so the browser plug-in works as expected. I haven't defined any 2d/3d coordinates in the extended host file, as I understood from the documentation that Nagios would be able to generate these on the fly. Any help appreciated... Regards, Thomas Nilsen DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Aleksey at loehmanns.com Mon Feb 3 15:48:29 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Mon, 3 Feb 2003 09:48:29 -0500 Subject: check_nt plugin Message-ID: <87273DB23407D511B8900008C7FA923301405D6A@EXCHANGE> I would start with permissions. Had same problem when rebuild/moved nagios to more powerful server Regards -----Original Message----- From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] Sent: Monday, February 03, 2003 5:22 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt plugin Here's my problem: I downloaded and installed nsclient for NT Copied the "check_nt" plugin to the libexec directory Added the necessary lines to "commands.cfg" and "services.cfg" to monitor the cpu load on my 2k server - nagios starts with no errors But when I lok at "service problems" in Nagios it shows: CRITICAL (Return code of 127 is out of bounds - plugin may be missing) It's probably something about downloading some kind of libraries and recompiling the plugins again - right? Pawel. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Donal.Hunt+nagios-users at dcu.ie Mon Feb 3 16:13:09 2003 From: Donal.Hunt+nagios-users at dcu.ie (Donal Hunt) Date: Mon, 03 Feb 2003 15:13:09 +0000 Subject: Host dependency puzzle References: Message-ID: <3E3E8705.A67C86E4@dcu.ie> Bas, You need to define a "parents" in hosts.cfg for the specific host. See the host info webpage for more information. Regards Donal DCU Bas van der Veen wrote: > > Hi, > > I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). > However, I have a small qustion regarding host dependencies: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: > > define hostdependency{ > host_name Host1 > dependent_host_name Host2 > notification_failure_criteria d } > When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. > I'm quite clueless here, any help wouldy (ofcourse) be appreciated. > Bas van der Veen > Sysadmin Kahuna Group > > ****************************************************************** > This footnote also confirms that this email message has > been swept by MIMEsweeper for the presence of > computer viruses. > ****************************************************************** > http://www.kahuna.nl > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 3 16:14:15 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 03 Feb 2003 16:14:15 +0100 Subject: [Fwd: Five Subdirectories problem..only Four?] Message-ID: <3E3E8747.2462B157@gcc.dhl.com> This is indeed a valid remark. It is not mentioned at http://nagios.sourceforge.net/docs/1_0/installing.html, but at http://nagios.sourceforge.net/docs/1_0/config.html. Ethan, could you add it there, as it is confusing. Following the steps described at http://nagios.sourceforge.net/docs/1_0/installing.html does not give you five subdirs as mentioned on that page: "You should see five different subdirectories". -------------- next part -------------- An embedded message was scrubbed... From: "Raj Mudhar" Subject: Re: [Nagios-users] Five Subdirectories problem..only Four? Date: Mon, 03 Feb 2003 15:08:49 +0000 Size: 2923 URL: From stevelml1 at scee.sony.co.uk Mon Feb 3 16:12:45 2003 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Mon, 3 Feb 2003 15:12:45 -0000 Subject: Five Subdirectories problem..only Four? References: Message-ID: <021101c2cb96$b4692dc0$f5c8dfc2@niltxp> *cough* make install-config Steve ----- Original Message ----- From: "Raj Mudhar" To: Sent: Monday, February 03, 2003 2:31 PM Subject: [Nagios-users] Five Subdirectories problem..only Four? > Hi, > > I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 > > The configuration script ran fine..and i did make all, make install, make install-init > > and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? > > i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios > > why? can anyone help > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bas.vanderveen at kahuna.nl Mon Feb 3 16:25:48 2003 From: bas.vanderveen at kahuna.nl (Bas van der Veen) Date: Mon, 3 Feb 2003 16:25:48 +0100 Subject: Host dependency puzzle Message-ID: Thank you all! 'parents' directive works like a charme, just a matter of RTFM. Thought that was just what I did ;), apparently not. Bas -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: maandag 3 februari 2003 15:52 To: Bas van der Veen Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host dependency puzzle Dear, What you are looking for is parent/child host relationships in your host definitions, not host dependencies. "parents: This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host's "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored." Bas van der Veen wrote: > > Hi, > > I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). > However, I have a small qustion regarding host dependencies: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: > > define hostdependency{ > host_name Host1 > dependent_host_name Host2 > notification_failure_criteria d } > When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. > I'm quite clueless here, any help wouldy (ofcourse) be appreciated. > Bas van der Veen > Sysadmin Kahuna Group > > ****************************************************************** > This footnote also confirms that this email message has > been swept by MIMEsweeper for the presence of > computer viruses. > ****************************************************************** > http://www.kahuna.nl > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Mon Feb 3 16:38:58 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 3 Feb 2003 09:38:58 -0600 Subject: Cingular + TAP Message-ID: The phone number I use in the Oklahoma City area is: (800) 909-4602. Greg > -----Original Message----- > From: David Corbin [mailto:dcorbin at machturtle.com] > Sent: Friday, January 31, 2003 6:04 PM > To: Potter, G M (Greg) > Subject: Re: [Nagios-users] Alternative notifications > > > Potter, G M (Greg) wrote: > > >I send text pages to my Cingular telephone using qpage > >http://www.qpage.org/and a modem attached to the Nagios > >box. Works great on Cingular, can't send to AT&T > >wireless though. > > > > > > Do you have a phone number for Cingular + TAP? > > >Greg > > > > > > > >>-----Original Message----- > >>From: David Corbin [mailto:dcorbin at machturtle.com] > >>Sent: Friday, January 31, 2003 6:30 AM > >>To: Nagios Users > >>Subject: [Nagios-users] Alternative notifications > >> > >> > >>Is there a free package out there that I can use to send a Yahoo IM > >>message from the command line? > >> > >>How about some way to send an SMS to a Cingular phone, without an > >>internet connection? > >> > >>David > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> > > > > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bas.vanderveen at kahuna.nl Mon Feb 3 16:51:55 2003 From: bas.vanderveen at kahuna.nl (Bas van der Veen) Date: Mon, 3 Feb 2003 16:51:55 +0100 Subject: Images - cgi.cfg - nothing shows up Message-ID: Hi, See http://nagios.sourceforge.net/docs/1_0/xeddefault.html The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos). Looks like the image *has* to be converted to gd2 format... Bas -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: maandag 3 februari 2003 14:37 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aleksey at loehmanns.com Mon Feb 3 17:32:48 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Mon, 3 Feb 2003 11:32:48 -0500 Subject: Images - cgi.cfg - nothing shows up Message-ID: <87273DB23407D511B8900008C7FA923301405D6D@EXCHANGE> Bas, I have following entry in cgi.cfg hostextinfo[STS]=;aix.png;aix.png;aix.gd2;AIX STS Server;;; images are viewable via http using direct URL still no show in nagios status pages. Regards -----Original Message----- From: Bas van der Veen [mailto:bas.vanderveen at kahuna.nl] Sent: Monday, February 03, 2003 10:52 AM To: Brendon Caligari; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up Hi, See http://nagios.sourceforge.net/docs/1_0/xeddefault.html The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos). Looks like the image *has* to be converted to gd2 format... Bas -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: maandag 3 februari 2003 14:37 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Mon Feb 3 17:39:04 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 03 Feb 2003 11:39:04 -0500 (EST) Subject: Empty Directories after "make install" In-Reply-To: <20030201054705.91394.qmail@web11508.mail.yahoo.com> References: <20030201054705.91394.qmail@web11508.mail.yahoo.com> Message-ID: On Fri, 31 Jan 2003, Victor Biro wrote: > Hi, > > I have just attempted to compile and install Nagios on my recent installation > of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs or > list archives. > > To configure I run the command: > ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > > The first line is a warning > configure: warning: /usr/local/nagios: invalid host type > > everything else 'seems' to go ok. > > However after the various make install* commands nothing seems to have been > coppied to the /usr/local/nagios directory. > > I have done a chmod 777 for the /usr/local/nagios directory, just to see if it > would make any difference. No good either. > > Any thoughts on what could be happening? > > Thanks in advance, > Victor you cannot put a space between "prefic=" and the path. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 17:22:08 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 10:22:08 -0600 Subject: Alternative notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13EA@PKDWB03C.ad.sprint.com> Hmm. I was looking for Yahoo clients for Linux a few months back, and seem to recall one which was Perl-based. *shrug* jc > -----Original Message----- > From: David Corbin [mailto:dcorbin at machturtle.com] > Sent: Saturday, February 01, 2003 6:31 AM > To: Carroll, Jim P [Contractor] > Cc: Nagios Users > Subject: Re: [Nagios-users] Alternative notifications > > > Carroll, Jim P [Contractor] wrote: > > >Check out Jabber and/or do a search for Yahoo on sourceforge.net. > > > > > I have done as you suggested, but as near as I can tell, none of the > existing clients are command line based. I guess I'll have > to roll my > own. > > >jc > > > > > > > >>-----Original Message----- > >>From: David Corbin [mailto:dcorbin at machturtle.com] > >>Sent: Friday, January 31, 2003 6:30 AM > >>To: Nagios Users > >>Subject: [Nagios-users] Alternative notifications > >> > >> > >>Is there a free package out there that I can use to send a Yahoo IM > >>message from the command line? > >> > >>How about some way to send an SMS to a Cingular phone, without an > >>internet connection? > >> > >>David > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> > >> > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Mon Feb 3 17:48:04 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 3 Feb 2003 11:48:04 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: <5593DA408212D511B0910002A513501F01D288D5@phsexch20.mgh.harvard.edu> Cliff, Subhendu I installed and configured the check_flexlm script that you had sent. Thanks by the way. The error message I am encountering is Return Code of 99 is out of bounds. Any ideas? -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, February 03, 2003 10:26 AM To: Rice, Clifford E. Cc: Kaplan, Andrew H. Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) Cliff The logic is the same from the script that you submitted. I moved a couple of vars around, updated for ePN, and got the setting for lmstat from the initial configure process. Also the oputput now prints the list of servers up and down. Going over the script reminded me that it doesn't check for vendor daemon status, just flexlm. Perhaps we can tackle this after 1.3 is released. -sg On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > Subhendu,Andrew, > It appears something strange happened to the check_flexlm.pl script in that this does not > match the one I submitted. I've attached the one I have in this email. Andrew, have a look at > the attached perl script in vi and make sure it has none of those ^M's since I have to use > M$ LookOut at work. Next you'll have to modify the line (most likely line 75) and set the > path to point to where your lmstat executable is. The original check_flexlm didn't have the > lmstat path as an argument so hand editing is needed to get that path right. The script uses the > output of lmstat as per the comments in the script. > > HTH > > ---Cliff > > > Linux -- The Choice of the GNU Generation > http://www.debian.org > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Sunday, February 02, 2003 10:22 PM > To: Kaplan, Andrew H. > Cc: cptmellow at users.sourceforge.net > Subject: Re: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > In the nrpe.cfg you are missing the "-F /path/to/license.dat" for > check_flexlm. > > Remember nrpe cannot pass arguments (unless you are using the latest CVS). > > Attached is a new version of check_flexlm.pl > (replace existing and run make) > > If possible can you test it against a redundant flexlm setup and one > where a license server is down? > > I only have non-admin access to a single server setup at the moment. > > If this is working, I'll add it to CVS. > > -sg > > > On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > > > Sg, > > > > I am including the utils.pm, check_flexlm, and nrpe.cfg files for your perusal. > > > > I am not having any luck, getting the check_flexlm plug-in to work. > > > > Thanks in advance for the help... > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Wednesday, January 29, 2003 8:48 AM > > To: '' > > Cc: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Hi Sg, > > > > I ran the command ./check_flexlm -F=/exports/apps/matlab/etc/lmstat and got the > > following results: > > > > 1. A series of lines that read USE OF UNINITIALIZED VALUE IN CONCATENATION (.) > > OR STRING AT ./CHECK_FLEXLM LINE 87, LINE 12. > > 2. These were followed by the line LICENSE SERVER NOT RUNNING > > > > I ran the lmstat command itself and it confirmed the license was up an running. > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Tuesday, January 28, 2003 11:42 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Can you run it on the cmdline on the nrpe server? > > > > Is the error from the plugin or via check_nrpe? > > > > -sg > > > > > > On Tue, 28 Jan 2003, Kaplan, Andrew H. wrote: > > > > > Hi Sg, > > > > > > I configured the utils.pm file to reflect the correct path to lmstat. The > > > use lib > > > statement in the check_flexlm plugin included the libexec directory where > > > utils.pm > > > is located. I stopped and restarted the nrpe client on the server. > > > > > > The error message I am getting is RETURN CODE OF 112 IS OUT OF BOUNDS. > > > > > > Your thoughts? > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Saturday, January 25, 2003 12:15 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > > > > > > > ---------- Forwarded message ---------- > > > Date: Sat, 25 Jan 2003 00:12:16 -0500 (EST) > > > From: Subhendu Ghosh > > > To: "Kaplan, Andrew H." > > > Cc: nagios-user at lists.sf.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm > > > > > > the server and the license.dat need to exist on the server that the plugin > > > is running on. If you are using nrpe - install the plugin on the flexlm > > > server and make sure the path to lmstat is correct. - note the path is set > > > in "utils.pm" and not the plugin itself. so utils.pm needs to present and > > > the "use lib" statement in the plugin must include the directory where > > > "utils.pm" is copied. > > > > > > -sg > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > If I understand you correctly, I have to install the flexlm license server > > > and > > > > its > > > > associated license.dat file on the nagios server even though the "real" > > > server > > > > is > > > > on the client running the nrpe program? > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Friday, January 24, 2003 4:43 PM > > > > To: Kaplan, Andrew H. > > > > Cc: Nagios-Users (E-mail) > > > > Subject: Re: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > > > > > > > > > When you run "configure", it searches for the "lmstat" program from > > > > GlobeTrotter and configures the path to the exec. > > > > > > > > So even if flexlm is not running on the nagios server, you need to intall > > > > the flexlm utilities like lmstat and the appropriate flexlm config file. > > > > > > > > -sg > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Kaplan, Andrew H. > > > > > > Sent: Friday, January 24, 2003 9:35 AM > > > > > > To: Nagios-Users (E-mail) > > > > > > Subject: Correct Syntax for check_flexlm > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > I want to monitor the flexlm server on a Linux box. I am currently > > > receiving > > > > > > the error message: > > > > > > > > > > > > cannot find "lmstat" > > > > > > > > > > > > Here is what I have so far: > > > > > > > > > > > > Nagios server: > > > > > > > > > > > > check_commands.cfg: > > > > > > > > > > > > # 'check_flexlm' command definition > > > > > > define command{ > > > > > > command_name check_flexlm > > > > > > command_line $USER1$/check_flexlm -F > > $FILENAME$ > > > > > > } > > > > > > > > > > > > services.cfg: > > > > > > > > > > > > check_command check_nrpe!check_flexlm > > > > > > > > > > > > Nagios client machine: > > > > > > > > > > > > nrpe.cfg: > > > > > > > > > > > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > > > > > > /exports/apps/matlab/etc/lmstat > > > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Mon Feb 3 17:58:14 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 3 Feb 2003 11:58:14 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> Subhendu, What version of Flexlm is this script written for? The version that is currently being used on the license server is 8.0. -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, February 03, 2003 10:26 AM To: Rice, Clifford E. Cc: Kaplan, Andrew H. Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) Cliff The logic is the same from the script that you submitted. I moved a couple of vars around, updated for ePN, and got the setting for lmstat from the initial configure process. Also the oputput now prints the list of servers up and down. Going over the script reminded me that it doesn't check for vendor daemon status, just flexlm. Perhaps we can tackle this after 1.3 is released. -sg On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > Subhendu,Andrew, > It appears something strange happened to the check_flexlm.pl script in that this does not > match the one I submitted. I've attached the one I have in this email. Andrew, have a look at > the attached perl script in vi and make sure it has none of those ^M's since I have to use > M$ LookOut at work. Next you'll have to modify the line (most likely line 75) and set the > path to point to where your lmstat executable is. The original check_flexlm didn't have the > lmstat path as an argument so hand editing is needed to get that path right. The script uses the > output of lmstat as per the comments in the script. > > HTH > > ---Cliff > > > Linux -- The Choice of the GNU Generation > http://www.debian.org > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Sunday, February 02, 2003 10:22 PM > To: Kaplan, Andrew H. > Cc: cptmellow at users.sourceforge.net > Subject: Re: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > In the nrpe.cfg you are missing the "-F /path/to/license.dat" for > check_flexlm. > > Remember nrpe cannot pass arguments (unless you are using the latest CVS). > > Attached is a new version of check_flexlm.pl > (replace existing and run make) > > If possible can you test it against a redundant flexlm setup and one > where a license server is down? > > I only have non-admin access to a single server setup at the moment. > > If this is working, I'll add it to CVS. > > -sg > > > On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > > > Sg, > > > > I am including the utils.pm, check_flexlm, and nrpe.cfg files for your perusal. > > > > I am not having any luck, getting the check_flexlm plug-in to work. > > > > Thanks in advance for the help... > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Wednesday, January 29, 2003 8:48 AM > > To: '' > > Cc: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Hi Sg, > > > > I ran the command ./check_flexlm -F=/exports/apps/matlab/etc/lmstat and got the > > following results: > > > > 1. A series of lines that read USE OF UNINITIALIZED VALUE IN CONCATENATION (.) > > OR STRING AT ./CHECK_FLEXLM LINE 87, LINE 12. > > 2. These were followed by the line LICENSE SERVER NOT RUNNING > > > > I ran the lmstat command itself and it confirmed the license was up an running. > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Tuesday, January 28, 2003 11:42 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Can you run it on the cmdline on the nrpe server? > > > > Is the error from the plugin or via check_nrpe? > > > > -sg > > > > > > On Tue, 28 Jan 2003, Kaplan, Andrew H. wrote: > > > > > Hi Sg, > > > > > > I configured the utils.pm file to reflect the correct path to lmstat. The > > > use lib > > > statement in the check_flexlm plugin included the libexec directory where > > > utils.pm > > > is located. I stopped and restarted the nrpe client on the server. > > > > > > The error message I am getting is RETURN CODE OF 112 IS OUT OF BOUNDS. > > > > > > Your thoughts? > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Saturday, January 25, 2003 12:15 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > > > > > > > ---------- Forwarded message ---------- > > > Date: Sat, 25 Jan 2003 00:12:16 -0500 (EST) > > > From: Subhendu Ghosh > > > To: "Kaplan, Andrew H." > > > Cc: nagios-user at lists.sf.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm > > > > > > the server and the license.dat need to exist on the server that the plugin > > > is running on. If you are using nrpe - install the plugin on the flexlm > > > server and make sure the path to lmstat is correct. - note the path is set > > > in "utils.pm" and not the plugin itself. so utils.pm needs to present and > > > the "use lib" statement in the plugin must include the directory where > > > "utils.pm" is copied. > > > > > > -sg > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > If I understand you correctly, I have to install the flexlm license server > > > and > > > > its > > > > associated license.dat file on the nagios server even though the "real" > > > server > > > > is > > > > on the client running the nrpe program? > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Friday, January 24, 2003 4:43 PM > > > > To: Kaplan, Andrew H. > > > > Cc: Nagios-Users (E-mail) > > > > Subject: Re: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > > > > > > > > > When you run "configure", it searches for the "lmstat" program from > > > > GlobeTrotter and configures the path to the exec. > > > > > > > > So even if flexlm is not running on the nagios server, you need to intall > > > > the flexlm utilities like lmstat and the appropriate flexlm config file. > > > > > > > > -sg > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Kaplan, Andrew H. > > > > > > Sent: Friday, January 24, 2003 9:35 AM > > > > > > To: Nagios-Users (E-mail) > > > > > > Subject: Correct Syntax for check_flexlm > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > I want to monitor the flexlm server on a Linux box. I am currently > > > receiving > > > > > > the error message: > > > > > > > > > > > > cannot find "lmstat" > > > > > > > > > > > > Here is what I have so far: > > > > > > > > > > > > Nagios server: > > > > > > > > > > > > check_commands.cfg: > > > > > > > > > > > > # 'check_flexlm' command definition > > > > > > define command{ > > > > > > command_name check_flexlm > > > > > > command_line $USER1$/check_flexlm -F > > $FILENAME$ > > > > > > } > > > > > > > > > > > > services.cfg: > > > > > > > > > > > > check_command check_nrpe!check_flexlm > > > > > > > > > > > > Nagios client machine: > > > > > > > > > > > > nrpe.cfg: > > > > > > > > > > > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > > > > > > /exports/apps/matlab/etc/lmstat > > > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Mon Feb 3 18:17:02 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Mon, 03 Feb 2003 18:17:02 +0100 Subject: passive checks Message-ID: <4e99d5d1bcff4ee9b30309b290a7ed13@atlas.cz> can someone help me with config passive checks? I have to use the Nagios Java System (no ssh and c compiler on monitored systems but java yes) and I don't understand where i have to place the config file. Can someone send me an example of all necessary config files and say where place them. If it is on mashine with Nagios or on mashine where the passive chechs are made. The second question is how are the passive checks invoked - the java client invokes all tests by some scheduler or I must place tests to the crontab and redirect the output of the job to the java client? ------ Zbynek Matousek ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sandromergvaz at uol.com.br Mon Feb 3 19:26:34 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Mon, 3 Feb 2003 15:26:34 -0300 Subject: RES: 3D Map - fails In-Reply-To: References: Message-ID: Have to download a VRML client. I use Cortona, from Parallel Graphics. http://www.parallelgraphics.com/products/cortona/download/ HTH, Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Thomas Nilsen Enviada em: segunda-feira, 3 de fevereiro de 2003 11:58 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] 3D Map - fails Are there any special requirements for the 3D Status map to work? Trying to get it to work has so far only lead to a download window, which reports that the file cannot be downloaded. (Using IE). The demo site of Nagios works fine, so the browser plug-in works as expected. I haven't defined any 2d/3d coordinates in the extended host file, as I understood from the documentation that Nagios would be able to generate these on the fly. Any help appreciated... Regards, Thomas Nilsen DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vabiro at yahoo.com Mon Feb 3 18:30:10 2003 From: vabiro at yahoo.com (Victor Biro) Date: Mon, 3 Feb 2003 09:30:10 -0800 (PST) Subject: Alternative notifications In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13EA@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13EA@PKDWB03C.ad.sprint.com> Message-ID: <20030203173010.41535.qmail@web11502.mail.yahoo.com> David, You might want to check out IMCom which seems to be a commandline Jabber client. The URL is http://www.jabberstudio.org/projects/IMCom/project/view.php Victor --- "Carroll, Jim P [Contractor]" wrote: > Hmm. I was looking for Yahoo clients for Linux a few months back, and seem > to recall one which was Perl-based. *shrug* > > jc > > > -----Original Message----- > > From: David Corbin [mailto:dcorbin at machturtle.com] > > Sent: Saturday, February 01, 2003 6:31 AM > > To: Carroll, Jim P [Contractor] > > Cc: Nagios Users > > Subject: Re: [Nagios-users] Alternative notifications > > > > > > Carroll, Jim P [Contractor] wrote: > > > > >Check out Jabber and/or do a search for Yahoo on sourceforge.net. > > > > > > > > I have done as you suggested, but as near as I can tell, none of the > > existing clients are command line based. I guess I'll have > > to roll my > > own. > > > > >jc > > > > > > > > > > > >>-----Original Message----- > > >>From: David Corbin [mailto:dcorbin at machturtle.com] > > >>Sent: Friday, January 31, 2003 6:30 AM > > >>To: Nagios Users > > >>Subject: [Nagios-users] Alternative notifications > > >> > > >> > > >>Is there a free package out there that I can use to send a Yahoo IM > > >>message from the command line? > > >> > > >>How about some way to send an SMS to a Cingular phone, without an > > >>internet connection? > > >> > > >>David > > >> > > >> > > >> > > >>------------------------------------------------------- > > >>This SF.NET email is sponsored by: > > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > >>http://www.vasoftware.com > > >>_______________________________________________ > > >>Nagios-users mailing list > > >>Nagios-users at lists.sourceforge.net > > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > > >> > > >> > > >> > > > > > > > > >------------------------------------------------------- > > >This SF.NET email is sponsored by: > > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > >http://www.vasoftware.com > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios.dm at wrhambrecht.com Mon Feb 3 18:43:43 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Mon, 3 Feb 2003 09:43:43 -0800 Subject: Stange problem checking https Message-ID: <000801c2cbab$cb898a30$bb20a8c0@corp.wrhambrecht.com> > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Sunday, February 02, 2003 10:23 AM > To: DM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > > On Sat, 2003-02-01 at 20:09, DM wrote: > > Hi Karl, > > > > Unfortunately the app in question is on an intranet and not publicly > > available. > > > > With your direction, I'll be happy to perform additional diagnostics > > and send you the output. > > I was hoping to save you the compile etc. But, alas, I cannot. > > My first step would be to download the current CVS tree, build the > plugins, and try that. As I had noted, the http plugin has > been revised > several times, and some possibly relevent code was fixed. OK, I downloaded the current CVS tree and built the plugins. Unfortunately, I think the new check_http module ((nagios-plugins 1.3.0-beta2) 1.19 )has a bug in it which prevents the SSL option from working at all: $ ./check_http -w 5 -c 10 www.verisign.com HTTP ok: HTTP/1.1 200 OK - 0.354 second response time |time= 0.354 $ ./check_http -w 5 -c 10 --ssl www.verisign.com Segmentation Fault gdb ./check_http (gdb) run -w 5 -c 10 --ssl www.verisign.com Starting program: /temp/nagios/libexec/./check_http -w 5 -c 10 --ssl www.verisign.com Program received signal SIGSEGV, Segmentation fault. asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 836 *ptr = NULL; (gdb) backtrace #0 asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 #1 0x13d80 in connect_SSL () at check_http.c:923 #2 0x13aa0 in check_http () at check_http.c:552 #3 0x1218c in main (argc=168960, argv=0x0) at check_http.c:271 (gdb) Looks like the connect_SSL function is sending a null pointer to asprintf, making it segfault. Since I've verified earlier on that check_http is indeed returning the correct value to Nagios, I don't think the issue here is specifically with the check_http plugin, but rather something with how Nagios deals with this particular host/service. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Mon Feb 3 18:03:37 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 03 Feb 2003 12:03:37 -0500 (EST) Subject: FW: Correct Syntax for check_flexlm (fwd) In-Reply-To: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> Message-ID: Tested against a v8.1 and a v6.1 Which script did you use, Chris's version or mine? Can you send a lmstat -c lic.dat output? -sg On Mon, 3 Feb 2003, Kaplan, Andrew H. wrote: > Subhendu, > > What version of Flexlm is this script written for? The version that is currently > being used on the license server is 8.0. > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, February 03, 2003 10:26 AM > To: Rice, Clifford E. > Cc: Kaplan, Andrew H. > Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > Cliff > > The logic is the same from the script that you submitted. I moved a > couple of vars around, updated for ePN, and got the setting for lmstat > from the initial configure process. Also the oputput now prints the list > of servers up and down. > > Going over the script reminded me that it doesn't check for vendor daemon > status, just flexlm. Perhaps we can tackle this after 1.3 is released. > > -sg > > > On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > > > Subhendu,Andrew, > > It appears something strange happened to the check_flexlm.pl script in > that this does not > > match the one I submitted. I've attached the one I have in this email. > Andrew, have a look at > > the attached perl script in vi and make sure it has none of those ^M's since I > have to use > > M$ LookOut at work. Next you'll have to modify the line (most likely line > 75) and set the > > path to point to where your lmstat executable is. The original check_flexlm > didn't have the > > lmstat path as an argument so hand editing is needed to get that path right. > The script uses the > > output of lmstat as per the comments in the script. > > > > HTH > > > > ---Cliff > > > > > > Linux -- The Choice of the GNU Generation > > http://www.debian.org > > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Sunday, February 02, 2003 10:22 PM > > To: Kaplan, Andrew H. > > Cc: cptmellow at users.sourceforge.net > > Subject: Re: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > In the nrpe.cfg you are missing the "-F /path/to/license.dat" for > > check_flexlm. > > > > Remember nrpe cannot pass arguments (unless you are using the latest CVS). > > > > Attached is a new version of check_flexlm.pl > > (replace existing and run make) > > > > If possible can you test it against a redundant flexlm setup and one > > where a license server is down? > > > > I only have non-admin access to a single server setup at the moment. > > > > If this is working, I'll add it to CVS. > > > > -sg > > > > > > On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > > > > > Sg, > > > > > > I am including the utils.pm, check_flexlm, and nrpe.cfg files for your > perusal. > > > > > > I am not having any luck, getting the check_flexlm plug-in to work. > > > > > > Thanks in advance for the help... > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. > > > Sent: Wednesday, January 29, 2003 8:48 AM > > > To: '' > > > Cc: 'nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > Hi Sg, > > > > > > I ran the command ./check_flexlm -F=/exports/apps/matlab/etc/lmstat and got > the > > > following results: > > > > > > 1. A series of lines that read USE OF UNINITIALIZED VALUE IN CONCATENATION > (.) > > > OR STRING AT ./CHECK_FLEXLM LINE 87, LINE 12. > > > 2. These were followed by the line LICENSE SERVER NOT RUNNING > > > > > > I ran the lmstat command itself and it confirmed the license was up an > running. > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Tuesday, January 28, 2003 11:42 PM > > > To: 'nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > Can you run it on the cmdline on the nrpe server? > > > > > > Is the error from the plugin or via check_nrpe? > > > > > > -sg > > > > > > > > > On Tue, 28 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > Hi Sg, > > > > > > > > I configured the utils.pm file to reflect the correct path to lmstat. The > > > > use lib > > > > statement in the check_flexlm plugin included the libexec directory where > > > > utils.pm > > > > is located. I stopped and restarted the nrpe client on the server. > > > > > > > > The error message I am getting is RETURN CODE OF 112 IS OUT OF BOUNDS. > > > > > > > > Your thoughts? > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Saturday, January 25, 2003 12:15 AM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > > > > > > > > > > > > ---------- Forwarded message ---------- > > > > Date: Sat, 25 Jan 2003 00:12:16 -0500 (EST) > > > > From: Subhendu Ghosh > > > > To: "Kaplan, Andrew H." > > > > Cc: nagios-user at lists.sf.net > > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > the server and the license.dat need to exist on the server that the plugin > > > > is running on. If you are using nrpe - install the plugin on the flexlm > > > > server and make sure the path to lmstat is correct. - note the path is set > > > > in "utils.pm" and not the plugin itself. so utils.pm needs to present and > > > > the "use lib" statement in the plugin must include the directory where > > > > "utils.pm" is copied. > > > > > > > > -sg > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > If I understand you correctly, I have to install the flexlm license > server > > > > and > > > > > its > > > > > associated license.dat file on the nagios server even though the "real" > > > > server > > > > > is > > > > > on the client running the nrpe program? > > > > > > > > > > -----Original Message----- > > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > > Sent: Friday, January 24, 2003 4:43 PM > > > > > To: Kaplan, Andrew H. > > > > > Cc: Nagios-Users (E-mail) > > > > > Subject: Re: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > > > > > > > > > > > > > When you run "configure", it searches for the "lmstat" program from > > > > > GlobeTrotter and configures the path to the exec. > > > > > > > > > > So even if flexlm is not running on the nagios server, you need to > intall > > > > > the flexlm utilities like lmstat and the appropriate flexlm config file. > > > > > > > > > > -sg > > > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Kaplan, Andrew H. > > > > > > > Sent: Friday, January 24, 2003 9:35 AM > > > > > > > To: Nagios-Users (E-mail) > > > > > > > Subject: Correct Syntax for check_flexlm > > > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > > > > I want to monitor the flexlm server on a Linux box. I am currently > > > > receiving > > > > > > > the error message: > > > > > > > > > > > > > > cannot find "lmstat" > > > > > > > > > > > > > > Here is what I have so far: > > > > > > > > > > > > > > Nagios server: > > > > > > > > > > > > > > check_commands.cfg: > > > > > > > > > > > > > > # 'check_flexlm' command definition > > > > > > > define command{ > > > > > > > command_name check_flexlm > > > > > > > command_line $USER1$/check_flexlm -F > > > $FILENAME$ > > > > > > > } > > > > > > > > > > > > > > services.cfg: > > > > > > > > > > > > > > check_command check_nrpe!check_flexlm > > > > > > > > > > > > > > Nagios client machine: > > > > > > > > > > > > > > nrpe.cfg: > > > > > > > > > > > > > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > > > > > > > /exports/apps/matlab/etc/lmstat > > > > > > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sripley at chiaro.com Mon Feb 3 18:29:41 2003 From: sripley at chiaro.com (Scott Ripley) Date: Mon, 3 Feb 2003 11:29:41 -0600 Subject: Empty Directories after "make install" Message-ID: <668C5EBD23862F459CF63DAFFCA6268C3225EE@rchst006.chiaro.com> Total Guess: It looks like there is a space in your --prefix= directive. Perhaps this is causing your prefix to be picked up as a hostname? Good luck, Scott. -----Original Message----- From: Victor Biro [mailto:vabiro at yahoo.com] Sent: Friday, January 31, 2003 11:47 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Empty Directories after "make install" Hi, I have just attempted to compile and install Nagios on my recent installation of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs or list archives. To configure I run the command: ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios The first line is a warning configure: warning: /usr/local/nagios: invalid host type everything else 'seems' to go ok. However after the various make install* commands nothing seems to have been coppied to the /usr/local/nagios directory. I have done a chmod 777 for the /usr/local/nagios directory, just to see if it would make any difference. No good either. Any thoughts on what could be happening? Thanks in advance, Victor ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From johnmc at johnmc.org Mon Feb 3 19:22:05 2003 From: johnmc at johnmc.org (John McDonnell) Date: Mon, 3 Feb 2003 10:22:05 -0800 (PST) Subject: Images - cgi.cfg - nothing shows up In-Reply-To: <87273DB23407D511B8900008C7FA923301405D6D@EXCHANGE> References: <87273DB23407D511B8900008C7FA923301405D6D@EXCHANGE> Message-ID: On the 3rd day of February, Aleksey Domorad said to me: > I have following entry in cgi.cfg > > hostextinfo[STS]=;aix.png;aix.png;aix.gd2;AIX STS Server;;; >From the FAQ[1] specifically about using cgi.cfg for extended info: Note that although this is call the "default" method for historical reasons, the CGIs default to using the template-based method (described below) unless you specifically compile them with this method. Look here instead: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html I've done this and it works well, apart from the fact that I can't get any of my transparent .gd2 images to show up :( The ones supplied on the Nagios site show up just fine, my custom ones won't. I've tried generating them with several versions of the GD lib but to no avail. [1] http://nagios.sourceforge.net/docs/1_0/configextinfo.html johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:03:48 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:03:48 -0600 Subject: passive checks Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13F5@PKDWB03C.ad.sprint.com> I don't have a direct answer to your question. However, would it not be possible to do the following: - make a list of the operating systems on the client hosts (eg, Red Hat 7.3, Solaris8) - on another host which has the same architecture, compile NRPE - create tarball - copy tarball to remote host of same o/s - extract tarball - finish installation - create definition(s) in services.cfg on Nagios host - restart Nagios Is this a possibility? jc > -----Original Message----- > From: Zbynek Matousek [mailto:xmatous1 at atlas.cz] > Sent: Monday, February 03, 2003 11:17 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] passive checks > > > can someone help me with config passive checks? > > I have to use the Nagios Java System (no ssh and c compiler > on monitored systems but java yes) and I don't understand > where i have to place the config file. > > Can someone send me an example of all necessary config files > and say where place them. If it is on mashine with Nagios or > on mashine where the passive chechs are made. > > The second question is how are the passive checks invoked - > the java client invokes all tests by some scheduler or I > must place tests to the crontab and redirect the output of > the job to the java client? > > ------ > Zbynek Matousek > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vabiro at yahoo.com Mon Feb 3 19:46:44 2003 From: vabiro at yahoo.com (Victor Biro) Date: Mon, 3 Feb 2003 10:46:44 -0800 (PST) Subject: Empty Directories after "make install" In-Reply-To: <668C5EBD23862F459CF63DAFFCA6268C3225EE@rchst006.chiaro.com> References: <668C5EBD23862F459CF63DAFFCA6268C3225EE@rchst006.chiaro.com> Message-ID: <20030203184644.81789.qmail@web11506.mail.yahoo.com> Scott et al, Thanks for the sharp eyes. That was the problem. (Boy do I feel silly) Thanks Victor --- Scott Ripley wrote: > > Total Guess: It looks like there is a space in your --prefix= directive. > Perhaps this is causing your prefix to be picked up as a hostname? > > Good luck, > > Scott. > > -----Original Message----- > From: Victor Biro [mailto:vabiro at yahoo.com] > Sent: Friday, January 31, 2003 11:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Empty Directories after "make install" > > > Hi, > > I have just attempted to compile and install Nagios on my recent > installation > of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs > or > list archives. > > To configure I run the command: > ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > > The first line is a warning > configure: warning: /usr/local/nagios: invalid host type > > everything else 'seems' to go ok. > > However after the various make install* commands nothing seems to have been > coppied to the /usr/local/nagios directory. > > I have done a chmod 777 for the /usr/local/nagios directory, just to see if > it > would make any difference. No good either. > > Any thoughts on what could be happening? > > Thanks in advance, > Victor > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users> ----------------------------------------- (on rchss001) > > This e-mail and any files transmitted with it are the property > of Chiaro Networks, Ltd., and may contain confidential and > privileged material for the sole use of the intended recipient(s) > to whom this e-mail is addressed. If you are not one of the named > recipient(s), or otherwise have reason to believe that you have > received this message in error, please notify the sender and > delete all copies from your system. Any other use, retention, > dissemination, forwarding, printing or copying of this e-mail is > strictly prohibited. > > > --------------------------------------------------------- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:24:52 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:24:52 -0600 Subject: Notifications question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13FA@PKDWB03C.ad.sprint.com> Try posting relevant snippets of your config files to illustrate your problem. jc > -----Original Message----- > From: Marek Dohojda [mailto:marek.dohojda at linksys.com] > Sent: Friday, January 31, 2003 6:22 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Notifications question > > > Hello everyone > > First of all, I am terribly sorry if this has been asked > before. I looked > through the archive and couldn't find the answer I was > looking for. I of > course read the TFM and read the FAQ. Which is not to say I > am not just > deaf/blind/stupid (hey it's Friday). > > That said. > > Nagios works great for me for everything except for one > detail. It seems to > only want to notified based on the hostgroup and not services or even > escelations. > > That is to say if a server is a member of a hostgroup, but I > am calling a > service to another contactgroup. The only people who get the > notifications > are the people who belong to the hostgroup definition.... I > can't seem to > make service contact get anything. > > Hope I am clear. > > Thank you all! > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Mon Feb 3 18:38:16 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 3 Feb 2003 11:38:16 -0600 Subject: Images - cgi.cfg - nothing shows up Message-ID: I don't think the image *has* to be gd2. I am using png images and they work fine. I think the issue is how often will you be using the status map and can you afford the cpu cycles to generate the image on the fly. If the images appear in correct in your other places where they are called directly from the html there is probably an issue with Nagios generating the status map image and incorporating your images into it. Look in your http error log and see if you get a message about statusmap.cgi exiting pre-maturely. If this is the case you probably have some configuration issues about the order/location of libpng, libjpeg and gd. Greg -----Original Message----- From: Bas van der Veen [mailto:bas.vanderveen at kahuna.nl] Sent: Monday, February 03, 2003 9:52 AM To: Brendon Caligari; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up Hi, See http://nagios.sourceforge.net/docs/1_0/xeddefault.html The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos). Looks like the image *has* to be converted to gd2 format... Bas -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: maandag 3 februari 2003 14:37 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:52:41 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:52:41 -0600 Subject: maximum site size Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13FF@PKDWB03C.ad.sprint.com> We're currently at 126 hosts, 1194 services. Plans to add another ~50 hosts and about 5-10 services/host. Other than that, you may have to try adding hosts/services in chunks and charting the impact to performance. Typical o/s tuning stuff. jc > -----Original Message----- > From: Lou Anschuetz [mailto:lou at ece.cmu.edu] > Sent: Monday, February 03, 2003 6:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] maximum site size > > > A general word of appreciation first. I'm running this from > a Sun and testing many different functions and all work well. > Nice job! > > Two quick questions: > > 1) My site will eventually be up to about 1100 hosts using various > plugin tests. Is anyone else running anything near to that size? > If so, what is the cycle run time? Some of my system administrators > believe it will fall over and/or take days. I'm not convinced > that this is the case :) > > 2) On several of the services I have full notification enabled > on both mail and epager. The contacts get paged on outages and > e-mail on recoveries (not both on both as configured). I'm > open to theories as to what my error is. > > Lou Anschuetz, lou at ece.cmu.edu > Network Manager, ECE Department, CMU > 412-512-6052 > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From CERice at MarathonOil.com Mon Feb 3 20:34:22 2003 From: CERice at MarathonOil.com (Rice, Clifford E.) Date: Mon, 3 Feb 2003 13:34:22 -0600 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Monday, February 03, 2003 10:48 AM > To: Rice, Clifford E. > Cc: 'Subhendu Ghosh'; 'nagios-users at lists.sourceforge.net' > Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) >Cliff, Subhendu > I installed and configured the check_flexlm script that you had sent. Thanks by > the way. > The error message I am encountering is Return Code of 99 is out of bounds. > Any ideas? Gives these things a try. 1. run the lmstat as defined in your utils.pm file or check_flexlm and see what the output is. 2. It should match the output which I had in some of the comments in the code I submitted. 3. Feel free to send a copy of the license file to me, you can delete everything except the SERVER, DAEMON, and 1 or 2 features. I don't need to know everything you are running if that is a problem. 4. The platform and perl version may be of some help as well. I have perl -version : 5.005_03 built for Sun Solaris. Solaris OS version is 2.8 > Cliff > The logic is the same from the script that you submitted. I moved a > couple of vars around, updated for ePN, and got the setting for lmstat > from the initial configure process. Also the oputput now prints the list > of servers up and down. You are correct. I just didn't look far enough past the comments. It appears I'm also out of sync wrt the version. I had to hack my utils.pm to get the version you have to work. So which version should I use to get with the program? (I can convert the backup Nagios server to the new release and test from there. ) After hacking my utils.pm, I get the output of License Servers running: houuam,houual,houuan" |flexlm:up:3down:0 when I run the script by hand. I assume this is valid. The hack was to add a line: $PATH_TO_LMSTAT = "/usr/local/flexlm/daemons/lmstat" ; after the line $TIMEOUT = 15; > Going over the script reminded me that it doesn't check for vendor daemon > status, just flexlm. Perhaps we can tackle this after 1.3 is released. I agree, flexlm can be running , while the vendor daemons are dead. This has happened. At least at Marathon, we could be more proactive in keeping our software going. ---Cliff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:57:06 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:57:06 -0600 Subject: NRPE vs. check_by_ssh vs. nagios_statd Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1400@PKDWB03C.ad.sprint.com> Unfortunately, I don't have the info you're looking for. In the event that noone else gives you a reply, you might want to pick one solution and roll with it. If you find you're having performance problems, you'll either have to live with it, or change your design. This falls under "Performance Tuning 101", I'm afraid to say. jc -----Original Message----- From: Marian Zurek [mailto:Marian.ZUREK at cern.ch] Sent: Monday, February 03, 2003 2:29 AM To: Carroll, Jim P [Contractor] Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NRPE vs. check_by_ssh vs. nagios_statd Hi, Thanks for you reply. As the first approach I applied the 'check_by_ssh' solution for couple of machines. I have here around 100 PC and plan to perform two remote checks on each of them. Could you tell me at which point I might hit the wall/scalability problem ? My future plans will be most probably SNMP based, but I am a bit hesitant if it is really needed with this number of host/services ?? Thnaks in advance for your comments. Regards, Marian Carroll, Jim P [Contractor] wrote: A common question, one which burned in my mind when I came to that crossroads, and perhaps one which should be added to the FAQ. I'll throw my $0.02 in, but YMMV, and I'm sure you'll get some variance in opinions. - check_by_ssh -- great for punching through firewalls where port 22 is already open (saves you having to punch more holes); doesn't scale well, because of the crypto computations - NRPE -- it's what I'm using; many aren't thrilled with having to manage multiple nrpe.cfg files across every client; I've managed to make do - nrpep -- not terribly familiar with it; basically a variation on the NRPE theme, I believe, except in Perl - nagios_statd -- for starters, you'd have to install Python on ever client you wish to install this on; I also seem to recall reading a post to the list where someone was having problems expanding on the functionality - check_snmp -- this is something I've been pondering for a while, and would like to try; someone posted very recently that it's quite lightweight; you'll need the SNMP binaries installed on the Nagios host as well as every client; not sure, but I'm guessing that the lion's share of the SNMP effort is peeling back the layers to find exactly what things you can monitor - NSCA -- this is the passive approach, meaning the client will need to contact the server; I pondered this as an option, but nobody could tell me how well it scales, or whether it would suffice as a replacement for the active checks that NRPE gives me In summary, I'm using NRPE, and am considering adding/switching to check_snmp. HTH. jc -----Original Message----- From: Marian Zurek [ mailto:Marian.ZUREK at cern.ch ] Sent: Tuesday, January 14, 2003 10:35 AM To: nagios-users at lists.sourceforge.net Cc: Marian.ZUREK at cern.ch Subject: [Nagios-users] NRPE vs. check_by_ssh vs. nagios_statd Hi all, I started to use the NAGIOS and came to the question which facility out of : - check_by_ssh - NRPE - nrpep - nagios_statd - ??? should choose the for the remote checks (disk space, free memory, etc.). I plan also to perform the SNMP based queries in the future also. As I am quite new in the "business" I will be grateful for sharing your experience. Regards, Marian ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nickbernstein at sbcglobal.net Mon Feb 3 21:29:59 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Mon, 3 Feb 2003 12:29:59 -0800 Subject: HTML Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> I hate to be a bother, and I don't want to direct this at anyone specifically, but I've noticed a lot of emails in HTML. If I am the only one who is bothered by this, then I will retract this objection and we can go on happily. However - and I know many may think this dated - I personally find html emails bothersome. To me, they are large, unnecessary, and do not work on all mail-clients. Also, it is tradition not to use html on internet mailing lists & usenet and is considered bad form by many. Thanks for listening to me gripe, Nick -- +---------------------------------------------------------------+ | Nicholas Bernstein | nick at docmagic.com | | UNIX Systems Administrator | nickbernstein at sbcglobal.net | | Document Systems Inc. | nickbernstein at inbox.lv | +---------------------------------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Daniel_Casey at jbhunt.com Mon Feb 3 22:46:22 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 3 Feb 2003 15:46:22 -0600 Subject: HTML Message-ID: Does this e-mail look like HTML? Just wondering, it might be your e-mail client (this e-mail should be plain text). I don't recall too many messages on the list that looked like it was formatted HTML, but I've been lurking more lately, so I could have missed some. |---------+----------------------------------------> | | "Nicholas P. Bernstein" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 02/03/2003 14:29 | | | | |---------+----------------------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] HTML | >----------------------------------------------------------------------------------------------------------------------------------------------| I hate to be a bother, and I don't want to direct this at anyone specifically, but I've noticed a lot of emails in HTML. If I am the only one who is bothered by this, then I will retract this objection and we can go on happily. However - and I know many may think this dated - I personally find html emails bothersome. To me, they are large, unnecessary, and do not work on all mail-clients. Also, it is tradition not to use html on internet mailing lists & usenet and is considered bad form by many. Thanks for listening to me gripe, Nick -- +---------------------------------------------------------------+ | Nicholas Bernstein | nick at docmagic.com | | UNIX Systems Administrator | nickbernstein at sbcglobal.net | | Document Systems Inc. | nickbernstein at inbox.lv | +---------------------------------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 3 21:48:09 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 03 Feb 2003 15:48:09 -0500 (EST) Subject: FW: Correct Syntax for check_flexlm (fwd) In-Reply-To: References: Message-ID: On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > > > You are correct. I just didn't look far enough past the comments. It appears I'm > also out of sync wrt the version. I had to hack my utils.pm to get the version you > have to work. So which version should I use to get with the program? > (I can convert the backup Nagios server to the new release and test from there. ) > > After hacking my utils.pm, I get the output of License Servers running: houuam,houual,houuan" > |flexlm:up:3down:0 Correct output - everything on the second line is for perfdata. > > when I run the script by hand. I assume this is valid. > > The hack was to add a line: $PATH_TO_LMSTAT = "/usr/local/flexlm/daemons/lmstat" ; > after the line $TIMEOUT = 15; thats's all that's needed. A CVS sync will get you the lated utils.pm > > > > > Going over the script reminded me that it doesn't check for vendor daemon > > status, just flexlm. Perhaps we can tackle this after 1.3 is released. > > > I agree, flexlm can be running , while the vendor daemons are dead. This has happened. > At least at Marathon, we could be more proactive in keeping our software going. > Same here - had one of servers was missing a couple of vendor daemons... -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From justin at pvamu.edu Mon Feb 3 23:04:43 2003 From: justin at pvamu.edu (Justin) Date: Mon, 3 Feb 2003 16:04:43 -0600 Subject: NSClient Message-ID: <004e01c2cbd0$62dad5a0$0e38cf81@Buttafuoco> My NT admins are saying they are getting this in their application log The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \Processor(_Total)\%Processor Time - ERROR: 0xC0000BB9. There is about 100 or so of these alerts. Has anyone else experienced these problems? Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From skertzman at servervault.com Mon Feb 3 23:35:49 2003 From: skertzman at servervault.com (Kertzman, Sam) Date: Mon, 3 Feb 2003 17:35:49 -0500 Subject: HTML Message-ID: <841A2A811DB61840BA6423C08B5735D3802CD7@dulles1.ops.servervault.com> > I hate to be a bother, and I don't want to direct this at anyone > specifically, but I've noticed a lot of emails in HTML. If I am the only one > who is bothered by this, then I will retract this objection and we can go on > happily. However - and I know many may think this dated - I personally find > html emails bothersome. To me, they are large, unnecessary, and do not work > on all mail-clients. Also, it is tradition not to use html on internet > mailing lists & usenet and is considered bad form by many. > > Thanks for listening to me gripe, > Nick You are not the only objection. Sam Kertzman, Engineer ServerVault, Corp. Phone: 703-652-5984 kertzman at servervault.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Mon Feb 3 23:44:08 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 3 Feb 2003 23:44:08 +0100 Subject: HTML In-Reply-To: ; from Daniel_Casey@jbhunt.com on Mon, Feb 03, 2003 at 03:46:22PM -0600 References: Message-ID: <20030203234408.D1586@hpce.nec.com> On Mon, Feb 03, 2003 at 03:46:22PM -0600, Daniel_Casey at jbhunt.com wrote: > > Does this e-mail look like HTML? Just wondering, it might be your e-mail > client (this e-mail should be plain text). It is. > I don't recall too many > messages on the list that looked like it was formatted HTML, but I've been > lurking more lately, so I could have missed some. I do recall. I could add my year-long obwervation about the correlation of HTML mail/news posting and the... competence of the poster. But that would be starting a flame war, and there are a lot of exceptions to both sides. Now to something completely different: > |---------+----------------------------------------> > | | "Nicholas P. Bernstein" | > | | | > | | Sent by: | [...] I'm the first to acknowledge good ASCII art. Yours is not. Now back to Nagios. Please? Preferably in plain text... Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Mon Feb 3 23:48:48 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Mon, 3 Feb 2003 14:48:48 -0800 (PST) Subject: HTML In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> Message-ID: <18117-06057@sneakemail.com> On Mon, 3 Feb 2003, Nicholas P. Bernstein nickbernstein-at-sbcglobal.net |Nagios| wrote: > Also, it is tradition not to use html on internet mailing lists & > usenet and is considered bad form by many. I've found that SpamAssassin with the scoring on CTYPE_JUST_HTML set properly goes a long way towards rendering these mails invisible to me. I agree that plain-text mail is the de facto standard for mailing lists, but the folks most likely to use HTML mail are those least likely to read FAQs before posting, anyhow. ;-) -- Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Daniel_Casey at jbhunt.com Mon Feb 3 23:54:16 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 3 Feb 2003 16:54:16 -0600 Subject: HTML Message-ID: My apologies. It may be that my client is stripping all the HTML goop out? Heh, I like your theory on the possible correlation to the HTML'ized postings and content of e-mail messages. ....back to lurk mode.... ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Mon Feb 3 23:59:49 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Mon, 03 Feb 2003 17:59:49 -0500 Subject: "No lock file found" and SIGSEGV Message-ID: chown and chgrped it, then chmod 770ed it. None of this helped. Any other hints? :-/ >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" 02/02/03 06:35PM >>> Can Nagios write to the VAR directory? This lock file is a file that Nagios creates... so it needs to be able to write to that dir, and there should be no manually created file called nagios.lock (which is something that folks seem to think they need to do). Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Sunday, February 02, 2003 5:21 PM Subject: RE: [Nagios-users] "No lock file found" and SIGSEGV Yes I do. And which privs? >>> "Olivier Beauchemin" 02/02/03 05:20PM >>> Just thought of this... do you have that path? and are the privs correct? Olivier ---------- Original Message ---------------------------------- From: "Jarett DeAngelis" Date: Sun, 02 Feb 2003 16:15:04 -0500 >Nagios 1.0 starting... (PID=1467) >Finished daemonizing... (New PID=1468) >Caught SIGSEGV, shutting down... > >That's all I get from the log. On the console it just says "no lock file found in /usr/local/nagios/var/nagios.lock" and then quits. > >Any ideas? This is a VERY simple configuration I've got going here, just three hosts and one check_ping on each. Just about everything is commented out. > >Help? > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Feb 4 00:23:27 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 4 Feb 2003 10:23:27 +1100 Subject: HTML In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com>; from nickbernstein@sbcglobal.net on Mon, Feb 03, 2003 at 12:29:59PM -0800 References: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> Message-ID: <20030204102320.A74247@IPAustralia.Gov.AU> Dear Sir, I am writing to say that a long established Usenet tradition is that mail that is hard to read (in the mind of the reader, not the writer) is far less likely to get a helpful reply. On Mon, Feb 03, 2003 at 12:29:59PM -0800, Nicholas P. Bernstein wrote: > I hate to be a bother, and I don't want to direct this at anyone > specifically, but I've noticed a lot of emails in HTML. If I am the only one > who is bothered by this, then I will retract this objection and we can go on > happily. However - and I know many may think this dated - I personally find > html emails bothersome. To me, they are large, unnecessary, and do not work > on all mail-clients. Also, it is tradition not to use html on internet > mailing lists & usenet and is considered bad form by many. > > Thanks for listening to me gripe, HTML mail gets deleted instantly. Mail that is hard to read because the . lines are too long . paragraphs are too long is unlikely to get replied to. > Nick > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 23:52:32 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 16:52:32 -0600 Subject: NSClient Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1414@PKDWB03C.ad.sprint.com> What version of NSClient are you running? If you're not running 1.0.7.1, please upgrade: http://nsclient.ready2run.nl/download/Distrib-1.07.1.zip jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Monday, February 03, 2003 4:05 PM To: Nagios Users Subject: [Nagios-users] NSClient My NT admins are saying they are getting this in their application log The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \Processor(_Total)\%Processor Time - ERROR: 0xC0000BB9. There is about 100 or so of these alerts. Has anyone else experienced these problems? Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From nickbernstein at sbcglobal.net Tue Feb 4 01:14:34 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Mon, 3 Feb 2003 16:14:34 -0800 Subject: NSClient In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1414@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1414@PKDWB03C.ad.sprint.com> Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79EB4@officesrv.docmagic.com> LOL -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Monday, February 03, 2003 2:53 PM To: 'Justin'; Nagios Users Subject: RE: [Nagios-users] NSClient What version of NSClient are you running? If you're not running 1.0.7.1, please upgrade: http://nsclient.ready2run.nl/download/Distrib-1.07.1.zip jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Monday, February 03, 2003 4:05 PM To: Nagios Users Subject: [Nagios-users] NSClient My NT admins are saying they are getting this in their application log The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \Processor(_Total)\%Processor Time - ERROR: 0xC0000BB9. There is about 100 or so of these alerts. Has anyone else experienced these problems? Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From koreth-nagios at midwinter.com Tue Feb 4 01:28:18 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Mon, 3 Feb 2003 16:28:18 -0800 Subject: NRPE vs. check_by_ssh vs. nagios_statd In-Reply-To: <3E3E2862.7050007@cern.ch>; from Marian.ZUREK@cern.ch on Mon, Feb 03, 2003 at 09:29:22AM +0100 References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> <3E3E2862.7050007@cern.ch> Message-ID: <20030203162818.C17473@cadge.midwinter.com> If you want to check multiple services on remote hosts using ssh, you might want to look at my batch_by_ssh script, which will check all of a remote host's services with one ssh command (rather than one ssh per remote service) which should reduce your scaling woes. It's still not as cheap as NRPE, but especially if you have several services per host on a ton of remote hosts, it'll cut way down on ssh overhead. It also lets you centrally manage the commands that are run on remote hosts, rather than doing it on config files on those hosts as with NRPE; whether that's a plus or a drawback is a matter of taste. http://www.midwinter.com/~koreth/nagios/batch_by_ssh There's extensive documentation (by Nagios plugin standards, anyway) at the top of the script. If you use it you'll want to make sure you've applied the following check_by_ssh buffer overflow patch: https://sourceforge.net/tracker/index.php?func=detail&aid=673863&group_id=29880&atid=397599 -Steve On Mon, Feb 03, 2003 at 09:29:22AM +0100, Marian Zurek wrote: > Hi, > > Thanks for you reply. As the first approach I applied the 'check_by_ssh' > solution for couple of machines. > I have here around 100 PC and plan to perform two remote checks on each of > them. Could you tell me at which point I might > hit the wall/scalability problem ? > My future plans will be most probably SNMP based, but I am a bit hesitant > if it is really needed with this number of host/services ?? > > Thnaks in advance for your comments. > > Regards, > Marian ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 01:35:51 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 18:35:51 -0600 Subject: "No lock file found" and SIGSEGV Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1417@PKDWB03C.ad.sprint.com> I can't help but wonder if you have the Perl support (ePN) compiled into Nagios. If you did, then go back and recompile *without* Perl support. There's currently a known issue with ePN/Perl 5.8.0. jc > -----Original Message----- > From: Jarett DeAngelis [mailto:Jarett_DeAngelis at fujifilm.com] > Sent: Monday, February 03, 2003 5:00 PM > To: ofb at budget-tech.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] "No lock file found" and SIGSEGV > > > chown and chgrped it, then chmod 770ed it. None of this helped. > > Any other hints? :-/ > > >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" > 02/02/03 06:35PM >>> > Can Nagios write to the VAR directory? This lock file is a > file that Nagios > creates... so it needs to be able to write to that dir, and > there should be > no manually created file called nagios.lock (which is > something that folks > seem to think they need to do). > > Olivier > > ----- Original Message ----- > From: "Jarett DeAngelis" > To: > Sent: Sunday, February 02, 2003 5:21 PM > Subject: RE: [Nagios-users] "No lock file found" and SIGSEGV > > > Yes I do. And which privs? > > >>> "Olivier Beauchemin" 02/02/03 > 05:20PM >>> > > Just thought of this... do you have that path? and are the > privs correct? > > Olivier > > ---------- Original Message ---------------------------------- > From: "Jarett DeAngelis" > Date: Sun, 02 Feb 2003 16:15:04 -0500 > > >Nagios 1.0 starting... (PID=1467) > >Finished daemonizing... (New PID=1468) > >Caught SIGSEGV, shutting down... > > > >That's all I get from the log. On the console it just says > "no lock file > found in /usr/local/nagios/var/nagios.lock" and then quits. > > > >Any ideas? This is a VERY simple configuration I've got > going here, just > three hosts and one check_ping on each. Just about > everything is commented > out. > > > >Help? > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 01:53:36 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 18:53:36 -0600 Subject: HTML Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2541@PKDWB03C.ad.sprint.com> I think I may have been one of the HTML offenders. I'd set my Outlook default to RichText when I first started here; that has now been remedied. Stanley Hopcroft wrote: > I am writing to say that a long established Usenet tradition is that > mail that is hard to read (in the mind of the reader, not the > writer) is > far less likely to get a helpful reply. [snip] > Mail that is hard to read because the > > . lines are too long > > . paragraphs are too long > > is unlikely to get replied to. Please add to my list: - poor/missing punctuation - gross neglect of appropriate capitalization - CAPS LOCK - syntactic/semantic misconduct - use of silly abbreviations, e.g., "u r gr8" to replace "you are great" - anything that can be described as "this hurts my eyes" Insert other ObRant items here. jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From twelsh at square-box.com Tue Feb 4 02:21:52 2003 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 4 Feb 2003 01:21:52 -0000 Subject: maximum site size In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13FF@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13FF@PKDWB03C.ad.sprint.com> Message-ID: <002001c2cbeb$cc2dc560$0400a8c0@squarebox.com> Alternatively you could look at http://www.nagios.org/userprofiles/browse.php?current_page=1 on the nagios website at peoples profiles and size of organisations. This may help as well -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Carroll, Jim P [Contractor] Sent: 03 February 2003 18:53 To: 'Lou Anschuetz'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] maximum site size We're currently at 126 hosts, 1194 services. Plans to add another ~50 hosts and about 5-10 services/host. Other than that, you may have to try adding hosts/services in chunks and charting the impact to performance. Typical o/s tuning stuff. jc > -----Original Message----- > From: Lou Anschuetz [mailto:lou at ece.cmu.edu] > Sent: Monday, February 03, 2003 6:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] maximum site size > > > A general word of appreciation first. I'm running this from > a Sun and testing many different functions and all work well. > Nice job! > > Two quick questions: > > 1) My site will eventually be up to about 1100 hosts using various > plugin tests. Is anyone else running anything near to that size? > If so, what is the cycle run time? Some of my system administrators > believe it will fall over and/or take days. I'm not convinced > that this is the case :) > > 2) On several of the services I have full notification enabled > on both mail and epager. The contacts get paged on outages and > e-mail on recoveries (not both on both as configured). I'm > open to theories as to what my error is. > > Lou Anschuetz, lou at ece.cmu.edu > Network Manager, ECE Department, CMU > 412-512-6052 > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jamie at bclnz.net Tue Feb 4 03:22:38 2003 From: jamie at bclnz.net (Jamie) Date: Tue, 4 Feb 2003 15:22:38 +1300 Subject: Status Map "memory" References: <002001c2cbeb$cc2dc560$0400a8c0@squarebox.com> Message-ID: <002201c2cbf4$4a6643f0$b58031ca@bcl977307> Hi, I've been making changes to my network configuration (removing hosts, adding hosts, changing parent hosts etc), and it seems that the Status Map image has a memory of what used to go where. Now I'm left with a yawning gap between what it still in place. This gap used to be filled by the hosts I've removed. Any ideas on how to clear the "memory" of the image generator? Jamie ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Tue Feb 4 04:51:41 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Mon, 3 Feb 2003 21:51:41 -0600 Subject: host - a service Message-ID: <20030204035141.GA31963@cannonfodder.org> is there any way to tell a host to ignore one of the tests assigned to it's hostgroup? example: define hostgroup{ hostgroup_name neospire-virtuals-apache alias Neospire Apache & Zeus webservers contact_groups admins members one,two,linux1 } define service{ hostgroup_name neo-vs-web-apache service_description SSH } define host{ #server only runs telnet host_name linux1 .... check_command **IGNORE SSH** } What I am looking for is an easy way to standardize tests across groups, but as always there are exceptions and I need to be able to tell a certain host to ignore certain tests inherited from it's group. oh and before anyone starts chastising me, I dont actually run telnet on any of my servers. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From christian at dnet.net.id Tue Feb 4 05:12:41 2003 From: christian at dnet.net.id (Chris) Date: Tue, 4 Feb 2003 11:12:41 +0700 Subject: NRPE on remote host Message-ID: <200302041112.41754.christian@dnet.net.id> Hi, i use nrpe to check services in my servers, and in one them returns : CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? i run nrpe under xinetd on the remote host, the configurations look fine, and when i check /var/log/messages, it looks like this : xinetd[18126]: service nrpe, accept: Too many open files (errno = 24) anyone know how i fix this? thanks, Chris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Tue Feb 4 08:28:04 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Tue, 04 Feb 2003 08:28:04 +0100 Subject: passive checks Message-ID: >-----Original Message----- >From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] >Sent: Monday, February 03, 2003 7:04 PM >- make a list of the operating systems on the client hosts (eg, Red Hat >7.3, >Solaris8) I have HP unix (HP server 7400) >- on another host which has the same architecture, compile NRPE A have not another host - I have only one server - if someone is posible to compile the NRPE I'll be happy, I'm not have root on the server that why I cant install there gcc. >Is this a possibility? That not possible, but I can use NJS (java is on the server) but I dont understand how to configure NJS. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 4 09:03:38 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 04 Feb 2003 09:03:38 +0100 Subject: vICQ command line notifications Message-ID: <3E3F73DA.7F22F894@gcc.dhl.com> Hi, In the light of the alternative notifications thread, I had a look at vICQ (the old @pager.icq.com doesn't seem to work anymore). While I can send ICQ messages without problems when I'm in a shell, using that same syntax through Nagios doesn't work. It's not such a big deal, but maybe I'm overlooking something. Here's my config: # 'notify-by-icq' command definition define command{ command_name notify-by-icq command_line /bin/echo -e "msg $CONTACTPAGER$\n ***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nServic e: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$ OUTPUT$ \n." | /usr/local/bin/vicq -o -b } When I redirect the output to a text file instead of vicq, it looks fine: [root at netsaint etc]# cat /tmp/vicq.log msg 123456 ***** Nagios 1.0 ***** Notification Type: PROBLEM Service: NetShield Host: SMS Server Address: 172.20.x.x State: CRITICAL Date/Time: Tue Feb 4 04:57:05 CET 2003 Additional Info: mcshield.exe: not running ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From lars at rockar.nu Tue Feb 4 10:03:44 2003 From: lars at rockar.nu (Lars Andersson) Date: Tue, 4 Feb 2003 10:03:44 +0100 (CET) Subject: sms_client notification problems. In-Reply-To: <3E3F73DA.7F22F894@gcc.dhl.com> References: <3E3F73DA.7F22F894@gcc.dhl.com> Message-ID: Hi, I'm running Nagios 1.0 and sms_client-2.0.8z on a machine running Debian. I'm having trouble getting Nagios to send sms messages with sms_client. I've tried to search the archives, the search function does not work My notification command: define command{ command_name notify-by-sms command_line /usr/bin/sms_client -l4 telia:0701111111 '$NOTIFICATIONTYPE$: $HOSTNAME$ IS $HOSTSTATE$' } This command works from the command line as the Nagios user. It invokes sms_client with debugging level four and sends me an sms. /usr/bin/sms_client -4 telia:07011111111 'test message' When Nagios executes the command notify-by-sms it just gives this lines in the smslog =================================================================== Feb 04 09:05:09 [32451] : Parsing Resource File '/etc/smsclient/sms_config' Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found 'SMS_default_service', setting value to 'telia' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_default_service = telia Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found 'SMS_lock_action', setting value to 'BLOCK' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_action = BLOCK Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_retry_delay = 5000000 Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found 'SMS_lockfile', setting value to '/var/lock/smslock' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lockfile = /var/lock/smslock Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Could not find 'SMS_service_timeout', using default '300' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_service_timeout = 300 Have anyone else experienced this problem? Is there a problem in my command_line definition? It does not work even if I invoke a shell script that should send me a "test message" by sms. Any pointers is much appreciated. /Lars ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 4 10:40:20 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 04 Feb 2003 10:40:20 +0100 Subject: sms_client notification problems. References: Message-ID: <3E3F8A84.526E2139@gcc.dhl.com> Been there, done that :-) Add the -q switch to run sms_client in quiet mode. Here is my config: # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/sms_client -q $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTADDRESS$ $HOSTALIAS$: $SERVICEDESC$ is $SERVICESTATE$" } Lars Andersson wrote: > > Hi, > > I'm running Nagios 1.0 and sms_client-2.0.8z on a machine running > Debian. I'm having trouble getting Nagios to send sms messages with > sms_client. > > I've tried to search the archives, the search function does not work > > My notification command: > > define command{ > command_name notify-by-sms > command_line /usr/bin/sms_client -l4 telia:0701111111 > '$NOTIFICATIONTYPE$: $HOSTNAME$ IS $HOSTSTATE$' > } > > This command works from the command line as the Nagios user. > It invokes sms_client with debugging level four and sends me an sms. > > /usr/bin/sms_client -4 telia:07011111111 'test message' > > When Nagios executes the command notify-by-sms it just gives this lines > in the smslog > > =================================================================== > Feb 04 09:05:09 [32451] : Parsing Resource File > '/etc/smsclient/sms_config' > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found > 'SMS_default_service', setting value to 'telia' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config > SMS_default_service = telia > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found > 'SMS_lock_action', setting value to 'BLOCK' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_action > = BLOCK > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config > SMS_lock_retry_delay = 5000000 > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found > 'SMS_lockfile', setting value to '/var/lock/smslock' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lockfile = > /var/lock/smslock > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Could > not find 'SMS_service_timeout', using default '300' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config > SMS_service_timeout = 300 > > Have anyone else experienced this problem? Is there a problem in my > command_line definition? It does not work even if I invoke a shell > script that should send me a "test message" by sms. > > Any pointers is much appreciated. > > /Lars > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From floyd at atc.no Tue Feb 4 11:23:22 2003 From: floyd at atc.no (Andreas Lund) Date: Tue, 4 Feb 2003 11:23:22 +0100 Subject: check_ping nowhere to be found, what Plugin is this? Message-ID: <200302041023.h14ANMW08443@hercules.atc.no> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From rplewe at hpce.nec.com Tue Feb 4 11:59:00 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 4 Feb 2003 11:59:00 +0100 Subject: check_ping nowhere to be found, what Plugin is this? In-Reply-To: <200302041023.h14ANMW08443@hercules.atc.no>; from floyd@atc.no on Tue, Feb 04, 2003 at 11:23:22AM +0100 References: <200302041023.h14ANMW08443@hercules.atc.no> Message-ID: <20030204115900.E1426@hpce.nec.com> On Tue, Feb 04, 2003 at 11:23:22AM +0100, Andreas Lund wrote: > > Just downloaded, compiled, installed and configured Nagios, but none of the > check scripts mentioned in the template config files exist anywhere on my > system. Not even check_ping. > > Where can I find those scripts? http://sourceforge.net/projects/nagiosplug/ > Do I need a plugin to ping a host..? Yes. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 4 12:02:52 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 04 Feb 2003 12:02:52 +0100 Subject: check_ping nowhere to be found, what Plugin is this? References: <200302041023.h14ANMW08443@hercules.atc.no> Message-ID: <3E3F9DDC.642F3FB2@gcc.dhl.com> four letters come to mind... http://nagios.sourceforge.net/docs/1_0/installing.html http://www.nagios.org/faqs/viewfaq.php?faq_id=37&expand=false&showdesc=true Andreas Lund wrote: > > Just downloaded, compiled, installed and configured Nagios, but none of the > check scripts mentioned in the template config files exist anywhere on my > system. Not even check_ping. > > Where can I find those scripts? Do I need a plugin to ping a host..? > > -- > Andreas Lund (floyd at atc.no) > Tel: +47 90.07.71.62 / +47 63.88.33.56 > Ano-Tech Computers (http://www.atc.no/) > ** You can get ANYWHERE in 10 minutes if you drive fast enough ** > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From floyd at atc.no Tue Feb 4 12:10:54 2003 From: floyd at atc.no (Andreas Lund) Date: Tue, 4 Feb 2003 12:10:54 +0100 Subject: check_ping nowhere to be found, what Plugin is this? Message-ID: <200302041110.h14BAsS11830@hercules.atc.no> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From brendon at iwg.info Tue Feb 4 12:33:10 2003 From: brendon at iwg.info (Brendon Caligari) Date: Tue, 4 Feb 2003 12:33:10 +0100 Subject: Check_ping Message-ID: RH73 + 256mb ram + everything functional I installed nagios from source and nagios-plugins from rpm The plugins were placed as /usr/lib/nagios/plugins as owner root.root Nagios is running as sysadmin.sysadmin. How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither ~SUID'ed nor running as root??? B. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dcorbin at machturtle.com Tue Feb 4 12:56:19 2003 From: dcorbin at machturtle.com (David Corbin) Date: Tue, 04 Feb 2003 06:56:19 -0500 Subject: Web-command to reload config Message-ID: <3E3FAA63.6000703@machturtle.com> Is there a web-command to reload the configuration? I see one for restarting the Nagios process and shutting it down, but not reloading.... Thanks David ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Tue Feb 4 13:00:03 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 04 Feb 2003 07:00:03 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) In-Reply-To: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> Message-ID: <1044360001.19831.1.camel@localhost.localdomain> On Mon, 2003-02-03 at 11:58, Kaplan, Andrew H. wrote: > Subhendu, > > What version of Flexlm is this script written for? The version that is currently > being used on the license server is 8.0. IIRC, only the version of lmstat really matters. I've used if with lmstat ranging from about 4 years ago to 4 months ago. I don't use it heavily, so things sould have slipped by. But I can testify that there is some level of functionality. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Craig.Emsley at document.co.uk Tue Feb 4 13:20:10 2003 From: Craig.Emsley at document.co.uk (Craig Emsley) Date: Tue, 4 Feb 2003 12:20:10 -0000 Subject: 3D WRL Message-ID: By using the OpenGLRenderer it appears to sort out the problem of green glow around the Icons. Craig -----Original Message----- From: Andrew Head [mailto:ahead at wacoisd.org] Sent: Monday, February 03, 2003 2:58 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] 3D WRL In the screenshots on the Nagios website, there is a picture where none of the 3D icons on the 3D Status Map are green. How does one make the green glow disappear from the map? Andrew Head Network Engineer Waco ISD ahead at wacoisd.org (254)755-9434 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Tue Feb 4 13:34:53 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 4 Feb 2003 13:34:53 +0100 Subject: Web-command to reload config Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804A8@storevis.datavis.se> It's necessary to restart nagios if you want to reload the config. /FredrikW -----Original Message----- From: David Corbin [mailto:dcorbin at machturtle.com] Sent: Tue 04-Feb-03 12:56 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Web-command to reload config Is there a web-command to reload the configuration? I see one for restarting the Nagios process and shutting it down, but not reloading.... Thanks David ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wojnicki at asw.waw.pl Tue Feb 4 13:48:06 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Tue, 04 Feb 2003 13:48:06 +0100 Subject: permissions Message-ID: <5.1.1.2.0.20030204134412.027ba1e0@192.168.0.2> How can I gain access to the commands in the cgi's? Every time I try to issue a command i get this: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. An error occurred while attempting to commit your command for processing. Don't these lines in the cgi.cfg take care of this (for all authenticated users)? authorized_for_all_service_commands=* authorized_for_all_host_commands=* Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Tue Feb 4 13:49:58 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 4 Feb 2003 13:49:58 +0100 Subject: check_ping nowhere to be found, what Plugin is this? In-Reply-To: <200302041110.h14BAsS11830@hercules.atc.no>; from floyd@atc.no on Tue, Feb 04, 2003 at 12:10:54PM +0100 References: <200302041110.h14BAsS11830@hercules.atc.no> Message-ID: <20030204134958.F1426@hpce.nec.com> On Tue, Feb 04, 2003 at 12:10:54PM +0100, Andreas Lund wrote: > > Uhm? So this means check_ping is indeed part of a plugin or what? I have read > the fine manual several times over the past few hours if that's what you're > hinting at but I can't see that the docs mention that you need a plugin to > ping a host... :-/ > > If so, what plugin do I need? By default: check_ping, but you can of course use whichever one you like, by defining it accordingly in checkcommands.cfg. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Tue Feb 4 13:57:05 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 4 Feb 2003 13:57:05 +0100 Subject: Check_ping In-Reply-To: ; from brendon@iwg.info on Tue, Feb 04, 2003 at 12:33:10PM +0100 References: Message-ID: <20030204135705.G1426@hpce.nec.com> On Tue, Feb 04, 2003 at 12:33:10PM +0100, Brendon Caligari wrote: > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? By sending ICMP packages. What exactly is your problem? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tschiffer at avantgar.de Tue Feb 4 14:29:44 2003 From: tschiffer at avantgar.de (Torsten Schiffer) Date: Tue, 4 Feb 2003 14:29:44 +0100 Subject: Another notification problem? Message-ID: Hi there, my Nagios Servers is sending notifcation mails only for one (!!) host although the other hosts are configured completly the same: here some information from my hosts.cfg the server that works: # 'ava-nas-ne01' host definition define host{ host_name ava-nas-ne01 alias NAS 4400 MAX ATTACH Storage Device address 10.200.0.9 parents Back-Bone check_command check-host-alive max_check_attempts 5 notification_interval 10 notification_period 24x7 notification_options d,u,r } and here one of the servers that don't work: # 'ava-tm1-ne-01' host definition define host{ host_name ava-tm1-ne-01 alias TM1-Server address 10.200.0.19 parents Back-Bone check_command check-host-alive max_check_attempts 5 notification_interval 10 notification_period 24x7 notification_options d,u,r } the only message that i get is this: ***** Nagios Notification ***** Host NAS 4400 MAX ATTACH Storage Device is UP! Date/Time: Tue Feb 4 14:06:04 CET 2003 greetings Torsten -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aleksey at loehmanns.com Tue Feb 4 14:57:16 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Tue, 4 Feb 2003 08:57:16 -0500 Subject: Images - cgi.cfg - nothing shows up Message-ID: <87273DB23407D511B8900008C7FA923301405D6F@EXCHANGE> Thank to all Everything is fine now Apparently cgi.cfg file included in rpm package is misleading. Regards -----Original Message----- From: John McDonnell [mailto:johnmc at johnmc.org] Sent: Monday, February 03, 2003 1:22 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up On the 3rd day of February, Aleksey Domorad said to me: > I have following entry in cgi.cfg > > hostextinfo[STS]=;aix.png;aix.png;aix.gd2;AIX STS Server;;; >From the FAQ[1] specifically about using cgi.cfg for extended info: Note that although this is call the "default" method for historical reasons, the CGIs default to using the template-based method (described below) unless you specifically compile them with this method. Look here instead: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html I've done this and it works well, apart from the fact that I can't get any of my transparent .gd2 images to show up :( The ones supplied on the Nagios site show up just fine, my custom ones won't. I've tried generating them with several versions of the GD lib but to no avail. [1] http://nagios.sourceforge.net/docs/1_0/configextinfo.html johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aleksey at loehmanns.com Tue Feb 4 14:59:11 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Tue, 4 Feb 2003 08:59:11 -0500 Subject: Web-command to reload config Message-ID: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> Reload Config == stop + start IMHO -----Original Message----- From: David Corbin [mailto:dcorbin at machturtle.com] Sent: Tuesday, February 04, 2003 6:56 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Web-command to reload config Is there a web-command to reload the configuration? I see one for restarting the Nagios process and shutting it down, but not reloading.... Thanks David ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jarett_DeAngelis at fujifilm.com Tue Feb 4 15:15:04 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 04 Feb 2003 09:15:04 -0500 Subject: "No lock file found" and SIGSEGV Message-ID: Yep, you're right. I put in ePN becasue I figured there would be a lot of Perl plugins out there and I was going to need them. Okay. If I recompile now, it's not going to overwrite my config files unless I do make-config, right? Is there anything I should know about recompilation as far as what gets replaced, what permissions need to be set, etc. goes? >>> "Carroll, Jim P [Contractor]" 02/03/03 07:35PM >>> I can't help but wonder if you have the Perl support (ePN) compiled into Nagios. If you did, then go back and recompile *without* Perl support. There's currently a known issue with ePN/Perl 5.8.0. jc > -----Original Message----- > From: Jarett DeAngelis [mailto:Jarett_DeAngelis at fujifilm.com] > Sent: Monday, February 03, 2003 5:00 PM > To: ofb at budget-tech.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] "No lock file found" and SIGSEGV > > > chown and chgrped it, then chmod 770ed it. None of this helped. > > Any other hints? :-/ > > >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" > 02/02/03 06:35PM >>> > Can Nagios write to the VAR directory? This lock file is a > file that Nagios > creates... so it needs to be able to write to that dir, and > there should be > no manually created file called nagios.lock (which is > something that folks > seem to think they need to do). > > Olivier > > ----- Original Message ----- > From: "Jarett DeAngelis" > To: > Sent: Sunday, February 02, 2003 5:21 PM > Subject: RE: [Nagios-users] "No lock file found" and SIGSEGV > > > Yes I do. And which privs? > > >>> "Olivier Beauchemin" 02/02/03 > 05:20PM >>> > > Just thought of this... do you have that path? and are the > privs correct? > > Olivier > > ---------- Original Message ---------------------------------- > From: "Jarett DeAngelis" > Date: Sun, 02 Feb 2003 16:15:04 -0500 > > >Nagios 1.0 starting... (PID=1467) > >Finished daemonizing... (New PID=1468) > >Caught SIGSEGV, shutting down... > > > >That's all I get from the log. On the console it just says > "no lock file > found in /usr/local/nagios/var/nagios.lock" and then quits. > > > >Any ideas? This is a VERY simple configuration I've got > going here, just > three hosts and one check_ping on each. Just about > everything is commented > out. > > > >Help? > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From magnus.pettersson at eds.com Tue Feb 4 15:56:00 2003 From: magnus.pettersson at eds.com (Pettersson, Magnus) Date: Tue, 4 Feb 2003 14:56:00 -0000 Subject: Check_ping Message-ID: <5917FD47436E784D8B08F132F0AC506151E606@sessm201> By the plugin utilizing the system ping command, which must be suid root. /magnus -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: 04 February 2003 13:57 To: Nagios users list Subject: Re: [Nagios-users] Check_ping On Tue, Feb 04, 2003 at 12:33:10PM +0100, Brendon Caligari wrote: > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? By sending ICMP packages. What exactly is your problem? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew at anvil.org Tue Feb 4 16:12:31 2003 From: andrew at anvil.org (Andrew Meredith) Date: 04 Feb 2003 15:12:31 +0000 Subject: Distributed checks Message-ID: <1044371550.30680.30.camel@coliseum.ch.anvil.org> Hi Folks, Before I start I should say that I have searched the mail archives for questions similar to the following, but didn't come up with anything. I then unpacked the source code and went through the logic for accepting checks and for initiating checks, with particular reference to the control variables. I therefore hope you will forgive if these are FAQs. Platform & version ------------------ Platform: Red Hat 7.3 on Athlon Nagios: 1.0 enable_active_checks -------------------- I tried following the documented procedure in html/docs/distributed.html where it recommends using a variable of this name. I did so and it seemed to have absolutely no effect. It turns out that the source code does not include this variable. There are a number of different variables of the type "stop the thing doing active checks for the purpose of distributed testing" mentioned variously in the source code and/or the documentation, but none of them quite go all the way to the following setup. The distributed architecture I am after --------------------------------------- Server The server should be configured to know about a remote host and optionally be able to check that the host itself is actually up, and to externally check some/all of the network services. It should however be possible to prevent it from trying to check a remote machine where the network topology does not permit this. This would give a false negative. If the remote machine stops submitting results to the server, the server should follow the usual timeouts as if it was performing the checks itself. Client The client has its own configuration .. hopefully differing from the server version of its config by a very few parameters. It can stack up results in the event of a network outage between the client and the server .. sending them through when things come back. This way the stats for the box aren't affected by network outages that don't necessarily affect its actually uptime and would be recorded separately anyway. How have I done --------------- I am quite close, but for two points .. one cosmetic and one show-stopper. Cosmetic: The only way I have found of shutting off active checks from the server is to set the checks_enabled flag in the host description. This is taken as meaning that the services are to be tested by a remote host by some parts of the UI. However other parts see this as the service being disabled and display it as such. Show-stopper: With the above configuration the server quite happily receives and displays service checks from the distributed remote and will show state changes and everything in the case of a service failure. If however something stops the delivery of service checks, the server simply keeps displaying the last state. If the checks had been done from the server and the network dropped, the failure would be flagged. Is there any way of making the active checks stop without stopping the server from changing state to at least "Unknown" if not "Critical". If you got this far .. thanks for reading :) Andrew Meredith BEng CEng MBCS MIEE _______________________________________________________________ The Anvil Organisation Ltd. Director Tel: +44 (0) 1249 444240 | Email: andrew at anvil.org Fax: +44 (0) 1249 460560 | Web: http://www.anvil.org/ Mob: +44 (0) 7802 389007 | WAPMail: andrew.meredith at orange.net _______________________________________________________________ The box says Win95 or better .. Must run under Linux then! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Tue Feb 4 16:20:03 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 4 Feb 2003 10:20:03 -0500 Subject: Running into problems with check_snmp Message-ID: <5593DA408212D511B0910002A513501F01D288D9@phsexch20.mgh.harvard.edu> I am trying to monitor a remote printer with the check_snmp command. I have installed the net-snmp package on the Nagios server. The printer in question has the default community name of public. When I run the snmpget command manually I do get information about the remote host. Here is the command syntax and its output: snmpget -v 1 -c public 132.183.220.26 sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Tektronix, Inc., Phaser 750N, PhaserShare Series B Network Interface, (5.62/11.100/10/2.28) The problem I am running into is getting the check_snmp script to work. When I run it either automatically or manually I get the message SNMP Problem - No Data Received from the host Here is the syntax that I used to run check_snmp: ./check_snmp -H 132.183.220.26 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From garet at realtime.net Tue Feb 4 16:05:52 2003 From: garet at realtime.net (Russ Barnard) Date: Tue, 4 Feb 2003 09:05:52 -600 Subject: Curious what I am doing wrong here Message-ID: <3e3fd6d0.3f54.0@realtime.net> Guys, hope I am not bothering anyone. I was asked to evaluate this software. Sure I don't have a doctrine in coding.. but heh.. I need some help here.. I typed the following line as per the instructions: /configure --prefix=/usr/local/nagios I took defaults on all of the rest. The end of the compilation even SAYS it is installed into that dir.. but the directories (bin, etc, sbin, share, var) do not exist below it. If I do a make install.. then I get the correct result, but perhaps I am missing something here that you can shed light on. Thanks Russ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Tue Feb 4 16:25:18 2003 From: brendon at iwg.info (Brendon Caligari) Date: Tue, 4 Feb 2003 16:25:18 +0100 Subject: Check_ping Message-ID: Thanks :-) Actually figured that out looking at 'ps' :-) B -----Original Message----- From: Pettersson, Magnus [mailto:magnus.pettersson at eds.com] Sent: 04 February 2003 15:56 To: Nagios users list Subject: RE: [Nagios-users] Check_ping By the plugin utilizing the system ping command, which must be suid root. /magnus -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: 04 February 2003 13:57 To: Nagios users list Subject: Re: [Nagios-users] Check_ping On Tue, Feb 04, 2003 at 12:33:10PM +0100, Brendon Caligari wrote: > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? By sending ICMP packages. What exactly is your problem? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 4 16:53:45 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 04 Feb 2003 10:53:45 -0500 Subject: Web-command to reload config References: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> Message-ID: <3E3FE209.4020709@quadrix.com> You don't need to stop and start Nagios to reload the configs. You can HUP the nagios process (which is what the init script does when you tell nagios to "reload"). There is no option to do this from the UI, but the restart would also cause a reload of the configs, if they have no errors in them. Russell Aleksey Domorad wrote: > Reload Config == stop + start > IMHO > > -----Original Message----- > From: David Corbin [ mailto:dcorbin at machturtle.com ] > Sent: Tuesday, February 04, 2003 6:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Web-command to reload config > > > Is there a web-command to reload the configuration? I see one for > restarting the Nagios process and shutting it down, but not reloading.... > > Thanks > David > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com _______________________________________________ > > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 4 18:05:52 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 12:05:52 -0500 (EST) Subject: Check_ping In-Reply-To: References: Message-ID: On Tue, 4 Feb 2003, Brendon Caligari wrote: > > RH73 + 256mb ram + everything functional > > I installed nagios from source and nagios-plugins from rpm > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? > > The plugin calls your system's ping command which is suid. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From i.stokes-rees1 at physics.ox.ac.uk Tue Feb 4 18:25:16 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Tue, 4 Feb 2003 17:25:16 -0000 Subject: Network traffic plugin? Message-ID: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> Which plugin is generally used to monitor network traffic? Or do I just have to "write my own", and if so, what is the most common command to get the relevant stats? Cheers, Ian. -- Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes/ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 18:52:52 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 12:52:52 -0500 (EST) Subject: Network traffic plugin? In-Reply-To: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> References: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> Message-ID: On Tue, 4 Feb 2003, Ian Stokes-Rees wrote: > Which plugin is generally used to monitor network traffic? Or do I just > have to "write my own", and if so, what is the most common command to get > the relevant stats? > > Cheers, > > Ian. > > Usualy MRTG or other RRDTool based packages are used to monitor traffic. You can then use check_mrtgtraf/check_rrd_data plugins for alerts. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Steve.Rossen at Parago.Com Tue Feb 4 18:50:06 2003 From: Steve.Rossen at Parago.Com (Steve Rossen) Date: Tue, 4 Feb 2003 11:50:06 -0600 Subject: NRPE 2.0? Message-ID: <2D2B13BD2D3ED41195E1009027FCA06E026398F9@copexc51.parago.com> According to the FAQ at http://www.nagios.org/faqs/viewfaq.php?faq_id=139 there is a NRPE 2.0, anyone know where it can be downloaded? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Tue Feb 4 18:57:22 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 4 Feb 2003 11:57:22 -0600 Subject: Network traffic plugin? Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED35B@mismail.ena.com> What kind of monitoring are you talking about? Alerting to adverse conditions or trending? You might want to look at APAN (http://apan.sourceforge.net/) or Cricket (http://cricket.sourceforge.net). Cricket is a separate package from Nagios. If you're wanting to alert to adverse utilization and are using MRTG to grab that data already check_mrtg or check_mrtgtraf might be useful to you. If neither of those suit your needs then you'll likely need to write your own to fit the bill. You'll need to familiarize yourself with SNMP to get the statistics you need. -- Marc > -----Original Message----- > From: Ian Stokes-Rees [mailto:i.stokes-rees1 at physics.ox.ac.uk] > Sent: Tuesday, February 04, 2003 11:25 AM > To: 'Nagios List' > Subject: [Nagios-users] Network traffic plugin? > > Which plugin is generally used to monitor network traffic? Or do I just > have to "write my own", and if so, what is the most common command to get > the relevant stats? > > Cheers, > > Ian. > > -- > Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk > Particle Physics, Oxford http://www- > pnp.physics.ox.ac.uk/~stokes/ > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From lfcrob at nicusa.com Tue Feb 4 19:01:43 2003 From: lfcrob at nicusa.com (Rob Lindenbusch) Date: Tue, 4 Feb 2003 13:01:43 -0500 Subject: Recurring Downtime Message-ID: <006401c2cc77$7a8fe3a0$1c64a8c0@glock> Does anyone have a good method for scheduling recurring downtime in Nagios? I have some services that are down for maintenance during a scheduled window every week. Is there a way to handle this other than scripting an insertion into the downtime file that would be run every week? Thanks in advance Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 18:58:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 4 Feb 2003 11:58:39 -0600 Subject: Network traffic plugin? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1422@PKDWB03C.ad.sprint.com> check_ifstatus or check_ifoperstatus, which use SNMP. jc > -----Original Message----- > From: Ian Stokes-Rees [mailto:i.stokes-rees1 at physics.ox.ac.uk] > Sent: Tuesday, February 04, 2003 11:25 AM > To: 'Nagios List' > Subject: [Nagios-users] Network traffic plugin? > > > Which plugin is generally used to monitor network traffic? > Or do I just > have to "write my own", and if so, what is the most common > command to get > the relevant stats? > > Cheers, > > Ian. > > -- > Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk > Particle Physics, Oxford > http://www-pnp.physics.ox.ac.uk/~stokes/ > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Tue Feb 4 19:48:53 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 4 Feb 2003 12:48:53 -0600 Subject: Recurring Downtime Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED35E@mismail.ena.com> That's one way to do it. Another would be to create a custom time period that does not include your regular maintenance window and then apply that to either the notification_period or check_period for the host/service (or both). -- Marc > -----Original Message----- > From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] > Sent: Tuesday, February 04, 2003 12:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Recurring Downtime > > Does anyone have a good method for scheduling recurring downtime in > Nagios? > I have some services that are down for maintenance during a scheduled > window > every week. Is there a way to handle this other than scripting an > insertion > into the downtime file that would be run every week? > > Thanks in advance > > Rob Lindenbusch > Systems and Network Administrator > NIC > E-mail: lfcrob at nicusa.com > Phone: (317)290-1020 ext. 42 > Mobile: (317)506-5379 > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Tue Feb 4 19:55:05 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Tue, 4 Feb 2003 12:55:05 -0600 Subject: Recurring Downtime Message-ID: Why not just create a timeperiod to match their maintenance window?I do the same thing with databases that are down during a certain period every weekend for backups. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: lfcrob [mailto:lfcrob at nicusa.com] Sent: Tuesday, February 04, 2003 12:02 PM To: nagios-users Subject: [Nagios-users] Recurring Downtime Does anyone have a good method for scheduling recurring downtime in Nagios? I have some services that are down for maintenance during a scheduled window every week. Is there a way to handle this other than scripting an insertion into the downtime file that would be run every week? Thanks in advance Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld - Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 19:46:57 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 4 Feb 2003 12:46:57 -0600 Subject: Recurring Downtime Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2543@PKDWB03C.ad.sprint.com> Simple approach: You define a new timeperiod, and use that in your host definition, e.g., # '24x7 except for backups' timeperiod definition define timeperiod{ timeperiod_name backup-window alias 24x7 except for backups sunday 00:00-04:00,05:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } This would avoid notifications from 4am to 5am, Sunday mornings. HTH. jc > -----Original Message----- > From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] > Sent: Tuesday, February 04, 2003 12:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Recurring Downtime > > > Does anyone have a good method for scheduling recurring > downtime in Nagios? > I have some services that are down for maintenance during a > scheduled window > every week. Is there a way to handle this other than > scripting an insertion > into the downtime file that would be run every week? > > Thanks in advance > > Rob Lindenbusch > Systems and Network Administrator > NIC > E-mail: lfcrob at nicusa.com > Phone: (317)290-1020 ext. 42 > Mobile: (317)506-5379 > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 4 21:21:33 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 04 Feb 2003 15:21:33 -0500 Subject: Different args for different times Message-ID: <3E4020CD.9080808@quadrix.com> I want to have a service defined that runs a different command depending on the timeperiod. Example: define service{ use GenericService host_name backup_host service_description Load check_command check_load!6,6,6!8,8,8 check_period backup_times } define service{ use GenericService host_name backup_host service_description Load check_command check_load!2,2,2!4,4,4 check_period nonbackup_times } However, Nagios yells about there being 2 services with the same name. I tried renaming the first one to backupLoad, which works except that if the service is critical at the end of the timeperiod, it continues to display a critical after the backup_times timeperiod is over. Is there anyway around this? Ideally I would like them to have the same name, so that during one timeperiod, one set of args is used and during the other timeperiod, the different set is used. Any help would be appreciated. Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:19:59 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:19:59 -0500 (EST) Subject: UPS Monitoring In-Reply-To: <20030117231915.M78563@4wx.net> References: <20030117231915.M78563@4wx.net> Message-ID: First you need a daemon to monitor the status on the serail port - Take a look at Network UPS Tools on exploits.org. Once you have NUT runnig, you can use check_ups in the standard plugin dist to monitor the state of the UPS via NUT. -sg On Fri, 17 Jan 2003, donavan nelson wrote: > That would require having an APC network card in the UPS. I have several > SMART UPS's (2200's and 1400's) and they don't have USB or networks. Just > serial ports. > > There has to be someway to monitor the UPS via the serial port. > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Pivert > To: Nagios List > Sent: 18 Jan 2003 00:06:30 +0100 > Subject: Re: [Nagios-users] UPS Monitoring > > > Your direction should be snmp. > > > > You probably have a linux application with your ups that can give > > some information via snmp. I have an ellipse UPS serial(not usb) low > > end for home use an they give that on the CD. > > > > Bye > > > > Le ven 17/01/2003 ? 20:22, Jeff McKeon a ?crit : > > > Is there any kind of plugin out there that can monitor an APC-SMART > > > UPS? I have six of these rack mount puppies in my datacenter and would > > > like to be able to hook them up to a linux box via com ports and have > > > nagios send an alert if one loses it's power feed. > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will > > > allow you to extend the highest allowed 128 bit encryption to all your > > > clients even if they use browsers that are limited to 40 bit encryption. > > > Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts > > will allow you to extend the highest allowed 128 bit encryption to > > all your clients even if they use browsers that are limited to 40 > > bit encryption. Get a guide > here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------- End of Original Message ------- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will > allow you to extend the highest allowed 128 bit encryption to all your > clients even if they use browsers that are limited to 40 bit encryption. > Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:26:13 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:26:13 -0500 (EST) Subject: snmp_check In-Reply-To: <3E28065A.10206@eln.gov.br> References: <3E28065A.10206@eln.gov.br> Message-ID: On Fri, 17 Jan 2003, Uriel de Almeida Papa wrote: > Hello, > > Could someone please help me to use snmp_check command to test up/down > interface OID value? > > Tnks! > Uriel > To monitor interface - try the check_ifoperstatus or check_ifstatus plugins -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Feb 4 21:48:16 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 5 Feb 2003 07:48:16 +1100 Subject: Network traffic plugin? In-Reply-To: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk>; from i.stokes-rees1@physics.ox.ac.uk on Tue, Feb 04, 2003 at 05:25:16PM -0000 References: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> Message-ID: <20030205074808.A214@IPAustralia.Gov.AU> Dear Sir, The development versions of RRDtool contain Jake Brutlags Holt-Winters based time series forcasting/anomaly detection code. There is a very good paper by Mr Brutlag that illustrates the utility of this approach in the triage of _large numbers_ of interface graphs (ISP or ASP or carrier siituation). It's quiet easy to integrate RRD tool with H-W prediction into a plugin (the H-W time series is another RRA). My experience is that it is not as sensitive as heuristics like 'flows should be within this range' but because it is adaptive, it is not deceived by fluctations. (In my case, I have a time series - the output of a process - that doesnot exhibit periodic fluctation, yet it still works Ok). Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:49:57 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:49:57 -0500 (EST) Subject: SMB server and Citrix server service check? In-Reply-To: References: Message-ID: On Wed, 29 Jan 2003, Jarett DeAngelis wrote: > Hi all, > > I'm looking for a service check I can use to verify that SMB servers > and/or Citrix Winframe servers are functioning. Does anyone know which > I should use and how? > > Thanks, Jarett DeAngelis > > (Olivier: I'm almost done, just need some way to verify that these three > hosts I added are functioning properly) > plugins-scripts/check_disk_smb contrib/check_smb.sh contrib/tarballs/check_cit.tgz -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 22:01:33 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 16:01:33 -0500 (EST) Subject: NRPE 2.0? In-Reply-To: <2D2B13BD2D3ED41195E1009027FCA06E026398F9@copexc51.parago.com> References: <2D2B13BD2D3ED41195E1009027FCA06E026398F9@copexc51.parago.com> Message-ID: On Tue, 4 Feb 2003, Steve Rossen wrote: > According to the FAQ at http://www.nagios.org/faqs/viewfaq.php?faq_id=139 > there is a NRPE 2.0, > anyone know where it can be downloaded? > CVS - no official release -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:58:17 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:58:17 -0500 (EST) Subject: Different args for different times In-Reply-To: <3E4020CD.9080808@quadrix.com> References: <3E4020CD.9080808@quadrix.com> Message-ID: not easy in the current setup. easiest would be to write a wrapper which checks localtime and calls check_load with the approriate args... -sg On Tue, 4 Feb 2003, Russell Scibetti wrote: > I want to have a service defined that runs a different command depending > on the timeperiod. Example: > > define service{ > use GenericService > host_name backup_host > service_description Load > check_command check_load!6,6,6!8,8,8 > check_period backup_times > } > > define service{ > use GenericService > host_name backup_host > service_description Load > check_command check_load!2,2,2!4,4,4 > check_period nonbackup_times > } > > However, Nagios yells about there being 2 services with the same name. > I tried renaming the first one to backupLoad, which works except that > if the service is critical at the end of the timeperiod, it continues to > display a critical after the backup_times timeperiod is over. Is there > anyway around this? Ideally I would like them to have the same name, so > that during one timeperiod, one set of args is used and during the other > timeperiod, the different set is used. Any help would be appreciated. > > Russell Scibetti > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 22:17:40 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 16:17:40 -0500 (EST) Subject: Stange problem checking https In-Reply-To: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> References: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> Message-ID: Can you post the command (add the verbose option) and the output... -sg On Fri, 31 Jan 2003, DM wrote: > > Following Subhendu's suggestion, I've installed the latest check_http plugin, > but unfortunately, Nagios is still issuing a "warning" status for a seemingly fine > reponse from the web server. > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > Current Status: WARNING (Has been acknowledged) > Status Information: HTTP ok: HTTP/1.0 200 OK - 0.240 second response time > Current Attempt: 3/3 > State Type: HARD > Last Check Type: ACTIVE > Last Check Time: 01-31-2003 10:55:22 > Status Data Age: 0d 0h 2m 6s > Next Scheduled Active Check: 01-31-2003 11:00:22 > Latency: < 1 second > Check Duration: < 1 second > Last State Change: 01-27-2003 10:27:32 > Current State Duration: 4d 0h 29m 56s > Last Service Notification: 01-27-2003 12:27:32 > Current Notification Number: 3 > Is This Service Flapping? N/A > Percent State Change: N/A > In Scheduled Downtime? NO > Last Update: 01-31-2003 10:57:20 > > > All details from below are still the same, with the exception that I now have the latest version of the > check_http plugin. > > Any ideas? > > -David > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Monday, January 27, 2003 2:01 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > On Mon, 27 Jan 2003, DM wrote: > > > > > Hi All, > > > > > > I've got a problem with Nagios returning a "warning status" when > > > checking https on a Resin http server. Resin is a servlet/JSP engine > > > which can also serve up static pages as well as dynamic. > > (details can be > > > had at http://www.caucho.com/resin/) > > > > > > The problem is that Nagios keeps generating a "warning" > > status for the > > > http service, even though the service is up. Nagios doesn't > > even seem to > > > indicate a problem, other than indicating a warning status. (i.e. > > > response time is good, etc.) > > > > > > The Resin server is serving up the https pages just fine. Hitting it > > > with different browsers (IE6, Konqueror) works fine. Also Nagios is > > > working fine with other web servers (Zeus, IIS). I've > > checked the syntax > > > and run the check_http manually with the command line and > > it works fine > > > too. The response from the plugin is always "HTTP ok: > > HTTP/1.0 200 OK - > > > 0 second response time" > > > > > > The only difference I can come up with is that the http > > response from > > > the Resin server comes back as "HTTP/1.0" as opposed to all > > the other > > > web servers which return a "HTTP/1.1" Could this be causing > > a problem > > > for Nagios? > > > > > > Below are full details about platforms, versions, relevant > > lines from > > > config files, etc. As mentioned above, this Nagios config works just > > > fine with my other servers. > > > > > > Any ideas are appreciated. > > > > > > -David > > > > > > > > > Nagios version: > > > > > > Nagios 1.0 > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > Last Modified: 11-24-2002 > > > License: GPL > > > > > > Nagios server is running on Solaris 8.0 with latest > > Maintenance Updates/ patch > > > clusters. > > > > > > check_http plugin version: > > > > > > admin at nagios:>check_http -V > > > check_http (netsaint-plugins 1.2.9-4) 1.32.2.6 > > > > > > services.cfg: > > > > > > check_command > > > check_https!hosta.mydomain.com!/test/test?act=login&id=123ABC123 > > > > > > commands.cfg: > > > > > > # 'check_https' command definition > > > define command{ > > > command_name check_https > > > command_line /apps/nagios/libexec/check_http -S > > -I $HOSTADDRESS$ -H $ > > > ARG1$ -u $ARG2$ -t 40 -e 200 > > > } > > > > > > hosts.cfg: > > > > > > # 'hosta' host definition > > > define host{ > > > use generic-host ; > > Name of host template > > > to use > > > > > > host_name hosta > > > alias AliasA > > > address 2.3.4.5 > > > parents parenta > > > check_command check-host-alive > > > max_check_attempts 10 > > > notification_interval 120 > > > notification_period normal > > > notification_options d,u,r > > > } > > > > > > > > > Running the check_http command manually using the > > > same parameters that Nagios uses, works fine: > > > > > > check_http \ > > > -S -I hosta.mydomain.com \ > > > -H web.mydomain.com \ > > > -u '/test/test?act=login&id=123ABC123' -t 40 -e 200 > > > > > > It returns a normal status: > > > > > > "HTTP ok: HTTP/1.0 200 OK - 0 second response time" > > > > > > >From the "Service State Information" page on Nagios: > > > > > > Current Status: WARNING > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second > > response time > > > Current Attempt: 3/3 > > > State Type: HARD > > > Last Check Type: ACTIVE > > > Last Check Time: 01-27-2003 12:07:23 > > > Status Data Age: 0d 0h 2m 11s > > > Next Scheduled Active Check: 01-27-2003 12:12:23 > > > Latency: 1 second > > > Check Duration: < 1 second > > > Last State Change: 01-27-2003 10:27:32 > > > Current State Duration: 0d 1h 42m 2s > > > Last Service Notification: 01-27-2003 11:27:32 > > > Current Notification Number: 2 > > > Is This Service Flapping? N/A > > > Percent State Change: N/A > > > In Scheduled Downtime? NO > > > Last Update: 01-27-2003 12:09:22 > > > > > > >From the "Alert History" on Nagios: > > > > > > [01-27-2003 10:27:32] SERVICE ALERT: > > hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 > > second response time > > > [01-27-2003 10:26:32] SERVICE ALERT: > > hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 > > second response time > > > [01-27-2003 10:25:33] SERVICE ALERT: > > hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 > > second response time > > > > > > > > > > > > > > On the command line - do n "echo $?" after the plugin to see what the > > return code is. > > > > Also may want to try a newer check_http - lots of changes > > since 1.2.9-4 > > release. > > > > -- > > -sg -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 22:43:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 16:43:06 -0500 (EST) Subject: Shorting paging messing In-Reply-To: References: Message-ID: rewrite the commands used to deliver the pages to be a bit more terse. -sg On Thu, 30 Jan 2003, Dan Spray wrote: > Hello all, > > > > My carrier just shorted the number of characters that you can send at once. > Now I am getting 2 pages for every event. How do I specify what text gets > paged? > > > > Thanks in advance, > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 4 22:52:14 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 04 Feb 2003 16:52:14 -0500 Subject: Different args for different times References: Message-ID: <3E40360E.5040704@quadrix.com> I just gave in and did it that way. Maybe something to keep in mind for future Nagios features - Time based command/arguments. Russell Subhendu Ghosh wrote: >not easy in the current setup. > >easiest would be to write a wrapper which checks localtime and calls >check_load with the approriate args... > >-sg > >On Tue, 4 Feb 2003, Russell Scibetti wrote: > >>I want to have a service defined that runs a different command depending >>on the timeperiod. Example: >> >>define service{ >> use GenericService >> host_name backup_host >> service_description Load >> check_command check_load!6,6,6!8,8,8 >> check_period backup_times >> } >> >>define service{ >> use GenericService >> host_name backup_host >> service_description Load >> check_command check_load!2,2,2!4,4,4 >> check_period nonbackup_times >> } >> >>However, Nagios yells about there being 2 services with the same name. >> I tried renaming the first one to backupLoad, which works except that >>if the service is critical at the end of the timeperiod, it continues to >>display a critical after the backup_times timeperiod is over. Is there >>anyway around this? Ideally I would like them to have the same name, so >>that during one timeperiod, one set of args is used and during the other >>timeperiod, the different set is used. Any help would be appreciated. >> >>Russell Scibetti >> >> > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios.dm at wrhambrecht.com Tue Feb 4 23:33:59 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Tue, 4 Feb 2003 14:33:59 -0800 Subject: Stange problem checking https Message-ID: <000801c2cc9d$82e67bb0$bb20a8c0@corp.wrhambrecht.com> Subhendu, Here's the output you requested: $/apps/nagios/libexec> ./check_http -V check_http (nagios-plugins 1.3.0-beta2) 1.12 $/apps/nagios/libexec> /apps/nagios/libexec/check_http -v -S -I hosta.mydomain.com -H intranet.mydomain.com -u '/eqo/auction?act=login&cusip=45673456' -t 40 -e 200 Page is 5882 characters STATUS: HTTP/1.0 200 OK **** HEADER **** Server: Resin/2.1.s021217 Pragma: no-cache Expires: -1 Cache-Control: no-cache P3P: CP="NON DSP COR CURa ADMa IVAa IVDa CONa OUR NOR UNI PUR COM NAV STA" Set-Cookie: JSESSIONID=aKepta_IHR-4; Path=/ Content-Type: text/html Date: Tue, 04 Feb 2003 21:58:21 GMT **** CONTENT **** OpenFollowOn 45673456: Login
 
Login to the OpenFollowOn Auction for:
4,000,000 shares of Acme Inc. (NASDAQ:ACME)
Current Time: 02/04/03, 04:58PM EST
Auction open time: 02/04/03 at 05:00PM EST
  The auction is Not Open
User ID
Password
 
Click here to view Auction Terms

Very Important: After submitting or changing a bid in the auction, you will always be asked for confirmation. If you do not indicate confirmation by clicking a confirmation button, your bidding action will not be recorded by the system.

Reminder: Your browser must have "cookies" enabled in order to access the auction. If you have trouble accessing the system, please contact your local technical support personnel or contact us.
HTTP OK: Status line output matched "200" HTTP ok: HTTP/1.0 200 OK - 0.293 second response time |time= 0.293 $/apps/nagios/libexec> echo $? 0 > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, February 04, 2003 1:18 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > > > Can you post the command (add the verbose option) and the output... > > -sg > > On Fri, 31 Jan 2003, DM wrote: > > > > > Following Subhendu's suggestion, I've installed the latest > check_http plugin, > > but unfortunately, Nagios is still issuing a "warning" > status for a seemingly fine > > reponse from the web server. > > > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > > > Current Status: WARNING (Has been acknowledged) > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0.240 second > response time > > Current Attempt: 3/3 > > State Type: HARD > > Last Check Type: ACTIVE > > Last Check Time: 01-31-2003 10:55:22 > > Status Data Age: 0d 0h 2m 6s > > Next Scheduled Active Check: 01-31-2003 11:00:22 > > Latency: < 1 second > > Check Duration: < 1 second > > Last State Change: 01-27-2003 10:27:32 > > Current State Duration: 4d 0h 29m 56s > > Last Service Notification: 01-27-2003 12:27:32 > > Current Notification Number: 3 > > Is This Service Flapping? N/A > > Percent State Change: N/A > > In Scheduled Downtime? NO > > Last Update: 01-31-2003 10:57:20 > > > > > > All details from below are still the same, with the > exception that I now have the latest version of the > > check_http plugin. > > > > Any ideas? > > > > -David > > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Monday, January 27, 2003 2:01 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > > > > On Mon, 27 Jan 2003, DM wrote: > > > > > > > Hi All, > > > > > > > > I've got a problem with Nagios returning a "warning status" when > > > > checking https on a Resin http server. Resin is a > servlet/JSP engine > > > > which can also serve up static pages as well as dynamic. > > > (details can be > > > > had at http://www.caucho.com/resin/) > > > > > > > > The problem is that Nagios keeps generating a "warning" > > > status for the > > > > http service, even though the service is up. Nagios doesn't > > > even seem to > > > > indicate a problem, other than indicating a warning > status. (i.e. > > > > response time is good, etc.) > > > > > > > > The Resin server is serving up the https pages just > fine. Hitting it > > > > with different browsers (IE6, Konqueror) works fine. > Also Nagios is > > > > working fine with other web servers (Zeus, IIS). I've > > > checked the syntax > > > > and run the check_http manually with the command line and > > > it works fine > > > > too. The response from the plugin is always "HTTP ok: > > > HTTP/1.0 200 OK - > > > > 0 second response time" > > > > > > > > The only difference I can come up with is that the http > > > response from > > > > the Resin server comes back as "HTTP/1.0" as opposed to all > > > the other > > > > web servers which return a "HTTP/1.1" Could this be causing > > > a problem > > > > for Nagios? > > > > > > > > Below are full details about platforms, versions, relevant > > > lines from > > > > config files, etc. As mentioned above, this Nagios > config works just > > > > fine with my other servers. > > > > > > > > Any ideas are appreciated. > > > > > > > > -David > > > > > > > > > > > > Nagios version: > > > > > > > > Nagios 1.0 > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > Last Modified: 11-24-2002 > > > > License: GPL > > > > > > > > Nagios server is running on Solaris 8.0 with latest > > > Maintenance Updates/ patch > > > > clusters. > > > > > > > > check_http plugin version: > > > > > > > > admin at nagios:>check_http -V > > > > check_http (netsaint-plugins 1.2.9-4) 1.32.2.6 > > > > > > > > services.cfg: > > > > > > > > check_command > > > > > check_https!hosta.mydomain.com!/test/test?act=login&id=45673456 > > > > > > > > commands.cfg: > > > > > > > > # 'check_https' command definition > > > > define command{ > > > > command_name check_https > > > > command_line /apps/nagios/libexec/check_http -S > > > -I $HOSTADDRESS$ -H $ > > > > ARG1$ -u $ARG2$ -t 40 -e 200 > > > > } > > > > > > > > hosts.cfg: > > > > > > > > # 'hosta' host definition > > > > define host{ > > > > use generic-host ; > > > Name of host template > > > > to use > > > > > > > > host_name hosta > > > > alias AliasA > > > > address 2.3.4.5 > > > > parents parenta > > > > check_command check-host-alive > > > > max_check_attempts 10 > > > > notification_interval 120 > > > > notification_period normal > > > > notification_options d,u,r > > > > } > > > > > > > > > > > > Running the check_http command manually using the > > > > same parameters that Nagios uses, works fine: > > > > > > > > check_http \ > > > > -S -I hosta.mydomain.com \ > > > > -H web.mydomain.com \ > > > > -u '/test/test?act=login&id=45673456' -t 40 -e 200 > > > > > > > > It returns a normal status: > > > > > > > > "HTTP ok: HTTP/1.0 200 OK - 0 second response time" > > > > > > > > >From the "Service State Information" page on Nagios: > > > > > > > > Current Status: WARNING > > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second > > > response time > > > > Current Attempt: 3/3 > > > > State Type: HARD > > > > Last Check Type: ACTIVE > > > > Last Check Time: 01-27-2003 12:07:23 > > > > Status Data Age: 0d 0h 2m 11s > > > > Next Scheduled Active Check: 01-27-2003 12:12:23 > > > > Latency: 1 second > > > > Check Duration: < 1 second > > > > Last State Change: 01-27-2003 10:27:32 > > > > Current State Duration: 0d 1h 42m 2s > > > > Last Service Notification: 01-27-2003 11:27:32 > > > > Current Notification Number: 2 > > > > Is This Service Flapping? N/A > > > > Percent State Change: N/A > > > > In Scheduled Downtime? NO > > > > Last Update: 01-27-2003 12:09:22 > > > > > > > > >From the "Alert History" on Nagios: > > > > > > > > [01-27-2003 10:27:32] SERVICE ALERT: > > > hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 > > > second response time > > > > [01-27-2003 10:26:32] SERVICE ALERT: > > > hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 > > > second response time > > > > [01-27-2003 10:25:33] SERVICE ALERT: > > > hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 > > > second response time > > > > > > > > > > > > > > > > > > > > On the command line - do n "echo $?" after the plugin to > see what the > > > return code is. > > > > > > Also may want to try a newer check_http - lots of changes > > > since 1.2.9-4 > > > release. > > > > > > -- > > > -sg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 4 23:41:45 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 17:41:45 -0500 (EST) Subject: Stange problem checking https In-Reply-To: <000801c2cc9d$82e67bb0$bb20a8c0@corp.wrhambrecht.com> References: <000801c2cc9d$82e67bb0$bb20a8c0@corp.wrhambrecht.com> Message-ID: Everything looks ok from the plugin - are you sure you don't have multiple nagios proceses running? a stop/start may clear it up. -sg On Tue, 4 Feb 2003, DM wrote: > Subhendu, > > Here's the output you requested: > > > $/apps/nagios/libexec> ./check_http -V > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > $/apps/nagios/libexec> /apps/nagios/libexec/check_http -v -S -I hosta.mydomain.com -H intranet.mydomain.com -u '/eqo/auction?act=login&cusip=45673456' -t 40 -e 200 > > Page is 5882 characters > STATUS: HTTP/1.0 200 OK > **** HEADER **** > Server: Resin/2.1.s021217 > Pragma: no-cache > Expires: -1 > Cache-Control: no-cache > P3P: CP="NON DSP COR CURa ADMa IVAa IVDa CONa OUR NOR UNI PUR COM NAV STA" > Set-Cookie: JSESSIONID=aKepta_IHR-4; Path=/ > Content-Type: text/html > Date: Tue, 04 Feb 2003 21:58:21 GMT > **** CONTENT **** > > > > > OpenFollowOn 45673456: Login > > marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" > onLoad="javascript:assertTopFrame();"> > > href="javascript:SpawnWindow('/eqo/terms?cusip=45673456','termsWin','102014252910118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perDeal&cusip=45673456&content=rules','contentWin','1020142529 > > 10118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perProduct&cusip=45673456&content=hiw/overview','contentWin',' > > 102014252910118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perProduct&cusip=45673456&content=hiw/faq','contentWin','10201 > > 4252910118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perDeal&cusip=45673456&content=contacts','contentWin','1020142 > > 52910118172714')"> > > background="/eqo/web-content/images/horiz_bg_pat.gif"> > > > > > >
 
> > > > >
> usemap="#Map" border="0">
> > > > > > > > > >
> Login to the OpenFollowOn > Auction for:
> 4,000,000 shares of Acme Inc. > (NASDAQ:ACME)
> Current Time: > 02/04/03, 04:58PM EST
> Auction open time: > 02/04/03 at 05:00PM EST
> >   > > The auction is > Not Open >
>
> > > > > > > > > > > > > >
> User ID > > >
> Password > > >
  > > > > >
>
> > > > > > > > > >
> href="javascript:SpawnWindow('/eqo/terms?cusip=45673456','termsWin','102014252910118172714');"> > Click here to view Auction Terms >

>
> Very Important: > > After > submitting or changing a bid in the auction, you will always be asked for > confirmation. If you do not indicate confirmation by clicking a confirmation button, > > your > bidding action will not be recorded by the system.

>
> Reminder: Your > > browser must > have "cookies" enabled in order to access the auction. If you have trouble accessing the system, > > please contact > your local technical support personnel or > > href="javascript:SpawnWindow('/eqo/static?class=perDeal&cusip=45673456&content=contacts','contentWin','1020142 > > 52910118172714');">contact > us. >
> > > > > HTTP OK: Status line output matched "200" > > HTTP ok: HTTP/1.0 200 OK - 0.293 second response time |time= 0.293 > $/apps/nagios/libexec> echo $? > 0 > > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Tuesday, February 04, 2003 1:18 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > > > Can you post the command (add the verbose option) and the output... > > > > -sg > > > > On Fri, 31 Jan 2003, DM wrote: > > > > > > > > Following Subhendu's suggestion, I've installed the latest > > check_http plugin, > > > but unfortunately, Nagios is still issuing a "warning" > > status for a seemingly fine > > > reponse from the web server. > > > > > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > > > > > Current Status: WARNING (Has been acknowledged) > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0.240 second > > response time > > > Current Attempt: 3/3 > > > State Type: HARD > > > Last Check Type: ACTIVE > > > Last Check Time: 01-31-2003 10:55:22 > > > Status Data Age: 0d 0h 2m 6s > > > Next Scheduled Active Check: 01-31-2003 11:00:22 > > > Latency: < 1 second > > > Check Duration: < 1 second > > > Last State Change: 01-27-2003 10:27:32 > > > Current State Duration: 4d 0h 29m 56s > > > Last Service Notification: 01-27-2003 12:27:32 > > > Current Notification Number: 3 > > > Is This Service Flapping? N/A > > > Percent State Change: N/A > > > In Scheduled Downtime? NO > > > Last Update: 01-31-2003 10:57:20 > > > > > > > > > All details from below are still the same, with the > > exception that I now have the latest version of the > > > check_http plugin. > > > > > > Any ideas? > > > > > > -David > > > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Monday, January 27, 2003 2:01 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > > > > > > > On Mon, 27 Jan 2003, DM wrote: > > > > > > > > > Hi All, > > > > > > > > > > I've got a problem with Nagios returning a "warning status" when > > > > > checking https on a Resin http server. Resin is a > > servlet/JSP engine > > > > > which can also serve up static pages as well as dynamic. > > > > (details can be > > > > > had at http://www.caucho.com/resin/) > > > > > > > > > > The problem is that Nagios keeps generating a "warning" > > > > status for the > > > > > http service, even though the service is up. Nagios doesn't > > > > even seem to > > > > > indicate a problem, other than indicating a warning > > status. (i.e. > > > > > response time is good, etc.) > > > > > > > > > > The Resin server is serving up the https pages just > > fine. Hitting it > > > > > with different browsers (IE6, Konqueror) works fine. > > Also Nagios is > > > > > working fine with other web servers (Zeus, IIS). I've > > > > checked the syntax > > > > > and run the check_http manually with the command line and > > > > it works fine > > > > > too. The response from the plugin is always "HTTP ok: > > > > HTTP/1.0 200 OK - > > > > > 0 second response time" > > > > > > > > > > The only difference I can come up with is that the http > > > > response from > > > > > the Resin server comes back as "HTTP/1.0" as opposed to all > > > > the other > > > > > web servers which return a "HTTP/1.1" Could this be causing > > > > a problem > > > > > for Nagios? > > > > > > > > > > Below are full details about platforms, versions, relevant > > > > lines from > > > > > config files, etc. As mentioned above, this Nagios > > config works just > > > > > fine with my other servers. > > > > > > > > > > Any ideas are appreciated. > > > > > > > > > > -David > > > > > > > > > > > > > > > Nagios version: > > > > > > > > > > Nagios 1.0 > > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > > Last Modified: 11-24-2002 > > > > > License: GPL > > > > > > > > > > Nagios server is running on Solaris 8.0 with latest > > > > Maintenance Updates/ patch > > > > > clusters. > > > > > > > > > > check_http plugin version: > > > > > > > > > > admin at nagios:>check_http -V > > > > > check_http (netsaint-plugins 1.2.9-4) 1.32.2.6 > > > > > > > > > > services.cfg: > > > > > > > > > > check_command > > > > > > > check_https!hosta.mydomain.com!/test/test?act=login&id=45673456 > > > > > > > > > > commands.cfg: > > > > > > > > > > # 'check_https' command definition > > > > > define command{ > > > > > command_name check_https > > > > > command_line /apps/nagios/libexec/check_http -S > > > > -I $HOSTADDRESS$ -H $ > > > > > ARG1$ -u $ARG2$ -t 40 -e 200 > > > > > } > > > > > > > > > > hosts.cfg: > > > > > > > > > > # 'hosta' host definition > > > > > define host{ > > > > > use generic-host ; > > > > Name of host template > > > > > to use > > > > > > > > > > host_name hosta > > > > > alias AliasA > > > > > address 2.3.4.5 > > > > > parents parenta > > > > > check_command check-host-alive > > > > > max_check_attempts 10 > > > > > notification_interval 120 > > > > > notification_period normal > > > > > notification_options d,u,r > > > > > } > > > > > > > > > > > > > > > Running the check_http command manually using the > > > > > same parameters that Nagios uses, works fine: > > > > > > > > > > check_http \ > > > > > -S -I hosta.mydomain.com \ > > > > > -H web.mydomain.com \ > > > > > -u '/test/test?act=login&id=45673456' -t 40 -e 200 > > > > > > > > > > It returns a normal status: > > > > > > > > > > "HTTP ok: HTTP/1.0 200 OK - 0 second response time" > > > > > > > > > > >From the "Service State Information" page on Nagios: > > > > > > > > > > Current Status: WARNING > > > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second > > > > response time > > > > > Current Attempt: 3/3 > > > > > State Type: HARD > > > > > Last Check Type: ACTIVE > > > > > Last Check Time: 01-27-2003 12:07:23 > > > > > Status Data Age: 0d 0h 2m 11s > > > > > Next Scheduled Active Check: 01-27-2003 12:12:23 > > > > > Latency: 1 second > > > > > Check Duration: < 1 second > > > > > Last State Change: 01-27-2003 10:27:32 > > > > > Current State Duration: 0d 1h 42m 2s > > > > > Last Service Notification: 01-27-2003 11:27:32 > > > > > Current Notification Number: 2 > > > > > Is This Service Flapping? N/A > > > > > Percent State Change: N/A > > > > > In Scheduled Downtime? NO > > > > > Last Update: 01-27-2003 12:09:22 > > > > > > > > > > >From the "Alert History" on Nagios: > > > > > > > > > > [01-27-2003 10:27:32] SERVICE ALERT: > > > > hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 > > > > second response time > > > > > [01-27-2003 10:26:32] SERVICE ALERT: > > > > hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 > > > > second response time > > > > > [01-27-2003 10:25:33] SERVICE ALERT: > > > > hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 > > > > second response time > > > > > > > > > > > > > > > > > > > > > > > > > > On the command line - do n "echo $?" after the plugin to > > see what the > > > > return code is. > > > > > > > > Also may want to try a newer check_http - lots of changes > > > > since 1.2.9-4 > > > > release. > > > > > > > > -- > > > > -sg -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dcorbin at machturtle.com Wed Feb 5 00:15:03 2003 From: dcorbin at machturtle.com (David Corbin) Date: Tue, 04 Feb 2003 18:15:03 -0500 Subject: Web-command to reload config In-Reply-To: <3E3FE209.4020709@quadrix.com> References: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> <3E3FE209.4020709@quadrix.com> Message-ID: <3E404977.5080902@machturtle.com> I'm just thinking that there OUGHT to be an option from the UI. Russell Scibetti wrote: > You don't need to stop and start Nagios to reload the configs. You > can HUP the nagios process (which is what the init script does when > you tell nagios to "reload"). There is no option to do this from the > UI, but the restart would also cause a reload of the configs, if they > have no errors in them. > > Russell > > Aleksey Domorad wrote: > >> Reload Config == stop + start >> IMHO >> >> -----Original Message----- >> From: David Corbin [ mailto:dcorbin at machturtle.com ] >> Sent: Tuesday, February 04, 2003 6:56 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Web-command to reload config >> >> >> Is there a web-command to reload the configuration? I see one for >> restarting the Nagios process and shutting it down, but not reloading.... >> >> Thanks >> David >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com _______________________________________________ >> >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >-- >Russell Scibetti >Quadrix Solutions, Inc. >http://www.quadrix.com >(732) 235-2335, ext. 7038 > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Wed Feb 5 00:14:19 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 04 Feb 2003 18:14:19 -0500 Subject: SMB server and Citrix server service check? Message-ID: Where are those contrib plugins, and how do I use them? Just stick them in libexec and set up a check for them? The plugins project seems to be kind of short on documentation... Thanks >>> Subhendu Ghosh 02/04/03 03:49PM >>> On Wed, 29 Jan 2003, Jarett DeAngelis wrote: > Hi all, > > I'm looking for a service check I can use to verify that SMB servers > and/or Citrix Winframe servers are functioning. Does anyone know which > I should use and how? > > Thanks, Jarett DeAngelis > > (Olivier: I'm almost done, just need some way to verify that these three > hosts I added are functioning properly) > plugins-scripts/check_disk_smb contrib/check_smb.sh contrib/tarballs/check_cit.tgz -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 23:36:13 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 4 Feb 2003 16:36:13 -0600 Subject: Different args for different times Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2545@PKDWB03C.ad.sprint.com> Why not use NRPE/nrpe.cfg? It looks to me like you could be using NRPE. You would then call check_load on the remote host (backup_host) using check_nrpe. On the remote host (backup_host) you would have 2 versions of nrpe.cfg. One version would define check_load with args 6,6,6 8,8,8, the other with args 2,2,2 4,4,4. A cronjob would copy nrpe.cfg.low overtop nrpe.cfg at one time of day, and another cronjob would copy nrpe.cfg.high overtop nrpe.cfg. If you're running the nrpe daemon from (x)inetd, you're done, otherwise you'll also need to restart the standalone daemon. Food for thought. jc > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, February 04, 2003 2:58 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Different args for different times > > > not easy in the current setup. > > easiest would be to write a wrapper which checks localtime and calls > check_load with the approriate args... > > -sg > > On Tue, 4 Feb 2003, Russell Scibetti wrote: > > > I want to have a service defined that runs a different > command depending > > on the timeperiod. Example: > > > > define service{ > > use GenericService > > host_name backup_host > > service_description Load > > check_command check_load!6,6,6!8,8,8 > > check_period backup_times > > } > > > > define service{ > > use GenericService > > host_name backup_host > > service_description Load > > check_command check_load!2,2,2!4,4,4 > > check_period nonbackup_times > > } > > > > However, Nagios yells about there being 2 services with the > same name. > > I tried renaming the first one to backupLoad, which works > except that > > if the service is critical at the end of the timeperiod, it > continues to > > display a critical after the backup_times timeperiod is > over. Is there > > anyway around this? Ideally I would like them to have the > same name, so > > that during one timeperiod, one set of args is used and > during the other > > timeperiod, the different set is used. Any help would be > appreciated. > > > > Russell Scibetti > > > > > > -- > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios.dm at wrhambrecht.com Wed Feb 5 00:07:42 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Tue, 4 Feb 2003 15:07:42 -0800 Subject: Stange problem checking https Message-ID: <000801c2cca2$38c46b00$bb20a8c0@corp.wrhambrecht.com> Subhendu, Exactly! So the question is, why does Nagios indicate a "warning" status for this particular service? As mentioned in the original post, I am monitoring several other hosts with similar services and Nagios has no problem with them. Only the one Nagios process is running. David Current Status: WARNING (Has been acknowledged) Status Information: HTTP ok: HTTP/1.0 200 OK - 0.404 second response time Current Attempt: 3/3 State Type: HARD Last Check Type: ACTIVE Last Check Time: 02-04-2003 15:02:39 Status Data Age: 0d 0h 4m 27s Next Scheduled Active Check: 02-04-2003 15:07:31 Latency: < 1 second Check Duration: < 1 second Last State Change: 01-27-2003 10:27:32 Current State Duration: 8d 4h 39m 34s Last Service Notification: 01-27-2003 12:27:32 Current Notification Number: 3 Is This Service Flapping? N/A Percent State Change: N/A In Scheduled Downtime? NO Last Update: 02-04-2003 15:07:01 > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, February 04, 2003 2:42 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > > > Everything looks ok from the plugin > > - are you sure you don't have multiple nagios proceses running? > a stop/start may clear it up. > > -sg > > > On Tue, 4 Feb 2003, DM wrote: > > > Subhendu, > > > > Here's the output you requested: > > > > > > $/apps/nagios/libexec> ./check_http -V > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > > > $/apps/nagios/libexec> /apps/nagios/libexec/check_http -v > -S -I hosta.mydomain.com -H intranet.mydomain.com -u > '/eqo/auction?act=login&cusip=45673456' -t 40 -e 200 > > > > Page is 5882 characters -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcorbin at machturtle.com Wed Feb 5 00:18:28 2003 From: dcorbin at machturtle.com (David Corbin) Date: Tue, 04 Feb 2003 18:18:28 -0500 Subject: Different args for different times In-Reply-To: <3E40360E.5040704@quadrix.com> References: <3E40360E.5040704@quadrix.com> Message-ID: <3E404A44.4060400@machturtle.com> Or, what I want, which is time-based notification....or maybe even time-based + severity. Russell Scibetti wrote: > I just gave in and did it that way. > > Maybe something to keep in mind for future Nagios features - Time > based command/arguments. > > Russell > > Subhendu Ghosh wrote: > >>not easy in the current setup. >> >>easiest would be to write a wrapper which checks localtime and calls >>check_load with the approriate args... >> >>-sg >> >>On Tue, 4 Feb 2003, Russell Scibetti wrote: >> >> >> >>>I want to have a service defined that runs a different command depending >>>on the timeperiod. Example: >>> >>>define service{ >>> use GenericService >>> host_name backup_host >>> service_description Load >>> check_command check_load!6,6,6!8,8,8 >>> check_period backup_times >>> } >>> >>>define service{ >>> use GenericService >>> host_name backup_host >>> service_description Load >>> check_command check_load!2,2,2!4,4,4 >>> check_period nonbackup_times >>> } >>> >>>However, Nagios yells about there being 2 services with the same name. >>> I tried renaming the first one to backupLoad, which works except that >>>if the service is critical at the end of the timeperiod, it continues >>> to >>>display a critical after the backup_times timeperiod is over. Is there >>>anyway around this? Ideally I would like them to have the same name, so >>>that during one timeperiod, one set of args is used and during the other >>>timeperiod, the different set is used. Any help would be appreciated. >>> >>>Russell Scibetti >>> >>> >>> >>> >> >> >> > >-- >Russell Scibetti >Quadrix Solutions, Inc. >http://www.quadrix.com >(732) 235-2335, ext. 7038 > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Wed Feb 5 00:30:40 2003 From: williamw at xeye.com (William Wang) Date: Tue, 4 Feb 2003 18:30:40 -0500 Subject: How to add nsclient on a Solaris box Message-ID: <80D04B82394BC54BAEEA0869E80E02D942127F@mail.xeye.com> Hi all, Who can shed me a light about how to install nsclient on a Solaris8 box. I have nagios1.0 running on it. I don't know how to add this plugin so as to monitor Windows NT servers. I downloaded NSclient at http://nsclient.ready2run.nl/ Please send me a e-mail at: williamw at xeye.com Thank you very much for your help! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ericblumenau at techtvcorp.com Wed Feb 5 01:01:03 2003 From: ericblumenau at techtvcorp.com (ericblumenau at techtvcorp.com) Date: Tue, 4 Feb 2003 16:01:03 -0800 Subject: Nagios and Web Interface Message-ID: <88256CC3.00821CCC.00@zdtvmta.techtvcorp.com> Greetings all, I'm having some problems with the web interface and executing external commands. I've followed the instructions in the documentation. The permissions on the directory that holds the command file are: drwxrwsr-- 2 nagios nagios 512 Feb 4 15:46 logs Here are the permissions for the command file: prw-rw---- 1 nagios nagios 0 Feb 4 15:44 nagios.cmd My apache is running as user nobody. This user is also a member of the nagios group. I have these two lines in my main Nagios config file: check_external_commands=1 command_check_interval=20s I can tail my command file and see commands entered when I click through the web interface. Here is a command that I just sent and caught in a tail -f: [1044402248] DISABLE_SVC_NOTIFICATIONS;townsend-edge;Aliveness I've certainly waited more than 20s to see the change go through. In fact, I haven't seen a change in over an hour. The mailing-list archives don't seem to be working and Google has let me down on this. Is there a known issue on the web interface and external commands? If you reply to the nagios list, please cc: me in at ericblumenau at techtvcorp.com I don't want to miss your response amongst the voluminous daily summaries. Thanks, Eric PLEASE NOTE: This message, including any attachments, may include privileged, confidential and/or inside information. Any distribution or use of this communication by anyone other than the intended recipient(s) is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by replying to this message and then delete it from your system. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 01:01:55 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 5 Feb 2003 11:01:55 +1100 Subject: UPS Monitoring In-Reply-To: ; from sghosh@sghosh.org on Tue, Feb 04, 2003 at 03:19:59PM -0500 References: <20030117231915.M78563@4wx.net> Message-ID: <20030205110149.F1594@IPAustralia.Gov.AU> On Tue, Feb 04, 2003 at 03:19:59PM -0500, Subhendu Ghosh wrote: > First you need a daemon to monitor the status on the serial port - > Take a look at Network UPS Tools on exploits.org. > > Once you have NUT running, you can use check_ups in the standard > plugin > dist to monitor the state of the UPS via NUT. > > -sg > or (possibly) have the UPS send a trap that Nag accepts as a passive service check result. See UCD-SNMP (NET-SNMP) Integration in the docs. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Wed Feb 5 01:03:08 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Wed, 5 Feb 2003 01:03:08 +0100 Subject: Web-command to reload config In-Reply-To: <3E404977.5080902@machturtle.com>; from dcorbin@machturtle.com on Tue, Feb 04, 2003 at 06:15:03PM -0500 References: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> <3E3FE209.4020709@quadrix.com> <3E404977.5080902@machturtle.com> Message-ID: <20030205010308.B1471@hpce.nec.com> On Tue, Feb 04, 2003 at 06:15:03PM -0500, David Corbin wrote: > Russell Scibetti wrote: > > > You don't need to stop and start Nagios to reload the configs. You > > can HUP the nagios process (which is what the init script does when > > you tell nagios to "reload"). There is no option to do this from the > > UI, but the restart would also cause a reload of the configs, if they > > have no errors in them. > > > I'm just thinking that there OUGHT to be an option from the UI. But there is, if I interpret UI == user interface correctly: $ killall -HUP nagios or $ /etc/init.d/nagios restart Shells are really such powerfull user interfaces, don't you agree? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 5 01:49:29 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 04 Feb 2003 19:49:29 -0500 Subject: Web-command to reload config In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE27804A8@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE27804A8@storevis.datavis.se> Message-ID: <1044406168.19831.12.camel@localhost.localdomain> On Tue, 2003-02-04 at 07:34, Fredrik W?nglund wrote: > It's necessary to restart nagios if you want to reload the config. kill -HUP works too -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 5 01:53:03 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 04 Feb 2003 19:53:03 -0500 Subject: Running into problems with check_snmp In-Reply-To: <5593DA408212D511B0910002A513501F01D288D9@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D9@phsexch20.mgh.harvard.edu> Message-ID: <1044406383.19831.15.camel@localhost.localdomain> On Tue, 2003-02-04 at 10:20, Kaplan, Andrew H. wrote: > I am trying to monitor a remote printer with the check_snmp command. > I have installed the net-snmp package > on the Nagios server. The printer in question has the default > community name of public. When I run the snmpget > command manually I do get information about the remote host. Here is > the command syntax and its output: > > snmpget -v 1 -c public 132.183.220.26 sysDescr.0 > > SNMPv2-MIB::sysDescr.0 = STRING: Tektronix, Inc., Phaser > 750N, PhaserShare Series B Network Interface, (5.62/11.100/10/2.28) > > The problem I am running into is getting the check_snmp > script to work. When I run it either automatically or manually I get the > message > SNMP Problem - No Data Received from the host > > Here is the syntax that I used to run check_snmp: > > ./check_snmp -H 132.183.220.26 try ./check_snmp -H 132.183.220.26 -C public -o sysDescr.0 -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 02:25:39 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 20:25:39 -0500 (EST) Subject: SMB server and Citrix server service check? In-Reply-To: References: Message-ID: They are in the contrib directory of the plugins package - check_cit was added yesterday - so the only way to get it is through the CVS interface. most of the contrib plugins contain some doc in the source about how to install and any pre-requisites -sg On Tue, 4 Feb 2003, Jarett DeAngelis wrote: > Where are those contrib plugins, and how do I use them? Just stick them > in libexec and set up a check for them? > > The plugins project seems to be kind of short on documentation... > > Thanks > > >>> Subhendu Ghosh 02/04/03 03:49PM >>> > On Wed, 29 Jan 2003, Jarett DeAngelis wrote: > > > Hi all, > > > > I'm looking for a service check I can use to verify that SMB servers > > and/or Citrix Winframe servers are functioning. Does anyone know which > > I should use and how? > > > > Thanks, Jarett DeAngelis > > > > (Olivier: I'm almost done, just need some way to verify that these three > > hosts I added are functioning properly) > > > > plugins-scripts/check_disk_smb > contrib/check_smb.sh > contrib/tarballs/check_cit.tgz > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 02:29:01 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 20:29:01 -0500 (EST) Subject: UPS Monitoring In-Reply-To: <20030205110149.F1594@IPAustralia.Gov.AU> References: <20030205110149.F1594@IPAustralia.Gov.AU> Message-ID: On Wed, 5 Feb 2003, Stanley Hopcroft wrote: > > > On Tue, Feb 04, 2003 at 03:19:59PM -0500, Subhendu Ghosh wrote: > > First you need a daemon to monitor the status on the serial port - > > Take a look at Network UPS Tools on exploits.org. > > > > Once you have NUT running, you can use check_ups in the standard > > plugin > > dist to monitor the state of the UPS via NUT. > > > > -sg > > > > or (possibly) have the UPS send a trap that Nag accepts as a passive > service check result. See UCD-SNMP (NET-SNMP) Integration in the docs. > > Yours sincerely. > NUT doesn't do SNMP out - serial/usb/snmp to the ups -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gwichman at zantaz.com Wed Feb 5 02:34:11 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Tue, 4 Feb 2003 17:34:11 -0800 Subject: Multiple lines of data in Status field? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> I once got nagios to show multiple lines in the status field. Not sure how that happened though..somehow I was assigning the output of a command like "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the status for my little check script. In Nagios it showed up in the status field as each file having it's own line.. I was surprised to see it but now I can't recall how I got it to do that. Is there a trick to formatting the output of a check script to show several lines? Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Feb 5 02:32:56 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 20:32:56 -0500 (EST) Subject: Nagios and Web Interface In-Reply-To: <88256CC3.00821CCC.00@zdtvmta.techtvcorp.com> References: <88256CC3.00821CCC.00@zdtvmta.techtvcorp.com> Message-ID: command_check_interval should be just an integer "20" not "20s" This is probably a bug in the flight-check routine for not catching it. -sg On Tue, 4 Feb 2003 ericblumenau at techtvcorp.com wrote: > > > > Greetings all, > I'm having some problems with the web interface and executing > external commands. I've followed the instructions in the documentation. > The permissions on the directory that holds the command file are: > drwxrwsr-- 2 nagios nagios 512 Feb 4 15:46 logs > > Here are the permissions for the command file: > prw-rw---- 1 nagios nagios 0 Feb 4 15:44 nagios.cmd > > My apache is running as user nobody. This user is also a member of > the nagios group. > > I have these two lines in my main Nagios config file: > check_external_commands=1 > command_check_interval=20s > > I can tail my command file and see commands entered when I click > through the web interface. Here is a command that I just sent and > caught in a tail -f: > [1044402248] DISABLE_SVC_NOTIFICATIONS;townsend-edge;Aliveness > > I've certainly waited more than 20s to see the change go through. In > fact, I haven't seen a change in over an hour. The mailing-list > archives don't seem to be working and Google has let me down on this. > Is there a known issue on the web interface and external commands? > > If you reply to the nagios list, please cc: me in at > ericblumenau at techtvcorp.com I don't want to miss your response amongst > the voluminous daily summaries. > > Thanks, > Eric > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 03:18:47 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 21:18:47 -0500 (EST) Subject: Multiple lines of data in Status field? In-Reply-To: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> References: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> Message-ID: The output of a plugin is usually limited to 512 bytes and can be separate into 2 parts - line 1 is the OUTPUT that goes into the log everything from line2 (specially after the | ) goes into PERFDATA. -sg On Tue, 4 Feb 2003, Gerald Wichmann wrote: > I once got nagios to show multiple lines in the status field. Not sure how > that happened though..somehow I was assigning the output of a command like > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > status for my little check script. In Nagios it showed up in the status > field as each file having it's own line.. I was surprised to see it but now > I can't recall how I got it to do that. Is there a trick to formatting the > output of a check script to show several lines? > > Gerald Wichmann > Senior Systems Development Engineer > Zantaz, Inc. > 925.598.3099 (w) > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From securityguy at ikano.com Wed Feb 5 03:20:04 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Tue, 4 Feb 2003 19:20:04 -0700 Subject: Network traffic plugin? In-Reply-To: References: Message-ID: <000201c2ccbd$182924b0$ddd0d0cd@pendleton> I haven't seen this check_rrd_data plugin... Where is it? Robert S. Galloway Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com Usualy MRTG or other RRDTool based packages are used to monitor traffic. You can then use check_mrtgtraf/check_rrd_data plugins for alerts. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 03:22:37 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 21:22:37 -0500 (EST) Subject: Network traffic plugin? In-Reply-To: <000201c2ccbd$182924b0$ddd0d0cd@pendleton> References: <000201c2ccbd$182924b0$ddd0d0cd@pendleton> Message-ID: nagiosplug/contrib directory. On Tue, 4 Feb 2003, Robert S. Galloway wrote: > I haven't seen this check_rrd_data plugin... Where is it? > > Robert S. Galloway > Network Security Engineer > IKANO Communications > ...the Internet branding company > Official Data Networking Services Provider for the > Salt Lake Olympic Winter Games of 2002 > securityguy at ikano.com > > > > Usualy MRTG or other RRDTool based packages are used to monitor traffic. > You can then use check_mrtgtraf/check_rrd_data plugins for alerts. > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 03:25:47 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 21:25:47 -0500 (EST) Subject: ./configure script outcome check In-Reply-To: References: Message-ID: On Tue, 28 Jan 2003, Raj Mudhar wrote: > Hi, > > I have just used the ./configure command after gunzipping the files and adding a user etc. > > Most of the lines as a result of the script say yes apart from the following few. > > checking wither the C compiler (gcc ) is a cross-compiler. . . no > checking for uio.h ..... no > checking return type of signal handlers ... void > > Then everything else is fine and in the Configuration summary for nagios > 1.0 (not using beta) it says embedded perl no > > I installed Redhat 8.0 with the EVERYTHING. > > Is this fine or did the configure script not run accuratly. > > Regards > Is fine.. So did you try the next step - "make all" http://nagios.sourceforge.net/docs/1_0/installing.html -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From joe at westnet.net.au Wed Feb 5 03:43:58 2003 From: joe at westnet.net.au (Joe Wooller) Date: Wed, 5 Feb 2003 10:43:58 +0800 Subject: Downtime Notices Message-ID: <00c901c2ccc0$85d919e0$fa05a8c0@slampt> Hi Guys, Just a quick question. Is there any qiuck way to delete a heap of downtime notices at once? EG for a whol hostgroup. I know you can add a heap at once but I can't find a way to remove them. Regards Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 04:14:18 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 5 Feb 2003 14:14:18 +1100 Subject: Multiple lines of data in Status field? In-Reply-To: ; from sghosh@sghosh.org on Tue, Feb 04, 2003 at 09:18:47PM -0500 References: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> Message-ID: <20030205141411.I1594@IPAustralia.Gov.AU> Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 5 06:49:39 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 05 Feb 2003 00:49:39 -0500 Subject: Stange problem checking https In-Reply-To: <000801c2cbab$cb898a30$bb20a8c0@corp.wrhambrecht.com> References: <000801c2cbab$cb898a30$bb20a8c0@corp.wrhambrecht.com> Message-ID: <1044424178.19831.328.camel@localhost.localdomain> On Mon, 2003-02-03 at 12:43, DM wrote: > > -----Original Message----- > > From: Karl DeBisschop [mailto:karl at debisschop.net] > > Sent: Sunday, February 02, 2003 10:23 AM > > To: DM > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > On Sat, 2003-02-01 at 20:09, DM wrote: > > > Hi Karl, > > > > > > Unfortunately the app in question is on an intranet and not > publicly > > > available. > > > > > > With your direction, I'll be happy to perform additional > diagnostics > > > and send you the output. > > > > I was hoping to save you the compile etc. But, alas, I cannot. > > > > My first step would be to download the current CVS tree, build the > > plugins, and try that. As I had noted, the http plugin has > > been revised > > several times, and some possibly relevent code was fixed. > > OK, I downloaded the current CVS tree and built the plugins. > Unfortunately, I think the new check_http module ((nagios-plugins > 1.3.0-beta2) 1.19 )has a bug in it which prevents the SSL option from > working at all: > > $ ./check_http -w 5 -c 10 www.verisign.com > HTTP ok: HTTP/1.1 200 OK - 0.354 second response time |time= 0.354 > $ ./check_http -w 5 -c 10 --ssl www.verisign.com > Segmentation Fault > > gdb ./check_http > (gdb) run -w 5 -c 10 --ssl www.verisign.com > Starting program: /temp/nagios/libexec/./check_http -w 5 -c 10 > --ssl www.verisign.com > > Program received signal SIGSEGV, Segmentation fault. > asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 > 836 *ptr = NULL; > (gdb) backtrace > #0 asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 > #1 0x13d80 in connect_SSL () at check_http.c:923 > #2 0x13aa0 in check_http () at check_http.c:552 > #3 0x1218c in main (argc=168960, argv=0x0) at check_http.c:271 > (gdb) > > Looks like the connect_SSL function is sending a null pointer to > asprintf, making it segfault. I'm commiting fixes for the segfault - thanks for pointing it out. > Since I've verified earlier on that check_http is indeed returning the > correct value to Nagios, > I don't think the issue here is specifically with the check_http > plugin, but rather something > with how Nagios deals with this particular host/service. I missed the echo $? in your previous posts, and mistakenly concluded that the plugin was returning a diferent status than its message showed.. This does seem strange. I can't think of any mechanism that could cause this. Maybe stoppong nagios and clearing all saved states might eliminate another possible problem. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendan at dbinformatics.com.au Wed Feb 5 08:39:07 2003 From: brendan at dbinformatics.com.au (Brendan) Date: Wed, 05 Feb 2003 18:39:07 +1100 Subject: basic upgrade advice Message-ID: <3E415A4B.13428.65D5F65@localhost> Could somebody please explain in newbie language how to upgrade from 1.0b6 to 1.0 Many thanks Brendan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gbiondi at tech2.it Wed Feb 5 09:20:08 2003 From: gbiondi at tech2.it (Giorgio Biondi) Date: Wed, 5 Feb 2003 09:20:08 +0100 Subject: I want migrate to Nagios but... Message-ID: Hi, I want migrate my hosts checking on Nagios software, but I want use my bb-client installed on my Windows2000 server...someone known if this is possible without re-install software client? Giorgio Biondi Tech2 S.r.l. gbiondi at tech2.it http://www.tech2.it ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gbiondi at tech2.it Wed Feb 5 09:26:41 2003 From: gbiondi at tech2.it (Giorgio Biondi) Date: Wed, 5 Feb 2003 09:26:41 +0100 Subject: I want migrate to Nagios but... Message-ID: Hi, I want migrate my hosts checking on Nagios software, but I want use my bb-client installed on my Windows2000 server...someone known if this is possible without re-install software client? Giorgio Biondi Tech2 S.r.l. gbiondi at tech2.it http://www.tech2.it ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Wed Feb 5 10:21:06 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 05 Feb 2003 10:21:06 +0100 Subject: I want migrate to Nagios but... References: Message-ID: <3E40D782.2953C6EC@gcc.dhl.com> You might want to give this a try: http://bulldog.tzo.org/netsaint/. But I'd use NSClient if I were you... Giorgio Biondi wrote: > > Hi, > > I want migrate my hosts checking on Nagios software, but I want use my > bb-client installed on > my Windows2000 server...someone known if this is possible without re-install > software client? > > Giorgio Biondi > Tech2 S.r.l. > gbiondi at tech2.it > http://www.tech2.it > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Wed Feb 5 10:48:25 2003 From: brendon at iwg.info (Brendon Caligari) Date: Wed, 5 Feb 2003 10:48:25 +0100 Subject: Pretty images for nagios Message-ID: Thanks to all those who helped out with the nagios image issues :-) Is there a 'cache' of nagios friendly images? Pictures of routers/operating systems/nice pics of mail servers, etc. Maybe it there isn't, it'd be pretty cool to find some location where users can contribute distributable images. B. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From me at ame.de Wed Feb 5 11:54:13 2003 From: me at ame.de (Matthias Eichler) Date: 05 Feb 2003 11:54:13 +0100 Subject: Bug in Nagios orphan-check?! Message-ID: <1044442453.664.84.camel@blindzero> Hi List, I have some Nagios 1.0 installed on a Debian 3 Woody. The machine is some Intel Celeron 700 MHz with 256 MB of RAM. The setup was doing really well for some long time, but now I get some severe problems more or less every five days. Today we had some connection problems to some remote farm. But Nagios didnt send out host-down notifications, it said this in its event log: "Warning: The check of service 'blabla' on host 'blabla' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service..." Since this first entry Nagios reported this warning with EVERY service check, about 142 times... At this time I tried to get on the web interface and got no connect, the SSH login took very long, what I am not wondering about, because the box had a load of 7.83! I saw that there were about 80 nagios processes in the list. They were not stopped by some /etc/init.d/nagios stop, I had to kill them all. In dmesg I see entries like: --- Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 (apache). Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 (apache). --- or --- Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: waitpid(13304,...) failed, errno 512 Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: waitpid(13305,...) failed, errno 512 Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: waitpid(13306,...) failed, errno 512 --- I think there might be some bug, because also the remote site is not available Nagios should warn us about it and not confuse the box like this...?!? Any ideas?!? Greetings from Munich, Matthias -- Mit freundlichen Gr??en AME Aigner Media & Entertainment GmbH Matthias Eichler Leiter Technik | Technical Director _______________________________________ AME? Aigner Media & Entertainment GmbH Bavariaring 8 D-80336 M?nchen Tel [+49] ?89.427 05 - 330 Fax [+49] ?89.427 05 - 400 http://ame.de eMail: me at ame.de _______________________________________ Angaben nach TDG|GmbHG:ame.de/impressum -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From zimplton at hotmail.com Wed Feb 5 12:09:39 2003 From: zimplton at hotmail.com (Brian Lemm) Date: Wed, 05 Feb 2003 11:09:39 +0000 Subject: Stupid question..sorry Message-ID: I just installed Nagios and ran the config script to migrate my netsaint hosts.cfg file to the multitude of files for Nagios. What is happening now though is that the computers I have set up for service monitoring are working fine but the servers that just have check_ping running are all coming up with Host not found (IP address). I can ping the IP address from the command line and if I run check_ping from the command line it works. Anyone have any ideas? Thanks for the help _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From twelsh at square-box.com Wed Feb 5 13:47:41 2003 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 5 Feb 2003 12:47:41 -0000 Subject: Pretty images for nagios In-Reply-To: References: Message-ID: <000e01c2cd14$c55335c0$0400a8c0@squarebox.com> Hi Brendon, You can get the images from the image pack part of the nagios download site at.. http://www.nagios.org/download/ make sure that after you have decompressed the images you copy them to /path-to-nagios/share/images/logos/ mine is /usr/local/nagios/share/images/logos/ hope this helps Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Brendon Caligari Sent: 05 February 2003 09:48 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Pretty images for nagios Thanks to all those who helped out with the nagios image issues :-) Is there a 'cache' of nagios friendly images? Pictures of routers/operating systems/nice pics of mail servers, etc. Maybe it there isn't, it'd be pretty cool to find some location where users can contribute distributable images. B. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Wed Feb 5 14:14:55 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Wed, 5 Feb 2003 07:14:55 -0600 Subject: Monitoring Crystal Enterprise Message-ID: Anybody out there monitoring Crystal Enterprise 8.5? If so, what. I've taken some of Crystal's sample web pages from their SDK and am using them to check the APS and some metrics. However, if Crystal is very busy running jobs, my script times out and notifies me of a problem when there is none.. Since my plugin on the Nagios side is a Perl script performing an HTTP::Request, is the timeout adjustable in Nagios or is that a question for my Perl mailing lists? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Robert.Wagner at wausaubenefits.com Wed Feb 5 14:39:46 2003 From: Robert.Wagner at wausaubenefits.com (Robert Wagner) Date: Wed, 5 Feb 2003 07:39:46 -0600 Subject: Nagios-users digest, Vol 1 #1279 - 16 msgs Message-ID: Heya all, Rob Wagner, the NTray guy here. Just wanted to make a quick note that I've released NTray 0.92b for download... It's a simple bugfix to make sound work, otherwise is functionally identical to v0.92. To enable sounds: 1) Turn on sound in the NTray 'Config' screen. 2) Make sure that in your NTray directory, there is a .WAV file called 'red.wav', 'yellow.wav', and/or 'green.wav'. These will be played when NTray's status color changes. Sorry about the bug.. I don't usually use sound myself, but I've had a number of complaints about it. Rob Wagner rob[at]robandsara.com This communication is intended only for the recipient(s) named above; may be confidential and/or legally privileged; and, must be treated as such in accordance with state and federal laws. If you are not the intended recipient, you are hereby notified that any use of this communication, or any of its contents, is prohibited. If you have received this communication in error, please return it to Robert Wagner and delete the message from your computer system. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From amartins at embratel.net.br Wed Feb 5 14:46:59 2003 From: amartins at embratel.net.br (Alessandro Martins) Date: Wed, 5 Feb 2003 11:46:59 -0200 Subject: Build errors In-Reply-To: <20030130130519.GA15915@embratel.net.br> References: <20030130130519.GA15915@embratel.net.br> Message-ID: <20030205134659.GA599@embratel.net.br> On Thu, Jan 30, 2003 at 11:05:19AM -0200, Alessandro Martins wrote: [cutted] > /tmp/ccwTxqaG.s:3414: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:3414: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:3414: Error: Rest of line ignored. First ignored character > is `,'. > /tmp/ccwTxqaG.s:4212: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:4212: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:4212: Error: Rest of line ignored. First ignored character > is `,'. > make[1]: *** [checks.o] Error 1 > make[1]: Leaving directory `/usr/local/desenv/nagios/nagios-1.0/base' > make: *** [all] Error 2 > > My system is a Red Hat Linux release 7.2, my kernel version is 2.4.19 and > I ran the configure script like: [cutted] Hello, If anyone have the same problem you can find the resolution for this bug at: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=58631 -- Alessandro Fernandes Martins EMBRATEL - Internet Server Management tel: +55 21 2121-[2906] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Wed Feb 5 15:49:24 2003 From: atul at mindsw.com (Atul Gosain) Date: Wed, 05 Feb 2003 20:19:24 +0530 Subject: snmp monitoring[OT] Message-ID: <3E412474.8090207@mindsw.com> Hi Im monitoring cisco server through Nagios. I have to monitor temperature and other environmental variables for cisco. Does somebody have an idea how can we enable environmental monitoring on cisco through SNMP. I searched a lot on cisco's site but could not find it. Also is there anyplugin written which monitors other aspects of cisco apart from interface status. Thanks Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nsedley at dircon.co.uk Wed Feb 5 16:05:08 2003 From: nsedley at dircon.co.uk (Neil Sedley) Date: Wed, 5 Feb 2003 15:05:08 -0000 Subject: I want migrate to Nagios but... References: <3E40D782.2953C6EC@gcc.dhl.com> Message-ID: <00bc01c2cd27$f9677200$9c0c618c@lgu.ac.uk> I use bbnt2ns ( http://bulldog.tzo.org/netsaint ) and it works as advertised. No re-installation is required. Just change the client to send messages to your Nagios host rather than your BB host. Be aware, the service names are case sensitive, so the services on your Nagios host must be 'msgs' 'svcs' 'cpu' 'disk' and 'procs' to match the messages sent by the BB client. ----- Original Message ----- From: "Tom DE BLENDE" To: "Giorgio Biondi" Cc: Sent: Wednesday, February 05, 2003 9:21 AM Subject: Re: [Nagios-users] I want migrate to Nagios but... > You might want to give this a try: http://bulldog.tzo.org/netsaint/. > But I'd use NSClient if I were you... > > Giorgio Biondi wrote: > > > > Hi, > > > > I want migrate my hosts checking on Nagios software, but I want use my > > bb-client installed on > > my Windows2000 server...someone known if this is possible without re-install > > software client? > > > > Giorgio Biondi > > Tech2 S.r.l. > > gbiondi at tech2.it > > http://www.tech2.it > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stevox2000 at yahoo.com Wed Feb 5 16:13:45 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Wed, 5 Feb 2003 16:13:45 +0100 (CET) Subject: Reporting stuff Message-ID: <20030205151345.44111.qmail@web10901.mail.yahoo.com> I'd like to make a script that will gather and print informations from different Nagios cgi (hosts and services availability, trends, alert history...). The purpose of this script is to print monthly stats (by a cron job) without using the web interface. How can i proceed to have this result without too much scripting stuff effort ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From james.harrison at amcg.com Wed Feb 5 16:41:31 2003 From: james.harrison at amcg.com (James Harrison) Date: 05 Feb 2003 09:41:31 -0600 Subject: Availability Report HowTo or Feature Request Message-ID: <1044459691.5574.8.camel@localhost.localdomain> List, I'm using Nagios to monitor several groups of devices (routers,switches,servers,etc). My management has asked for an average monthly uptime for all the various groups of devices. Is there an easy way to create a summarization of the monthly uptime for a hostgroup. For example how can I calculate the average monthly uptime for all the routers. (Not each individual one,but the group as a whole). I'm currently going through some gyrations with OpenOffice to make this work, but it sure would be a nice feature to include a line at the top of the availability table that says "Average uptime for is for the period of " -- James Harrison RHCA, CCNA ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 16:55:46 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 05 Feb 2003 10:55:46 -0500 (EST) Subject: snmp monitoring[OT] In-Reply-To: <3E412474.8090207@mindsw.com> References: <3E412474.8090207@mindsw.com> Message-ID: Attached is a cisco power/temp/fan monitor. It is going to be merged with a similar juniper monitor and is not in the distrib as yet. check_bgpstate in the contrib dir can monitor the bgp peering relationships on any router. -sg On Wed, 5 Feb 2003, Atul Gosain wrote: > Hi > > Im monitoring cisco server through Nagios. I have to monitor temperature > and other environmental variables for cisco. Does somebody have an idea > how can we enable environmental monitoring on cisco through SNMP. I > searched a lot on cisco's site but could not find it. > Also is there anyplugin written which monitors other aspects of cisco > apart from interface status. > > Thanks > Atul > > -- -------------- next part -------------- #!/usr/bin/perl -wT # # check_xinterface - nagios plugin # # largely based upon check_ifoperstatus.pl plugin by Christoph Kron # # # # # Copyright (C) 2002 Guy Van Den Bergh # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # Report bugs to: guy at belnet.be # # design of the plugin: # check admin status: if down, then warning; exit # check operational status: if down, then critical; exit # check last change, if within 'tolerance' (-l or --last-change option), # then warning # get performance data: bits in/out, etc... (implementation to be scheduled later) # performance data could be checked against older values (bw drops e.g.) use strict; use Net::SNMP; use Getopt::Long; &Getopt::Long::config('auto_abbrev'); my $status; my $TIMEOUT = 60; my %ERRORS = ('UNKNOWN' , '-1', 'OK' , '0', 'WARNING', '1', 'CRITICAL', '2'); my %ciscoEnvMonState = ('1','normal(1)', '2','warning(2)', '3','critical(3)', '4','shutdown(4)', '5','notPresent(5)', '6','notFunctioning(6)'); my $state = "UNKNOWN"; my $answer = ""; my $snmpkey = 1; my $community = "public"; my $port = 161; my $t_oid; my @snmpoids; my %error_oids; my $snmpCiscoVoltageStatus; my $snmpCiscoTemperatureStatus; my $snmpCiscoFanStatus; my $snmpCiscoSupplyStatus; my $hostname; my $session; my $error; my $response; my $value; my $oid; my @voltage_errors; my @temperature_errors; my @fan_errors; my @supply_errors; sub usage { printf "\nMissing arguments!\n"; printf "\n"; printf "Perl Check Cisco Environment plugin for Nagios\n"; printf "checks status of temperature, fans, ...\n"; printf "usage: \n"; printf "check_cisco_env -c -p "; printf "\nCopyright (C) 2002 Guy Van Den Bergh\n"; printf "check_cisco_env comes with ABSOLUTELY NO WARRANTY\n"; printf "This programm is licensed under the terms of the "; printf "GNU General Public License\n(check source code for details)\n"; printf "\n\n"; exit $ERRORS{"UNKNOWN"}; } # Just in case of problems, let's not hang Nagios $SIG{'ALRM'} = sub { print ("ERROR: No snmp response from $hostname (alarm)\n"); exit $ERRORS{"UNKNOWN"}; }; alarm($TIMEOUT); $status = GetOptions("community=s",\$community, "port=i",\$port); if ($status == 0) { &usage; } #shift; $hostname = shift || &usage; ($session, $error) = Net::SNMP->session( -hostname => $hostname, -community => $community, -port => $port ); if (!defined($session)) { $state='UNKNOWN'; $answer=$error; print ("$state: $answer"); exit $ERRORS{$state}; } $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; push(@snmpoids,$snmpCiscoVoltageStatus); push(@snmpoids,$snmpCiscoTemperatureStatus); push(@snmpoids,$snmpCiscoFanStatus); push(@snmpoids,$snmpCiscoSupplyStatus); # # These four oids all have the same syntax, # which makes it easy for scripting all four oids at the same time! # $answer = "No data returned (Environment MIB not supported)"; # This will be overwritten when there IS data returned! TABLE: foreach $t_oid (@snmpoids) { # # Now get all relevant oids, and set the plugin output status accordingly. # if (!defined($response = $session->get_table($t_oid))) { $error_oids{$t_oid} = $session->error; next TABLE; } while ( ($oid, $value) = each %$response ) { if ($value == 1 || $value == 5 || $value == 6) { # normal, notPresent or notFunctioning $state = 'OK' if $state =~ /UNKNOWN/; $answer = "All environment variables normal." if $state eq 'OK'; } elsif ($value == 2) { # warning $error_oids{$oid} = $ciscoEnvMonState{$value}; $state = 'WARNING' unless $state =~ /CRITICAL/; } elsif ($value == 3 || $value == 4) { # critical or shutdown $error_oids{$oid} = $ciscoEnvMonState{$value}; $state = 'CRITICAL' } } } $session->close; ## Here is the place for introducing artificial errors (for debugging). # # Now parse all erroneous responses: # unless ($state eq 'OK' or $state eq 'UNKNOWN') { while ( ($oid, $value) = each %error_oids ) { $value =~ s/\(\d\)//; if ($oid =~ /$snmpCiscoVoltageStatus\./) { $oid =~ s/$snmpCiscoVoltageStatus\.//; push(@voltage_errors, "$value (instance $oid)"); } elsif($oid =~ /$snmpCiscoTemperatureStatus\./) { $oid =~ s/$snmpCiscoTemperatureStatus\.//; push(@temperature_errors, "$value (instance $oid)"); } elsif ($oid =~ /$snmpCiscoFanStatus\./) { $oid =~ s/$snmpCiscoFanStatus\.//; push(@fan_errors, "$value (fan $oid)"); } elsif ($oid =~ /$snmpCiscoSupplyStatus\./) { $oid =~ s/$snmpCiscoSupplyStatus\.//; push(@supply_errors, "$value (PS $oid)"); } } # # And now the final formatting of the output: # my $voltage_errors_s = join ";", @voltage_errors if defined $voltage_errors[0]; my $temperature_errors_s = join ";", @temperature_errors if defined $temperature_errors[0]; my $fan_errors_s = join ";", @fan_errors if defined $fan_errors[0]; my $supply_errors_s = join ";", @supply_errors if defined $supply_errors[0]; $answer = "Problems with:
"; $answer .= "Voltage: " . $voltage_errors_s . "
" if defined $voltage_errors_s; $answer .= "Temperature: " . $temperature_errors_s . "
" if defined $temperature_errors_s; $answer .= "Fans: " . $fan_errors_s . "
" if defined $fan_errors_s; $answer .= "Power Supply: " . $supply_errors_s ."
" if defined $supply_errors_s; } print ("$answer\n"); exit $ERRORS{$state}; From wgong at smu.edu.sg Wed Feb 5 16:54:30 2003 From: wgong at smu.edu.sg (GONG Wei) Date: Wed, 5 Feb 2003 23:54:30 +0800 Subject: [Q] template based wildcard object configuration Message-ID: <108506BDA45F1F45AA6EDE147A27FC0102013E40@mail1.smu.edu.sg> Hi all, I was trying nagios 1.0, md5 checksum (9f95388c59b34c06745870fd2012388e nagios-1.0.tar.gz), on Linux Redhat 7.2. Things went smoothly, but I couldn't get wildcard template object config work. I was trying the sample as shown in http://nagios.sourceforge.net/docs/1_0/templatetricks.html#hostgroup. So basically I have a config file etc/hostgroup_all-ap.cfg which is listed in the main nagios.cfg file. The content of this hostgroup_all-ap.cfg is listed below: ========================= define service{ use generic-service hostgroup_name all-ap service_description AP_Management is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups citops notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } define hostgroup{ hostgroup_name all-ap alias All Wireless AP contact_groups citnet members * } define host{ use generic-host host_name 1200-RAF-04-04 alias AP1200 (Raffles level 4, 4th) address 202.161.56.104 } define host{ use generic-host host_name 352e-MM-03-01 alias AP352E (MM level 3, 1st) address 202.161.56.48 } ========================= The nagios was configured as: ./configure \ --with-mail=/bin/mail \ --with-init-dir=/etc/rc.d/init.d \ --with-gd-lib=/usr/lib \ --with-gd-inc=/usr/include \ --with-perlcache Before I type "make all", the summary screen looks something like this: External Data Routines: ------------------------ Status data: Default (text file) Object data: Template-based (text file) Comment data: Default (text file) Downtime data: Default (text file) Retention data: Default (text file) Peformance data: Default (external commands) Extended info data: Template-based (text file) Hope I didn't bore you with all the unnecessary details. Anyway what I intend to achieve is something like this: A. there will be a hostgroup called all-ap, which should contains all wireless AP B. each wireless AP will be added individually, and will be named as 1200-xxxx or 352e-xxxxx depends on its model. No other hosts will be named in this way. C. it would be good if any newly added AP could be automatically included into the all-ap hostgroup as long as their name conforms to the above mentioned convention. D. to certain extent I actually couldn't afford a blind "*" in production environment since we need to monitor more than wireless AP. Unless this "*" only refers to hosts defined in the same file as the hostgroup definition. Regards ========== Gong Wei (+65 68220120, wgong at smu.edu.sg) Office of CIT, SMU free Thawte Personal Email Cert: http://www.thawte.com/ GnuPG key: http://www.keyserver.net/en/ Standard Disclaimer: The contents of this Email and any attachments are confidential and may be privileged or otherwise protected from disclosure. Unauthorized use, review, distribution and copying of this Email and any attachments herein are prohibited. If this Email has been transmitted to you in error or you are not the addressee indicated in this Email, please delete it immediately and notify the sender. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ericblumenau at techtvcorp.com Wed Feb 5 17:38:36 2003 From: ericblumenau at techtvcorp.com (ericblumenau at techtvcorp.com) Date: Wed, 5 Feb 2003 08:38:36 -0800 Subject: Nagios and Web Interface Message-ID: <88256CC4.005999B3.00@zdtvmta.techtvcorp.com> Good morning Mr. Ghosh, Thanks for the quick reply. I pulled that 's' from the documentation: http://nagios.sourceforge.net/docs/1_0/configmain.html#command_check_interval I have the default interval_length of 60 seconds and I wanted to check for external commands more frequently than that. Thus the "20s" entry. I will try it with an integer and see if that works. Eric Subhendu Ghosh wrote: > command_check_interval should be just an integer "20" not "20s" > > This is probably a bug in the flight-check routine for not catching it. > > -sg > > On Tue, 4 Feb 2003 ericblumenau at techtvcorp.com wrote: > > >> >> >>Greetings all, >>I'm having some problems with the web interface and executing >>external commands. I've followed the instructions in the documentation. >> The permissions on the directory that holds the command file are: >>drwxrwsr-- 2 nagios nagios 512 Feb 4 15:46 logs >> >> Here are the permissions for the command file: >>prw-rw---- 1 nagios nagios 0 Feb 4 15:44 nagios.cmd >> >> My apache is running as user nobody. This user is also a member of >>the nagios group. >> >> I have these two lines in my main Nagios config file: >>check_external_commands=1 >>command_check_interval=20s >> >> I can tail my command file and see commands entered when I click >>through the web interface. Here is a command that I just sent and >>caught in a tail -f: >>[1044402248] DISABLE_SVC_NOTIFICATIONS;townsend-edge;Aliveness >> >> I've certainly waited more than 20s to see the change go through. In >>fact, I haven't seen a change in over an hour. The mailing-list >>archives don't seem to be working and Google has let me down on this. >>Is there a known issue on the web interface and external commands? >> >> If you reply to the nagios list, please cc: me in at >>ericblumenau at techtvcorp.com I don't want to miss your response amongst >>the voluminous daily summaries. >> >>Thanks, >>Eric >> >> >> > > PLEASE NOTE: This message, including any attachments, may include privileged, confidential and/or inside information. Any distribution or use of this communication by anyone other than the intended recipient(s) is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by replying to this message and then delete it from your system. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jmarquart at planalytics.com Wed Feb 5 17:52:01 2003 From: jmarquart at planalytics.com (jmarquart at planalytics.com) Date: Wed, 5 Feb 2003 11:52:01 -0500 Subject: Feture Req: checklist style multiple service selection Message-ID: <85256CC4.005CA7A9.00@mailhost.planalytics.com> Something that I would greatly appreciate in my daily duties, is the ability to select sets of services from a host (or ideally perhaps multiple services from multiple hosts) and manipulate then in a group as i might individually. i.e. I frequently acknowledge a problem, disable notifications / checks on several related services. Currently I must select a service, select the appropriate action, and commit. Repeat with each service until done. If I could (using checklist or something similar) select multiple services and in one step apply the appropriate action - that would be fantastic! I do not believe currently there is any ability to perform such an action. (Please correct me if i am wrong.) -john ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dushy at symonds.net Wed Feb 5 18:42:14 2003 From: dushy at symonds.net (Dushyanth Harinath) Date: Wed, 5 Feb 2003 23:12:14 +0530 Subject: recovery alerts Message-ID: <20030205174214.GA5185@directi.com> Hi guys, I have service escalations defined as given below. define service{ use generic-service host_name testserver service_description SSH is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 contact_groups support notification_interval 5 notification_period 24x7 notification_options w,u,c,r check_command check_ssh } define serviceescalation{ host_name * service_description * first_notification 2 last_notification 2 notification_interval 20 contact_groups sysad-l1 } define serviceescalation{ host_name * service_description * first_notification 3 last_notification 3 notification_interval 0 contact_groups sysad-l2 } The critical/warning notifications are working fine. Now assume that a service problem occurs for 13 mts, then nagios sends a critical notification to the "support" contact group after 5 mts and after 10 mts to the contact group sysad-l1. But after the service recovers the recovery notification is only sent to the sysad-l1 contact group and not also to the support contact group. Why is this so?, should'nt all the contact groups who have been notified about the problem get a recovery notification too. Is there something wrong with my configuration or is this the way it is supposed to work ?. TIA Regards Dushyanth.H -- Bad command or file name! Go stand in the corner. http://symonds.net/~dushy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios.dm at wrhambrecht.com Wed Feb 5 18:44:33 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Wed, 5 Feb 2003 09:44:33 -0800 Subject: Stange problem checking https Message-ID: <000801c2cd3e$3ead81e0$bb20a8c0@corp.wrhambrecht.com> Karl, I've shut down Nagios, cleared the contents of the /nagios/var/status.sav file to remove all state info, and started Nagios back up and here's what happened in the nagios.log: [1044465653] SERVICE ALERT: host-a;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 0.235 second response time [1044465713] SERVICE ALERT: host-a;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0.246 second response time [1044465773] SERVICE ALERT: host-a;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time [1044465773] SERVICE NOTIFICATION: adminuser1;host-a;HTTPS;WARNING;notify-by-skytel;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time [1044465774] SERVICE NOTIFICATION: adminuser1;host-a;HTTPS;WARNING;notify-by-email;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time [1044465775] SERVICE NOTIFICATION: adminuser2;host-a;HTTPS;WARNING;notify-by-email;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time Any other thoughts? Is there information cached anywhere else that could be having an effect? David > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Tuesday, February 04, 2003 9:50 PM > To: DM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > I missed the echo $? in your previous posts, and mistakenly concluded > that the plugin was returning a diferent status than its message > showed.. > > This does seem strange. I can't think of any mechanism that > could cause > this. > > Maybe stoppong nagios and clearing all saved states might eliminate > another possible problem. > > -- > Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Wed Feb 5 18:49:26 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 5 Feb 2003 09:49:26 -0800 (PST) Subject: system availability avail.cgi Message-ID: <20030205174926.83301.qmail@web21505.mail.yahoo.com> Jon Lyons wrote: Here's what I use from Chet Luther....I use his script to create a weekly html report thats emailed to everyone, and a daily snap shot.... "Williams, P. Lane" wrote: I've seen on the mailing list where someone has written scripts to gather information from the avail.cgi script and produce output for emailing. I was wondering if I could get my hands on the script? Management has tasked me to prove that Nagios can generate reports for specified times of day, like between 7:00 a.m. and 6:30 p.m. I know if I manually figure out the epoch times I can enter that in the url and get what I am looking for, but I need to be able to generate reports via a cron job and send to management on a daily bases. And I really have no idea how to call the cgi in a script and produce the output to another file. Thanks for any help, Lane ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now > ATTACHMENT part 2 application/octet-stream name=daily-avail-stats.pl > ATTACHMENT part 3 application/octet-stream name=avail-stats.pl > ATTACHMENT part 4 application/octet-stream name=weekly-avail-stats.pl --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From dushy at symonds.net Wed Feb 5 19:01:44 2003 From: dushy at symonds.net (Dushyanth Harinath) Date: Wed, 5 Feb 2003 23:31:44 +0530 Subject: 3-D status map error Message-ID: <20030205180144.GA5328@directi.com> Hi guys, Iam trying to get the 3-D status map working but iam getting this error on the cortona console.. name expected File: http://192.168.1.123:8080/cgi-bin/nagios/statuswrl.cgi?host=all Line: 865 Column: 13 Iam using cgi authentication and this particular user is a contact for every host. And when i login as a user who is a contact for a single host the 3-D status map cgi works without any problem. The default_statuswrl_layout option in cgi.cfg is set to 3 ( Balanced tree ). Any suggestions , how can i rectify this ? TIA Regards Dushyanth -- http://symonds.net/~dushy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gwichman at zantaz.com Wed Feb 5 19:40:09 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Wed, 5 Feb 2003 10:40:09 -0800 Subject: Multiple lines of data in Status field? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DD@zanexch.zantaz.com> I *definetly* saw multiple lines. I.e. not just wrapped-around. Somehow it imbedded a newline AND nagios displayed it on the other end in the status field. I'm trying to reproduce it again but so far haven't had any luck. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Tuesday, February 04, 2003 7:14 PM To: Subhendu Ghosh Cc: Gerald Wichmann; Nagios (E-mail) Subject: Re: [Nagios-users] Multiple lines of data in Status field? Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Wed Feb 5 20:29:34 2003 From: brendon at iwg.info (Brendon Caligari) Date: Wed, 5 Feb 2003 20:29:34 +0100 Subject: ./var/rw/nagios.cmd permissions Message-ID: [rh73, nagios 1.0 from source] Was getting permission errors when trying to use the external command interface. Worked around the issue by changing the group for /var/rw/nagios.cmd to 'apache'. I searched the 'fm' and config files to see what I could have possibly missed but couldn't figure out where I went wrong. Searched google but didn't come across anything helpful. thanks Brendon -------------- next part -------------- An HTML attachment was scrubbed... URL: From slebrun at muskoka.com Wed Feb 5 20:33:48 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Wed, 5 Feb 2003 14:33:48 -0500 Subject: Multiple lines of data in Status field? In-Reply-To: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DD@zanexch.zantaz.com> References: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DD@zanexch.zantaz.com> Message-ID: Put in a
where you want newlines, and the HTML should render out, no? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Gerald Wichmann Sent: Wednesday, February 05, 2003 1:40 PM To: 'Stanley Hopcroft'; Subhendu Ghosh Cc: Nagios (E-mail) Subject: RE: [Nagios-users] Multiple lines of data in Status field? I *definetly* saw multiple lines. I.e. not just wrapped-around. Somehow it imbedded a newline AND nagios displayed it on the other end in the status field. I'm trying to reproduce it again but so far haven't had any luck. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Tuesday, February 04, 2003 7:14 PM To: Subhendu Ghosh Cc: Gerald Wichmann; Nagios (E-mail) Subject: Re: [Nagios-users] Multiple lines of data in Status field? Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Wed Feb 5 20:01:17 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Wed, 5 Feb 2003 13:01:17 -0600 Subject: Distributed checking Message-ID: <20030205190117.GA11410@cannonfodder.org> o.k. I am using the distributed method with passive checks to monitor some hosts I have behind a firewall that I dont want to punch holes in. For some reason my central nagios server keeps running active checks on the hosts even though I have that disabled on a per service instance. So I end up with the service up when it gets the info via the passive tests then it goes critical when the central server tries to check it with an active test. Here is the service config from the central server: define service{ host_name pinky service_description SSH check_command check_ssh max_check_attempts 2 normal_check_interval 5 retry_check_interval 5 passive_checks_enabled 1 active_checks_enabled 0 check_period 24x7 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 1 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 check_freshness 1 freshness_threshold 180 contact_groups admins } -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jnichols at pbp.net Wed Feb 5 21:00:08 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Wed, 5 Feb 2003 12:00:08 -0800 (PST) Subject: system availability avail.cgi In-Reply-To: <20030205174926.83301.qmail@web21505.mail.yahoo.com> References: <20030205174926.83301.qmail@web21505.mail.yahoo.com> Message-ID: > Here's what I use from Chet Luther....I use his script to create a weekly html report thats emailed to everyone, and a daily snap shot.... I don't think the attachment came through.... Any way that you could put them on a web page anywhere? :-) Or, mail them to me, I'd be happy to host them. Thanks! -Jonathan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Wed Feb 5 21:31:37 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 05 Feb 2003 18:31:37 -0200 Subject: ./var/rw/nagios.cmd permissions In-Reply-To: References: Message-ID: <1044477097.12593.8.camel@operacao> try chmod -R 777 /var/rw don't forget to erase the nagios.cmd before start nagios again best regards On Wed, 2003-02-05 at 17:29, Brendon Caligari wrote: > > > [rh73, nagios 1.0 from source] > > Was getting permission errors when trying to use the external command > interface. > > Worked around the issue by changing the group for > /var/rw/nagios.cmd to 'apache'. I searched the 'fm' and config > files to see what I could have possibly missed but couldn't figure out > where I went wrong. Searched google but didn't come across anything > helpful. > > thanks > > Brendon > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ken.snider at datawire.net Wed Feb 5 21:29:12 2003 From: ken.snider at datawire.net (Ken Snider) Date: Wed, 05 Feb 2003 15:29:12 -0500 Subject: Nagios "In the wild" Message-ID: <3E417418.7010308@datawire.net> Thought you all might like this: http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html It's an article on Symantec's NOC service. Have a look at the image attached to the story. A *close* look. Tactical Display anyone? :) --Ken. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dgoldsmith at sans.org Wed Feb 5 21:52:07 2003 From: dgoldsmith at sans.org (David Goldsmith) Date: Wed, 5 Feb 2003 15:52:07 -0500 Subject: check_udp hangs Message-ID: <20030205155207.56c7739d.dgoldsmith@sans.org> I've installed nagios-1.0 and nagios-plugins-1.3.0-beta2 on a RedHat 7.3 system. Checks for various services running on TCP ports work. UDP service checks are failing. If I manually run './check_tcp -H -p , I get a near immediate response (assuming a service is listening) If I manually run check_udp the same way, it just sits there. It does not give up after the default timeout of 10 seconds. Running strace on the 2 binaries shows that check_udp appears to be hanging prior to the call to "signal (SIGALRM, socket_timeout_alarm_handler)" in the main routine. Any ideas? Dave Goldsmith ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 22:00:29 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 6 Feb 2003 08:00:29 +1100 Subject: Monitoring Crystal Enterprise In-Reply-To: ; from Stanley.G.Martin@mail.sprint.com on Wed, Feb 05, 2003 at 07:14:55AM -0600 References: Message-ID: <20030206080019.A217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Feb 05, 2003 at 07:14:55AM -0600, Stanley.G.Martin at mail.sprint.com wrote: > Anybody out there monitoring Crystal Enterprise 8.5? If so, what. I've > taken some of Crystal's sample web pages from their SDK and am using > them to check the APS and some metrics. However, if Crystal is very > busy running jobs, my script times out and notifies me of a problem when > there is none.. Timeouts are implemented both by Nag (to provide better performance by not waiting for slow plugins and _should_ be by the plugin. > Since my plugin on the Nagios side is a Perl script > performing an HTTP::Request, is the timeout adjustable in Nagios or is > that a question for my Perl mailing lists? It's adjustable by both. However since IIRC the timeout default in LWP::UserAgent is 300 secs, it's probably Nag. perldoc LWP::UserAgent http:///docs/configmain.html#service_check_timeout Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mmontiel at bolchile.cl Wed Feb 5 23:04:56 2003 From: mmontiel at bolchile.cl (Mauricio Montiel G.) Date: Wed, 5 Feb 2003 18:04:56 -0400 Subject: Nagios "In the wild" References: <3E417418.7010308@datawire.net> Message-ID: <020301c2cd62$9e3556a0$2d900cc8@MMONTIEL> Even more, take a look at the Video Tour.... attached to the same note. MMG. ----- Original Message ----- From: "Ken Snider" To: Sent: Wednesday, February 05, 2003 4:29 PM Subject: [Nagios-users] Nagios "In the wild" > Thought you all might like this: > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > It's an article on Symantec's NOC service. Have a look at the image attached > to the story. A *close* look. Tactical Display anyone? :) > > --Ken. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sandromergvaz at uol.com.br Wed Feb 5 22:06:02 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Wed, 5 Feb 2003 19:06:02 -0200 Subject: RES: ./var/rw/nagios.cmd permissions In-Reply-To: <1044477097.12593.8.camel@operacao> References: <1044477097.12593.8.camel@operacao> Message-ID: To solve definitely the problem, try this link... http://nagios.sourceforge.net/docs/1_0/commandfile.html If you just "chmod" the way shown below, the next time you restart Nagios, the problem will be back. Att. Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Henrique leandro Enviada em: quarta-feira, 5 de fevereiro de 2003 18:32 Para: NAGIOS Assunto: Re: [Nagios-users] ./var/rw/nagios.cmd permissions try chmod -R 777 /var/rw don't forget to erase the nagios.cmd before start nagios again best regards On Wed, 2003-02-05 at 17:29, Brendon Caligari wrote: > > > [rh73, nagios 1.0 from source] > > Was getting permission errors when trying to use the external command > interface. > > Worked around the issue by changing the group for > /var/rw/nagios.cmd to 'apache'. I searched the 'fm' and > config files to see what I could have possibly missed but couldn't > figure out where I went wrong. Searched google but didn't come across > anything helpful. > > thanks > > Brendon > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 22:17:15 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 6 Feb 2003 08:17:15 +1100 Subject: Stange problem checking https In-Reply-To: <000801c2cd3e$3ead81e0$bb20a8c0@corp.wrhambrecht.com>; from nagios.dm@wrhambrecht.com on Wed, Feb 05, 2003 at 09:44:33AM -0800 References: <000801c2cd3e$3ead81e0$bb20a8c0@corp.wrhambrecht.com> Message-ID: <20030206081710.B217@IPAustralia.Gov.AU> Dear Sir, You may have to bite the bullet on this one and try tsitc> ./configure --help | tail --with-htmurl= sets URL for public html --enable-DEBUG0 shows function entry and exit --enable-DEBUG1 shows general info messages --enable-DEBUG2 shows warning messages --enable-DEBUG3 shows scheduled events (service and host checks... etc) --enable-DEBUG4 shows service and host notifications --enable-DEBUG5 shows SQL queries --enable-embedded-perl will enable embedded Perl interpreter --with-perlcache turns on cacheing of internally compiled Perl scripts --enable-cygwin enables building under the CYGWIN environment tsitc> building a Nag with DEBUG3 to get what Nag thinks the plugin is returning (probably with a different install path and a new config containing only the problem service). Before doing this, you may want to eliminate check_http as a factor by replacing it with check_dummy and see if the output is stable. Good luck. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:06:25 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:06:25 -0600 Subject: Nagios "In the wild" Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E143D@PKDWB03C.ad.sprint.com> Erm... wasn't this brought to the attention of the list back on Jan.9/03? jc > -----Original Message----- > From: Mauricio Montiel G. [mailto:mmontiel at bolchile.cl] > Sent: Wednesday, February 05, 2003 4:05 PM > To: Ken Snider; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios "In the wild" > > > Even more, take a look at the Video Tour.... attached to the > same note. > > MMG. > > ----- Original Message ----- > From: "Ken Snider" > To: > Sent: Wednesday, February 05, 2003 4:29 PM > Subject: [Nagios-users] Nagios "In the wild" > > > > Thought you all might like this: > > > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > > > It's an article on Symantec's NOC service. Have a look at the image > attached > > to the story. A *close* look. Tactical Display anyone? :) > > > > --Ken. > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:25:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:25:54 -0600 Subject: Bug in Nagios orphan-check?! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E143F@PKDWB03C.ad.sprint.com> It *does* seem that you're running out of memory. Just a guess. You haven't mentioned how much RAM or swap you have on this machine. 80 nagios processes isn't much, considering I've had quite a bit more than that in the past. Granted, I'm also running with 1 GB of RAM and 2 GB of swap. You might want to consider adding more RAM and bump up your swap space. jc > -----Original Message----- > From: Matthias Eichler [mailto:me at ame.de] > Sent: Wednesday, February 05, 2003 4:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Bug in Nagios orphan-check?! > > > Hi List, > > I have some Nagios 1.0 installed on a Debian 3 Woody. The machine > is some Intel Celeron 700 MHz with 256 MB of RAM. > > The setup was doing really well for some long time, but now I get > some severe problems more or less every five days. > > Today we had some connection problems to some remote farm. But Nagios > didnt send out host-down notifications, it said this in its event log: > > "Warning: The check of service 'blabla' on host 'blabla' looks like > it was orphaned (results never came back). I'm scheduling an immediate > check of the service..." > Since this first entry Nagios reported this warning with EVERY service > check, about 142 times... > At this time I tried to get on the web interface and got no connect, > the SSH login took very long, what I am not wondering about, > because the > box had a load of 7.83! > I saw that there were about 80 nagios processes in the list. They were > not stopped by some /etc/init.d/nagios stop, I had to kill them all. > > In dmesg I see entries like: > --- > Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 > (apache). > Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 > (apache). > --- > or > --- > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > waitpid(13304,...) failed, errno 512 > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > waitpid(13305,...) failed, errno 512 > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > waitpid(13306,...) failed, errno 512 > --- > > I think there might be some bug, because also the remote > site is not available Nagios should warn us about it and > not confuse the box like this...?!? > > Any ideas?!? > > Greetings from Munich, > > Matthias > > -- > > Mit freundlichen Gr??en > AME Aigner Media & Entertainment GmbH > > > Matthias Eichler > Leiter Technik | Technical Director > _______________________________________ > > AME? Aigner Media & Entertainment GmbH > Bavariaring 8 D-80336 M?nchen > > Tel [+49] ?89.427 05 - 330 > Fax [+49] ?89.427 05 - 400 > > http://ame.de eMail: me at ame.de > _______________________________________ > Angaben nach TDG|GmbHG:ame.de/impressum > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:26:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:26:59 -0600 Subject: Stupid question..sorry Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1440@PKDWB03C.ad.sprint.com> Please provide a sample host entry stanza. jc > -----Original Message----- > From: Brian Lemm [mailto:zimplton at hotmail.com] > Sent: Wednesday, February 05, 2003 5:10 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Stupid question..sorry > > > I just installed Nagios and ran the config script to migrate > my netsaint > hosts.cfg file to the multitude of files for Nagios. What is > happening now > though is that the computers I have set up for service monitoring are > working fine but the servers that just have check_ping > running are all > coming up with Host not found (IP address). I can ping the > IP address from > the command line and if I run check_ping from the command > line it works. > Anyone have any ideas? > > Thanks for the help > > > > > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:32:57 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:32:57 -0600 Subject: Reporting stuff Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1441@PKDWB03C.ad.sprint.com> In nagios.cfg: xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ You'll need to reconfigure: ./configure --with-file-perfdata Install the new binaries, as appropriate. Restart nagios. Take a look at the hostperf.log and serviceperf.log output. Slice and dice to your heart's content. jc > -----Original Message----- > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > Sent: Wednesday, February 05, 2003 9:14 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Reporting stuff > > > I'd like to make a script that will gather and print > informations from different Nagios cgi (hosts > and services availability, trends, alert history...). > The purpose of this script is to print monthly stats (by a > cron job) without using the web > interface. > > How can i proceed to have this result without too much > scripting stuff effort ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Thu Feb 6 10:19:01 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Thu, 6 Feb 2003 09:19:01 +0000 Subject: Fwd: Distributed checking In-Reply-To: <20030205190117.GA11410@cannonfodder.org> References: <20030205190117.GA11410@cannonfodder.org> Message-ID: <200302060919.08408.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi just a note that I am having about the same problem as you. Anyone has any ideas? On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > o.k. I am using the distributed method with passive checks to monitor > some hosts I have behind a firewall that I dont want to punch holes in. > For some reason my central nagios server keeps running active checks on > the hosts even though I have that disabled on a per service instance. So > I end up with the service up when it gets the info via the passive tests > then it goes critical when the central server tries to check it with an > active test. Here is the service config from the central server: > > define service{ > host_name pinky > service_description SSH > check_command check_ssh > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > passive_checks_enabled 1 > active_checks_enabled 0 > check_period 24x7 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > notification_interval 1 > notification_period 24x7 > notification_options w,u,c,r > notifications_enabled 1 > check_freshness 1 > freshness_threshold 180 > contact_groups admins > } - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+QiiLNgvTa7Hj2AURArJUAKCvXqPKi1UNI7SxwUi74afIYyNqxwCfeTDF zbHd27nCYOsWAbISOPDfTTU= =fgBO -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Thu Feb 6 11:03:04 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Thu, 6 Feb 2003 10:03:04 +0000 Subject: Fwd: Distributed checking In-Reply-To: <200302060919.08408.jasmine.chua@securecirt.com> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> Message-ID: <200302061003.06319.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok its a config mistake. Perhaps Jason ? You should check your service definitions again. Make sure that they are not defined twice. On Thursday 06 February 2003 09:19, Jasmine wrote: > Hi > just a note that I am having about the same problem as you. Anyone has any > ideas? > > On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > > o.k. I am using the distributed method with passive checks to monitor > > some hosts I have behind a firewall that I dont want to punch holes in. > > For some reason my central nagios server keeps running active checks on > > the hosts even though I have that disabled on a per service instance. So > > I end up with the service up when it gets the info via the passive tests > > then it goes critical when the central server tries to check it with an > > active test. Here is the service config from the central server: > > > > define service{ > > host_name pinky > > service_description SSH > > check_command check_ssh > > max_check_attempts 2 > > normal_check_interval 5 > > retry_check_interval 5 > > passive_checks_enabled 1 > > active_checks_enabled 0 > > check_period 24x7 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > notification_interval 1 > > notification_period 24x7 > > notification_options w,u,c,r > > notifications_enabled 1 > > check_freshness 1 > > freshness_threshold 180 > > contact_groups admins > > } > > -- - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+QjLYNgvTa7Hj2AURAvosAKCAHU0zqbRVJygzneH1jLZ4duw9BwCfYDWq V3wJOB3iFIiowY0ML4+YIzA= =ie2n -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Thu Feb 6 14:02:16 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Thu, 6 Feb 2003 13:02:16 +0000 Subject: Fwd: Distributed checking In-Reply-To: <200302061003.06319.jasmine.chua@securecirt.com> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> Message-ID: <200302061302.17747.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HI all.. i m still having this problem sorry. i thought i made a config mistake, but that does not solve the problem. > > just a note that I am having about the same problem as you. Anyone has > > any ideas? > > > > On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > > > o.k. I am using the distributed method with passive checks to monitor > > > some hosts I have behind a firewall that I dont want to punch holes in. > > > For some reason my central nagios server keeps running active checks on > > > the hosts even though I have that disabled on a per service instance. > > > So I end up with the service up when it gets the info via the passive > > > tests then it goes critical when the central server tries to check it > > > with an active test. Here is the service config from the central > > > server: > > > > > > define service{ > > > host_name pinky > > > service_description SSH > > > check_command check_ssh > > > max_check_attempts 2 > > > normal_check_interval 5 > > > retry_check_interval 5 > > > passive_checks_enabled 1 > > > active_checks_enabled 0 > > > check_period 24x7 > > > flap_detection_enabled 1 > > > process_perf_data 1 > > > retain_status_information 1 > > > retain_nonstatus_information 1 > > > notification_interval 1 > > > notification_period 24x7 > > > notification_options w,u,c,r > > > notifications_enabled 1 > > > check_freshness 1 > > > freshness_threshold 180 > > > contact_groups admins > > > } > > > > -- > > -- - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+QlzYNgvTa7Hj2AURAsnYAJ0ZYWr9gecenetL1yZqC1E2Eh00ogCgriLV lMIct+YBKB/6ZQUmDmKe6w8= =q+Rf -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Thu Feb 6 07:32:38 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 6 Feb 2003 07:32:38 +0100 Subject: Multiple lines of data in Status field? Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804AE@storevis.datavis.se> Making the plugin insert some
-tags works perfectly for me... /FredrikW -----Original Message----- From: Gerald Wichmann [mailto:gwichman at zantaz.com] Sent: Wed 05-Feb-03 19:40 To: 'Stanley Hopcroft'; Subhendu Ghosh Cc: Nagios (E-mail) Subject: RE: [Nagios-users] Multiple lines of data in Status field? I *definetly* saw multiple lines. I.e. not just wrapped-around. Somehow it imbedded a newline AND nagios displayed it on the other end in the status field. I'm trying to reproduce it again but so far haven't had any luck. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Tuesday, February 04, 2003 7:14 PM To: Subhendu Ghosh Cc: Gerald Wichmann; Nagios (E-mail) Subject: Re: [Nagios-users] Multiple lines of data in Status field? Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Detlef.Knop at gmx.de Thu Feb 6 07:39:34 2003 From: Detlef.Knop at gmx.de (Detlef.Knop at gmx.de) Date: Thu, 6 Feb 2003 07:39:34 +0100 (MET) Subject: Nagios to monitor MQSeries Message-ID: <3319.1044513574@www48.gmx.net> Dear all, I would like to check whether MQSeries is available as a service on several of my hosts. My first approach was to use the check_tcp plugin which from my point of view worked fine. But the people looking after MQSeries on these machines came back to me and complained that each time the plugin ran MQSeries reported errors on these systems (two errors per check) because MQSeries detects the incoming connection and wants to receive proper data, but then the connection is closed. Has anyone ever tried to do the same and found a solution? Maybe there is a way using passive checks, or we might have to look into the possibility to write a plugin. Kind regards Detlef Knop -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 08:01:24 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 12:31:24 +0530 Subject: Fwd: Distributed checking In-Reply-To: <200302061302.17747.jasmine.chua@securecirt.com> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> Message-ID: <3E420844.7000407@mindsw.com> Hi The problem is simple. U have check_freshness variable set to 1. The effect of this is that whenever the passive service results does not reach nagios for some time (freshness_threshold ), it considers the result as stale and starts checking actively for that service. If u want that active checks are not executed when passive results are stale, then disable check_freshness variable. Just tell me in case ur problem is solved. Thanks Atul Jasmine wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >HI all.. i m still having this problem sorry. i thought i made a config >mistake, but that does not solve the problem. > > > >>>just a note that I am having about the same problem as you. Anyone has >>>any ideas? >>> >>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: >>> >>> >>>>o.k. I am using the distributed method with passive checks to monitor >>>>some hosts I have behind a firewall that I dont want to punch holes in. >>>>For some reason my central nagios server keeps running active checks on >>>>the hosts even though I have that disabled on a per service instance. >>>>So I end up with the service up when it gets the info via the passive >>>>tests then it goes critical when the central server tries to check it >>>>with an active test. Here is the service config from the central >>>>server: >>>> >>>>define service{ >>>> host_name pinky >>>> service_description SSH >>>> check_command check_ssh >>>> max_check_attempts 2 >>>> normal_check_interval 5 >>>> retry_check_interval 5 >>>> passive_checks_enabled 1 >>>> active_checks_enabled 0 >>>> check_period 24x7 >>>> flap_detection_enabled 1 >>>> process_perf_data 1 >>>> retain_status_information 1 >>>> retain_nonstatus_information 1 >>>> notification_interval 1 >>>> notification_period 24x7 >>>> notification_options w,u,c,r >>>> notifications_enabled 1 >>>> check_freshness 1 >>>> freshness_threshold 180 >>>> contact_groups admins >>>>} >>>> >>>> >>>-- >>> >>> >>-- >> >> > >- -- >- -- >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.1 (GNU/Linux) > >iD8DBQE+QlzYNgvTa7Hj2AURAsnYAJ0ZYWr9gecenetL1yZqC1E2Eh00ogCgriLV >lMIct+YBKB/6ZQUmDmKe6w8= >=q+Rf >-----END PGP SIGNATURE----- > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 08:42:54 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:12:54 +0530 Subject: Distributed Monitoring(NSCA server) issue Message-ID: <3E4211FE.8080606@mindsw.com> Hi Im using distributed monitoring to send the results of nagios at one site to the other site, so the results are also shown at central location. In check_ping plugins im using urlize to urlize it to show the mtr to that host. All works fine at the site where it actively gets checked, but when the results are sent to the central nagios server , the ping results are shown as A href=/nagios/cgi-bin/mtr.cgi?host=134.159.63.125count=50PING WARNING - Packet loss = 0%, RTA = 319.07 ms/A Due to the removal of angular brackets from the result, the resul is not urlized at the central site and an ugly string is shown there. I have checked that at the client side (ie nagios which is sending the passive results), the angular brackets are not ommitted, whereas on the NSCA server, when results are received, the angular brackets are ommitted. Is there any version of NSCA server with anyone which doesnt do this and shows he results properly. Thanks Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 08:55:58 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:25:58 +0530 Subject: snmp monitoring[OT] In-Reply-To: References: Message-ID: <3E42150E.2060806@mindsw.com> Sir snmpwalk -c public my.ip .1.3.6.1.4.1.9.9.13.1 I tried this ,but could not get more than this SNMPv2-SMI::enterprises.9.9.13.1.1.0 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.1 = STRING: "Internal Power Supply" SNMPv2-SMI::enterprises.9.9.13.1.5.1.3.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.4.1 = INTEGER: 3 Does this output means that environmental monitoring is enabled on my cisco. (Allthough i dont think so ) Im monitoring cisco 2610, cisco 3620, cisco 5300 Thanks Atul Subhendu Ghosh wrote: >BTW - what cisco model are you monitoring. Might want to have you test >any new cisco/router plugins we come out with ... > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 09:04:22 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:34:22 +0530 Subject: snmp monitoring[OT] In-Reply-To: References: Message-ID: <3E421706.3090704@mindsw.com> Sir snmpwalk -c public my.ip .1.3.6.1.4.1.9.9.13.1 I tried this ,but could not get more than this SNMPv2-SMI::enterprises.9.9.13.1.1.0 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.1 = STRING: "Internal Power Supply" SNMPv2-SMI::enterprises.9.9.13.1.5.1.3.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.4.1 = INTEGER: 3 Does this output means that environmental monitoring is enabled on my cisco. (Allthough i dont think so ) Im monitoring cisco 2610, cisco 3620, cisco 5300 Thanks Atul Subhendu Ghosh wrote: >try snmpwalk - these are columns in a table - multiple power supplies and >fans (each in a row). To retrieve the actual element, you need to know >the index or use getnext. > >-sg > >On Thu, 6 Feb 2003, Atul Gosain wrote: > > > >>Hi >> >>Thanks for the plugin. That will be of great help, but i have some doubts. >>Looking at the code i saw that its checking for these ids >> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>When i run the plugin, it says "All environment variables normal." >> >> but when i use snmpget on these oids like this >> snmpget -c public xxx.my.xxx.ip .1.3.6.1.4.1.9.9.13.1.2.1.7 >>i get the response as >> >>Error in packet >>Reason: (noSuchName) There is no such variable name in this MIB. >>Failed object: SNMPv2-SMI::enterprises.9.9.13.1.2.1.7 >> >>These oid's are not shown in the MIB's , even then the plugin says >>everything is normal. >>Am i wrong in my assessment or if im right , then can u please tell me >>how to include environmental mib in the mib of cisco. >> >>Thanks >>Atul >> >>Subhendu Ghosh wrote: >> >> >> >>>Attached is a cisco power/temp/fan monitor. It is going to be merged >>>with a similar juniper monitor and is not in the distrib as yet. >>> >>>check_bgpstate in the contrib dir can monitor the bgp peering >>>relationships on any router. >>> >>>-sg >>> >>>On Wed, 5 Feb 2003, Atul Gosain wrote: >>> >>> >>> >>> >>> >>>>Hi >>>> >>>>Im monitoring cisco server through Nagios. I have to monitor temperature >>>>and other environmental variables for cisco. Does somebody have an idea >>>>how can we enable environmental monitoring on cisco through SNMP. I >>>>searched a lot on cisco's site but could not find it. >>>>Also is there anyplugin written which monitors other aspects of cisco >>>>apart from interface status. >>>> >>>>Thanks >>>>Atul >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>#!/usr/bin/perl -wT >>># >>># check_xinterface - nagios plugin >>># >>># largely based upon check_ifoperstatus.pl plugin by Christoph Kron >>># >>># >>># >>># >>># Copyright (C) 2002 Guy Van Den Bergh >>># >>># This program is free software; you can redistribute it and/or >>># modify it under the terms of the GNU General Public License >>># as published by the Free Software Foundation; either version 2 >>># of the License, or (at your option) any later version. >>># >>># This program is distributed in the hope that it will be useful, >>># but WITHOUT ANY WARRANTY; without even the implied warranty of >>># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >>># GNU General Public License for more details. >>># >>># You should have received a copy of the GNU General Public License >>># along with this program; if not, write to the Free Software >>># Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >>># >>># >>># Report bugs to: guy at belnet.be >>># >>> >>># design of the plugin: >>># check admin status: if down, then warning; exit >>># check operational status: if down, then critical; exit >>># check last change, if within 'tolerance' (-l or --last-change option), >>># then warning >>># get performance data: bits in/out, etc... (implementation to be scheduled later) >>># performance data could be checked against older values (bw drops e.g.) >>> >>>use strict; >>> >>>use Net::SNMP; >>>use Getopt::Long; >>>&Getopt::Long::config('auto_abbrev'); >>> >>> >>>my $status; >>>my $TIMEOUT = 60; >>> >>>my %ERRORS = ('UNKNOWN' , '-1', >>> 'OK' , '0', >>> 'WARNING', '1', >>> 'CRITICAL', '2'); >>> >>>my %ciscoEnvMonState = ('1','normal(1)', >>> '2','warning(2)', >>> '3','critical(3)', >>> '4','shutdown(4)', >>> '5','notPresent(5)', >>> '6','notFunctioning(6)'); >>> >>>my $state = "UNKNOWN"; >>>my $answer = ""; >>>my $snmpkey = 1; >>>my $community = "public"; >>>my $port = 161; >>>my $t_oid; >>>my @snmpoids; >>>my %error_oids; >>>my $snmpCiscoVoltageStatus; >>>my $snmpCiscoTemperatureStatus; >>>my $snmpCiscoFanStatus; >>>my $snmpCiscoSupplyStatus; >>>my $hostname; >>>my $session; >>>my $error; >>>my $response; >>>my $value; >>>my $oid; >>>my @voltage_errors; >>>my @temperature_errors; >>>my @fan_errors; >>>my @supply_errors; >>> >>> >>>sub usage { >>> printf "\nMissing arguments!\n"; >>> printf "\n"; >>> printf "Perl Check Cisco Environment plugin for Nagios\n"; >>> printf "checks status of temperature, fans, ...\n"; >>> printf "usage: \n"; >>> printf "check_cisco_env -c -p "; >>> printf "\nCopyright (C) 2002 Guy Van Den Bergh\n"; >>> printf "check_cisco_env comes with ABSOLUTELY NO WARRANTY\n"; >>> printf "This programm is licensed under the terms of the "; >>> printf "GNU General Public License\n(check source code for details)\n"; >>> printf "\n\n"; >>> exit $ERRORS{"UNKNOWN"}; >>>} >>> >>># Just in case of problems, let's not hang Nagios >>>$SIG{'ALRM'} = sub { >>> print ("ERROR: No snmp response from $hostname (alarm)\n"); >>> exit $ERRORS{"UNKNOWN"}; >>>}; >>>alarm($TIMEOUT); >>> >>> >>>$status = GetOptions("community=s",\$community, >>> "port=i",\$port); >>>if ($status == 0) >>>{ >>> &usage; >>>} >>> >>> #shift; >>> $hostname = shift || &usage; >>> >>> ($session, $error) = Net::SNMP->session( >>> -hostname => $hostname, >>> -community => $community, >>> -port => $port >>> ); >>> >>> if (!defined($session)) { >>> $state='UNKNOWN'; >>> $answer=$error; >>> print ("$state: $answer"); >>> exit $ERRORS{$state}; >>> } >>> >>> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >>> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >>> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >>> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>> >>> >>> push(@snmpoids,$snmpCiscoVoltageStatus); >>> push(@snmpoids,$snmpCiscoTemperatureStatus); >>> push(@snmpoids,$snmpCiscoFanStatus); >>> push(@snmpoids,$snmpCiscoSupplyStatus); >>> # >>> # These four oids all have the same syntax, >>> # which makes it easy for scripting all four oids at the same time! >>> # >>> >>> $answer = "No data returned (Environment MIB not supported)"; >>> # This will be overwritten when there IS data returned! >>> >>> TABLE: >>> foreach $t_oid (@snmpoids) { >>> # >>> # Now get all relevant oids, and set the plugin output status accordingly. >>> # >>> >>> if (!defined($response = $session->get_table($t_oid))) { >>> $error_oids{$t_oid} = $session->error; >>> next TABLE; >>> } >>> >>> while ( ($oid, $value) = each %$response ) { >>> >>> if ($value == 1 || $value == 5 || $value == 6) { >>> # normal, notPresent or notFunctioning >>> $state = 'OK' if $state =~ /UNKNOWN/; >>> $answer = "All environment variables normal." if $state eq 'OK'; >>> } elsif ($value == 2) { >>> # warning >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'WARNING' unless $state =~ /CRITICAL/; >>> } elsif ($value == 3 || $value == 4) { >>> # critical or shutdown >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'CRITICAL' >>> } >>> >>> } >>> } >>> >>> $session->close; >>> >>>## Here is the place for introducing artificial errors (for debugging). >>> >>> >>># >>># Now parse all erroneous responses: >>># >>> >>>unless ($state eq 'OK' or $state eq 'UNKNOWN') { >>> >>> while ( ($oid, $value) = each %error_oids ) { >>> >>> $value =~ s/\(\d\)//; >>> >>> if ($oid =~ /$snmpCiscoVoltageStatus\./) { >>> $oid =~ s/$snmpCiscoVoltageStatus\.//; >>> push(@voltage_errors, "$value (instance $oid)"); >>> >>> } elsif($oid =~ /$snmpCiscoTemperatureStatus\./) { >>> $oid =~ s/$snmpCiscoTemperatureStatus\.//; >>> push(@temperature_errors, "$value (instance $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoFanStatus\./) { >>> $oid =~ s/$snmpCiscoFanStatus\.//; >>> push(@fan_errors, "$value (fan $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoSupplyStatus\./) { >>> $oid =~ s/$snmpCiscoSupplyStatus\.//; >>> push(@supply_errors, "$value (PS $oid)"); >>> } >>> } >>> >>> # >>> # And now the final formatting of the output: >>> # >>> >>> my $voltage_errors_s = join ";", @voltage_errors if defined $voltage_errors[0]; >>> my $temperature_errors_s = join ";", @temperature_errors if defined $temperature_errors[0]; >>> my $fan_errors_s = join ";", @fan_errors if defined $fan_errors[0]; >>> my $supply_errors_s = join ";", @supply_errors if defined $supply_errors[0]; >>> >>> $answer = "Problems with:
"; >>> $answer .= "Voltage: " . $voltage_errors_s . "
" if defined $voltage_errors_s; >>> $answer .= "Temperature: " . $temperature_errors_s . "
" if defined $temperature_errors_s; >>> $answer .= "Fans: " . $fan_errors_s . "
" if defined $fan_errors_s; >>> $answer .= "Power Supply: " . $supply_errors_s ."
" if defined $supply_errors_s; >>>} >>> >>>print ("$answer\n"); >>>exit $ERRORS{$state}; >>> >>> >>> >>> >>> >> >> >> > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 09:09:42 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:39:42 +0530 Subject: snmp monitoring[OT] In-Reply-To: References: Message-ID: <3E421846.101@mindsw.com> Sir snmpwalk -c public my.ip .1.3.6.1.4.1.9.9.13.1 I tried this ,but could not get more than this SNMPv2-SMI::enterprises.9.9.13.1.1.0 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.1 = STRING: "Internal Power Supply" SNMPv2-SMI::enterprises.9.9.13.1.5.1.3.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.4.1 = INTEGER: 3 Does this output means that environmental monitoring is enabled on my cisco. (Allthough i dont think so ) Im monitoring cisco 2610, cisco 3620, cisco 5300 Thanks Atul Subhendu Ghosh wrote: >try snmpwalk - these are columns in a table - multiple power supplies and >fans (each in a row). To retrieve the actual element, you need to know >the index or use getnext. > >-sg > >On Thu, 6 Feb 2003, Atul Gosain wrote: > > > >>Hi >> >>Thanks for the plugin. That will be of great help, but i have some doubts. >>Looking at the code i saw that its checking for these ids >> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>When i run the plugin, it says "All environment variables normal." >> >> but when i use snmpget on these oids like this >> snmpget -c public xxx.my.xxx.ip .1.3.6.1.4.1.9.9.13.1.2.1.7 >>i get the response as >> >>Error in packet >>Reason: (noSuchName) There is no such variable name in this MIB. >>Failed object: SNMPv2-SMI::enterprises.9.9.13.1.2.1.7 >> >>These oid's are not shown in the MIB's , even then the plugin says >>everything is normal. >>Am i wrong in my assessment or if im right , then can u please tell me >>how to include environmental mib in the mib of cisco. >> >>Thanks >>Atul >> >>Subhendu Ghosh wrote: >> >> >> >>>Attached is a cisco power/temp/fan monitor. It is going to be merged >>>with a similar juniper monitor and is not in the distrib as yet. >>> >>>check_bgpstate in the contrib dir can monitor the bgp peering >>>relationships on any router. >>> >>>-sg >>> >>>On Wed, 5 Feb 2003, Atul Gosain wrote: >>> >>> >>> >>> >>> >>>>Hi >>>> >>>>Im monitoring cisco server through Nagios. I have to monitor temperature >>>>and other environmental variables for cisco. Does somebody have an idea >>>>how can we enable environmental monitoring on cisco through SNMP. I >>>>searched a lot on cisco's site but could not find it. >>>>Also is there anyplugin written which monitors other aspects of cisco >>>>apart from interface status. >>>> >>>>Thanks >>>>Atul >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>#!/usr/bin/perl -wT >>># >>># check_xinterface - nagios plugin >>># >>># largely based upon check_ifoperstatus.pl plugin by Christoph Kron >>># >>># >>># >>># >>># Copyright (C) 2002 Guy Van Den Bergh >>># >>># This program is free software; you can redistribute it and/or >>># modify it under the terms of the GNU General Public License >>># as published by the Free Software Foundation; either version 2 >>># of the License, or (at your option) any later version. >>># >>># This program is distributed in the hope that it will be useful, >>># but WITHOUT ANY WARRANTY; without even the implied warranty of >>># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >>># GNU General Public License for more details. >>># >>># You should have received a copy of the GNU General Public License >>># along with this program; if not, write to the Free Software >>># Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >>># >>># >>># Report bugs to: guy at belnet.be >>># >>> >>># design of the plugin: >>># check admin status: if down, then warning; exit >>># check operational status: if down, then critical; exit >>># check last change, if within 'tolerance' (-l or --last-change option), >>># then warning >>># get performance data: bits in/out, etc... (implementation to be scheduled later) >>># performance data could be checked against older values (bw drops e.g.) >>> >>>use strict; >>> >>>use Net::SNMP; >>>use Getopt::Long; >>>&Getopt::Long::config('auto_abbrev'); >>> >>> >>>my $status; >>>my $TIMEOUT = 60; >>> >>>my %ERRORS = ('UNKNOWN' , '-1', >>> 'OK' , '0', >>> 'WARNING', '1', >>> 'CRITICAL', '2'); >>> >>>my %ciscoEnvMonState = ('1','normal(1)', >>> '2','warning(2)', >>> '3','critical(3)', >>> '4','shutdown(4)', >>> '5','notPresent(5)', >>> '6','notFunctioning(6)'); >>> >>>my $state = "UNKNOWN"; >>>my $answer = ""; >>>my $snmpkey = 1; >>>my $community = "public"; >>>my $port = 161; >>>my $t_oid; >>>my @snmpoids; >>>my %error_oids; >>>my $snmpCiscoVoltageStatus; >>>my $snmpCiscoTemperatureStatus; >>>my $snmpCiscoFanStatus; >>>my $snmpCiscoSupplyStatus; >>>my $hostname; >>>my $session; >>>my $error; >>>my $response; >>>my $value; >>>my $oid; >>>my @voltage_errors; >>>my @temperature_errors; >>>my @fan_errors; >>>my @supply_errors; >>> >>> >>>sub usage { >>> printf "\nMissing arguments!\n"; >>> printf "\n"; >>> printf "Perl Check Cisco Environment plugin for Nagios\n"; >>> printf "checks status of temperature, fans, ...\n"; >>> printf "usage: \n"; >>> printf "check_cisco_env -c -p "; >>> printf "\nCopyright (C) 2002 Guy Van Den Bergh\n"; >>> printf "check_cisco_env comes with ABSOLUTELY NO WARRANTY\n"; >>> printf "This programm is licensed under the terms of the "; >>> printf "GNU General Public License\n(check source code for details)\n"; >>> printf "\n\n"; >>> exit $ERRORS{"UNKNOWN"}; >>>} >>> >>># Just in case of problems, let's not hang Nagios >>>$SIG{'ALRM'} = sub { >>> print ("ERROR: No snmp response from $hostname (alarm)\n"); >>> exit $ERRORS{"UNKNOWN"}; >>>}; >>>alarm($TIMEOUT); >>> >>> >>>$status = GetOptions("community=s",\$community, >>> "port=i",\$port); >>>if ($status == 0) >>>{ >>> &usage; >>>} >>> >>> #shift; >>> $hostname = shift || &usage; >>> >>> ($session, $error) = Net::SNMP->session( >>> -hostname => $hostname, >>> -community => $community, >>> -port => $port >>> ); >>> >>> if (!defined($session)) { >>> $state='UNKNOWN'; >>> $answer=$error; >>> print ("$state: $answer"); >>> exit $ERRORS{$state}; >>> } >>> >>> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >>> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >>> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >>> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>> >>> >>> push(@snmpoids,$snmpCiscoVoltageStatus); >>> push(@snmpoids,$snmpCiscoTemperatureStatus); >>> push(@snmpoids,$snmpCiscoFanStatus); >>> push(@snmpoids,$snmpCiscoSupplyStatus); >>> # >>> # These four oids all have the same syntax, >>> # which makes it easy for scripting all four oids at the same time! >>> # >>> >>> $answer = "No data returned (Environment MIB not supported)"; >>> # This will be overwritten when there IS data returned! >>> >>> TABLE: >>> foreach $t_oid (@snmpoids) { >>> # >>> # Now get all relevant oids, and set the plugin output status accordingly. >>> # >>> >>> if (!defined($response = $session->get_table($t_oid))) { >>> $error_oids{$t_oid} = $session->error; >>> next TABLE; >>> } >>> >>> while ( ($oid, $value) = each %$response ) { >>> >>> if ($value == 1 || $value == 5 || $value == 6) { >>> # normal, notPresent or notFunctioning >>> $state = 'OK' if $state =~ /UNKNOWN/; >>> $answer = "All environment variables normal." if $state eq 'OK'; >>> } elsif ($value == 2) { >>> # warning >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'WARNING' unless $state =~ /CRITICAL/; >>> } elsif ($value == 3 || $value == 4) { >>> # critical or shutdown >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'CRITICAL' >>> } >>> >>> } >>> } >>> >>> $session->close; >>> >>>## Here is the place for introducing artificial errors (for debugging). >>> >>> >>># >>># Now parse all erroneous responses: >>># >>> >>>unless ($state eq 'OK' or $state eq 'UNKNOWN') { >>> >>> while ( ($oid, $value) = each %error_oids ) { >>> >>> $value =~ s/\(\d\)//; >>> >>> if ($oid =~ /$snmpCiscoVoltageStatus\./) { >>> $oid =~ s/$snmpCiscoVoltageStatus\.//; >>> push(@voltage_errors, "$value (instance $oid)"); >>> >>> } elsif($oid =~ /$snmpCiscoTemperatureStatus\./) { >>> $oid =~ s/$snmpCiscoTemperatureStatus\.//; >>> push(@temperature_errors, "$value (instance $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoFanStatus\./) { >>> $oid =~ s/$snmpCiscoFanStatus\.//; >>> push(@fan_errors, "$value (fan $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoSupplyStatus\./) { >>> $oid =~ s/$snmpCiscoSupplyStatus\.//; >>> push(@supply_errors, "$value (PS $oid)"); >>> } >>> } >>> >>> # >>> # And now the final formatting of the output: >>> # >>> >>> my $voltage_errors_s = join ";", @voltage_errors if defined $voltage_errors[0]; >>> my $temperature_errors_s = join ";", @temperature_errors if defined $temperature_errors[0]; >>> my $fan_errors_s = join ";", @fan_errors if defined $fan_errors[0]; >>> my $supply_errors_s = join ";", @supply_errors if defined $supply_errors[0]; >>> >>> $answer = "Problems with:
"; >>> $answer .= "Voltage: " . $voltage_errors_s . "
" if defined $voltage_errors_s; >>> $answer .= "Temperature: " . $temperature_errors_s . "
" if defined $temperature_errors_s; >>> $answer .= "Fans: " . $fan_errors_s . "
" if defined $fan_errors_s; >>> $answer .= "Power Supply: " . $supply_errors_s ."
" if defined $supply_errors_s; >>>} >>> >>>print ("$answer\n"); >>>exit $ERRORS{$state}; >>> >>> >>> >>> >>> >> >> >> > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From me at ame.de Thu Feb 6 10:01:29 2003 From: me at ame.de (Matthias Eichler) Date: Thu, 6 Feb 2003 10:01:29 +0100 Subject: Bug in Nagios orphan-check?! In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E143F@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E143F@PKDWB03C.ad.sprint.com> Message-ID: <1044522089.3e422469c7763@mail.ame.de> Hi Jim, the box has 256 MB RAM as I posted and 512 MB of swap. But I think under normal circumstances the box should not run out of memory. Now e.g. Nagios is running for 17 hours and the stats of the box are: ---cut--- 09:57:16 up 63 days, 23:13, 1 user, load average: 0.01, 0.07, 0.03 56 processes: 53 sleeping, 3 running, 0 zombie, 0 stopped CPU states: 1.8% user, 4.0% system, 0.0% nice, 94.2% idle Mem: 253916K total, 208776K used, 45140K free, 115400K buffers Swap: 257032K total, 4248K used, 252784K free, 35288K cached ---cut--- This looks pretty fine for me, especially because 200MB of RAM are not really used, 32MB are cached and 115MB buffered...if Nagios or any other app should need more RAM here it should get it... So IMHO there must be some bug if Nagios runs out of (memory-)control in that way after just 5 days running... Ok, I have 478 services on 32 hosts but that should not be sooo much for such a box, shouldnt it?!? Matthias Zitat von "Carroll, Jim P [Contractor]" : > It *does* seem that you're running out of memory. Just a guess. > > You haven't mentioned how much RAM or swap you have on this machine. 80 > nagios processes isn't much, considering I've had quite a bit more than that > in the past. Granted, I'm also running with 1 GB of RAM and 2 GB of swap. > > You might want to consider adding more RAM and bump up your swap space. > > jc > > > -----Original Message----- > > From: Matthias Eichler [mailto:me at ame.de] > > Sent: Wednesday, February 05, 2003 4:54 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Bug in Nagios orphan-check?! > > > > > > Hi List, > > > > I have some Nagios 1.0 installed on a Debian 3 Woody. The machine > > is some Intel Celeron 700 MHz with 256 MB of RAM. > > > > The setup was doing really well for some long time, but now I get > > some severe problems more or less every five days. > > > > Today we had some connection problems to some remote farm. But Nagios > > didnt send out host-down notifications, it said this in its event log: > > > > "Warning: The check of service 'blabla' on host 'blabla' looks like > > it was orphaned (results never came back). I'm scheduling an immediate > > check of the service..." > > Since this first entry Nagios reported this warning with EVERY service > > check, about 142 times... > > At this time I tried to get on the web interface and got no connect, > > the SSH login took very long, what I am not wondering about, > > because the > > box had a load of 7.83! > > I saw that there were about 80 nagios processes in the list. They were > > not stopped by some /etc/init.d/nagios stop, I had to kill them all. > > > > In dmesg I see entries like: > > --- > > Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 > > (apache). > > Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 > > (apache). > > --- > > or > > --- > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > waitpid(13304,...) failed, errno 512 > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > waitpid(13305,...) failed, errno 512 > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > waitpid(13306,...) failed, errno 512 > > --- > > > > I think there might be some bug, because also the remote > > site is not available Nagios should warn us about it and > > not confuse the box like this...?!? > > > > Any ideas?!? > > > > Greetings from Munich, > > > > Matthias > > > > -- > > > > Mit freundlichen Gr??en > > AME Aigner Media & Entertainment GmbH > > > > > > Matthias Eichler > > Leiter Technik | Technical Director > > _______________________________________ > > > > AME? Aigner Media & Entertainment GmbH > > Bavariaring 8 D-80336 M?nchen > > > > Tel [+49] ?89.427 05 - 330 > > Fax [+49] ?89.427 05 - 400 > > > > http://ame.de eMail: me at ame.de > > _______________________________________ > > Angaben nach TDG|GmbHG:ame.de/impressum > > > -- Matthias Eichler Leiter Technik | Technical Director _____________________________________ AME Aigner Media & Entertainment GmbH Bavariaring 8 D-80336 Muenchen Tel: [+49] ?89.427.05-330 Fax: [+49] ?89.427.05-400 _____________________________________ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Thu Feb 6 12:11:21 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Thu, 06 Feb 2003 11:11:21 +0000 Subject: Plugin Installation - I have rtfm no help. Message-ID: hi, im using RH8 and nagios1.0 (non beta) I installed the plugins.. i downloaded the rpm. Typed rpm -i nagios-plugins-1.3.0-bets2.i386.rpm it did its job.. and now where are these plugins? and the help files? In the Nagios for beginners it says "the procedure to install the plugins is similar to that of core program. Refer to appendix C for the documentation associated with the plugins." Where is the help file never mind appendix C. Well it would help to know how to Install these first before you even get to the HELP file. I cant find no libexec in my nagios directory after running the rpm so i cant even find the help file. reading the manual dont help when many stages are missed. Please help if you can. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Thu Feb 6 12:33:48 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Thu, 06 Feb 2003 11:33:48 +0000 Subject: Fwd: Plugin Installation - I have rtfm no help2 Message-ID: Hi again, Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root when i goto the root file it says that *****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) *****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** Im not sure what this is.. but I dont think the RPM installed at all. :( the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) Hope this helps. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 12:50:22 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 17:20:22 +0530 Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: <3E424BFE.2090403@mindsw.com> Hi First check rpm -qa|grep nagios-plugins to see whether its installed or not. Most probably it will be installed. Ur problem is that tripwire has not made entries for newly installed files in its database. For this run tripwire again to make its database again. I dont remember the exact syntax. For seeing what files are installed by a particular rpm just do rpm -qil nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). Regards Atul Raj Mudhar wrote: >Hi again, > >Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root > >when i goto the root file it says that > >*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** > >Im not sure what this is.. but I dont think the RPM installed at all. :( > >the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) > >Hope this helps. > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Thu Feb 6 12:59:07 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Thu, 06 Feb 2003 11:59:07 +0000 Subject: Fwd: Plugin Installation - I have rtfm no help2 Message-ID: Hi Atul Ok its intalled the rpm .. i did rpm -qa|grep nagios-plugins and the reply was: nagios-plugins-1.3.0-beta2 I did rpm -qil (filename) and it came back with a list of directories and they are all in the usr/lib/nagios/plugins directory apart from some readmes that are in usr/share/doc/ What was all this about the libexec directory? as its not there.. what do i have to do .. has it gone wrong? Thanks for you initial reply! >>> Atul Gosain 02/06/03 11:50am >>> Hi First check rpm -qa|grep nagios-plugins to see whether its installed or not. Most probably it will be installed. Ur problem is that tripwire has not made entries for newly installed files in its database. For this run tripwire again to make its database again. I dont remember the exact syntax. For seeing what files are installed by a particular rpm just do rpm -qil nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). Regards Atul Raj Mudhar wrote: >Hi again, > >Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root > >when i goto the root file it says that > >*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** > >Im not sure what this is.. but I dont think the RPM installed at all. :( > >the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) > >Hope this helps. > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Bernhard.Verstege at hik.fzk.de Thu Feb 6 13:10:48 2003 From: Bernhard.Verstege at hik.fzk.de (Verstege, Bernhard) Date: Thu, 6 Feb 2003 13:10:48 +0100 Subject: AW: Distributed checking Message-ID: Hi, works as designed ... if a service check returns a non ok state (active or passive), a host check is performed. The other thing is the enabled feshness-check. If the distibuted monitor does not send a passive check for the given threshold, an active check on your master will be performed. These checks will be performed, even if active checks are disabled ! To make sure the distributed monitor is still alive, we use the check_dummy plugin. We use two different service definitions: - the distributed monitor does a check_dummy every 5 minutes for example and sends the result (allways OK) to the master - on the master we defined a freshness threshold of 10 minutes and a "check_command" which does no real check. It only sends an email to the admin which tells him that the distributed monitor has not send an "alive" check for the given threshold. - all other checks on the master have freshness_check disabled Hope this helps ! Gru? B. Verstege ------------------------------------------------------------------------- Bernhard Verstege Forschungszentrum Karlsruhe GmbH Abt. HIK Technik und Umwelt Hermann-von-Helmholtz-Platz 1 Tel.: 0049 7247-82-5665 D-76344 Eggenstein-Leopoldshafen Fax.: 0049 7247-82-4972 email: verstege at hik.fzk.de >-----Urspr?ngliche Nachricht----- >Von: Jason Burnett [mailto:jason at cannonfodder.org] >Gesendet: Mittwoch, 5. Februar 2003 20:01 >An: nagios-users >Betreff: [Nagios-users] Distributed checking > > >o.k. I am using the distributed method with passive checks to monitor >some hosts I have behind a firewall that I dont want to punch holes in. >For some reason my central nagios server keeps running active checks on >the hosts even though I have that disabled on a per service >instance. So >I end up with the service up when it gets the info via the >passive tests >then it goes critical when the central server tries to check it with an >active test. Here is the service config from the central server: > >define service{ > host_name pinky > service_description SSH > check_command check_ssh > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > passive_checks_enabled 1 > active_checks_enabled 0 > check_period 24x7 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > notification_interval 1 > notification_period 24x7 > notification_options w,u,c,r > notifications_enabled 1 > check_freshness 1 > freshness_threshold 180 > contact_groups admins >} > > >-- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 13:18:18 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 17:48:18 +0530 Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: <3E42528A.7080608@mindsw.com> Hi I would rather advice you to compile it from source. Download the source from sorceforge and compile it. libexec is the name of directory inside the nagios directory which contains the plugins needed for various service checks. U can change the name of this directory by changing the $USER1$ variable in the resources.cfg file in etc directory. regards Atul Raj Mudhar wrote: >Hi Atul > >Ok its intalled the rpm .. i did rpm -qa|grep nagios-plugins and the reply was: >nagios-plugins-1.3.0-beta2 > >I did rpm -qil (filename) and it came back with a list of directories and they are all in the usr/lib/nagios/plugins directory apart from some readmes that are in usr/share/doc/ > >What was all this about the libexec directory? as its not there.. what do i have to do .. has it gone wrong? > >Thanks for you initial reply! > > > >>>>Atul Gosain 02/06/03 11:50am >>> >>>> >>>> >Hi > >First check rpm -qa|grep nagios-plugins to see whether its installed or >not. Most probably it will be installed. >Ur problem is that tripwire has not made entries for newly installed >files in its database. For this run tripwire again to make its database >again. I dont remember the exact syntax. >For seeing what files are installed by a particular rpm just do rpm -qil >nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). > >Regards >Atul > >Raj Mudhar wrote: > > > >>Hi again, >> >>Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root >> >>when i goto the root file it says that >> >>*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >>*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** >> >>Im not sure what this is.. but I dont think the RPM installed at all. :( >> >>the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) >> >>Hope this helps. >> >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >> > > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Thu Feb 6 13:16:43 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 06 Feb 2003 07:16:43 -0500 Subject: Plugin Installation - I have rtfm no help. In-Reply-To: References: Message-ID: <1044533592.4528.15.camel@localhost.localdomain> On Thu, 2003-02-06 at 06:11, Raj Mudhar wrote: > hi, im using RH8 and nagios1.0 (non beta) > > I installed the plugins.. i downloaded the rpm. Typed rpm -i nagios-plugins-1.3.0-bets2.i386.rpm it did its job.. and now where are these plugins? and the help files? In the Nagios for beginners it says "the procedure to install the plugins is similar to that of core program. Refer to appendix C for the documentation associated with the plugins." Where is the help file never mind appendix C. > > Well it would help to know how to Install these first before you even get to the HELP file. I cant find no libexec in my nagios directory after running the rpm so i cant even find the help file. I'd have to check into the reference in the nagios docs. To see what plugins you have and where, I suggest you read the man page for rpm. rpm -ql nagios-plugins should do the trick. As for plugin documentation, run the plugin of interest with --help as an option. The authoritative docs come internal to each plugin. There is a FAQ and a few other docs, and there will be additional docs (derived from the embedded sources) in the future. But that's it for now. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 13:47:00 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 18:17:00 +0530 Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: <3E425944.3090003@mindsw.com> Thanks for such a good response. May God help you in learning linux Raj Mudhar wrote: >hi > >What do you mean compile it from source. i just downloaded the plugin... is this not from source? > >Im new to linux and using this to learn more about it.. my tripwire is installed but i think it needs configuring i dont think its essential to starting nagios though. > >what you think... i read the installation help file and i need to do the ./configure stuff again for the plugins. So ill do that. > > > >>>>Atul Gosain 02/06/03 12:18pm >>> >>>> >>>> >Hi > >I would rather advice you to compile it from source. Download the source >from sorceforge and compile it. >libexec is the name of directory inside the nagios directory which >contains the plugins needed for various service checks. U can change >the name of this directory by changing the $USER1$ variable in the >resources.cfg file in etc directory. > >regards >Atul >Raj Mudhar wrote: > > > >>Hi Atul >> >>Ok its intalled the rpm .. i did rpm -qa|grep nagios-plugins and the reply was: >>nagios-plugins-1.3.0-beta2 >> >>I did rpm -qil (filename) and it came back with a list of directories and they are all in the usr/lib/nagios/plugins directory apart from some readmes that are in usr/share/doc/ >> >>What was all this about the libexec directory? as its not there.. what do i have to do .. has it gone wrong? >> >>Thanks for you initial reply! >> >> >> >> >> >>>>>Atul Gosain 02/06/03 11:50am >>> >>>>> >>>>> >>>>> >>>>> >>Hi >> >>First check rpm -qa|grep nagios-plugins to see whether its installed or >>not. Most probably it will be installed. >>Ur problem is that tripwire has not made entries for newly installed >>files in its database. For this run tripwire again to make its database >>again. I dont remember the exact syntax. >>For seeing what files are installed by a particular rpm just do rpm -qil >>nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). >> >>Regards >>Atul >> >>Raj Mudhar wrote: >> >> >> >> >> >>>Hi again, >>> >>>Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root >>> >>>when i goto the root file it says that >>> >>>*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >>>*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** >>> >>>Im not sure what this is.. but I dont think the RPM installed at all. :( >>> >>>the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) >>> >>>Hope this helps. >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>> >>> >>> >> >> >> >> > > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 14:28:48 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 18:58:48 +0530 Subject: Macro definition in notify command Message-ID: <3E426310.9040704@mindsw.com> Hi I have to use a $ARG$ from a service check into the misccommands.cfg ( in service-notify-by-email) . By default its not available in the notify commands as per the documentation of the Nagios. Can anybody tell how to achieve this. Regards Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Thu Feb 6 14:45:10 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 06 Feb 2003 11:45:10 -0200 Subject: Comments - history Message-ID: <1044539111.26175.2.camel@operacao> Hi Anybody know how do i for make a history from all comments stored. i'm using Mysql for storage datas, but when delete a comment, his saken from database too. thanks for help bye Henrique Leandro VARIG S.A ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From T-VANZEE at govst.edu Thu Feb 6 15:00:57 2003 From: T-VANZEE at govst.edu (Van Zee, Timothy) Date: Thu, 6 Feb 2003 08:00:57 -0600 Subject: check_udp hangs Message-ID: <7F76AA41FC7DD5119B1E00508BAF0444030B46DB@gsmail.govst.edu> Firewall? Tim -----Original Message----- From: David Goldsmith [mailto:dgoldsmith at sans.org] Sent: Wednesday, February 05, 2003 2:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_udp hangs I've installed nagios-1.0 and nagios-plugins-1.3.0-beta2 on a RedHat 7.3 system. Checks for various services running on TCP ports work. UDP service checks are failing. If I manually run './check_tcp -H -p , I get a near immediate response (assuming a service is listening) If I manually run check_udp the same way, it just sits there. It does not give up after the default timeout of 10 seconds. Running strace on the 2 binaries shows that check_udp appears to be hanging prior to the call to "signal (SIGALRM, socket_timeout_alarm_handler)" in the main routine. Any ideas? Dave Goldsmith ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Thu Feb 6 15:39:31 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Thu, 6 Feb 2003 09:39:31 -0500 Subject: Comments - history In-Reply-To: <1044539111.26175.2.camel@operacao> References: <1044539111.26175.2.camel@operacao> Message-ID: ...Don't delete the comments, then? Should make for a nice history. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Henrique leandro Sent: Thursday, February 06, 2003 8:45 AM To: NAGIOS Subject: [Nagios-users] Comments - history Hi Anybody know how do i for make a history from all comments stored. i'm using Mysql for storage datas, but when delete a comment, his saken from database too. thanks for help bye Henrique Leandro VARIG S.A ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 15:44:11 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 09:44:11 -0500 (EST) Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: Yes the rpm installed properly and tripwire is complaining correctly that there are new files on the system that do not match the database of installed files. rpm -ql nagios-plugins for installation list what/where Because the a lot of plugins call external utilities (some of which may not be installed on your system or have different locations) I woudl recommend you dowload the tar.gz file and go through the configure/make process. -sg On Thu, 6 Feb 2003, Raj Mudhar wrote: > Hi again, > > Just to let you know when i did do the rpm -i (nagios file) all it said > in return was that i had new mail in my var/spool/mail/root > > when i goto the root file it says that > > *****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) > *****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** > > Im not sure what this is.. but I dont think the RPM installed at all. :( > > the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i > ran this from / (before root where i ran my nagios core prog from) > > Hope this helps. > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 15:38:40 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 09:38:40 -0500 (EST) Subject: Nagios to monitor MQSeries In-Reply-To: <3319.1044513574@www48.gmx.net> References: <3319.1044513574@www48.gmx.net> Message-ID: Can you find out what command response sequence can be passed/received from MQSeries to determine state? I'm sure a plugin could be created... -sg On Thu, 6 Feb 2003 Detlef.Knop at gmx.de wrote: > Dear all, > > I would like to check whether MQSeries is available as a service on several > of my hosts. My first approach was to use the check_tcp plugin which from my > point of view worked fine. But the people looking after MQSeries on these > machines came back to me and complained that each time the plugin ran MQSeries > reported errors on these systems (two errors per check) because MQSeries > detects the incoming connection and wants to receive proper data, but then the > connection is closed. > > Has anyone ever tried to do the same and found a solution? Maybe there is a > way using passive checks, or we might have to look into the possibility to > write a plugin. > > Kind regards > > Detlef Knop > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 15:51:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 09:51:03 -0500 (EST) Subject: Macro definition in notify command In-Reply-To: <3E426310.9040704@mindsw.com> References: <3E426310.9040704@mindsw.com> Message-ID: http://nagios.sourceforge.net/docs/1_0/macros.html $ARGx$ is not available in notifications.. -sg On Thu, 6 Feb 2003, Atul Gosain wrote: > Hi > > I have to use a $ARG$ from a service check into the misccommands.cfg ( > in service-notify-by-email) . By default its not available in the notify > commands as per the documentation of the Nagios. > Can anybody tell how to achieve this. > > Regards > Atul > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jschroeder at vermeermfg.com Thu Feb 6 15:56:05 2003 From: jschroeder at vermeermfg.com (Jason Schroeder) Date: Thu, 6 Feb 2003 08:56:05 -0600 Subject: Nrpe and Snmp problems Message-ID: <000e01c2cdef$dfd9dcb0$060210ac@D0123> I am running Nagios on a Sun Ultra 10 with Solaris 9 on it. I have a remote Sun Ultra 10 with Solaris 8 on it. I have nrpe 1.8 running on the remote host, and it uses the check_snmp to query cisco hardware. I have it returning the hostname of the router to make sure it is up and running. On the remote server the response is "SNMP OK - router1" (using check_snmp -H router1 -o system.sysName.0 -C public -s router1). When I run the check_nrpe command from the nagios host, the return is "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c check_router1). All of the information is correct, any idea why the return info on the nagios host is a warning? Thanks. ------------------------------------------------ Jason Schroeder, CCNP Certified jschroeder at vermeermfg.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlixfeld at fastvibe.com Thu Feb 6 16:40:02 2003 From: jlixfeld at fastvibe.com (Jason Lixfeld) Date: Thu, 06 Feb 2003 10:40:02 -0500 Subject: Configuration option for auto-acknowledge? Message-ID: <3E4281D2.5090004@fastvibe.com> Greetings, At our organization, we pre-provision users and use nagios to poll the provisioning server and automatically add users to the nagios configuration. The problem with this implementation is that the users may not be active before they have been provisioned. This means that until they login for the first time, alarms will go off unless we manually acknowledge each of the pre-provisioned users. A user may not login for a long period of time after they are provisioned, and thus added to nagios. What I'm wondering is if there is a configuration hook that can be inserted for each user that sets the initial notification state to acknowledged so we don't have to manually acknowledge each user. Thank you in advance. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew at anvil.org Thu Feb 6 16:50:01 2003 From: andrew at anvil.org (Andrew Meredith) Date: Thu, 06 Feb 2003 15:50:01 +0000 Subject: Fwd: Distributed checking References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> Message-ID: <3E428429.8090302@anvil.org> This is the same problem I described under: Subject: Distributed Checks Date: 2003-02-04 1512 In that mail I confirm that if you were to do this, then the server would indeed stop performing active checks .. which is what I want, as the central server cannot successfully perform the checks from it's IP address. However, it doesn't then do anything else either. I was expecting it to mark the service as unknown or down or somethng, it just keeps on displaying the last service status that it received. Andy M Atul Gosain wrote: > Hi > > The problem is simple. > U have check_freshness variable set to 1. The effect of this is that > whenever the passive service results does not reach nagios for some time > (freshness_threshold ), it considers the result as stale and starts > checking actively for that service. If u want that active checks are not > executed when passive results are stale, then disable check_freshness > variable. > Just tell me in case ur problem is solved. > > Thanks > Atul > > Jasmine wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> HI all.. i m still having this problem sorry. i thought i made a >> config mistake, but that does not solve the problem. >> >> >>>> just a note that I am having about the same problem as you. Anyone has >>>> any ideas? >>>> >>>> On Wednesday 05 February 2003 19:01, Jason Burnett wrote: >>>> >>>> >>>>> o.k. I am using the distributed method with passive checks to monitor >>>>> some hosts I have behind a firewall that I dont want to punch holes >>>>> in. >>>>> For some reason my central nagios server keeps running active >>>>> checks on >>>>> the hosts even though I have that disabled on a per service instance. >>>>> So I end up with the service up when it gets the info via the passive >>>>> tests then it goes critical when the central server tries to check it >>>>> with an active test. Here is the service config from the central >>>>> server: >>>>> >>>>> define service{ >>>>> host_name pinky >>>>> service_description SSH >>>>> check_command check_ssh >>>>> max_check_attempts 2 >>>>> normal_check_interval 5 >>>>> retry_check_interval 5 >>>>> passive_checks_enabled 1 >>>>> active_checks_enabled 0 >>>>> check_period 24x7 >>>>> flap_detection_enabled 1 >>>>> process_perf_data 1 >>>>> retain_status_information 1 >>>>> retain_nonstatus_information 1 >>>>> notification_interval 1 >>>>> notification_period 24x7 >>>>> notification_options w,u,c,r >>>>> notifications_enabled 1 >>>>> check_freshness 1 >>>>> freshness_threshold 180 >>>>> contact_groups admins >>>>> } >>>>> ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 16:54:18 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 10:54:18 -0500 (EST) Subject: Nrpe and Snmp problems In-Reply-To: <000e01c2cdef$dfd9dcb0$060210ac@D0123> References: <000e01c2cdef$dfd9dcb0$060210ac@D0123> Message-ID: On Thu, 6 Feb 2003, Jason Schroeder wrote: > I am running Nagios on a Sun Ultra 10 with Solaris 9 on it. I have a > remote Sun Ultra 10 with Solaris 8 on it. I have nrpe 1.8 running on > the remote host, and it uses the check_snmp to query cisco hardware. I > have it returning the hostname of the router to make sure it is up and > running. On the remote server the response is "SNMP OK - router1" > (using check_snmp -H router1 -o system.sysName.0 -C public -s router1). > When I run the check_nrpe command from the nagios host, the return is > "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c > check_router1). All of the information is correct, any idea why the > return info on the nagios host is a warning? Thanks. > Probably some permissions/env issue which the nrpe daemon. When you run the command on the remote system- did you run it as the same user as nrpe? The basic warning in your scenario is due to snmpget returning some output on stderr. If the -s regex had failed then it would have returned CRITICAL -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ryano at ch-gifts.com Thu Feb 6 17:02:29 2003 From: ryano at ch-gifts.com (Ryan O'Rourke) Date: 06 Feb 2003 10:02:29 -0600 Subject: path to plugins in hosts.cfg Message-ID: <1044547350.16238.301.camel@ryano> Hello, I'm working on getting Nagios installed on RedHat 8. The last step of the nagios-plugins INSTALL file says to make sure the hosts.cfg file contains the correct path to the newly installed plugins. I don't see anywhere in the hosts.cfg where the plugins path is/can be defined. Do I simply need to do: check_command /usr/local/nagios/libexec/command ? Thank you. -- Ryan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Thu Feb 6 17:04:30 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Thu, 6 Feb 2003 17:04:30 +0100 Subject: FW: Nagios to monitor MQSeries Message-ID: Sorry, I have forgotten the list... > -----Original Message----- > From: Aust, Volker, PRE > Sent: Thursday, February 06, 2003 1:06 PM > To: 'Detlef.Knop at gmx.de' > Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > > Hi Detlef, > > when you install the MQSeries client (with developer > support), you get some sample programs. One of these sample > programs is "amqsailq", which lists the length of all > MQ-queues of a server. You can use "amqsailq" local or > remote. When you use this program (or a mofified version, > that only checks important queues like we do (a colleague has > modified some of the sample programs)) remote, you can make > two tests with one call: > > - check the connectivity to the MQ-server and the -service > > - check the length of some important queues (too many, too few, ...) > > I have wraped the program in a shell script to generate the > Nagios stuff (return-code and output). > > Hope this helps. > > -vol > > > -----Original Message----- > > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > Sent: Thursday, February 06, 2003 7:40 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios to monitor MQSeries > > > > > > Dear all, > > > > I would like to check whether MQSeries is available as a > > service on several > > of my hosts. My first approach was to use the check_tcp > > plugin which from my > > point of view worked fine. But the people looking after > > MQSeries on these > > machines came back to me and complained that each time the > > plugin ran MQSeries > > reported errors on these systems (two errors per check) > > because MQSeries > > detects the incoming connection and wants to receive proper > > data, but then the > > connection is closed. > > > > Has anyone ever tried to do the same and found a solution? > > Maybe there is a > > way using passive checks, or we might have to look into the > > possibility to > > write a plugin. > > > > Kind regards > > > > Detlef Knop > > > > -- > > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Thu Feb 6 17:37:48 2003 From: wim at hsmade.com (Wim Fournier) Date: Thu, 6 Feb 2003 17:37:48 +0100 (CET) Subject: FW: Nagios to monitor MQSeries In-Reply-To: References: Message-ID: <53148.217.198.203.200.1044549468.squirrel@webmail.kern.nl> Are you talking about Sonic MQ here? > Sorry, I have forgotten the list... > >> -----Original Message----- >> From: Aust, Volker, PRE >> Sent: Thursday, February 06, 2003 1:06 PM >> To: 'Detlef.Knop at gmx.de' >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries >> >> >> Hi Detlef, >> >> when you install the MQSeries client (with developer >> support), you get some sample programs. One of these sample >> programs is "amqsailq", which lists the length of all >> MQ-queues of a server. You can use "amqsailq" local or >> remote. When you use this program (or a mofified version, >> that only checks important queues like we do (a colleague has >> modified some of the sample programs)) remote, you can make >> two tests with one call: >> >> - check the connectivity to the MQ-server and the -service >> >> - check the length of some important queues (too many, too few, ...) >> >> I have wraped the program in a shell script to generate the >> Nagios stuff (return-code and output). >> >> Hope this helps. >> >> -vol >> >> > -----Original Message----- >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] >> > Sent: Thursday, February 06, 2003 7:40 AM >> > To: nagios-users at lists.sourceforge.net >> > Subject: [Nagios-users] Nagios to monitor MQSeries >> > >> > >> > Dear all, >> > >> > I would like to check whether MQSeries is available as a >> > service on several >> > of my hosts. My first approach was to use the check_tcp >> > plugin which from my >> > point of view worked fine. But the people looking after >> > MQSeries on these >> > machines came back to me and complained that each time the >> > plugin ran MQSeries >> > reported errors on these systems (two errors per check) >> > because MQSeries >> > detects the incoming connection and wants to receive proper >> > data, but then the >> > connection is closed. >> > >> > Has anyone ever tried to do the same and found a solution? >> > Maybe there is a >> > way using passive checks, or we might have to look into the >> > possibility to >> > write a plugin. >> > >> > Kind regards >> > >> > Detlef Knop >> > >> > -- >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> > http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >> > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Thu Feb 6 17:48:15 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Thu, 6 Feb 2003 17:48:15 +0100 Subject: [Nagiosplug-help] Nagios Plugins & NRPE on Reliant Unix and O pen Unix 8.0 In-Reply-To: <2D4326C2FB16D5119D870800062B194401F254C8@erls9xca.erl.sbs.de> References: <2D4326C2FB16D5119D870800062B194401F254C8@erls9xca.erl.sbs.de> Message-ID: <20030206164815.GA19769@skynet.be> On Thu, Feb 06, 2003 at 10:02:34AM +0100, Gruenbaum Stefan wrote: > OK :) > > I?ve installed gnu-make. All right. > But the Installation of gnu-gcc failed during the "make bootstrap". Many > undefined symbols, warnings and syntax errors. I love Open Unix 8.0 ;) I had to compile Nagios on Open Unix 8 for one of my customers. Do you want the binaries ? Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Thu Feb 6 17:55:10 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Thu, 6 Feb 2003 17:55:10 +0100 Subject: Nrpe and Snmp problems In-Reply-To: References: <000e01c2cdef$dfd9dcb0$060210ac@D0123> Message-ID: <20030206165509.GB19769@skynet.be> On Thu, Feb 06, 2003 at 10:54:18AM -0500, Subhendu Ghosh wrote: > On Thu, 6 Feb 2003, Jason Schroeder wrote: > > > I am running Nagios on a Sun Ultra 10 with Solaris 9 on it. I have a > > remote Sun Ultra 10 with Solaris 8 on it. I have nrpe 1.8 running on > > the remote host, and it uses the check_snmp to query cisco hardware. I > > have it returning the hostname of the router to make sure it is up and > > running. On the remote server the response is "SNMP OK - router1" > > (using check_snmp -H router1 -o system.sysName.0 -C public -s router1). > > When I run the check_nrpe command from the nagios host, the return is > > "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c > > check_router1). All of the information is correct, any idea why the > > return info on the nagios host is a warning? Thanks. > > > > Probably some permissions/env issue which the nrpe daemon. When you run > the command on the remote system- did you run it as the same user as nrpe? > > The basic warning in your scenario is due to snmpget returning some > output on stderr. If the -s regex had failed then it would have returned > CRITICAL Maybe the problem resides on the fact that locally, the hostname returned is "router1", and remotely, it is seen as "router1.yourdomain.ext" I already had a similar problem Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Thu Feb 6 18:03:48 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Thu, 6 Feb 2003 18:03:48 +0100 Subject: path to plugins in hosts.cfg In-Reply-To: <1044547350.16238.301.camel@ryano> References: <1044547350.16238.301.camel@ryano> Message-ID: <20030206170347.GC19769@skynet.be> On Thu, Feb 06, 2003 at 10:02:29AM -0600, Ryan O'Rourke wrote: > Hello, > > I'm working on getting Nagios installed on RedHat 8. The last step of > the nagios-plugins INSTALL file says to make sure the hosts.cfg file > contains the correct path to the newly installed plugins. > I don't see anywhere in the hosts.cfg where the plugins path is/can be > defined. Do I simply need to do: > check_command /usr/local/nagios/libexec/command > ? Check resource.cfg, and especially the first lines... # Sets $USER1$ to be the path to the plugins $USER1$=/usr/local/nagios/libexec Here is an example of command (in my case, the file is "checkcommands.cfg) -- Notice the $USER1$ # 'check_ssh' command definition define command{ command_name check_ssh command_line $USER1$/check_ssh $HOSTADDRESS$ } Finally, in services.cfg (normally), the syntax for the command is : check_command check_ftp!10!15!20 Don't fear to use the default configurations, everything is pretty well explained. Hope it helps, Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 18:02:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 11:02:59 -0600 Subject: path to plugins in hosts.cfg Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2549@PKDWB03C.ad.sprint.com> I'm not sure why it says that. To date, all I've ever used is the simple command. CAVEAT: The command referenced by check_command is NOT the plugin binary. At least not directly. What you're specifying with check_command is actually a token which needs to be defined in checkcommands.cfg. *This* is where you reference the plugin binary. In many cases (in a brand new install), the names of the tokens are identical to the plugin binaries, which tends to derail Nagios newbies. I know it did me. jc > -----Original Message----- > From: Ryan O'Rourke [mailto:ryano at ch-gifts.com] > Sent: Thursday, February 06, 2003 10:02 AM > To: NAGIOS > Subject: [Nagios-users] path to plugins in hosts.cfg > > > Hello, > > I'm working on getting Nagios installed on RedHat 8. The last step of > the nagios-plugins INSTALL file says to make sure the hosts.cfg file > contains the correct path to the newly installed plugins. > I don't see anywhere in the hosts.cfg where the plugins path is/can be > defined. Do I simply need to do: > check_command /usr/local/nagios/libexec/command > ? > > Thank you. > > -- Ryan > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From RLAdams at Kelsey-Seybold.com Thu Feb 6 19:18:53 2003 From: RLAdams at Kelsey-Seybold.com (Russell Adams) Date: Thu, 6 Feb 2003 12:18:53 -0600 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2535@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2535@PKDWB03C.ad.sprint.com> Message-ID: <21434.2672763907$1044556399@news.gmane.org> Checkout MONIT. I've considered daemontools, but MONIT seems to fit the bill better. I'm about to roll it out to several of my machines with an older unstable UCD-SNMP daemon on them... http://www.tildeslash.com/monit/ Russell On Fri, Jan 31, 2003 at 01:27:31PM -0600, Carroll, Jim P [Contractor] wrote: > If you're running the nrpe daemon on your client host as the unprivileged > user nagios, you might discover some privilege problems, especially trying > to start network daemons which listen on ports below 1024. If you're > running the nrpe daemon on your client host as root, ... ah, but there's no > point discussing that insecure option, because you wouldn't be doing that. > Would you? ;) > > There might be better options to consider. The one which springs to mind is > daemontools (http://cr.yp.to/) This is certainly how tinydns and dnscache > run. If (for some unknown reason) the daemon exits, daemontools will simply > start it up again. If you direct daemontools to shut down the daemon, then > it will. If you direct daemontools to restart the daemon, then it will. > > Daemontools may not work for all daemons available. Having said that, there > may be other solutions out there. > > I'm more in favour of letting Nagios do the centralized monitoring, and > letting systems keep themselves running. If you push the responsibility of > restarting daemons to Nagios, you now have a single point of failure (not to > mention the latency between checks in larger environments which could delay > the recovery of a downed daemon). > > Something else to consider is this: If a daemon dies for no good reason, > why not get to the bottom of it and get it fixed? Especially if it's a > mission critical process? > > Just my $0.02. > > jc > > > -----Original Message----- > > From: Shayne Lebrun [mailto:slebrun at muskoka.com] > > Sent: Friday, January 31, 2003 12:34 PM > > To: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] attempt recovery on service CRITICAL with > > nrpe > > > > > > If only NRPE could pass arguments, I could do something like: > > > > event_handler check_nrpe!restart-sillydaemon > > > > Then in your command: > > command > > command_line /path/check_nrpe -H $HOSTADDRESS$ -c > > restart-sillydaemon -ArgChain > > $SERVICESTATUS$!$STATETYPE$!$SERVICEATTEMPT$ > > > > Then in the nrpe.cfg on the remote host: > > command[restart-sillydaemon]=/path/restart-sillydaemon $ARG1$ > > $ARG2$ $ARG3$ > > > > i.e. I just want the ArgChain, !-delimited, separated into > > ARGn variables, > > which nrpe could then send along said arguments to the commands. > > > > Ah well. If wishes were horses, then beggers would ride. > > > > Consider it a feature request. :-) > > > > Muskoka.com > > 115 Manitoba Street > > Bracebridge, Ontario > > P1L 2B6 > > (705)645-6097 > > > > Muskoka.com is pleased to announce > > New High Speed Services > > please visit > > http://www.muskoka.com/services.htm > > for more information > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 19:10:31 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 12:10:31 -0600 Subject: FW: Nagios to monitor MQSeries Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F254A@PKDWB03C.ad.sprint.com> MQSeries is similar to but different than SonicMQ. The latter is a JMS product by Sonic Software. The former is an IBM product using a proprietary standard. We have both here; I wouldn't mind monitoring both of these natively. Hm. We don't seem to have the 'amqsailq' program. What's the default path to this? I didn't find it under /opt/mqm nor under /usr (on Solaris8). $ pkginfo -l | grep -i mq PKGINST: mqjava DESC: MQSeries classes for Java and MQSeries classes for Java Message Service PKGINST: mqm NAME: MQSeries for Sun Solaris 2 PKGINST: mqm-upd03 NAME: MQSeries for Sun Solaris 2 - U478291 PKGINST: mqm-upd05 NAME: MQSeries for Sun Solaris 2 - U481514 jc > -----Original Message----- > From: Wim Fournier [mailto:wim at hsmade.com] > Sent: Thursday, February 06, 2003 10:38 AM > To: Volker.Aust at premiere.de > Cc: nagios-users at lists.sourceforge.net > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > Are you talking about Sonic MQ here? > > > > > Sorry, I have forgotten the list... > > > >> -----Original Message----- > >> From: Aust, Volker, PRE > >> Sent: Thursday, February 06, 2003 1:06 PM > >> To: 'Detlef.Knop at gmx.de' > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > >> > >> > >> Hi Detlef, > >> > >> when you install the MQSeries client (with developer > >> support), you get some sample programs. One of these sample > >> programs is "amqsailq", which lists the length of all > >> MQ-queues of a server. You can use "amqsailq" local or > >> remote. When you use this program (or a mofified version, > >> that only checks important queues like we do (a colleague has > >> modified some of the sample programs)) remote, you can make > >> two tests with one call: > >> > >> - check the connectivity to the MQ-server and the -service > >> > >> - check the length of some important queues (too many, too > few, ...) > >> > >> I have wraped the program in a shell script to generate the > >> Nagios stuff (return-code and output). > >> > >> Hope this helps. > >> > >> -vol > >> > >> > -----Original Message----- > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > >> > Sent: Thursday, February 06, 2003 7:40 AM > >> > To: nagios-users at lists.sourceforge.net > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > >> > > >> > > >> > Dear all, > >> > > >> > I would like to check whether MQSeries is available as a > >> > service on several > >> > of my hosts. My first approach was to use the check_tcp > >> > plugin which from my > >> > point of view worked fine. But the people looking after > >> > MQSeries on these > >> > machines came back to me and complained that each time the > >> > plugin ran MQSeries > >> > reported errors on these systems (two errors per check) > >> > because MQSeries > >> > detects the incoming connection and wants to receive proper > >> > data, but then the > >> > connection is closed. > >> > > >> > Has anyone ever tried to do the same and found a solution? > >> > Maybe there is a > >> > way using passive checks, or we might have to look into the > >> > possibility to > >> > write a plugin. > >> > > >> > Kind regards > >> > > >> > Detlef Knop > >> > > >> > -- > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This SF.NET email is sponsored by: > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > >> > http://www.vasoftware.com > >> > _______________________________________________ > >> > Nagios-users mailing list > >> > Nagios-users at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > > >> > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > Grtz, > > Wim Fournier > wim at hsmade.[com|net|org] > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 19:18:32 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 12:18:32 -0600 Subject: Bug in Nagios orphan-check?! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E144C@PKDWB03C.ad.sprint.com> Try running "sar -r" to see if there's a correlation between the times you've had problems and any indication of memory shortage. Or whether the memory is quite bountiful at all times. jc > -----Original Message----- > From: Matthias Eichler [mailto:me at ame.de] > Sent: Thursday, February 06, 2003 3:01 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Bug in Nagios orphan-check?! > > > Hi Jim, > > the box has 256 MB RAM as I posted and 512 MB of swap. > But I think under normal circumstances the box should not run out > of memory. > > Now e.g. Nagios is running for 17 hours and the stats of the box are: > ---cut--- > 09:57:16 up 63 days, 23:13, 1 user, load average: 0.01, 0.07, 0.03 > 56 processes: 53 sleeping, 3 running, 0 zombie, 0 stopped > CPU states: 1.8% user, 4.0% system, 0.0% nice, 94.2% idle > Mem: 253916K total, 208776K used, 45140K free, > 115400K buffers > Swap: 257032K total, 4248K used, 252784K free, > 35288K cached > ---cut--- > > This looks pretty fine for me, especially because 200MB of > RAM are not really > used, 32MB are cached and 115MB buffered...if Nagios or any > other app should > need more RAM here it should get it... > > So IMHO there must be some bug if Nagios runs out of > (memory-)control in that > way after just 5 days running... > Ok, I have 478 services on 32 hosts but that should not be > sooo much for such a > box, shouldnt it?!? > > Matthias > > Zitat von "Carroll, Jim P [Contractor]" : > > > It *does* seem that you're running out of memory. Just a guess. > > > > You haven't mentioned how much RAM or swap you have on this > machine. 80 > > nagios processes isn't much, considering I've had quite a > bit more than that > > in the past. Granted, I'm also running with 1 GB of RAM > and 2 GB of swap. > > > > You might want to consider adding more RAM and bump up your > swap space. > > > > jc > > > > > -----Original Message----- > > > From: Matthias Eichler [mailto:me at ame.de] > > > Sent: Wednesday, February 05, 2003 4:54 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Bug in Nagios orphan-check?! > > > > > > > > > Hi List, > > > > > > I have some Nagios 1.0 installed on a Debian 3 Woody. The machine > > > is some Intel Celeron 700 MHz with 256 MB of RAM. > > > > > > The setup was doing really well for some long time, but now I get > > > some severe problems more or less every five days. > > > > > > Today we had some connection problems to some remote > farm. But Nagios > > > didnt send out host-down notifications, it said this in > its event log: > > > > > > "Warning: The check of service 'blabla' on host 'blabla' > looks like > > > it was orphaned (results never came back). I'm scheduling > an immediate > > > check of the service..." > > > Since this first entry Nagios reported this warning with > EVERY service > > > check, about 142 times... > > > At this time I tried to get on the web interface and got > no connect, > > > the SSH login took very long, what I am not wondering about, > > > because the > > > box had a load of 7.83! > > > I saw that there were about 80 nagios processes in the > list. They were > > > not stopped by some /etc/init.d/nagios stop, I had to > kill them all. > > > > > > In dmesg I see entries like: > > > --- > > > Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 > > > (apache). > > > Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 > > > (apache). > > > --- > > > or > > > --- > > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > > waitpid(13304,...) failed, errno 512 > > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > > waitpid(13305,...) failed, errno 512 > > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > > waitpid(13306,...) failed, errno 512 > > > --- > > > > > > I think there might be some bug, because also the remote > > > site is not available Nagios should warn us about it and > > > not confuse the box like this...?!? > > > > > > Any ideas?!? > > > > > > Greetings from Munich, > > > > > > Matthias > > > > > > -- > > > > > > Mit freundlichen Gr??en > > > AME Aigner Media & Entertainment GmbH > > > > > > > > > Matthias Eichler > > > Leiter Technik | Technical Director > > > _______________________________________ > > > > > > AME? Aigner Media & Entertainment GmbH > > > Bavariaring 8 D-80336 M?nchen > > > > > > Tel [+49] ?89.427 05 - 330 > > > Fax [+49] ?89.427 05 - 400 > > > > > > http://ame.de eMail: me at ame.de > > > _______________________________________ > > > Angaben nach TDG|GmbHG:ame.de/impressum > > > > > > > > -- > > Matthias Eichler > Leiter Technik | Technical Director > _____________________________________ > > AME Aigner Media & Entertainment GmbH > Bavariaring 8 D-80336 Muenchen > > Tel: [+49] ?89.427.05-330 > Fax: [+49] ?89.427.05-400 > _____________________________________ > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 19:24:21 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 12:24:21 -0600 Subject: Configuration option for auto-acknowledge? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F254B@PKDWB03C.ad.sprint.com> Perhaps some greater detail is required. Some questions: - exactly where in Nagios are you automatically adding these users? Could you provide a sample configuration which has been automatically added? - where are the users logging into? Into Nagios? Into the o/s? - what changes, as far as Nagios is concerned, after the user logs in for the first time? There might be a much more elegant solution to what you're asking. Having said that, maybe what you're looking for is a way of pushing commands directly into Nagios, via nagios.cmd. Check the FAQ. jc > -----Original Message----- > From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > Sent: Thursday, February 06, 2003 9:40 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configuration option for auto-acknowledge? > > > Greetings, > > At our organization, we pre-provision users and use > nagios to poll the > provisioning server and automatically add users to the nagios > configuration. The problem with this implementation is that > the users > may not be active before they have been provisioned. This means that > until they login for the first time, alarms will go off unless we > manually acknowledge each of the pre-provisioned users. A > user may not > login for a long period of time after they are provisioned, and thus > added to nagios. What I'm wondering is if there is a > configuration hook > that can be inserted for each user that sets the initial notification > state to acknowledged so we don't have to manually > acknowledge each user. > > Thank you in advance. > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlixfeld at fastvibe.com Thu Feb 6 20:22:20 2003 From: jlixfeld at fastvibe.com (Jason Lixfeld) Date: Thu, 06 Feb 2003 14:22:20 -0500 Subject: Configuration option for auto-acknowledge? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F254B@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F254B@PKDWB03C.ad.sprint.com> Message-ID: <3E42B5EC.3010204@fastvibe.com> Jim, Carroll, Jim P [Contractor] wrote: > Perhaps some greater detail is required. Some questions: > > - exactly where in Nagios are you automatically adding these users? Could > you provide a sample configuration which has been automatically added? I am creating host and service entries in nagios based on information which is in our RADIUS user database: Our radius database gives us two values for each user, username and IP address. It is imported into nagios via a perl script and username becomes host_name and IP address is the same, address for an entry that looks like this for each user in our radius database: define host { use w7 host_name harv2459.w7 alias harv2459 address 216.7.193.244 } define service { use w7 host_name harv2459.w7 service_description PING contact_groups w7.email,w7.pager check_command check-host-alive } > - where are the users logging into? Into Nagios? Into the o/s? The users are logging into our DSL network over ppp. It is a dedicated service but since we provision the users in radius (And thus are inserted into nagios) before the customers recieve the hardware to activate their service (PPP DSL router), as soon as nagios gets it's new config, it tries to monitor the user which isn't up yet. I'm looking for a way to tell Nagios to not notify us to the fact that harv2459 is unreachable until after the first time he logs in -- in essence, proactive acknowledgment of a service that isn't completely installed. > - what changes, as far as Nagios is concerned, after the user logs in for > the first time? After the user logs in, his router becomes pingable (via ppp) as it recieved the IP address from radius (which is also configured in radius). > There might be a much more elegant solution to what you're asking. And so I am hoping! :) > Having said that, maybe what you're looking for is a way of pushing commands > directly into Nagios, via nagios.cmd. Check the FAQ. Perhaps. Based on what I have said here, what do you suggest? > jc > > >>-----Original Message----- >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] >>Sent: Thursday, February 06, 2003 9:40 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Configuration option for auto-acknowledge? >> >> >>Greetings, >> >> At our organization, we pre-provision users and use >>nagios to poll the >>provisioning server and automatically add users to the nagios >>configuration. The problem with this implementation is that >>the users >>may not be active before they have been provisioned. This means that >>until they login for the first time, alarms will go off unless we >>manually acknowledge each of the pre-provisioned users. A >>user may not >>login for a long period of time after they are provisioned, and thus >>added to nagios. What I'm wondering is if there is a >>configuration hook >>that can be inserted for each user that sets the initial notification >>state to acknowledged so we don't have to manually >>acknowledge each user. >> >>Thank you in advance. >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Thu Feb 6 20:54:24 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Thu, 6 Feb 2003 14:54:24 -0500 Subject: Configuration option for auto-acknowledge? In-Reply-To: <3E42B5EC.3010204@fastvibe.com> References: <3E42B5EC.3010204@fastvibe.com> Message-ID: Hurm. Have your import script not import a RADIUS entry into Nagios until such time as he's logged in. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason Lixfeld Sent: Thursday, February 06, 2003 2:22 PM To: jcarro10 at sprintspectrum.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? Jim, Carroll, Jim P [Contractor] wrote: > Perhaps some greater detail is required. Some questions: > > - exactly where in Nagios are you automatically adding these users? Could > you provide a sample configuration which has been automatically added? I am creating host and service entries in nagios based on information which is in our RADIUS user database: Our radius database gives us two values for each user, username and IP address. It is imported into nagios via a perl script and username becomes host_name and IP address is the same, address for an entry that looks like this for each user in our radius database: define host { use w7 host_name harv2459.w7 alias harv2459 address 216.7.193.244 } define service { use w7 host_name harv2459.w7 service_description PING contact_groups w7.email,w7.pager check_command check-host-alive } > - where are the users logging into? Into Nagios? Into the o/s? The users are logging into our DSL network over ppp. It is a dedicated service but since we provision the users in radius (And thus are inserted into nagios) before the customers recieve the hardware to activate their service (PPP DSL router), as soon as nagios gets it's new config, it tries to monitor the user which isn't up yet. I'm looking for a way to tell Nagios to not notify us to the fact that harv2459 is unreachable until after the first time he logs in -- in essence, proactive acknowledgment of a service that isn't completely installed. > - what changes, as far as Nagios is concerned, after the user logs in for > the first time? After the user logs in, his router becomes pingable (via ppp) as it recieved the IP address from radius (which is also configured in radius). > There might be a much more elegant solution to what you're asking. And so I am hoping! :) > Having said that, maybe what you're looking for is a way of pushing commands > directly into Nagios, via nagios.cmd. Check the FAQ. Perhaps. Based on what I have said here, what do you suggest? > jc > > >>-----Original Message----- >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] >>Sent: Thursday, February 06, 2003 9:40 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Configuration option for auto-acknowledge? >> >> >>Greetings, >> >> At our organization, we pre-provision users and use >>nagios to poll the >>provisioning server and automatically add users to the nagios >>configuration. The problem with this implementation is that >>the users >>may not be active before they have been provisioned. This means that >>until they login for the first time, alarms will go off unless we >>manually acknowledge each of the pre-provisioned users. A >>user may not >>login for a long period of time after they are provisioned, and thus >>added to nagios. What I'm wondering is if there is a >>configuration hook >>that can be inserted for each user that sets the initial notification >>state to acknowledged so we don't have to manually >>acknowledge each user. >> >>Thank you in advance. >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Thu Feb 6 21:53:15 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 06 Feb 2003 18:53:15 -0200 Subject: Colors Message-ID: <1044564795.28489.9.camel@operacao> Hi, ho do i for change the status colors ? we would like something: CRITICAL: ORANGE WARNING: BLUE UNKNOWN: GRAY PENDING: RED thanks ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Thu Feb 6 22:04:05 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 06 Feb 2003 16:04:05 -0500 Subject: FW: Nagios to monitor MQSeries References: Message-ID: <3E42CDC5.20204@quadrix.com> Can you share the shell script with us? We're looking into using the same thing. Russell Volker.Aust at premiere.de wrote: >Sorry, I have forgotten the list... > >>-----Original Message----- >>From: Aust, Volker, PRE >>Sent: Thursday, February 06, 2003 1:06 PM >>To: 'Detlef.Knop at gmx.de' >>Subject: RE: [Nagios-users] Nagios to monitor MQSeries >> >> >>Hi Detlef, >> >>when you install the MQSeries client (with developer >>support), you get some sample programs. One of these sample >>programs is "amqsailq", which lists the length of all >>MQ-queues of a server. You can use "amqsailq" local or >>remote. When you use this program (or a mofified version, >>that only checks important queues like we do (a colleague has >>modified some of the sample programs)) remote, you can make >>two tests with one call: >> >>- check the connectivity to the MQ-server and the -service >> >>- check the length of some important queues (too many, too few, ...) >> >>I have wraped the program in a shell script to generate the >>Nagios stuff (return-code and output). >> >>Hope this helps. >> >>-vol >> >>>-----Original Message----- >>>From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] >>>Sent: Thursday, February 06, 2003 7:40 AM >>>To: nagios-users at lists.sourceforge.net >>>Subject: [Nagios-users] Nagios to monitor MQSeries >>> >>> >>>Dear all, >>> >>>I would like to check whether MQSeries is available as a >>>service on several >>>of my hosts. My first approach was to use the check_tcp >>>plugin which from my >>>point of view worked fine. But the people looking after >>>MQSeries on these >>>machines came back to me and complained that each time the >>>plugin ran MQSeries >>>reported errors on these systems (two errors per check) >>>because MQSeries >>>detects the incoming connection and wants to receive proper >>>data, but then the >>>connection is closed. >>> >>>Has anyone ever tried to do the same and found a solution? >>>Maybe there is a >>>way using passive checks, or we might have to look into the >>>possibility to >>>write a plugin. >>> >>>Kind regards >>> >>>Detlef Knop >>> >>>-- >>>+++ GMX - Mail, Messaging & more http://www.gmx.net +++ >>>NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Feb 6 21:36:53 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 14:36:53 -0600 Subject: Configuration option for auto-acknowledge? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F254C@PKDWB03C.ad.sprint.com> Alright, a couple of ideas: 1) Instead of immediately publishing the new users into the Nagios hosts.cfg, why not have them dumped into a staging area first, then cron a job to ping these new users, and as they come online, stuff them into hosts.cfg...? The obvious disadvantage is that you have no visibility of these new users until they are actually pingable. 2) Publish them in two phases. The first phase, they either reference the check_dummy plugin, or they reference another home-rolled plugin which returns a warning instead of a critical. Once they're pingable, drop in the proper config. Food for thought. jc > -----Original Message----- > From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > Sent: Thursday, February 06, 2003 1:22 PM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? > > > Jim, > > Carroll, Jim P [Contractor] wrote: > > Perhaps some greater detail is required. Some questions: > > > > - exactly where in Nagios are you automatically adding > these users? Could > > you provide a sample configuration which has been > automatically added? > > I am creating host and service entries in nagios based on information > which is in our RADIUS user database: > > Our radius database gives us two values for each user, > username and IP > address. It is imported into nagios via a perl script and username > becomes host_name and IP address is the same, address for an > entry that > looks like this for each user in our radius database: > > define host { > use w7 > host_name harv2459.w7 > alias harv2459 > address 216.7.193.244 > } > > define service { > use w7 > host_name harv2459.w7 > service_description PING > contact_groups w7.email,w7.pager > check_command check-host-alive > } > > > > - where are the users logging into? Into Nagios? Into the o/s? > > The users are logging into our DSL network over ppp. It is a > dedicated > service but since we provision the users in radius (And thus are > inserted into nagios) before the customers recieve the hardware to > activate their service (PPP DSL router), as soon as nagios > gets it's new > config, it tries to monitor the user which isn't up yet. I'm looking > for a way to tell Nagios to not notify us to the fact that > harv2459 is > unreachable until after the first time he logs in -- in essence, > proactive acknowledgment of a service that isn't completely installed. > > > - what changes, as far as Nagios is concerned, after the > user logs in for > > the first time? > > After the user logs in, his router becomes pingable (via ppp) as it > recieved the IP address from radius (which is also configured > in radius). > > > There might be a much more elegant solution to what you're asking. > > And so I am hoping! :) > > > Having said that, maybe what you're looking for is a way of > pushing commands > > directly into Nagios, via nagios.cmd. Check the FAQ. > > Perhaps. Based on what I have said here, what do you suggest? > > > jc > > > > > >>-----Original Message----- > >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > >>Sent: Thursday, February 06, 2003 9:40 AM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] Configuration option for auto-acknowledge? > >> > >> > >>Greetings, > >> > >> At our organization, we pre-provision users and use > >>nagios to poll the > >>provisioning server and automatically add users to the nagios > >>configuration. The problem with this implementation is that > >>the users > >>may not be active before they have been provisioned. This > means that > >>until they login for the first time, alarms will go off unless we > >>manually acknowledge each of the pre-provisioned users. A > >>user may not > >>login for a long period of time after they are provisioned, > and thus > >>added to nagios. What I'm wondering is if there is a > >>configuration hook > >>that can be inserted for each user that sets the initial > notification > >>state to acknowledged so we don't have to manually > >>acknowledge each user. > >> > >>Thank you in advance. > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 22:11:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 16:11:06 -0500 (EST) Subject: Configuration option for auto-acknowledge? In-Reply-To: References: Message-ID: Or since you have using templates - create 2 templates one with a 24x7 monitor and a second with a not-time monitor Use the second when adding config to nagios. Upon the first login (Radius accounting somewhere) write another script to change the template to enable monitoring and possibly remove the script from be activated on future logon or keep a hash of users who have not loged on as yet. -sg On Thu, 6 Feb 2003, Shayne Lebrun wrote: > Hurm. > > Have your import script not import a RADIUS entry into Nagios until such > time as he's logged in. > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason > Lixfeld > Sent: Thursday, February 06, 2003 2:22 PM > To: jcarro10 at sprintspectrum.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? > > > Jim, > > Carroll, Jim P [Contractor] wrote: > > Perhaps some greater detail is required. Some questions: > > > > - exactly where in Nagios are you automatically adding these users? Could > > you provide a sample configuration which has been automatically added? > > I am creating host and service entries in nagios based on information > which is in our RADIUS user database: > > Our radius database gives us two values for each user, username and IP > address. It is imported into nagios via a perl script and username > becomes host_name and IP address is the same, address for an entry that > looks like this for each user in our radius database: > > define host { > use w7 > host_name harv2459.w7 > alias harv2459 > address 216.7.193.244 > } > > define service { > use w7 > host_name harv2459.w7 > service_description PING > contact_groups w7.email,w7.pager > check_command check-host-alive > } > > > > - where are the users logging into? Into Nagios? Into the o/s? > > The users are logging into our DSL network over ppp. It is a dedicated > service but since we provision the users in radius (And thus are > inserted into nagios) before the customers recieve the hardware to > activate their service (PPP DSL router), as soon as nagios gets it's new > config, it tries to monitor the user which isn't up yet. I'm looking > for a way to tell Nagios to not notify us to the fact that harv2459 is > unreachable until after the first time he logs in -- in essence, > proactive acknowledgment of a service that isn't completely installed. > > > - what changes, as far as Nagios is concerned, after the user logs in for > > the first time? > > After the user logs in, his router becomes pingable (via ppp) as it > recieved the IP address from radius (which is also configured in radius). > > > There might be a much more elegant solution to what you're asking. > > And so I am hoping! :) > > > Having said that, maybe what you're looking for is a way of pushing > commands > > directly into Nagios, via nagios.cmd. Check the FAQ. > > Perhaps. Based on what I have said here, what do you suggest? > > > jc > > > > > >>-----Original Message----- > >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > >>Sent: Thursday, February 06, 2003 9:40 AM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] Configuration option for auto-acknowledge? > >> > >> > >>Greetings, > >> > >> At our organization, we pre-provision users and use > >>nagios to poll the > >>provisioning server and automatically add users to the nagios > >>configuration. The problem with this implementation is that > >>the users > >>may not be active before they have been provisioned. This means that > >>until they login for the first time, alarms will go off unless we > >>manually acknowledge each of the pre-provisioned users. A > >>user may not > >>login for a long period of time after they are provisioned, and thus > >>added to nagios. What I'm wondering is if there is a > >>configuration hook > >>that can be inserted for each user that sets the initial notification > >>state to acknowledged so we don't have to manually > >>acknowledge each user. > >> > >>Thank you in advance. > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Thu Feb 6 22:08:06 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 6 Feb 2003 13:08:06 -0800 (PST) Subject: Colors Message-ID: <20030206210806.49458.qmail@web21508.mail.yahoo.com> Are you talking about changing the default red for critical and warning on the stats page? If not, then look at the .css style sheets, there's a lot of options.... See below, I have Red, Yellow, and brown for my Tac page. Henrique leandro wrote: Hi, ho do i for change the status colors ? we would like something: CRITICAL: ORANGE WARNING: BLUE UNKNOWN: GRAY PENDING: RED thanks ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users Jon Lyons wrote: FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... Basically I added two stylesheet definitions to tac.css; and call them in tac.c... warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } /your/nagios/path/share/stylesheets/tac.css Jon Lyons wrote: Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) Thanks.... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now/*********************************************************************** * * TAC.C - Nagios Tactical Monitoring Overview CGI * * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org) * Last Modified: 08-07-2002 * * This CGI program will display the contents of the Nagios * log file. * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ***********************************************************************/ #include "../common/config.h" #include "../common/locations.h" #include "../common/common.h" #include "../common/objects.h" #include "../common/statusdata.h" #include "getcgi.h" #include "cgiutils.h" #include "auth.h" #include "lifo.h" #define HEALTH_WARNING_PERCENTAGE 90 #define HEALTH_CRITICAL_PERCENTAGE 75 /* HOSTOUTAGE structure */ typedef struct hostoutage_struct{ host *hst; int affected_child_hosts; struct hostoutage_struct *next; }hostoutage; extern char main_config_file[MAX_FILENAME_LENGTH]; extern char url_images_path[MAX_FILENAME_LENGTH]; extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; extern char url_media_path[MAX_FILENAME_LENGTH]; extern int refresh_rate; extern char *service_critical_sound; extern char *service_warning_sound; extern char *service_unknown_sound; extern char *host_down_sound; extern char *host_unreachable_sound; extern char *normal_sound; extern hostgroup *hostgroup_list; extern hoststatus *hoststatus_list; extern servicestatus *servicestatus_list; extern host *host_list; extern service *service_list; extern int enable_notifications; extern int execute_service_checks; extern int accept_passive_service_checks; extern int enable_event_handlers; extern int enable_flap_detection; extern int nagios_process_state; void analyze_status_data(void); void display_tac_overview(void); void find_hosts_causing_outages(void); void calculate_outage_effect_of_host(host *,int *); int is_route_to_host_blocked(host *); int number_of_host_services(host *); void add_hostoutage(host *); void free_hostoutage_list(void); void document_header(int); void document_footer(void); int process_cgivars(void); authdata current_authdata; int embedded=FALSE; int display_header=FALSE; hostoutage *hostoutage_list=NULL; int total_blocking_outages=0; int total_nonblocking_outages=0; int total_service_health=0; int total_host_health=0; int potential_service_health=0; int potential_host_health=0; double percent_service_health=0.0; double percent_host_health=0.0; int total_hosts=0; int total_services=0; int total_active_checks=0; int total_passive_checks=0; int min_execution_time=-1; int max_execution_time=-1; unsigned long total_execution_time=0L; double average_execution_time=-1.0; int min_latency=-1; int max_latency=-1; unsigned long total_latency=0L; double average_latency=-1.0; int flapping_services=0; int flapping_hosts=0; int flap_disabled_services=0; int flap_disabled_hosts=0; int notification_disabled_services=0; int notification_disabled_hosts=0; int event_handler_disabled_services=0; int event_handler_disabled_hosts=0; int active_checks_disabled_services=0; int active_checks_disabled_hosts=0; int passive_checks_disabled_services=0; int hosts_pending=0; int hosts_pending_disabled=0; int hosts_up_disabled=0; int hosts_up_unacknowledged=0; int hosts_up=0; int hosts_down_scheduled=0; int hosts_down_acknowledged=0; int hosts_down_disabled=0; int hosts_down_unacknowledged=0; int hosts_down=0; int hosts_unreachable_scheduled=0; int hosts_unreachable_acknowledged=0; int hosts_unreachable_disabled=0; int hosts_unreachable_unacknowledged=0; int hosts_unreachable=0; int services_pending=0; int services_pending_disabled=0; int services_ok_disabled=0; int services_ok_unacknowledged=0; int services_ok=0; int services_warning_host_problem=0; int services_warning_scheduled=0; int services_warning_acknowledged=0; int services_warning_disabled=0; int services_warning_unacknowledged=0; int services_warning=0; int services_unknown_host_problem=0; int services_unknown_scheduled=0; int services_unknown_acknowledged=0; int services_unknown_disabled=0; int services_unknown_unacknowledged=0; int services_unknown=0; int services_critical_host_problem=0; int services_critical_scheduled=0; int services_critical_acknowledged=0; int services_critical_disabled=0; int services_critical_unacknowledged=0; int services_critical=0; int main(void){ int result=OK; char *sound=NULL; /* get the CGI variables passed in the URL */ process_cgivars(); /* reset internal variables */ reset_cgi_vars(); /* read the CGI configuration file */ result=read_cgi_config_file(DEFAULT_CGI_CONFIG_FILE); if(result==ERROR){ document_header(FALSE); cgi_config_file_error(DEFAULT_CGI_CONFIG_FILE); document_footer(); return ERROR; } /* read the main configuration file */ result=read_main_config_file(main_config_file); if(result==ERROR){ document_header(FALSE); main_config_file_error(main_config_file); document_footer(); return ERROR; } /* read all object configuration data */ result=read_all_object_configuration_data(main_config_file,READ_ALL_OBJECT_DATA); if(result==ERROR){ document_header(FALSE); object_data_error(); document_footer(); return ERROR; } /* read all status data */ result=read_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_ALL_STATUS_DATA); if(result==ERROR){ document_header(FALSE); status_data_error(); document_footer(); free_memory(); return ERROR; } document_header(TRUE); /* get authentication information */ get_authentication_information(?t_authdata); if(display_header==TRUE){ /* begin top table */ printf(" \n"); printf(" \n"); /* left column of top table - info box */ printf(" \n"); display_info_table("Tactical Status Overview",TRUE,?t_authdata); printf("\n"); /* middle column of top table - log file navigation options */ printf(" \n"); printf("\n"); /* right hand column of top row */ printf(" \n"); printf("\n"); /* end of top table */ printf("\n"); printf("\n"); printf(" \n"); } /* analyze current host and service status data for tac overview */ analyze_status_data(); /* find all hosts that are causing network outages */ find_hosts_causing_outages(); /* embed sound tag if necessary... */ if(hosts_unreachable_unacknowledged > 0 && host_unreachable_sound!=NULL) sound=host_unreachable_sound; else if(hosts_down_unacknowledged > 0 && host_down_sound!=NULL) sound=host_down_sound; else if(services_critical_unacknowledged > 0 && service_critical_sound!=NULL) sound=service_critical_sound; else if(services_warning_unacknowledged > 0 && service_warning_sound!=NULL) sound=service_warning_sound; else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL) sound=normal_sound; if(sound!=NULL) printf("",url_media_path,sound); /**** display main tac screen ****/ display_tac_overview(); document_footer(); /* free memory allocated to the host outage list */ free_hostoutage_list(); /* free allocated memory */ free_memory(); return OK; } void document_header(int use_stylesheet){ char date_time[MAX_DATETIME_LENGTH]; time_t current_time; time_t expire_time; printf("Cache-Control: no-store\n"); printf("Pragma: no-cache\n"); printf("Refresh: %d\n",refresh_rate); time(?t_time); get_time_string(?t_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); printf("Last-Modified: %s\n",date_time); expire_time=(time_t)0L; get_time_string(&expire_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); printf("Expires: %s\n",date_time); printf("Content-type: text/html\n\n"); if(embedded==TRUE) return; printf("\n"); printf("\n"); printf("\n"); if(use_stylesheet==TRUE) printf(" \n",url_stylesheets_path,TAC_CSS); printf("\n"); printf("\n"); /* include user SSI header */ include_ssi_files(TAC_CGI,SSI_HEADER); return; } void document_footer(void){ if(embedded==TRUE) return; /* include user SSI footer */ include_ssi_files(TAC_CGI,SSI_FOOTER); printf("\n"); printf("\n"); return; } int process_cgivars(void){ char **variables; int error=FALSE; int x; variables=getcgivars(); for(x=0;variables[x]!=NULL;x++){ /* do some basic length checking on the variable identifier to prevent buffer overflows */ if(strlen(variables[x])>=MAX_INPUT_BUFFER-1){ continue; } /* we found the embed option */ else if(!strcmp(variables[x],"embedded")) embedded=TRUE; /* we found the noheader option */ else if(!strcmp(variables[x],"noheader")) display_header=FALSE; /* we recieved an invalid argument */ else error=TRUE; } /* free memory allocated to the CGI variables */ free_cgivars(variables); return error; } void analyze_status_data(void){ servicestatus *temp_servicestatus; service *temp_service; hoststatus *temp_hoststatus; host *temp_host; int problem=TRUE; /* check all services */ for(temp_servicestatus=servicestatus_list;temp_servicestatus!=NULL;temp_servicestatus=temp_servicestatus->next){ /* see if user is authorized to view this service */ temp_service=find_service(temp_servicestatus->host_name,temp_servicestatus->description,NULL); if(is_authorized_for_service(temp_service,?t_authdata)==FALSE) continue; /******** CHECK FEATURES *******/ /* check flapping */ if(temp_servicestatus->flap_detection_enabled==FALSE) flap_disabled_services++; else if(temp_servicestatus->is_flapping==TRUE) flapping_services++; /* check notifications */ if(temp_servicestatus->notifications_enabled==FALSE) notification_disabled_services++; /* check event handler */ if(temp_servicestatus->event_handler_enabled==FALSE) event_handler_disabled_services++; /* active check execution */ if(temp_servicestatus->checks_enabled==FALSE) active_checks_disabled_services++; /* passive check acceptance */ if(temp_servicestatus->accept_passive_service_checks==FALSE) passive_checks_disabled_services++; /********* CHECK STATUS ********/ problem=TRUE; if(temp_servicestatus->status==SERVICE_OK || temp_servicestatus->status==SERVICE_RECOVERY){ if(temp_servicestatus->checks_enabled==FALSE) services_ok_disabled++; else services_ok_unacknowledged++; services_ok++; } else if(temp_servicestatus->status==SERVICE_WARNING){ temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ services_warning_host_problem++; problem=FALSE; } if(temp_servicestatus->scheduled_downtime_depth>0){ services_warning_scheduled++; problem=FALSE; } if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ services_warning_acknowledged++; problem=FALSE; } if(temp_servicestatus->checks_enabled==FALSE){ services_warning_disabled++; problem=FALSE; } if(problem==TRUE) services_warning_unacknowledged++; services_warning++; } else if(temp_servicestatus->status==SERVICE_UNKNOWN){ temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ services_unknown_host_problem++; problem=FALSE; } if(temp_servicestatus->scheduled_downtime_depth>0){ services_unknown_scheduled++; problem=FALSE; } if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ services_unknown_acknowledged++; problem=FALSE; } if(temp_servicestatus->checks_enabled==FALSE){ services_unknown_disabled++; problem=FALSE; } if(problem==TRUE) services_unknown_unacknowledged++; services_unknown++; } else if(temp_servicestatus->status==SERVICE_CRITICAL){ temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ services_critical_host_problem++; problem=FALSE; } if(temp_servicestatus->scheduled_downtime_depth>0){ services_critical_scheduled++; problem=FALSE; } if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ services_critical_acknowledged++; problem=FALSE; } if(temp_servicestatus->checks_enabled==FALSE){ services_critical_disabled++; problem=FALSE; } if(problem==TRUE) services_critical_unacknowledged++; services_critical++; } else if(temp_servicestatus->status==SERVICE_PENDING){ if(temp_servicestatus->checks_enabled==FALSE) services_pending_disabled++; services_pending++; } /* get health stats */ if(temp_servicestatus->status==SERVICE_OK) total_service_health+=2; else if(temp_servicestatus->status==SERVICE_WARNING || temp_servicestatus->status==SERVICE_UNKNOWN) total_service_health++; if(temp_servicestatus->status!=SERVICE_PENDING) potential_service_health+=2; /* calculate execution time and latency stats */ if(temp_servicestatus->check_type==SERVICE_CHECK_ACTIVE){ total_active_checks++; if(min_latency==-1 || temp_servicestatus->latency min_latency=temp_servicestatus->latency; if(max_latency==-1 || temp_servicestatus->latency>max_latency) max_latency=temp_servicestatus->latency; if(min_execution_time==-1 || temp_servicestatus->execution_time min_execution_time=temp_servicestatus->execution_time; if(max_execution_time==-1 || temp_servicestatus->execution_time>max_execution_time) max_execution_time=temp_servicestatus->execution_time; total_latency+=temp_servicestatus->latency; total_execution_time+=temp_servicestatus->execution_time; } else total_passive_checks++; total_services++; } /* check all hosts */ for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ /* see if user is authorized to view this host */ temp_host=find_host(temp_hoststatus->host_name,NULL); if(is_authorized_for_host(temp_host,?t_authdata)==FALSE) continue; /******** CHECK FEATURES *******/ /* check flapping */ if(temp_hoststatus->flap_detection_enabled==FALSE) flap_disabled_hosts++; else if(temp_hoststatus->is_flapping==TRUE) flapping_hosts++; /* check notifications */ if(temp_hoststatus->notifications_enabled==FALSE) notification_disabled_hosts++; /* check event handler */ if(temp_hoststatus->event_handler_enabled==FALSE) event_handler_disabled_hosts++; /* active check execution */ if(temp_hoststatus->checks_enabled==FALSE) active_checks_disabled_hosts++; /********* CHECK STATUS ********/ problem=TRUE; if(temp_hoststatus->status==HOST_UP){ if(temp_hoststatus->checks_enabled==FALSE) hosts_up_disabled++; else hosts_up_unacknowledged++; hosts_up++; } else if(temp_hoststatus->status==HOST_DOWN){ if(temp_hoststatus->scheduled_downtime_depth>0){ hosts_down_scheduled++; problem=FALSE; } if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ hosts_down_acknowledged++; problem=FALSE; } if(temp_hoststatus->checks_enabled==FALSE){ hosts_down_disabled++; problem=FALSE; } if(problem==TRUE) hosts_down_unacknowledged++; hosts_down++; } else if(temp_hoststatus->status==HOST_UNREACHABLE){ if(temp_hoststatus->scheduled_downtime_depth>0){ hosts_unreachable_scheduled++; problem=FALSE; } if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ hosts_unreachable_acknowledged++; problem=FALSE; } if(temp_hoststatus->checks_enabled==FALSE){ hosts_unreachable_disabled++; problem=FALSE; } if(problem==TRUE) hosts_unreachable_unacknowledged++; hosts_unreachable++; } else if(temp_hoststatus->status==HOST_PENDING){ if(temp_hoststatus->checks_enabled==FALSE) hosts_pending_disabled++; hosts_pending++; } /* get health stats */ if(temp_hoststatus->status==HOST_UP) total_host_health++; if(temp_hoststatus->status!=HOST_PENDING) potential_host_health++; total_hosts++; } /* calculate service health */ if(potential_service_health==0) percent_service_health=0.0; else percent_service_health=((double)total_service_health/(double)potential_service_health)*100.0; /* calculate host health */ if(potential_host_health==0) percent_host_health=0.0; else percent_host_health=((double)total_host_health/(double)potential_host_health)*100.0; /* calculate latency */ if(total_latency==0L) average_latency=0.0; else average_latency=((double)total_latency/(double)total_active_checks); /* calculate execution time */ if(total_execution_time==0L) average_execution_time=0.0; else average_execution_time=((double)total_execution_time/(double)total_active_checks); return; } /* determine what hosts are causing network outages */ void find_hosts_causing_outages(void){ hoststatus *temp_hoststatus; hostoutage *temp_hostoutage; host *temp_host; /* user must be authorized for all hosts in order to see outages */ if(is_authorized_for_all_hosts(?t_authdata)==FALSE) return; /* check all hosts */ for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ /* check only hosts that are not up and not pending */ if(temp_hoststatus->status!=HOST_UP && temp_hoststatus->status!=HOST_PENDING){ /* find the host entry */ temp_host=find_host(temp_hoststatus->host_name,NULL); if(temp_host==NULL) continue; /* if the route to this host is not blocked, it is a causing an outage */ if(is_route_to_host_blocked(temp_host)==FALSE) add_hostoutage(temp_host); } } /* check all hosts that are causing problems and calculate the extent of the problem */ for(temp_hostoutage=hostoutage_list;temp_hostoutage!=NULL;temp_hostoutage=temp_hostoutage->next){ /* calculate the outage effect of this particular hosts */ calculate_outage_effect_of_host(temp_hostoutage->hst,&temp_hostoutage->affected_child_hosts); if(temp_hostoutage->affected_child_hosts>1) total_blocking_outages++; else total_nonblocking_outages++; } return; } /* adds a host outage entry */ void add_hostoutage(host *hst){ hostoutage *new_hostoutage; /* allocate memory for a new structure */ new_hostoutage=(hostoutage *)malloc(sizeof(hostoutage)); if(new_hostoutage==NULL) return; new_hostoutage->hst=hst; new_hostoutage->affected_child_hosts=0; /* add the structure to the head of the list in memory */ new_hostoutage->next=hostoutage_list; hostoutage_list=new_hostoutage; return; } /* frees all memory allocated to the host outage list */ void free_hostoutage_list(void){ hostoutage *this_hostoutage; hostoutage *next_hostoutage; for(this_hostoutage=hostoutage_list;this_hostoutage!=NULL;this_hostoutage=next_hostoutage){ === message truncated === .tac { font-family: arial,serif; background-color: black; background: black; color: white; background-color: black; } .errorMessage { font-family: arial; font-weight: bold; font-size: 12pt; background-color: black; color: white; } .errorDescription { font-family: arial,serif; text-align: center; font-weight: bold; font-size: 12pt; } .warningMessage { font-family: arial,serif; text-align: center; color: red; font-weight: bold; font-size: 10pt; } .infoBox { font-family: arial,serif; font-size: 8pt; background-color: #C4C2C2; color: black; padding: 2; } .infoBoxTitle { font-family: arial,serif; font-size: 10pt; font-weight: bold; color: black; } .infoBoxBadProcStatus {font-family: arial,serif; color: red; } A { font-family: arial,serif; color: black; } .title { text-align: left; font-family: arial; font-weight: bold; font-size: large; background-color: black; color: white; } .titleItem { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: black; color: white; } .infoBoxBadProcStatus { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: red; } .healthTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } .healthBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } .healthItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } .healthBar { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: gray; color: white; } .perfTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; text-decoration: none; } .perfBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } .perfItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .perfValue { text-align: left; font-family: arial; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .featureTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } .featureHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } .featureEnabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureEnabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemEnabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemServicesNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemServicesFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemHostsNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemHostsFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureEnabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } .featureItemEnabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } .featureEnabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemEnabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureEnabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemEnabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureEnabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .outageTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } .outageHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .outageImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .outageUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } .hostTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } .hostHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .hostImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .hostUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } .serviceTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } .serviceHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .serviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } .warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tac.c Type: application/octet-stream Size: 54920 bytes Desc: tac.c URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tac.css Type: text/css Size: 9241 bytes Desc: tac.css URL: From sghosh at sghosh.org Thu Feb 6 22:11:59 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 16:11:59 -0500 (EST) Subject: Colors In-Reply-To: <1044564795.28489.9.camel@operacao> References: <1044564795.28489.9.camel@operacao> Message-ID: Take a look at the stylesheets in the html directory.. On 6 Feb 2003, Henrique leandro wrote: > Hi, > > ho do i for change the status colors ? > we would like something: > > CRITICAL: ORANGE > WARNING: BLUE > UNKNOWN: GRAY > PENDING: RED > > > > thanks > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Thu Feb 6 22:25:33 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 06 Feb 2003 19:25:33 -0200 Subject: Colors In-Reply-To: <20030206210806.49458.qmail@web21508.mail.yahoo.com> References: <20030206210806.49458.qmail@web21508.mail.yahoo.com> Message-ID: <1044566733.28467.19.camel@operacao> so, i don't need change de C code to change colors ? Only files .css ? i'll try it. Thanks. On Thu, 2003-02-06 at 19:08, Jon Lyons wrote: > > Are you talking about changing the default red for critical and warning on the stats page? If not, then look at the .css style sheets, there's a lot of options.... > > See below, I have Red, Yellow, and brown for my Tac page. > > Henrique leandro wrote: Hi, > > ho do i for change the status colors ? > we would like something: > > CRITICAL: ORANGE > WARNING: BLUE > UNKNOWN: GRAY > PENDING: RED > > > > thanks > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > Jon Lyons wrote: > FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... > Basically I added two stylesheet definitions to tac.css; and call them in tac.c... > warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > > /your/nagios/path/share/stylesheets/tac.css > Jon Lyons wrote: > > Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) > Thanks.... > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now/*********************************************************************** > * > * TAC.C - Nagios Tactical Monitoring Overview CGI > * > * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org) > * Last Modified: 08-07-2002 > * > * This CGI program will display the contents of the Nagios > * log file. > * > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > ***********************************************************************/ > > #include "../common/config.h" > #include "../common/locations.h" > #include "../common/common.h" > #include "../common/objects.h" > #include "../common/statusdata.h" > > #include "getcgi.h" > #include "cgiutils.h" > #include "auth.h" > #include "lifo.h" > > > #define HEALTH_WARNING_PERCENTAGE 90 > #define HEALTH_CRITICAL_PERCENTAGE 75 > > > /* HOSTOUTAGE structure */ > typedef struct hostoutage_struct{ > host *hst; > int affected_child_hosts; > struct hostoutage_struct *next; > }hostoutage; > > > extern char main_config_file[MAX_FILENAME_LENGTH]; > extern char url_images_path[MAX_FILENAME_LENGTH]; > extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; > extern char url_media_path[MAX_FILENAME_LENGTH]; > > extern int refresh_rate; > > extern char *service_critical_sound; > extern char *service_warning_sound; > extern char *service_unknown_sound; > extern char *host_down_sound; > extern char *host_unreachable_sound; > extern char *normal_sound; > > extern hostgroup *hostgroup_list; > extern hoststatus *hoststatus_list; > extern servicestatus *servicestatus_list; > extern host *host_list; > extern service *service_list; > > extern int enable_notifications; > extern int execute_service_checks; > extern int accept_passive_service_checks; > extern int enable_event_handlers; > extern int enable_flap_detection; > > extern int nagios_process_state; > > > > void analyze_status_data(void); > void display_tac_overview(void); > > void find_hosts_causing_outages(void); > void calculate_outage_effect_of_host(host *,int *); > int is_route_to_host_blocked(host *); > int number_of_host_services(host *); > void add_hostoutage(host *); > void free_hostoutage_list(void); > > void document_header(int); > void document_footer(void); > int process_cgivars(void); > > authdata current_authdata; > > int embedded=FALSE; > int display_header=FALSE; > > hostoutage *hostoutage_list=NULL; > > int total_blocking_outages=0; > int total_nonblocking_outages=0; > > int total_service_health=0; > int total_host_health=0; > int potential_service_health=0; > int potential_host_health=0; > double percent_service_health=0.0; > double percent_host_health=0.0; > > int total_hosts=0; > int total_services=0; > > int total_active_checks=0; > int total_passive_checks=0; > > int min_execution_time=-1; > int max_execution_time=-1; > unsigned long total_execution_time=0L; > double average_execution_time=-1.0; > int min_latency=-1; > int max_latency=-1; > unsigned long total_latency=0L; > double average_latency=-1.0; > > int flapping_services=0; > int flapping_hosts=0; > int flap_disabled_services=0; > int flap_disabled_hosts=0; > int notification_disabled_services=0; > int notification_disabled_hosts=0; > int event_handler_disabled_services=0; > int event_handler_disabled_hosts=0; > int active_checks_disabled_services=0; > int active_checks_disabled_hosts=0; > int passive_checks_disabled_services=0; > > int hosts_pending=0; > int hosts_pending_disabled=0; > int hosts_up_disabled=0; > int hosts_up_unacknowledged=0; > int hosts_up=0; > int hosts_down_scheduled=0; > int hosts_down_acknowledged=0; > int hosts_down_disabled=0; > int hosts_down_unacknowledged=0; > int hosts_down=0; > int hosts_unreachable_scheduled=0; > int hosts_unreachable_acknowledged=0; > int hosts_unreachable_disabled=0; > int hosts_unreachable_unacknowledged=0; > int hosts_unreachable=0; > > int services_pending=0; > int services_pending_disabled=0; > int services_ok_disabled=0; > int services_ok_unacknowledged=0; > int services_ok=0; > int services_warning_host_problem=0; > int services_warning_scheduled=0; > int services_warning_acknowledged=0; > int services_warning_disabled=0; > int services_warning_unacknowledged=0; > int services_warning=0; > int services_unknown_host_problem=0; > int services_unknown_scheduled=0; > int services_unknown_acknowledged=0; > int services_unknown_disabled=0; > int services_unknown_unacknowledged=0; > int services_unknown=0; > int services_critical_host_problem=0; > int services_critical_scheduled=0; > int services_critical_acknowledged=0; > int services_critical_disabled=0; > int services_critical_unacknowledged=0; > int services_critical=0; > > > > int main(void){ > int result=OK; > char *sound=NULL; > > > /* get the CGI variables passed in the URL */ > process_cgivars(); > > /* reset internal variables */ > reset_cgi_vars(); > > /* read the CGI configuration file */ > result=read_cgi_config_file(DEFAULT_CGI_CONFIG_FILE); > if(result==ERROR){ > document_header(FALSE); > cgi_config_file_error(DEFAULT_CGI_CONFIG_FILE); > document_footer(); > return ERROR; > } > > /* read the main configuration file */ > result=read_main_config_file(main_config_file); > if(result==ERROR){ > document_header(FALSE); > main_config_file_error(main_config_file); > document_footer(); > return ERROR; > } > > /* read all object configuration data */ > result=read_all_object_configuration_data(main_config_file,READ_ALL_OBJECT_DATA); > if(result==ERROR){ > document_header(FALSE); > object_data_error(); > document_footer(); > return ERROR; > } > > /* read all status data */ > result=read_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_ALL_STATUS_DATA); > if(result==ERROR){ > document_header(FALSE); > status_data_error(); > document_footer(); > free_memory(); > return ERROR; > } > > document_header(TRUE); > > /* get authentication information */ > get_authentication_information(?t_authdata); > > if(display_header==TRUE){ > > /* begin top table */ > printf(" \n"); > printf(" \n"); > > /* left column of top table - info box */ > printf(" \n"); > display_info_table("Tactical Status Overview",TRUE,?t_authdata); > printf("\n"); > > /* middle column of top table - log file navigation options */ > printf(" \n"); > printf("\n"); > > /* right hand column of top row */ > printf(" \n"); > printf("\n"); > > /* end of top table */ > printf("\n"); > printf("\n"); > printf(" > > \n"); > > } > > > /* analyze current host and service status data for tac overview */ > analyze_status_data(); > > /* find all hosts that are causing network outages */ > find_hosts_causing_outages(); > > > /* embed sound tag if necessary... */ > if(hosts_unreachable_unacknowledged > 0 && host_unreachable_sound!=NULL) > sound=host_unreachable_sound; > else if(hosts_down_unacknowledged > 0 && host_down_sound!=NULL) > sound=host_down_sound; > else if(services_critical_unacknowledged > 0 && service_critical_sound!=NULL) > sound=service_critical_sound; > else if(services_warning_unacknowledged > 0 && service_warning_sound!=NULL) > sound=service_warning_sound; > else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL) > sound=normal_sound; > if(sound!=NULL) > printf("",url_media_path,sound); > > > /**** display main tac screen ****/ > display_tac_overview(); > > document_footer(); > > /* free memory allocated to the host outage list */ > free_hostoutage_list(); > > /* free allocated memory */ > free_memory(); > > return OK; > } > > > > > void document_header(int use_stylesheet){ > char date_time[MAX_DATETIME_LENGTH]; > time_t current_time; > time_t expire_time; > > printf("Cache-Control: no-store\n"); > printf("Pragma: no-cache\n"); > printf("Refresh: %d\n",refresh_rate); > > time(?t_time); > get_time_string(?t_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Last-Modified: %s\n",date_time); > > expire_time=(time_t)0L; > get_time_string(&expire_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Expires: %s\n",date_time); > > printf("Content-type: text/html\n\n"); > > if(embedded==TRUE) > return; > > printf("\n"); > printf("\n"); > printf("\n"); > > if(use_stylesheet==TRUE) > printf(" > \n",url_stylesheets_path,TAC_CSS); > > printf("\n"); > printf("\n"); > > /* include user SSI header */ > include_ssi_files(TAC_CGI,SSI_HEADER); > > return; > } > > > void document_footer(void){ > > if(embedded==TRUE) > return; > > /* include user SSI footer */ > include_ssi_files(TAC_CGI,SSI_FOOTER); > > printf("\n"); > printf("\n"); > > return; > } > > > int process_cgivars(void){ > char **variables; > int error=FALSE; > int x; > > variables=getcgivars(); > > for(x=0;variables[x]!=NULL;x++){ > > /* do some basic length checking on the variable identifier to prevent buffer overflows */ > if(strlen(variables[x])>=MAX_INPUT_BUFFER-1){ > continue; > } > > /* we found the embed option */ > else if(!strcmp(variables[x],"embedded")) > embedded=TRUE; > > /* we found the noheader option */ > else if(!strcmp(variables[x],"noheader")) > display_header=FALSE; > > /* we recieved an invalid argument */ > else > error=TRUE; > > } > > /* free memory allocated to the CGI variables */ > free_cgivars(variables); > > return error; > } > > > > void analyze_status_data(void){ > servicestatus *temp_servicestatus; > service *temp_service; > hoststatus *temp_hoststatus; > host *temp_host; > int problem=TRUE; > > > /* check all services */ > for(temp_servicestatus=servicestatus_list;temp_servicestatus!=NULL;temp_servicestatus=temp_servicestatus->next){ > > /* see if user is authorized to view this service */ > temp_service=find_service(temp_servicestatus->host_name,temp_servicestatus->description,NULL); > if(is_authorized_for_service(temp_service,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_servicestatus->flap_detection_enabled==FALSE) > flap_disabled_services++; > else if(temp_servicestatus->is_flapping==TRUE) > flapping_services++; > > /* check notifications */ > if(temp_servicestatus->notifications_enabled==FALSE) > notification_disabled_services++; > > /* check event handler */ > if(temp_servicestatus->event_handler_enabled==FALSE) > event_handler_disabled_services++; > > /* active check execution */ > if(temp_servicestatus->checks_enabled==FALSE) > active_checks_disabled_services++; > > /* passive check acceptance */ > if(temp_servicestatus->accept_passive_service_checks==FALSE) > passive_checks_disabled_services++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_servicestatus->status==SERVICE_OK || temp_servicestatus->status==SERVICE_RECOVERY){ > if(temp_servicestatus->checks_enabled==FALSE) > services_ok_disabled++; > else > services_ok_unacknowledged++; > services_ok++; > } > > else if(temp_servicestatus->status==SERVICE_WARNING){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_warning_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_warning_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_warning_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_warning_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_warning_unacknowledged++; > services_warning++; > } > > else if(temp_servicestatus->status==SERVICE_UNKNOWN){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_unknown_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_unknown_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_unknown_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_unknown_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_unknown_unacknowledged++; > services_unknown++; > } > > else if(temp_servicestatus->status==SERVICE_CRITICAL){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_critical_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_critical_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_critical_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_critical_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_critical_unacknowledged++; > services_critical++; > } > > else if(temp_servicestatus->status==SERVICE_PENDING){ > if(temp_servicestatus->checks_enabled==FALSE) > services_pending_disabled++; > services_pending++; > } > > > /* get health stats */ > if(temp_servicestatus->status==SERVICE_OK) > total_service_health+=2; > > else if(temp_servicestatus->status==SERVICE_WARNING || temp_servicestatus->status==SERVICE_UNKNOWN) > total_service_health++; > > if(temp_servicestatus->status!=SERVICE_PENDING) > potential_service_health+=2; > > > /* calculate execution time and latency stats */ > if(temp_servicestatus->check_type==SERVICE_CHECK_ACTIVE){ > > total_active_checks++; > > if(min_latency==-1 || temp_servicestatus->latency min_latency=temp_servicestatus->latency; > if(max_latency==-1 || temp_servicestatus->latency>max_latency) > max_latency=temp_servicestatus->latency; > > if(min_execution_time==-1 || temp_servicestatus->execution_time min_execution_time=temp_servicestatus->execution_time; > if(max_execution_time==-1 || temp_servicestatus->execution_time>max_execution_time) > max_execution_time=temp_servicestatus->execution_time; > > total_latency+=temp_servicestatus->latency; > total_execution_time+=temp_servicestatus->execution_time; > } > else > total_passive_checks++; > > > total_services++; > } > > > > /* check all hosts */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* see if user is authorized to view this host */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > if(is_authorized_for_host(temp_host,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_hoststatus->flap_detection_enabled==FALSE) > flap_disabled_hosts++; > else if(temp_hoststatus->is_flapping==TRUE) > flapping_hosts++; > > /* check notifications */ > if(temp_hoststatus->notifications_enabled==FALSE) > notification_disabled_hosts++; > > /* check event handler */ > if(temp_hoststatus->event_handler_enabled==FALSE) > event_handler_disabled_hosts++; > > /* active check execution */ > if(temp_hoststatus->checks_enabled==FALSE) > active_checks_disabled_hosts++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_hoststatus->status==HOST_UP){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_up_disabled++; > else > hosts_up_unacknowledged++; > hosts_up++; > } > > else if(temp_hoststatus->status==HOST_DOWN){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_down_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_down_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_down_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_down_unacknowledged++; > hosts_down++; > } > > else if(temp_hoststatus->status==HOST_UNREACHABLE){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_unreachable_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_unreachable_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_unreachable_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_unreachable_unacknowledged++; > hosts_unreachable++; > } > > else if(temp_hoststatus->status==HOST_PENDING){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_pending_disabled++; > hosts_pending++; > } > > /* get health stats */ > if(temp_hoststatus->status==HOST_UP) > total_host_health++; > > if(temp_hoststatus->status!=HOST_PENDING) > potential_host_health++; > > total_hosts++; > } > > > /* calculate service health */ > if(potential_service_health==0) > percent_service_health=0.0; > else > percent_service_health=((double)total_service_health/(double)potential_service_health)*100.0; > > /* calculate host health */ > if(potential_host_health==0) > percent_host_health=0.0; > else > percent_host_health=((double)total_host_health/(double)potential_host_health)*100.0; > > /* calculate latency */ > if(total_latency==0L) > average_latency=0.0; > else > average_latency=((double)total_latency/(double)total_active_checks); > > /* calculate execution time */ > if(total_execution_time==0L) > average_execution_time=0.0; > else > average_execution_time=((double)total_execution_time/(double)total_active_checks); > > return; > } > > > > > /* determine what hosts are causing network outages */ > void find_hosts_causing_outages(void){ > hoststatus *temp_hoststatus; > hostoutage *temp_hostoutage; > host *temp_host; > > /* user must be authorized for all hosts in order to see outages */ > if(is_authorized_for_all_hosts(?t_authdata)==FALSE) > return; > > /* check all hosts */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* check only hosts that are not up and not pending */ > if(temp_hoststatus->status!=HOST_UP && temp_hoststatus->status!=HOST_PENDING){ > > /* find the host entry */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > > if(temp_host==NULL) > continue; > > /* if the route to this host is not blocked, it is a causing an outage */ > if(is_route_to_host_blocked(temp_host)==FALSE) > add_hostoutage(temp_host); > } > } > > > /* check all hosts that are causing problems and calculate the extent of the problem */ > for(temp_hostoutage=hostoutage_list;temp_hostoutage!=NULL;temp_hostoutage=temp_hostoutage->next){ > > /* calculate the outage effect of this particular hosts */ > calculate_outage_effect_of_host(temp_hostoutage->hst,&temp_hostoutage->affected_child_hosts); > > if(temp_hostoutage->affected_child_hosts>1) > total_blocking_outages++; > else > total_nonblocking_outages++; > } > > return; > } > > > > > > /* adds a host outage entry */ > void add_hostoutage(host *hst){ > hostoutage *new_hostoutage; > > /* allocate memory for a new structure */ > new_hostoutage=(hostoutage *)malloc(sizeof(hostoutage)); > > if(new_hostoutage==NULL) > return; > > new_hostoutage->hst=hst; > new_hostoutage->affected_child_hosts=0; > > /* add the structure to the head of the list in memory */ > new_hostoutage->next=hostoutage_list; > hostoutage_list=new_hostoutage; > > return; > } > > > > > /* frees all memory allocated to the host outage list */ > void free_hostoutage_list(void){ > hostoutage *this_hostoutage; > hostoutage *next_hostoutage; > > for(this_hostoutage=hostoutage_list;this_hostoutage!=NULL;this_hostoutage=next_hostoutage){ > > === message truncated === > .tac { font-family: arial,serif; background-color: black; background: black; color: white; background-color: black; } > > .errorMessage { font-family: arial; font-weight: bold; font-size: 12pt; background-color: black; color: white; } > .errorDescription { font-family: arial,serif; text-align: center; font-weight: bold; font-size: 12pt; } > .warningMessage { font-family: arial,serif; text-align: center; color: red; font-weight: bold; font-size: 10pt; } > > .infoBox { font-family: arial,serif; font-size: 8pt; background-color: #C4C2C2; color: black; padding: 2; } > .infoBoxTitle { font-family: arial,serif; font-size: 10pt; font-weight: bold; color: black; } > .infoBoxBadProcStatus {font-family: arial,serif; color: red; } > A { font-family: arial,serif; color: black; } > > .title { text-align: left; font-family: arial; font-weight: bold; font-size: large; background-color: black; color: white; } > .titleItem { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: black; color: white; } > .infoBoxBadProcStatus { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: red; } > > .healthTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .healthBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .healthItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > .healthBar { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: gray; color: white; } > > .perfTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; text-decoration: none; } > .perfBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .perfItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > .perfValue { text-align: left; font-family: arial; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .featureTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .featureHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > > .featureEnabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > > .featureEnabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemServicesNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemServicesFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemHostsNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemHostsFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > .featureItemEnabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > > .featureEnabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .outageTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .outageHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .outageImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .outageUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .hostTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .hostHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .hostImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .hostUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .serviceTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .serviceHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .serviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > .warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > ---- > > > .tac { font-family: arial,serif; background-color: black; background: black; color: white; background-color: black; } > > .errorMessage { font-family: arial; font-weight: bold; font-size: 12pt; background-color: black; color: white; } > .errorDescription { font-family: arial,serif; text-align: center; font-weight: bold; font-size: 12pt; } > .warningMessage { font-family: arial,serif; text-align: center; color: red; font-weight: bold; font-size: 10pt; } > > .infoBox { font-family: arial,serif; font-size: 8pt; background-color: #C4C2C2; color: black; padding: 2; } > .infoBoxTitle { font-family: arial,serif; font-size: 10pt; font-weight: bold; color: black; } > .infoBoxBadProcStatus {font-family: arial,serif; color: red; } > A { font-family: arial,serif; color: black; } > > .title { text-align: left; font-family: arial; font-weight: bold; font-size: large; background-color: black; color: white; } > .titleItem { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: black; color: white; } > .infoBoxBadProcStatus { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: red; } > > .healthTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .healthBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .healthItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > .healthBar { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: gray; color: white; } > > .perfTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; text-decoration: none; } > .perfBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .perfItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > .perfValue { text-align: left; font-family: arial; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .featureTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .featureHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > > .featureEnabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > > .featureEnabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemServicesNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemServicesFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemHostsNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemHostsFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > .featureItemEnabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > > .featureEnabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .outageTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .outageHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .outageImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .outageUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .hostTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .hostHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .hostImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .hostUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .serviceTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .serviceHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .serviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > .warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlixfeld at fastvibe.com Thu Feb 6 22:34:15 2003 From: jlixfeld at fastvibe.com (Jason Lixfeld) Date: Thu, 06 Feb 2003 16:34:15 -0500 Subject: Configuration option for auto-acknowledge? In-Reply-To: References: Message-ID: <3E42D4D7.9080801@fastvibe.com> Yeah, so there is no easy way to skin the cat or send configure a pre-acknowledged state; fine. It will take some creative thinking -- and hiring a developer to actually do this cuz I was barely able to get the first perl script importing from radius working properly :) Thanks for your input, folks. Subhendu Ghosh wrote: > Or since you have using templates - create 2 templates > one with a 24x7 monitor and a second with a not-time monitor > > Use the second when adding config to nagios. > Upon the first login (Radius accounting somewhere) > write another script to change the template to enable monitoring and > possibly remove the script from be activated on future logon or keep a > hash of users who have not loged on as yet. > > -sg > > > On Thu, 6 Feb 2003, Shayne Lebrun wrote: > > >>Hurm. >> >>Have your import script not import a RADIUS entry into Nagios until such >>time as he's logged in. >> >> >> >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason >>Lixfeld >>Sent: Thursday, February 06, 2003 2:22 PM >>To: jcarro10 at sprintspectrum.com >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? >> >> >>Jim, >> >>Carroll, Jim P [Contractor] wrote: >> >>>Perhaps some greater detail is required. Some questions: >>> >>>- exactly where in Nagios are you automatically adding these users? Could >>>you provide a sample configuration which has been automatically added? >> >>I am creating host and service entries in nagios based on information >>which is in our RADIUS user database: >> >>Our radius database gives us two values for each user, username and IP >>address. It is imported into nagios via a perl script and username >>becomes host_name and IP address is the same, address for an entry that >>looks like this for each user in our radius database: >> >>define host { >> use w7 >> host_name harv2459.w7 >> alias harv2459 >> address 216.7.193.244 >> } >> >>define service { >> use w7 >> host_name harv2459.w7 >> service_description PING >> contact_groups w7.email,w7.pager >> check_command check-host-alive >> } >> >> >> >>>- where are the users logging into? Into Nagios? Into the o/s? >> >>The users are logging into our DSL network over ppp. It is a dedicated >>service but since we provision the users in radius (And thus are >>inserted into nagios) before the customers recieve the hardware to >>activate their service (PPP DSL router), as soon as nagios gets it's new >>config, it tries to monitor the user which isn't up yet. I'm looking >>for a way to tell Nagios to not notify us to the fact that harv2459 is >>unreachable until after the first time he logs in -- in essence, >>proactive acknowledgment of a service that isn't completely installed. >> >> >>>- what changes, as far as Nagios is concerned, after the user logs in for >>>the first time? >> >>After the user logs in, his router becomes pingable (via ppp) as it >>recieved the IP address from radius (which is also configured in radius). >> >> >>>There might be a much more elegant solution to what you're asking. >> >>And so I am hoping! :) >> >> >>>Having said that, maybe what you're looking for is a way of pushing >> >>commands >> >>>directly into Nagios, via nagios.cmd. Check the FAQ. >> >>Perhaps. Based on what I have said here, what do you suggest? >> >> >>>jc >>> >>> >>> >>>>-----Original Message----- >>>>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] >>>>Sent: Thursday, February 06, 2003 9:40 AM >>>>To: nagios-users at lists.sourceforge.net >>>>Subject: [Nagios-users] Configuration option for auto-acknowledge? >>>> >>>> >>>>Greetings, >>>> >>>> At our organization, we pre-provision users and use >>>>nagios to poll the >>>>provisioning server and automatically add users to the nagios >>>>configuration. The problem with this implementation is that >>>>the users >>>>may not be active before they have been provisioned. This means that >>>>until they login for the first time, alarms will go off unless we >>>>manually acknowledge each of the pre-provisioned users. A >>>>user may not >>>>login for a long period of time after they are provisioned, and thus >>>>added to nagios. What I'm wondering is if there is a >>>>configuration hook >>>>that can be inserted for each user that sets the initial notification >>>>state to acknowledged so we don't have to manually >>>>acknowledge each user. >>>> >>>>Thank you in advance. >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>> >>> >>> >>> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From strerath at 4all-networks.de Thu Feb 6 22:36:59 2003 From: strerath at 4all-networks.de (Marcel Strerath) Date: Thu, 6 Feb 2003 22:36:59 +0100 Subject: Tux Message-ID: <000d01c2ce27$e1901dc0$0300a8c0@workstation> Hi, how can I bind my Tux into the Status Map? I have added in the cgi.cfg follow line: hostextinfo[srv1]=;linux.png;linux.png;linux.gd2;linux.png;;; . What must I do too? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Feb 6 22:42:09 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 6 Feb 2003 13:42:09 -0800 (PST) Subject: Colors In-Reply-To: <1044566733.28467.19.camel@operacao> References: <1044566733.28467.19.camel@operacao> Message-ID: <20030206214209.35176.qmail@web21506.mail.yahoo.com> Depends on which colors you're trying to modify and on which page. If you're trying to modify the red background displayed on the tac page for hosts & services (in critical,warning,unknown states), ie, you want the backgound for warning to be yellow instead of red, then you'll need to modify the tac.c and recomplie that tac.cgi and modify the tac.css, or just use mine. If you want to change the title/page colors just edit the .css file for the page in question. You'll have to play around with what variables do what... Henrique leandro wrote:so, i don't need change de C code to change colors ? Only files .css ? i'll try it. Thanks. On Thu, 2003-02-06 at 19:08, Jon Lyons wrote: > > Are you talking about changing the default red for critical and warning on the stats page? If not, then look at the .css style sheets, there's a lot of options.... > > See below, I have Red, Yellow, and brown for my Tac page. > > Henrique leandro wrote: Hi, > > ho do i for change the status colors ? > we would like something: > > CRITICAL: ORANGE > WARNING: BLUE > UNKNOWN: GRAY > PENDING: RED > > > > thanks > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > Jon Lyons wrote: > FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... > Basically I added two stylesheet definitions to tac.css; and call them in tac.c... > warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > > /your/nagios/path/share/stylesheets/tac.css > Jon Lyons wrote: > > Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) > Thanks.... > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now/*********************************************************************** > * > * TAC.C - Nagios Tactical Monitoring Overview CGI > * > * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org) > * Last Modified: 08-07-2002 > * > * This CGI program will display the contents of the Nagios > * log file. > * > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > ***********************************************************************/ > > #include "../common/config.h" > #include "../common/locations.h" > #include "../common/common.h" > #include "../common/objects.h" > #include "../common/statusdata.h" > > #include "getcgi.h" > #include "cgiutils.h" > #include "auth.h" > #include "lifo.h" > > > #define HEALTH_WARNING_PERCENTAGE 90 > #define HEALTH_CRITICAL_PERCENTAGE 75 > > > /* HOSTOUTAGE structure */ > typedef struct hostoutage_struct{ > host *hst; > int affected_child_hosts; > struct hostoutage_struct *next; > }hostoutage; > > > extern char main_config_file[MAX_FILENAME_LENGTH]; > extern char url_images_path[MAX_FILENAME_LENGTH]; > extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; > extern char url_media_path[MAX_FILENAME_LENGTH]; > > extern int refresh_rate; > > extern char *service_critical_sound; > extern char *service_warning_sound; > extern char *service_unknown_sound; > extern char *host_down_sound; > extern char *host_unreachable_sound; > extern char *normal_sound; > > extern hostgroup *hostgroup_list; > extern hoststatus *hoststatus_list; > extern servicestatus *servicestatus_list; > extern host *host_list; > extern service *service_list; > > extern int enable_notifications; > extern int execute_service_checks; > extern int accept_passive_service_checks; > extern int enable_event_handlers; > extern int enable_flap_detection; > > extern int nagios_process_state; > > > > void analyze_status_data(void); > void display_tac_overview(void); > > void find_hosts_causing_outages(void); > void calculate_outage_effect_of_host(host *,int *); > int is_route_to_host_blocked(host *); > int number_of_host_services(host *); > void add_hostoutage(host *); > void free_hostoutage_list(void); > > void document_header(int); > void document_footer(void); > int process_cgivars(void); > > authdata current_authdata; > > int embedded=FALSE; > int display_header=FALSE; > > hostoutage *hostoutage_list=NULL; > > int total_blocking_outages=0; > int total_nonblocking_outages=0; > > int total_service_health=0; > int total_host_health=0; > int potential_service_health=0; > int potential_host_health=0; > double percent_service_health=0.0; > double percent_host_health=0.0; > > int total_hosts=0; > int total_services=0; > > int total_active_checks=0; > int total_passive_checks=0; > > int min_execution_time=-1; > int max_execution_time=-1; > unsigned long total_execution_time=0L; > double average_execution_time=-1.0; > int min_latency=-1; > int max_latency=-1; > unsigned long total_latency=0L; > double average_latency=-1.0; > > int flapping_services=0; > int flapping_hosts=0; > int flap_disabled_services=0; > int flap_disabled_hosts=0; > int notification_disabled_services=0; > int notification_disabled_hosts=0; > int event_handler_disabled_services=0; > int event_handler_disabled_hosts=0; > int active_checks_disabled_services=0; > int active_checks_disabled_hosts=0; > int passive_checks_disabled_services=0; > > int hosts_pending=0; > int hosts_pending_disabled=0; > int hosts_up_disabled=0; > int hosts_up_unacknowledged=0; > int hosts_up=0; > int hosts_down_scheduled=0; > int hosts_down_acknowledged=0; > int hosts_down_disabled=0; > int hosts_down_unacknowledged=0; > int hosts_down=0; > int hosts_unreachable_scheduled=0; > int hosts_unreachable_acknowledged=0; > int hosts_unreachable_disabled=0; > int hosts_unreachable_unacknowledged=0; > int hosts_unreachable=0; > > int services_pending=0; > int services_pending_disabled=0; > int services_ok_disabled=0; > int services_ok_unacknowledged=0; > int services_ok=0; > int services_warning_host_problem=0; > int services_warning_scheduled=0; > int services_warning_acknowledged=0; > int services_warning_disabled=0; > int services_warning_unacknowledged=0; > int services_warning=0; > int services_unknown_host_problem=0; > int services_unknown_scheduled=0; > int services_unknown_acknowledged=0; > int services_unknown_disabled=0; > int services_unknown_unacknowledged=0; > int services_unknown=0; > int services_critical_host_problem=0; > int services_critical_scheduled=0; > int services_critical_acknowledged=0; > int services_critical_disabled=0; > int services_critical_unacknowledged=0; > int services_critical=0; > > > > int main(void){ > int result=OK; > char *sound=NULL; > > > /* get the CGI variables passed in the URL */ > process_cgivars(); > > /* reset internal variables */ > reset_cgi_vars(); > > /* read the CGI configuration file */ > result=read_cgi_config_file(DEFAULT_CGI_CONFIG_FILE); > if(result==ERROR){ > document_header(FALSE); > cgi_config_file_error(DEFAULT_CGI_CONFIG_FILE); > document_footer(); > return ERROR; > } > > /* read the main configuration file */ > result=read_main_config_file(main_config_file); > if(result==ERROR){ > document_header(FALSE); > main_config_file_error(main_config_file); > document_footer(); > return ERROR; > } > > /* read all object configuration data */ > result=read_all_object_configuration_data(main_config_file,READ_ALL_OBJECT_DATA); > if(result==ERROR){ > document_header(FALSE); > object_data_error(); > document_footer(); > return ERROR; > } > > /* read all status data */ > result=read_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_ALL_STATUS_DATA); > if(result==ERROR){ > document_header(FALSE); > status_data_error(); > document_footer(); > free_memory(); > return ERROR; > } > > document_header(TRUE); > > /* get authentication information */ > get_authentication_information(?t_authdata); > > if(display_header==TRUE){ > > /* begin top table */ > printf(" \n"); > printf(" \n"); > > /* left column of top table - info box */ > printf(" \n"); > display_info_table("Tactical Status Overview",TRUE,?t_authdata); > printf("\n"); > > /* middle column of top table - log file navigation options */ > printf(" \n"); > printf("\n"); > > /* right hand column of top row */ > printf(" \n"); > printf("\n"); > > /* end of top table */ > printf("\n"); > printf("\n"); > printf(" > > \n"); > > } > > > /* analyze current host and service status data for tac overview */ > analyze_status_data(); > > /* find all hosts that are causing network outages */ > find_hosts_causing_outages(); > > > /* embed sound tag if necessary... */ > if(hosts_unreachable_unacknowledged > 0 && host_unreachable_sound!=NULL) > sound=host_unreachable_sound; > else if(hosts_down_unacknowledged > 0 && host_down_sound!=NULL) > sound=host_down_sound; > else if(services_critical_unacknowledged > 0 && service_critical_sound!=NULL) > sound=service_critical_sound; > else if(services_warning_unacknowledged > 0 && service_warning_sound!=NULL) > sound=service_warning_sound; > else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL) > sound=normal_sound; > if(sound!=NULL) > printf("",url_media_path,sound); > > > /**** display main tac screen ****/ > display_tac_overview(); > > document_footer(); > > /* free memory allocated to the host outage list */ > free_hostoutage_list(); > > /* free allocated memory */ > free_memory(); > > return OK; > } > > > > > void document_header(int use_stylesheet){ > char date_time[MAX_DATETIME_LENGTH]; > time_t current_time; > time_t expire_time; > > printf("Cache-Control: no-store\n"); > printf("Pragma: no-cache\n"); > printf("Refresh: %d\n",refresh_rate); > > time(?t_time); > get_time_string(?t_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Last-Modified: %s\n",date_time); > > expire_time=(time_t)0L; > get_time_string(&expire_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Expires: %s\n",date_time); > > printf("Content-type: text/html\n\n"); > > if(embedded==TRUE) > return; > > printf("\n"); > printf("\n"); > printf("\n"); > > if(use_stylesheet==TRUE) > printf(" > \n",url_stylesheets_path,TAC_CSS); > > printf("\n"); > printf("\n"); > > /* include user SSI header */ > include_ssi_files(TAC_CGI,SSI_HEADER); > > return; > } > > > void document_footer(void){ > > if(embedded==TRUE) > return; > > /* include user SSI footer */ > include_ssi_files(TAC_CGI,SSI_FOOTER); > > printf("\n"); > printf("\n"); > > return; > } > > > int process_cgivars(void){ > char **variables; > int error=FALSE; > int x; > > variables=getcgivars(); > > for(x=0;variables[x]!=NULL;x++){ > > /* do some basic length checking on the variable identifier to prevent buffer overflows */ > if(strlen(variables[x])>=MAX_INPUT_BUFFER-1){ > continue; > } > > /* we found the embed option */ > else if(!strcmp(variables[x],"embedded")) > embedded=TRUE; > > /* we found the noheader option */ > else if(!strcmp(variables[x],"noheader")) > display_header=FALSE; > > /* we recieved an invalid argument */ > else > error=TRUE; > > } > > /* free memory allocated to the CGI variables */ > free_cgivars(variables); > > return error; > } > > > > void analyze_status_data(void){ > servicestatus *temp_servicestatus; > service *temp_service; > hoststatus *temp_hoststatus; > host *temp_host; > int problem=TRUE; > > > /* check all services */ > for(temp_servicestatus=servicestatus_list;temp_servicestatus!=NULL;temp_servicestatus=temp_servicestatus->next){ > > /* see if user is authorized to view this service */ > temp_service=find_service(temp_servicestatus->host_name,temp_servicestatus->description,NULL); > if(is_authorized_for_service(temp_service,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_servicestatus->flap_detection_enabled==FALSE) > flap_disabled_services++; > else if(temp_servicestatus->is_flapping==TRUE) > flapping_services++; > > /* check notifications */ > if(temp_servicestatus->notifications_enabled==FALSE) > notification_disabled_services++; > > /* check event handler */ > if(temp_servicestatus->event_handler_enabled==FALSE) > event_handler_disabled_services++; > > /* active check execution */ > if(temp_servicestatus->checks_enabled==FALSE) > active_checks_disabled_services++; > > /* passive check acceptance */ > if(temp_servicestatus->accept_passive_service_checks==FALSE) > passive_checks_disabled_services++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_servicestatus->status==SERVICE_OK || temp_servicestatus->status==SERVICE_RECOVERY){ > if(temp_servicestatus->checks_enabled==FALSE) > services_ok_disabled++; > else > services_ok_unacknowledged++; > services_ok++; > } > > else if(temp_servicestatus->status==SERVICE_WARNING){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_warning_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_warning_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_warning_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_warning_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_warning_unacknowledged++; > services_warning++; > } > > else if(temp_servicestatus->status==SERVICE_UNKNOWN){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_unknown_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_unknown_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_unknown_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_unknown_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_unknown_unacknowledged++; > services_unknown++; > } > > else if(temp_servicestatus->status==SERVICE_CRITICAL){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_critical_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_critical_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_critical_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_critical_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_critical_unacknowledged++; > services_critical++; > } > > else if(temp_servicestatus->status==SERVICE_PENDING){ > if(temp_servicestatus->checks_enabled==FALSE) > services_pending_disabled++; > services_pending++; > } > > > /* get health stats */ > if(temp_servicestatus->status==SERVICE_OK) > total_service_health+=2; > > else if(temp_servicestatus->status==SERVICE_WARNING || temp_servicestatus->status==SERVICE_UNKNOWN) > total_service_health++; > > if(temp_servicestatus->status!=SERVICE_PENDING) > potential_service_health+=2; > > > /* calculate execution time and latency stats */ > if(temp_servicestatus->check_type==SERVICE_CHECK_ACTIVE){ > > total_active_checks++; > > if(min_latency==-1 || temp_servicestatus->latency min_latency=temp_servicestatus->latency; > if(max_latency==-1 || temp_servicestatus->latency>max_latency) > max_latency=temp_servicestatus->latency; > > if(min_execution_time==-1 || temp_servicestatus->execution_time min_execution_time=temp_servicestatus->execution_time; > if(max_execution_time==-1 || temp_servicestatus->execution_time>max_execution_time) > max_execution_time=temp_servicestatus->execution_time; > > total_latency+=temp_servicestatus->latency; > total_execution_time+=temp_servicestatus->execution_time; > } > else > total_passive_checks++; > > > total_services++; > } > > > > /* check all hosts */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* see if user is authorized to view this host */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > if(is_authorized_for_host(temp_host,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_hoststatus->flap_detection_enabled==FALSE) > flap_disabled_hosts++; > else if(temp_hoststatus->is_flapping==TRUE) > flapping_hosts++; > > /* check notifications */ > if(temp_hoststatus->notifications_enabled==FALSE) > notification_disabled_hosts++; > > /* check event handler */ > if(temp_hoststatus->event_handler_enabled==FALSE) > event_handler_disabled_hosts++; > > /* active check execution */ > if(temp_hoststatus->checks_enabled==FALSE) > active_checks_disabled_hosts++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_hoststatus->status==HOST_UP){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_up_disabled++; > else > hosts_up_unacknowledged++; > hosts_up++; > } > > else if(temp_hoststatus->status==HOST_DOWN){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_down_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_down_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_down_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_down_unacknowledged++; > hosts_down++; > } > > else if(temp_hoststatus->status==HOST_UNREACHABLE){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_unreachable_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_unreachable_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_unreachable_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_unreachable_unacknowledged++; > hosts_unreachable++; > } > > else if(temp_hoststatus->status==HOST_PENDING){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_pending_disabled++; > hosts_pending++; > } > > /* get health stats */ > if(temp_hoststatus->status==HOST_UP) > total_host_health++; > > if(temp_hoststatus->status!=HOST_PENDING) > potential_host_health++; > > total_hosts++; > } > > > /* calculate service health */ > if(potential_service_health==0) > percent_service_health=0.0; > else > percent_service_health=((double)total_service_health/(double)potential_service_health)*100.0; > > /* calculate host health */ > if(potential_host_health==0) > percent_host_health=0.0; > else > percent_host_health=((double)total_host_health/(double)potential_host_health)*100.0; > > /* calculate latency */ > if(total_latency==0L) > average_latency=0.0; > else > average_latency=((double)total_latency/(double)total_active_checks); > > /* calculate execution time */ > if(total_execution_time==0L) > average_execution_time=0.0; > else > average_execution_time=((double)total_execution_time/(double)total_active_checks); > > return; > } > > > > > /* determine what hosts are causing network outages */ > void find_hosts_causing_outages(void){ > hoststatus *temp_hoststatus; > hostoutage *temp_hostoutage; > host *temp_host; > > /* user must be authorized for all hosts in order to see outages */ > if(is_authorized_for_all_hosts(?t_authdata)==FALSE) === message truncated === --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From slender at rocketmail.com Thu Feb 6 23:09:07 2003 From: slender at rocketmail.com (Paul Neilson) Date: Thu, 6 Feb 2003 14:09:07 -0800 (PST) Subject: Inverted Service Check Message-ID: <20030206220907.78439.qmail@web13907.mail.yahoo.com> How do invert a service check? I have several NT servers which normally have the FTP service turned off, but occassionally a sysadmin will turn FTP on so that he can receive some files from someone else (usually movies or MP#s of course). That wouldn't be bad, except that they usually leave FTP turned on with no security. How do I do check_ftp where off is the "normal" status and only raise an alarm if the service is turned on? Paul Neilson Development & Support Manager GMB Research & Development __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Thu Feb 6 23:26:51 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 6 Feb 2003 16:26:51 -0600 Subject: Inverted Service Check Message-ID: Use the negate wrapper: =================== negate (nagios-plugins 1.3.0-beta2) 1.3 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 2002 Karl DeBisschop Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] negate (-h | --help) for detailed help negate (-V | --version) for version information Options: -t, --timeout=INTEGER Terminate test if timeout limit is exceeded (default: 9) [keep this less than the plugin timeout to retain CRITICAL status] This plugin is a wrapper to take the output of another plugin and invert it. If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL. If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK. Otherwise, the output state of the wrapped plugin is unchanged. Send email to nagios-users at lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-devel at lists.sourceforge.net ====================== HTH, Richard -----Original Message----- From: Paul Neilson [mailto:slender at rocketmail.com] Sent: Thursday, February 06, 2003 4:09 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Inverted Service Check How do invert a service check? I have several NT servers which normally have the FTP service turned off, but occassionally a sysadmin will turn FTP on so that he can receive some files from someone else (usually movies or MP#s of course). That wouldn't be bad, except that they usually leave FTP turned on with no security. How do I do check_ftp where off is the "normal" status and only raise an alarm if the service is turned on? Paul Neilson Development & Support Manager GMB Research & Development __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From cquinn at excitenetwork.com Thu Feb 6 23:36:15 2003 From: cquinn at excitenetwork.com (Chris Quinn) Date: Thu, 6 Feb 2003 17:36:15 -0500 Subject: check per minute Message-ID: <9E2EF30E94F5C541A68F25F8AA8825BC341AFF@MARS.us.iwon.com> I am currently using Nagios-1.0 with Redhat8.0 I need Nagios to check more per minute than it currently does. inter_check_delay_method=s service_interleave_factor=1 max_concurrent_checks=0 service_reaper_frequency=2 Time Frame Checks Completed <= 1 minute: 669 (40.1%) <= 5 minutes: 1669 (100.0%) <= 15 minutes: 1669 (100.0%) <= 1 hour: 1669 (100.0%) Since program start: 1669 (100.0%) The CPU on the machine is not completely used, and I would like it to be :) Any help would be greatly appreciated. Thanks, Chris Quinn ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jyoung at geekbomb.com Thu Feb 6 23:48:43 2003 From: jyoung at geekbomb.com (Jonathan Young) Date: Thu, 6 Feb 2003 14:48:43 -0800 Subject: Status map question Message-ID: <20030206224843.GB20966@nwgeeks.com> Is there a way to set a particular host to be in the top of the heirarchy, ie - where the nagios process runs? That server already has a parent ( the switch it's on ) and I can't set the server as the top level parent of that switch. -- .------- ----- --- -- - * - -- --- ----- -------. | jonathan young jyoung at geekbomb.com ! `------------------------------ --- -- - -- ' ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 00:06:50 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 10:06:50 +1100 Subject: FW: Nagios to monitor MQSeries In-Reply-To: <3E42CDC5.20204@quadrix.com>; from russell@quadrix.com on Thu, Feb 06, 2003 at 04:04:05PM -0500 References: <3E42CDC5.20204@quadrix.com> Message-ID: <20030207100637.A12076@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I wouldn't get too excited about this, > >>when you install the MQSeries client (with developer > >>support), you get some sample programs. One of these sample ... I think the key statement is 'the MQSeries client (with developer support)'. MQSeries is a commercial multi-platform product that ships with different libraries including a developer API for each platform. I suspect you need these libraries for the scripts to be of any use; the libraries would have to be installed on the Nag host if you want a local plugin using that script. Obviously this a problem for Nag hosts that have no MQ suppport such as FreeBSD/NetBSD/OpenBSD. If you are a MQ Series site and have the appropriate MQ libraries available and installed on your Nag monitor, then sure, give the script a crack. Otherwise, you may do what my employer does (an AIX/MQ site). A DBA colleague wrote an application using the libraries to send a message to the the channels of interest that the channel then loops back. The application exits after writing a timestamp and an MQ return code (related to whether or not the mesage came back) into an NFS exported file that Nag can read (although NCSA would have been an option had I known of it then). Or use the IBM script on a host fitted with the libraries in a 'plugin' that sends the result to Nag in someway, or have Nag execute the script on that host by SSH. HTH, Yours sincerely. On Thu, Feb 06, 2003 at 04:04:05PM -0500, Russell Scibetti wrote: > Can you share the shell script with us? We're looking into using the > same thing. > > Russell > > Volker.Aust at premiere.de wrote: > > >Sorry, I have forgotten the list... > > > >>-----Original Message----- > >>From: Aust, Volker, PRE > >>Sent: Thursday, February 06, 2003 1:06 PM > >>To: 'Detlef.Knop at gmx.de' > >>Subject: RE: [Nagios-users] Nagios to monitor MQSeries > >> > >> > >>Hi Detlef, > >> > >>when you install the MQSeries client (with developer > >>support), you get some sample programs. One of these sample > >>programs is "amqsailq", which lists the length of all > >>MQ-queues of a server. You can use "amqsailq" local or > >>remote. When you use this program (or a mofified version, > >>that only checks important queues like we do (a colleague has > >>modified some of the sample programs)) remote, you can make > >>two tests with one call: > >> > >>- check the connectivity to the MQ-server and the -service > >> > >>- check the length of some important queues (too many, too few, ...) > >> > >>I have wraped the program in a shell script to generate the > >>Nagios stuff (return-code and output). > >> > >>Hope this helps. > >> > >>-vol > >> > >>>-----Original Message----- > >>>From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > >>>Sent: Thursday, February 06, 2003 7:40 AM > >>>To: nagios-users at lists.sourceforge.net > >>>Subject: [Nagios-users] Nagios to monitor MQSeries > >>> > >>> > >>>Dear all, > >>> > >>>I would like to check whether MQSeries is available as a > >>>service on several > >>>of my hosts. My first approach was to use the check_tcp > >>>plugin which from my > >>>point of view worked fine. But the people looking after > >>>MQSeries on these > >>>machines came back to me and complained that each time the > >>>plugin ran MQSeries > >>>reported errors on these systems (two errors per check) > >>>because MQSeries > >>>detects the incoming connection and wants to receive proper > >>>data, but then the > >>>connection is closed. > >>> > >>>Has anyone ever tried to do the same and found a solution? > >>>Maybe there is a > >>>way using passive checks, or we might have to look into the > >>>possibility to > >>>write a plugin. > >>> > >>>Kind regards > >>> > >>>Detlef Knop > >>> > >>>-- > >>>+++ GMX - Mail, Messaging & more http://www.gmx.net +++ > >>>NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.NET email is sponsored by: > >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>>http://www.vasoftware.com > >>>_______________________________________________ > >>>Nagios-users mailing list > >>>Nagios-users at lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>> > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From craig.luke at kualo.com Fri Feb 7 00:31:23 2003 From: craig.luke at kualo.com (Craig Luke) Date: Thu, 6 Feb 2003 23:31:23 -0000 Subject: Ping monitor problems Message-ID: <000f01c2ce37$dcbf6890$3ed3de89@craig> Hi all, I am new to Nagios, and have a problem which is probably due to some small configuration file problem. I now have the service working, and most of the interface functions correctly. My problem is that the status for PING on all the servers we are monitoring are showing as 'UNKNOWN', and are highlighted in orange. Can anyone shed some light as to what I might have done wrong? This is the status output for the ping on one of our servers: ---------------------------------------- Current Status: UNKNOWN Status Information: /bin/ping -n -U -c 5 server.domain.com Current Attempt: 1/3 State Type: HARD Last Check Type: ACTIVE Last Check Time: 02-06-2003 23:24:32 Status Data Age: 0d 0h 2m 14s Next Scheduled Active Check: 02-06-2003 23:29:32 Latency: < 1 second Check Duration: < 1 second Last State Change: 02-06-2003 01:17:43 Current State Duration: 0d 22h 9m 3s Last Service Notification: N/A Current Notification Number: 0 Is This Service Flapping? N/A Percent State Change: N/A In Scheduled Downtime? NO Last Update: 02-06-2003 23:26:35 Service Checks: ENABLED Passive Checks: ENABLED Service Notifications: ENABLED Event Handler: ENABLED Flap Detection: ENABLED ---------------------------------------- Thank you in advance for any help you might be able to give. Best regards, Craig Luke. --------------------- Craig Luke Operations Director craig.luke at kualo.com Kualo Ltd. Danesbury House 17 Sydney Road London EN2 6TS United Kingdom Freephone: +44 800 138 3235 Freefax: +44 800 138 3236 24/7 Web Support: http://helpdesk.kualo.com Kualo Community: http://forums.kualo.com Important: This e-mail may contain confidential information. If you are not the intended recipient it may be unlawful for you to read, copy, distribute, disclose or otherwise use information contained in it. If this is the case, please contact us immediately by e-mail: mailadmin at kualo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From don_schultz at panvera.com Fri Feb 7 00:38:50 2003 From: don_schultz at panvera.com (Don Schultz) Date: Thu, 6 Feb 2003 17:38:50 -0600 Subject: workstations Message-ID: <72CF2973A7532D478D85271D40F608FCC3F964@mercury.panvera.com> Are any of you checking workstations? Just asking for fun to see if anyone is. Thanks, -- Don Schultz | Panvera Corporation Unix Administrator | 501 Charmany Drive ph: 608.204.5060 | Madison, WI 53719 fax: 608.204.5061 | ------------------------------------------ pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C F8 75 25 B9 04 AF 67 A3 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From chris at xecu.net Fri Feb 7 01:40:18 2003 From: chris at xecu.net (Chris McGee) Date: Thu, 6 Feb 2003 19:40:18 -0500 (EST) Subject: Ping monitor problems In-Reply-To: <000f01c2ce37$dcbf6890$3ed3de89@craig> References: <000f01c2ce37$dcbf6890$3ed3de89@craig> Message-ID: What check command are you using for the service, check_ping? Make sure you add in the additional arguments to that command otherwise it will not register them all as unknown because it has no thresholds to compare to. Look at the sample services.cfg file that comes with the distribution. The line in your serviced file should look something like the following: check_command check_ping!100.0,20%!500.0,60% Also, if you do a '/pathtonagios/libexec/check_ping -h' you should get the following explaining what arguments you need with the check command: Usage: check_ping -H -w ,%% -c ,%% [-p packets] [-t timeout] [-L] check_ping (-h | --help) for detailed help check_ping (-V | --version) for version information Options: -H, --hostname=HOST host to ping -w, --warning=THRESHOLD warning threshold pair -c, --critical=THRESHOLD critical threshold pair -p, --packets=INTEGER number of ICMP ECHO packets to send (Default: 5) -t, --timeout=INTEGER optional specified timeout in second (Default: 10) -L, --link Sorry for the long post, but I think this will help you fix your problem. Chris On Thu, 6 Feb 2003, Craig Luke wrote: > Hi all, > > I am new to Nagios, and have a problem which is probably due to some > small configuration file problem. > > I now have the service working, and most of the interface functions > correctly. My problem is that the status for PING on all the servers we > are monitoring are showing as 'UNKNOWN', and are highlighted in orange. > Can anyone shed some light as to what I might have done wrong? > > This is the status output for the ping on one of our servers: > > ---------------------------------------- > Current Status: UNKNOWN > Status Information: /bin/ping -n -U -c 5 server.domain.com > Current Attempt: 1/3 > State Type: HARD > Last Check Type: ACTIVE > Last Check Time: 02-06-2003 23:24:32 > Status Data Age: 0d 0h 2m 14s > Next Scheduled Active Check: 02-06-2003 23:29:32 > Latency: < 1 second > Check Duration: < 1 second > Last State Change: 02-06-2003 01:17:43 > Current State Duration: 0d 22h 9m 3s > Last Service Notification: N/A > Current Notification Number: 0 > Is This Service Flapping? N/A > Percent State Change: N/A > In Scheduled Downtime? NO > Last Update: 02-06-2003 23:26:35 > > > Service Checks: ENABLED > Passive Checks: ENABLED > Service Notifications: ENABLED > Event Handler: ENABLED > Flap Detection: ENABLED > ---------------------------------------- > > Thank you in advance for any help you might be able to give. > > Best regards, > > Craig Luke. > > --------------------- > Craig Luke > Operations Director > craig.luke at kualo.com > > Kualo Ltd. > Danesbury House > 17 Sydney Road > London > EN2 6TS > United Kingdom > > Freephone: +44 800 138 3235 > Freefax: +44 800 138 3236 > > 24/7 Web Support: http://helpdesk.kualo.com > Kualo Community: http://forums.kualo.com > > Important: This e-mail may contain confidential information. If you are > not the intended recipient it may be unlawful for you to read, copy, > distribute, disclose or otherwise use information contained in it. > > If this is the case, please contact us immediately by e-mail: > mailadmin at kualo.com > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Chris McGee 301-682-9972 Xecunet, LLC www.xecu.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dialup * Webhosting * E-Commerce * High-Speed Access ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 02:11:22 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 12:11:22 +1100 Subject: Nagios to monitor MQSeries In-Reply-To: <3319.1044513574@www48.gmx.net>; from Detlef.Knop@gmx.de on Thu, Feb 06, 2003 at 07:39:34AM +0100 References: <3319.1044513574@www48.gmx.net> Message-ID: <20030207121115.B12076@IPAustralia.Gov.AU> Dear Sir, I would like to attempt a summary of options available for having Nag/Netsaint monitor mysteron Service X (like MQ series for example). 1 Service X has a non portable library with a public API - some programmatic way of interacting with it. eg Lotus Notes, MQ Series ==> write a non portable (since the libraries probably aren't) specific check of X using the library + then either 1.1 if the check follows the plugin developer guidelines wrt to output and return codes (ie 0 = Ok, 2 = Critical, etc), have Nag execute it by SSH or by NRPE 1.2 Otherwise export the check results to Nagios with techniques such as 1.2.1 Passive service checks: NCSA 1.2.2 Active service checks: export a file containing the check output (by NFS, or Samba) and have the Nag active check read that file and interpret it. 2 Service X has a portable library but you don't want to use it. Service X has a public or near public protocol eg DHCP, SMB, Oracle 2.1 Write a plugin that sends the same packets as are exchanged between the parties in a normal interaction. Return Ok if all the expected packets are received in a timely manner, Critical otherwise. Traditionally what plugin writers do in this case is use a public client like (smbclient or tnsping) that is controlled by (in effect) popen(). However, a better option is to to call the library dfunctions irectly if you have the choice (ie the libraries are readily available). Public libraries that also have bindings to 'scripting' ( the modern name for ultra high level languages) languages like Python, Ruby and Perl are especially good like this because the plugin writer can exploit the power of these languages to simplify development. 3 Service X has no library, and no public on the wire protocol eg Citrix metaframe 3.1 Do what Ed Rollston did for the check_citrix plugin and collect the frames from a real client and have your plugin synthesise and send those frames as if it were the client. There should be more tools around to help with this. However, some protocols still are alien (Citirx ICA for example) and even the plugin writers best friend, ethereal (thank you, thank you ethereal team) is no help whatsoever. What is needed are tools that . analyse packets . synthesise them -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Fri Feb 7 02:06:20 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 06 Feb 2003 20:06:20 -0500 Subject: Colors In-Reply-To: <1044566733.28467.19.camel@operacao> References: <20030206210806.49458.qmail@web21508.mail.yahoo.com> <1044566733.28467.19.camel@operacao> Message-ID: <1044579979.10964.4.camel@localhost.localdomain> On Thu, 2003-02-06 at 16:25, Henrique leandro wrote: > so, i don't need change de C code to change colors ? > Only files .css ? > > i'll try it. Be sure to let us know if it doesn't work. Way back when, the CSS files were designed so colors could easily be changed to accommodate red-green color blindness. If any bit rot has set in, it would be good to know. (I fully expect it to work, but from an accessibility point of view its actually more important that it initially appears.) The nice thing about the CSS solution is that a NOC can keep the standard colors which work well due to stop-light conditioning, but end users can use CSS to override the color for their own displays. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew at anvil.org Fri Feb 7 02:37:53 2003 From: andrew at anvil.org (Andrew Meredith) Date: Fri, 07 Feb 2003 01:37:53 +0000 Subject: host - a service References: <20030204035141.GA31963@cannonfodder.org> Message-ID: <3E430DF1.6030200@anvil.org> Hi Jason, I have been scouting around that area of the code myself just recently, after trying to do something to yourself. As far as I can tell, there is nothing that will do exactly what you want, but it will get quite close. You will still have the service in the system, but it will be switched off ... the same as if you didn't mention the lack of this service on this particular host and then switched it off through the interface. There are 3 parameter names that seem to have something to do with this function. enable_active_checks -------------------- $ fgrep -rl enable_active_checks . ./html/docs/distributed.html This appears to be something that is either going to be and hasn't yet, or used to be and hasn't been trimmed out of the docs yet .. either that or its a typo :) active_checks_enabled --------------------- This is service template parameter that has support all through the template reading and writing stuff and in the examples and convertcfg program. However .. checks_enabled -------------- ... is what it becomes when an xodtemplate_service structure is used to initialise a service structure using set_service_state_information() in xdata/xrddefault.c:593. (It is also a parameter at the host level where it keeps it's name the whole way through and would seem to be involved in host level checks.) Why have just gone through all this ? .. two reasons. 1 - I would be very grateful if someone who actually has a clue (unlike myself) would please have a look through the above and confirm whether I have got it right or not. The name change caught me right out until I spotted that the set_service_state_information() argument named active_checks_enabled was given the value of a variable called checks_enabled in xdata/xrddefault.c .. which given that checks_enabled is also a parameter in the host object made things a little confusing for a bear of very little brain. 2 - If this is true then (in theory .. I think) you should just be able to explicitly reference the service description by hostname and service name and then insert additional parameters of "active_checks_enabled=0" and "passive_checks_enabled=0" .. I think this should over-ride the value inherited from the hostgroup when that service structure is actually created in memory and render that service inoperative. The downside would be that it still shows up in the UI, but has no effect on anything. This as I say is not really what you are after, but might be a reasonable stop-gap until something tidier can be done in version 2.0 ... how about a service parameter called "vanish" (or for the LinuxHeads "mrproper" ;) that causes that service structure to be deleted. Having said all that, I haven't got a 1.0 test system on which I can try it right now, so it may well turn out that this is flexing the inheritance mechanism a little bit too hard. BTW .. If the developers are watching, I would be quite willing to go through the CVS version and rename the service structure variable from checks_enabled to active_checks_enabled in the code. I know that this would help me understand the logic a little better .. and I suspect that future newcomers might also be a little confused by the sudden change of name. Cheers Andy M Jason Burnett wrote: > is there any way to tell a host to ignore one of the tests assigned to > it's hostgroup? > example: > > define hostgroup{ > hostgroup_name neospire-virtuals-apache > alias Neospire Apache & Zeus webservers > contact_groups admins > members one,two,linux1 > } > define service{ > hostgroup_name neo-vs-web-apache > service_description SSH > } > > > define host{ > #server only runs telnet > host_name linux1 > .... > check_command **IGNORE SSH** > } > What I am looking for is an easy way to standardize tests across groups, > but as always there are exceptions and I need to be able to tell a > certain host to ignore certain tests inherited from it's group. > > oh and before anyone starts chastising me, I dont actually run telnet on > any of my servers. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 06:06:21 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 16:06:21 +1100 Subject: Feture Req: checklist style multiple service selection In-Reply-To: <85256CC4.005CA7A9.00@mailhost.planalytics.com>; from jmarquart@planalytics.com on Wed, Feb 05, 2003 at 11:52:01AM -0500 References: <85256CC4.005CA7A9.00@mailhost.planalytics.com> Message-ID: <20030207160615.G12076@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your question and share what was told me, On Wed, Feb 05, 2003 at 11:52:01AM -0500, jmarquart at planalytics.com wrote: > > > > > > Something that I would greatly appreciate in my daily duties, is the ability to > select sets of services from a host (or ideally perhaps multiple services from > multiple hosts) and manipulate then in a group as i might individually. > Unfortunately, there is only a 50% solution: it allows you to act on all hosts in a host group and or all services on a host, but not on multiple services that are not on the same host or mutiple randomly selected services. 1 To enable or disable notifications or checks of all services on a host, see the corresponding icons in the extinfo CGI (the panel that has the complete details about a host or service) 2 To enable or disable notifications or checks of all hosts on all hosts in a host group. 2.1 From the top level CGIs (status summary, status overview etc) 2.1.1 select (click) the short name - that in parentheseis [()] - of the host group. This should show a panel like Hostgroup Information Last Updated: Fri Feb 7 16:04:36 EST 2003 Updated every 90 seconds Nagios? - www.nagios.org Logged in as anwsmh View Status Detail For This Hostgroup View Status Overview For This Hostgroup View Status Grid For This Hostgroup View Availability For This Hostgroup Hostgroup Hosts & Routers for Mainframe (CSC Mainframe) Hostgroup Commands Schedule Downtime For All Hosts In This Hostgroup Schedule downtime for all hosts in this hostgroup Schedule Downtime For All Services In This Hostgroup Schedule downtime for all services in this hostgroup Enable Notifications For All Hosts In This Hostgroup Enable notifications for all hosts in this hostgroup Disable Notifications For All Hosts In This Hostgroup Disable notifications for all hosts in this hostgroup Enable Notifications For All Services In This Hostgroup Enable notifications for all services in this hostgroup Disable Notifications For All Services In This Hostgroup Disable notifications for all services in this hostgroup Enable Checks Of All Services In This Hostgroup Enable checks of all services in this hostgroup Disable Checks Of All Services In This Hostgroup Disable checks of all services in this hostgroup (The URL is /cgi-bin/extinfo.cgi?type=5&hostgroup=HostGroupName) 2.1.2 select the approriate action. HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Fri Feb 7 07:33:24 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 7 Feb 2003 07:33:24 +0100 Subject: Feature request: alias for an service Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804B1@storevis.datavis.se> Should it be possible to allow the 'alias' keyword in a service-definition and to show it on the service-information page? I have hosts where different people are responible for different services. It would be great if I could see the name of that persion when I looked at a service... /FredrikW ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Fri Feb 7 07:42:27 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Thu, 6 Feb 2003 22:42:27 -0800 (PST) Subject: check_nt plugins Message-ID: <20030207064227.51017.qmail@web40602.mail.yahoo.com> I would like to ask why does the warning and critical option in check_nt nagios plugins wont work? It only works to verify my disk space. Below is my sample command: ./check_nt -H -v USEDDISKSPACE -w 50 -c 60 -l c output: c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free 0.66 Gb (17%) Eventhough I increase or decrease the value of -w and -c , it doesn't have an effect. Thanks Bernie __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Fri Feb 7 17:07:10 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Fri, 7 Feb 2003 16:07:10 +0000 Subject: Distributed checking (part 2) In-Reply-To: <3E420844.7000407@mindsw.com> References: <20030205190117.GA11410@cannonfodder.org> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> Message-ID: <200302071607.16016.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there thanks for replying Erm I think I have not presented my problem properly and you have misinterpreted it. The problem that I am facing is that my distributed monitoring server is not supposed to check its own web services like SSH. I have configured it to return critical status "ERROR: checked actively by distributed server!" if it does. I want my central monitoring server to check these services actively. However, after I configured the service as passive on the distributed server, it still seems to check actively which I cant see why. Below is a snippet of my service definition. On the Central monitoring server define service{ host_name distributed monitoring server A service_description SSH check_command check_ssh active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 0 check_freshness 0 max_check_attempts 3 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 0 notification_period 24x7 notification_options u,c,r contact_groups admin } On the Distributed monitoring server define service{ host_name distributed monitoring server A service_description SSH check_command check_error_active active_checks_enabled 0 passive_checks_enabled 0 parallelize_check 0 obsess_over_service 0 check_freshness 0 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 check_period none notification_interval 10 notification_period 24x7 notification_options n contact_groups admin } Jasmine On Thursday 06 February 2003 07:01, Atul Gosain wrote: > Hi > > The problem is simple. > U have check_freshness variable set to 1. The effect of this is that > whenever the passive service results does not reach nagios for some time > (freshness_threshold ), it considers the result as stale and starts > checking actively for that service. If u want that active checks are not > executed when passive results are stale, then disable check_freshness > variable. > Just tell me in case ur problem is solved. > > Thanks > Atul > > Jasmine wrote: > >-----BEGIN PGP SIGNED MESSAGE----- > >Hash: SHA1 > > > >HI all.. i m still having this problem sorry. i thought i made a config > >mistake, but that does not solve the problem. > > > >>>just a note that I am having about the same problem as you. Anyone has > >>>any ideas? > >>> > >>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > >>>>o.k. I am using the distributed method with passive checks to monitor > >>>>some hosts I have behind a firewall that I dont want to punch holes in. > >>>>For some reason my central nagios server keeps running active checks on > >>>>the hosts even though I have that disabled on a per service instance. > >>>>So I end up with the service up when it gets the info via the passive > >>>>tests then it goes critical when the central server tries to check it > >>>>with an active test. Here is the service config from the central > >>>>server: > >>>> > >>>>define service{ > >>>> host_name pinky > >>>> service_description SSH > >>>> check_command check_ssh > >>>> max_check_attempts 2 > >>>> normal_check_interval 5 > >>>> retry_check_interval 5 > >>>> passive_checks_enabled 1 > >>>> active_checks_enabled 0 > >>>> check_period 24x7 > >>>> flap_detection_enabled 1 > >>>> process_perf_data 1 > >>>> retain_status_information 1 > >>>> retain_nonstatus_information 1 > >>>> notification_interval 1 > >>>> notification_period 24x7 > >>>> notification_options w,u,c,r > >>>> notifications_enabled 1 > >>>> check_freshness 1 > >>>> freshness_threshold 180 > >>>> contact_groups admins > >>>>} > >>> > >>>-- > >> > >>-- > > > >- -- > >- -- > >-----BEGIN PGP SIGNATURE----- > >Version: GnuPG v1.2.1 (GNU/Linux) > > > >iD8DBQE+QlzYNgvTa7Hj2AURAsnYAJ0ZYWr9gecenetL1yZqC1E2Eh00ogCgriLV > >lMIct+YBKB/6ZQUmDmKe6w8= > >=q+Rf > >-----END PGP SIGNATURE----- > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld > > http://www.vasoftware.com _______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+Q9myNgvTa7Hj2AURAp4EAKCtPdcWiL720gfg34nA9ZrUSi653gCgpEpG MjhXu1zMd26PzSuxN/cUQT0= =upWA -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Fri Feb 7 10:03:36 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Fri, 7 Feb 2003 10:03:36 +0100 Subject: FW: Nagios to monitor MQSeries Message-ID: I have talked about IBM MQSeries and I never said, that it was not an proprietary product. I do not check MQ from the Nagios host (Solaris 8 x86). I call my script (which calls a modified sample program) through NRPE on a Solaris 9 Sparc host with a MQ Client: $ pkginfo -l | fgrep -i mq PKGINST: mqm NAME: WebSphere MQ Client for Sun Solaris $ ls -l /opt/mqm/samp/amqsailq.c -r--r--r-- 1 mqm mqm 19373 Jun 14 2002 /opt/mqm/samp/amqsailq.c The colleague have found/modified/written a program "queuedeep", that queries the length of a single queue from the MQ-server. I have wraped this program in a shell script to generate the error-code/output for Nagios. -vol > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Thursday, February 06, 2003 7:11 PM > To: 'wim at hsmade.com'; Aust, Volker, PRE > Cc: nagios-users at lists.sourceforge.net > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > MQSeries is similar to but different than SonicMQ. The > latter is a JMS > product by Sonic Software. The former is an IBM product > using a proprietary > standard. > > We have both here; I wouldn't mind monitoring both of these natively. > > Hm. We don't seem to have the 'amqsailq' program. What's > the default path > to this? I didn't find it under /opt/mqm nor under /usr (on > Solaris8). > > $ pkginfo -l | grep -i mq > PKGINST: mqjava > DESC: MQSeries classes for Java and MQSeries classes > for Java Message > Service > PKGINST: mqm > NAME: MQSeries for Sun Solaris 2 > PKGINST: mqm-upd03 > NAME: MQSeries for Sun Solaris 2 - U478291 > PKGINST: mqm-upd05 > NAME: MQSeries for Sun Solaris 2 - U481514 > > jc > > > -----Original Message----- > > From: Wim Fournier [mailto:wim at hsmade.com] > > Sent: Thursday, February 06, 2003 10:38 AM > > To: Volker.Aust at premiere.de > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > Are you talking about Sonic MQ here? > > > > > > > > > Sorry, I have forgotten the list... > > > > > >> -----Original Message----- > > >> From: Aust, Volker, PRE > > >> Sent: Thursday, February 06, 2003 1:06 PM > > >> To: 'Detlef.Knop at gmx.de' > > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > >> > > >> > > >> Hi Detlef, > > >> > > >> when you install the MQSeries client (with developer > > >> support), you get some sample programs. One of these sample > > >> programs is "amqsailq", which lists the length of all > > >> MQ-queues of a server. You can use "amqsailq" local or > > >> remote. When you use this program (or a mofified version, > > >> that only checks important queues like we do (a colleague has > > >> modified some of the sample programs)) remote, you can make > > >> two tests with one call: > > >> > > >> - check the connectivity to the MQ-server and the -service > > >> > > >> - check the length of some important queues (too many, too > > few, ...) > > >> > > >> I have wraped the program in a shell script to generate the > > >> Nagios stuff (return-code and output). > > >> > > >> Hope this helps. > > >> > > >> -vol > > >> > > >> > -----Original Message----- > > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > >> > Sent: Thursday, February 06, 2003 7:40 AM > > >> > To: nagios-users at lists.sourceforge.net > > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > > >> > > > >> > > > >> > Dear all, > > >> > > > >> > I would like to check whether MQSeries is available as a > > >> > service on several > > >> > of my hosts. My first approach was to use the check_tcp > > >> > plugin which from my > > >> > point of view worked fine. But the people looking after > > >> > MQSeries on these > > >> > machines came back to me and complained that each time the > > >> > plugin ran MQSeries > > >> > reported errors on these systems (two errors per check) > > >> > because MQSeries > > >> > detects the incoming connection and wants to receive proper > > >> > data, but then the > > >> > connection is closed. > > >> > > > >> > Has anyone ever tried to do the same and found a solution? > > >> > Maybe there is a > > >> > way using passive checks, or we might have to look into the > > >> > possibility to > > >> > write a plugin. > > >> > > > >> > Kind regards > > >> > > > >> > Detlef Knop > > >> > > > >> > -- > > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ > Min. surfen! > > >> > > > >> > > > >> > > > >> > ------------------------------------------------------- > > >> > This SF.NET email is sponsored by: > > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > > Something 2 See! > > >> > http://www.vasoftware.com > > >> > _______________________________________________ > > >> > Nagios-users mailing list > > >> > Nagios-users at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > > >> > > > >> > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > Grtz, > > > > Wim Fournier > > wim at hsmade.[com|net|org] > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From horst.thivessen at thivessen.de Fri Feb 7 11:07:35 2003 From: horst.thivessen at thivessen.de (Horst =?ISO-8859-1?Q?Thive=DFen?=) Date: Fri, 07 Feb 2003 10:07:35 GMT Subject: check for filesize on windows using nrpe Message-ID: <20030207.10073550@mis.configured.host> Hello, I have to check the filesize on a windows 2000 server. I am not firm with progamming on windows and therefor I am looking for a nrpe agent which I can apapt with little knowledge of perl. Has anybody such a plugin ? Thanks Horst -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/rtf Size: 4535 bytes Desc: filename="text1.rtf" URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/vnd.stardivision.writer Size: 19456 bytes Desc: filename="text1.sdw" URL: From strerath at 4all-networks.de Fri Feb 7 12:16:51 2003 From: strerath at 4all-networks.de (Marcel Strerath) Date: Fri, 7 Feb 2003 12:16:51 +0100 Subject: Linux.gif bind into the cgi Message-ID: <001c01c2ce9a$69c50440$0300a8c0@workstation> Hi, how can I bind my Linux40.gif into the Status Map? I have added in the cgi.cfg follow line: hostextinfo[srv1]=;linux40.gif;linux40.gif;linux40.gd2;linux40.gif;; . What I must do too? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Donal.Hunt at dcu.ie Fri Feb 7 13:16:41 2003 From: Donal.Hunt at dcu.ie (Donal Hunt) Date: Fri, 07 Feb 2003 12:16:41 +0000 Subject: workstations References: <72CF2973A7532D478D85271D40F608FCC3F964@mercury.panvera.com> Message-ID: <3E43A3A9.5F93B826@dcu.ie> Don, We're currently testing nagios for this purpose... Drop me a mail if you need more details. Regards Donal DCU Don Schultz wrote: > > Are any of you checking workstations? Just asking for fun to see if > anyone is. > Thanks, > > -- > Don Schultz | Panvera Corporation > Unix Administrator | 501 Charmany Drive > ph: 608.204.5060 | Madison, WI 53719 > fax: 608.204.5061 | > ------------------------------------------ > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > F8 75 25 B9 04 AF 67 A3 > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 13:22:59 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 23:22:59 +1100 Subject: check for filesize on windows using nrpe In-Reply-To: <20030207.10073550@mis.configured.host>; from horst.thivessen@thivessen.de on Fri, Feb 07, 2003 at 10:07:35AM +0000 References: <20030207.10073550@mis.configured.host> Message-ID: <20030207232253.F217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Fri, Feb 07, 2003 at 10:07:35AM +0000, Horst Thive?en wrote: > Hello, > I have to check the filesize on a windows 2000 server. I am not firm with > progamming on windows and therefor I am looking for a nrpe agent which I > can apapt with little knowledge of perl. Has anybody such a plugin ? that you may like to consider the CPAN module FileSys::Smbclient ? This gives you an (tied) interface to a MS shared file that behaves exactly like a normal (ufs) file handle, so you can call stat() on it. I think your plugin is something like .. prelude my $smb = new Filesys::SmbClient(username => "alian", password => "speed", workgroup => "alian", debug => 10); my @tab = $smb->stat("smb://jupiter/doc/tata"); if ($#tab == 0) { print "Erreur in stat:", $!, "\n"; # Outahere after setting return code } else { my $size = $tab[7]; if ( $size <= MIN_THRESHOLD or $size >= MAX_THRESHOLD ) { # outahere } else # Ok print "File Ok.\n" ; exit $ERRORS{OK} ; } Have a look at http://search.cpan.org/author/ALIAN/Filesys-SmbClient-1.4/SmbClient.pm Obviously you can do a lot more with this extremely versatile and superior alternative to smbclient eg - tail a MS file - read/write at offset - slurp a whole MS file into a Perl string or Array - read/write MS directories You need to have a Samba 2.2.x sources, and you need to have the optional client shared library installed (make installclientlib) to be able to install this Perl module. Alternatively, there are RPMs that are sufficient to do all this. If you don't like this, but you have Samba installed, then you could do something like #!/usr/bin/perl $ls = `smbclient //server/share -Uuser%pass -c 'cd $path; ls $file; quit`` ; # interpret the directory listing in the 'usual way' ... this is # the hard bit that FileSys::Smbclient eliminates. > Thanks Horst HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From cedric.gavage at unixtech.be Fri Feb 7 13:30:36 2003 From: cedric.gavage at unixtech.be (Cedric Gavage) Date: Fri, 07 Feb 2003 13:30:36 +0100 Subject: FYI, nagios mailing list for french speaking people ;) Message-ID: <3E43A6EC.3080302@unixtech.be> Hi all, FYI, we created a mailing list for french speaking users of Nagios. (Problems installing nagios, getting things running, informations about configuration, scripts, ...) Name: nagios-french at lists.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/nagios-french Archive will be on http://www.mail-archive.com/nagios-french at lists.unixtech.be -- Cedric Gavage - Niddle at IRC http://unixtech.be - http://gavage.com - OpenPGP: 0xED325C64 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wojnicki at asw.waw.pl Fri Feb 7 13:36:18 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Fri, 07 Feb 2003 13:36:18 +0100 Subject: 3D statusmap Message-ID: <5.1.1.2.0.20030207133141.027d8020@192.168.0.2> When I click on the "3d statusmap" link my browser asks me, if I want to open it or download (statuswrl.cgi?host=all). When I select "open", it's not accessible. I tried it with cortona wrml viewer and cosmoplayer - no dice. Any suggestions? Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wojnicki at asw.waw.pl Fri Feb 7 13:49:15 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Fri, 07 Feb 2003 13:49:15 +0100 Subject: Monitoring HP switches Message-ID: <5.1.1.2.0.20030207134711.027e55e0@192.168.0.2> Does anyone here have any experience in monitoring HP ethernet switches? I figure you have to use check_snmp, but couldn't find anything further in the faq or fm. Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 13:56:55 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 13:56:55 +0100 Subject: 3D statusmap Message-ID: This is the same issue as I did a post on earlier this week. So far I've not been able to solve it... >-----Original Message----- >From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >Sent: Friday, February 07, 2003 1:36 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] 3D statusmap > > >When I click on the "3d statusmap" link my browser asks me, if >I want to >open it or download (statuswrl.cgi?host=all). >When I select "open", it's not accessible. >I tried it with cortona wrml viewer and cosmoplayer - no dice. >Any suggestions? > >Pawel > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:06:38 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:06:38 +0100 Subject: Parent hosts and service checks on hosts childs of parents Message-ID: After reading through the documentation, I'm still not sure I got this right. I've got a couple of hosts, spread across a WAN. Host A (router on same LAN as Nagios) Host B (router on remote WAN) Host C (file server on remote WAN) Host C is configured with "partens host B" Host B is configured with "partens host A" However, even after host B goes down, Nagios is still kicking of the service checks on Host C. From what I understand in the documentation, this should not be the case? Or am I wrong here? What do i need to do in order for Nagios to stop service checking Host C before host B changes status from "Down" to "Up"? Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Wibo.Lammerts at hmg.nl Fri Feb 7 14:23:42 2003 From: Wibo.Lammerts at hmg.nl (Wibo Lammerts) Date: Fri, 7 Feb 2003 14:23:42 +0100 Subject: 3D statusmap Message-ID: download the Cortona VRML viewer for Netscape/ie. that will do the trick -----Original Message----- From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] Sent: vrijdag 7 februari 2003 13:57 To: Pawel Wojnicki; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] 3D statusmap This is the same issue as I did a post on earlier this week. So far I've not been able to solve it... >-----Original Message----- >From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >Sent: Friday, February 07, 2003 1:36 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] 3D statusmap > > >When I click on the "3d statusmap" link my browser asks me, if >I want to >open it or download (statuswrl.cgi?host=all). >When I select "open", it's not accessible. >I tried it with cortona wrml viewer and cosmoplayer - no dice. >Any suggestions? > >Pawel > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:27:57 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:27:57 +0100 Subject: 3D statusmap Message-ID: I don't thinl it is a plugin issue, as the demo site for Nagios works well when trying out the 3D statusmap. It's got to be something with my Nagios setup. >-----Original Message----- >From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >Sent: Friday, February 07, 2003 2:24 PM >To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >download the Cortona VRML viewer for Netscape/ie. that will do >the trick > >-----Original Message----- >From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >Sent: vrijdag 7 februari 2003 13:57 >To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >This is the same issue as I did a post on earlier this week. >So far I've not >been able to solve it... > >>-----Original Message----- >>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>Sent: Friday, February 07, 2003 1:36 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] 3D statusmap >> >> >>When I click on the "3d statusmap" link my browser asks me, if >>I want to >>open it or download (statuswrl.cgi?host=all). >>When I select "open", it's not accessible. >>I tried it with cortona wrml viewer and cosmoplayer - no dice. >>Any suggestions? >> >>Pawel >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and >is the property of the Roxar Group. It is intended only for >the person to >whom it is addressed. If you are not the intended recipient, >you are not >authorised to read, print, retain, copy, disseminate, >distribute, or use >this message or any part thereof. If you receive this message in error, >please notify the sender immediately and delete all copies of >this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:37:24 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:37:24 +0100 Subject: Compaq Insight Manager plugin v0.1 available Message-ID: Hope this might be of interest to other Compaq server owners... I've modified Craig Cook's Big Brother script to work with Nagios. This is a pre release, which we are using in our production environment. It can be downloaded from http://home.broadpark.no/~tnilsen-1/check_cpqim.sh for the time being. I will put some docs together for it as well, but it will do for now. Any problems, please email me on thomas.nilsen at roxar.com or thomas.nilsen at doc-s.co.uk. Things to do: Timeout settings Command line options needs to be improved. Warning and Critical Level options (is currently using CPQ Agent levels and/or hard coded levels from the script). Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:55:13 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:55:13 +0100 Subject: 3D statusmap Message-ID: "model/vrml wrl,vrml" is already listed in /etc/mime.types... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 2:49 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >mime-types maybe? > >Thomas Nilsen zei: >> I don't thinl it is a plugin issue, as the demo site for Nagios works >> well when trying out the 3D statusmap. It's got to be >something with my >> Nagios setup. >> >>>-----Original Message----- >>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>Sent: Friday, February 07, 2003 2:24 PM >>>To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>download the Cortona VRML viewer for Netscape/ie. that will do >>>the trick >>> >>>-----Original Message----- >>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>Sent: vrijdag 7 februari 2003 13:57 >>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>This is the same issue as I did a post on earlier this week. >>>So far I've not >>>been able to solve it... >>> >>>>-----Original Message----- >>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>Sent: Friday, February 07, 2003 1:36 PM >>>>To: nagios-users at lists.sourceforge.net >>>>Subject: [Nagios-users] 3D statusmap >>>> >>>> >>>>When I click on the "3d statusmap" link my browser asks me, if >>>>I want to >>>>open it or download (statuswrl.cgi?host=all). >>>>When I select "open", it's not accessible. >>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. >>>>Any suggestions? >>>> >>>>Pawel >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>> >>> >>>DISCLAIMER: >>>This message contains information that may be privileged or >>>confidential and >>>is the property of the Roxar Group. It is intended only for >>>the person to >>>whom it is addressed. If you are not the intended recipient, >>>you are not >>>authorised to read, print, retain, copy, disseminate, >>>distribute, or use >>>this message or any part thereof. If you receive this >message in error, >>>please notify the sender immediately and delete all copies of >>>this message. >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Fri Feb 7 14:48:43 2003 From: wim at hsmade.com (Wim Fournier) Date: Fri, 7 Feb 2003 14:48:43 +0100 (CET) Subject: 3D statusmap In-Reply-To: References: Message-ID: <27421.217.198.203.200.1044625723.squirrel@webmail.kern.nl> mime-types maybe? Thomas Nilsen zei: > I don't thinl it is a plugin issue, as the demo site for Nagios works > well when trying out the 3D statusmap. It's got to be something with my > Nagios setup. > >>-----Original Message----- >>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>Sent: Friday, February 07, 2003 2:24 PM >>To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>download the Cortona VRML viewer for Netscape/ie. that will do >>the trick >> >>-----Original Message----- >>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>Sent: vrijdag 7 februari 2003 13:57 >>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>This is the same issue as I did a post on earlier this week. >>So far I've not >>been able to solve it... >> >>>-----Original Message----- >>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>Sent: Friday, February 07, 2003 1:36 PM >>>To: nagios-users at lists.sourceforge.net >>>Subject: [Nagios-users] 3D statusmap >>> >>> >>>When I click on the "3d statusmap" link my browser asks me, if >>>I want to >>>open it or download (statuswrl.cgi?host=all). >>>When I select "open", it's not accessible. >>>I tried it with cortona wrml viewer and cosmoplayer - no dice. >>>Any suggestions? >>> >>>Pawel >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >> >> >>DISCLAIMER: >>This message contains information that may be privileged or >>confidential and >>is the property of the Roxar Group. It is intended only for >>the person to >>whom it is addressed. If you are not the intended recipient, >>you are not >>authorised to read, print, retain, copy, disseminate, >>distribute, or use >>this message or any part thereof. If you receive this message in error, >>please notify the sender immediately and delete all copies of >>this message. >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > > DISCLAIMER: > This message contains information that may be privileged or > confidential and is the property of the Roxar Group. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorised to read, print, retain, > copy, disseminate, distribute, or use this message or any part thereof. > If you receive this message in error, please notify the sender > immediately and delete all copies of this message. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jonejr at gat.com Fri Feb 7 15:15:52 2003 From: jonejr at gat.com (jonejr) Date: Fri, 07 Feb 2003 06:15:52 -0800 Subject: cgi help on Nagios 1.0 Message-ID: <964413781.20030207061552@gat.com> Hello nagios-users, I can't, for the life of me, get anything beyond the Home and Docuementation buttons to work. http://MyFQDN/nagios/ gives the interface. Redhat 2.1 AS (uname -a output -->Linux p082207 2.4.9-e.3 #1 Fri May 3 17:02:43 EDT 2002 i686 unknown I have run the -v option to test the CFGs. ps -ef | grep nagios shows it running. I did a stop, start, and a restart. I have an .htaccess file in /usr/local/nagios/etc and ../html but it does not prompt for user authentication. I have NOT rebooted this server. I HAVE done a /etc/rc.d/init.d/httpd restart several times. I have pages and pages of printouts. :( No help I have 2 PDFs also, no help. It would seem that I have some cgi-bin issues. The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. Apache/1.3.23 Server at MyFQDN Port 80 And yet... # ll tac.cgi -rwxr-xr-x 1 nagios nagios 415779 Feb 6 06:40 tac.cgi # pwd /usr/local/nagios/cgi from my httpd.conf file... ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all So close I can taste it....Please advise. -- John R. Jones Oracle and Citrix Administrator General Atomics, Aeronautical Systems, Inc. http://www.gat.com/asi/home.html PGP Fingerprint= 1A6C 6CFA 0064 52D8 B98C 5A72 8783 5845 2/7/2003 5:55 AM ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Fri Feb 7 15:17:51 2003 From: wim at hsmade.com (Wim Fournier) Date: Fri, 7 Feb 2003 15:17:51 +0100 (CET) Subject: Fwd: Re: Monitoring HP switches In-Reply-To: <5.1.1.2.0.20030207151126.027d8630@192.168.0.2> References: <5.1.1.2.0.20030207151126.027d8630@192.168.0.2> Message-ID: <28791.217.198.203.200.1044627471.squirrel@webmail.kern.nl> Well here you go: ------------8<----------------------- #!/bin/bash # This check checks a HP procurve 2524 webgui for events # Returns a link to the event found # Author: Wim Fournier (wim at kern.nl) # $0 ip-address test -n $1 || exit export IP=$1 wget --http-user= --http-passwd=******* http://$IP/cgi/fflog?action=status - O - 2>/dev/null | awk -F~ '{ if ($1 == 1) {print "OK";exit 0;} if ($1 == 2) {printf("Information - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 3) {printf("Non-critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 4) {printf("Critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } print "Unknown"; exit -1; }' ------------8<----------------------- Its based on a file that resides on the webserver of the switch with the status in it. Pawel Wojnicki zei: > Hey sure - I'd appreciate any help and info > > Pawel > >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >>Subject: Re: [Nagios-users] Monitoring HP switches >>From: "Wim Fournier" >>To: >>Importance: Normal >>Reply-To: wim at hsmade.com >>X-Mailer: SquirrelMail (version 1.2.5) >>X-Spam-Status: No, hits=-3.1 required=5.0 tests=IN_REP_TO,MAY_BE_FORGED >> version=2.20 >>X-Spam-Level: >> >>Pawel Wojnicki zei: >> > Does anyone here have any experience in monitoring HP ethernet >> > switches? I figure you have to use check_snmp, but couldn't find >> > anything further in the faq or fm. >> >>even better, i hacked myself through the web management page and found >>a way to check for the status lamp in the left upper corner and create >>a link in the status field to the page with the error (if existant) >> >>contact me if you want it, it should be also somewhere on sourceforge >>as patch.. but can't remember where >> > >> > Pawel >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> > http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Fri Feb 7 15:19:16 2003 From: wim at hsmade.com (Wim Fournier) Date: Fri, 7 Feb 2003 15:19:16 +0100 (CET) Subject: 3D statusmap In-Reply-To: References: Message-ID: <29005.217.198.203.200.1044627556.squirrel@webmail.kern.nl> Thomas Nilsen zei: > "model/vrml wrl,vrml" is already listed in /etc/mime.types... its supposed to be "model/vrml wrl vrml" for apache. dont know if you put that comma there yourself, or that its normal for windows or something. > >>-----Original Message----- >>From: Wim Fournier [mailto:wim at hsmade.com] >>Sent: Friday, February 07, 2003 2:49 PM >>To: Thomas Nilsen >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>mime-types maybe? >> >>Thomas Nilsen zei: >>> I don't thinl it is a plugin issue, as the demo site for Nagios works >>> well when trying out the 3D statusmap. It's got to be >>something with my >>> Nagios setup. >>> >>>>-----Original Message----- >>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>Sent: Friday, February 07, 2003 2:24 PM >>>>To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>Subject: RE: [Nagios-users] 3D statusmap >>>> >>>> >>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>the trick >>>> >>>>-----Original Message----- >>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>Sent: vrijdag 7 februari 2003 13:57 >>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>Subject: RE: [Nagios-users] 3D statusmap >>>> >>>> >>>>This is the same issue as I did a post on earlier this week. >>>>So far I've not >>>>been able to solve it... >>>> >>>>>-----Original Message----- >>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>To: nagios-users at lists.sourceforge.net >>>>>Subject: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>want to >>>>>open it or download (statuswrl.cgi?host=all). >>>>>When I select "open", it's not accessible. >>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>suggestions? >>>>> >>>>>Pawel >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>>DISCLAIMER: >>>>This message contains information that may be privileged or >>>>confidential and >>>>is the property of the Roxar Group. It is intended only for >>>>the person to >>>>whom it is addressed. If you are not the intended recipient, >>>>you are not >>>>authorised to read, print, retain, copy, disseminate, >>>>distribute, or use >>>>this message or any part thereof. If you receive this >>message in error, >>>>please notify the sender immediately and delete all copies of >>>>this message. >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>> >>> >>> DISCLAIMER: >>> This message contains information that may be privileged or >>> confidential and is the property of the Roxar Group. It is intended >>> only for the person to whom it is addressed. If you are not the >>> intended recipient, you are not authorised to read, print, retain, >>> copy, disseminate, distribute, or use this message or any >>part thereof. >>> If you receive this message in error, please notify the sender >>> immediately and delete all copies of this message. >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: >>> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>> http://www.vasoftware.com >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] >> >> >> > > > DISCLAIMER: > This message contains information that may be privileged or > confidential and is the property of the Roxar Group. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorised to read, print, retain, > copy, disseminate, distribute, or use this message or any part thereof. > If you receive this message in error, please notify the sender > immediately and delete all copies of this message. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Fri Feb 7 15:18:47 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 7 Feb 2003 08:18:47 -0600 Subject: workstations Message-ID: We watch our workstations. It is helpful to know if your users are having a problem before you get the call. Often I can be in the office of a client with a down workstation and fix the problem before they know they have one. That improves PR and customer satisfaction. Greg > -----Original Message----- > From: Don Schultz [mailto:don_schultz at panvera.com] > Sent: Thursday, February 06, 2003 5:39 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] workstations > > > Are any of you checking workstations? Just asking for fun to see if > anyone is. > Thanks, > > -- > Don Schultz | Panvera Corporation > Unix Administrator | 501 Charmany Drive > ph: 608.204.5060 | Madison, WI 53719 > fax: 608.204.5061 | > ------------------------------------------ > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > F8 75 25 B9 04 AF 67 A3 > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 15:21:15 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 15:21:15 +0100 Subject: 3D statusmap Message-ID: That's my "AI" hands trying to clever. :-) The comma is not in /etc/mime.types So this has to be for some other reason.... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 3:19 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >Thomas Nilsen zei: >> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >its supposed to be "model/vrml wrl vrml" for apache. dont >know if you put >that comma there yourself, or that its normal for windows or something. > > >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 2:49 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>mime-types maybe? >>> >>>Thomas Nilsen zei: >>>> I don't thinl it is a plugin issue, as the demo site for >Nagios works >>>> well when trying out the 3D statusmap. It's got to be >>>something with my >>>> Nagios setup. >>>> >>>>>-----Original Message----- >>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>To: Thomas Nilsen; Pawel Wojnicki; >nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>the trick >>>>> >>>>>-----Original Message----- >>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>This is the same issue as I did a post on earlier this week. >>>>>So far I've not >>>>>been able to solve it... >>>>> >>>>>>-----Original Message----- >>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>To: nagios-users at lists.sourceforge.net >>>>>>Subject: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>want to >>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>When I select "open", it's not accessible. >>>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>>suggestions? >>>>>> >>>>>>Pawel >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>>DISCLAIMER: >>>>>This message contains information that may be privileged or >>>>>confidential and >>>>>is the property of the Roxar Group. It is intended only for >>>>>the person to >>>>>whom it is addressed. If you are not the intended recipient, >>>>>you are not >>>>>authorised to read, print, retain, copy, disseminate, >>>>>distribute, or use >>>>>this message or any part thereof. If you receive this >>>message in error, >>>>>please notify the sender immediately and delete all copies of >>>>>this message. >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 15:35:34 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 15:35:34 +0100 Subject: cgi help on Nagios 1.0 Message-ID: Remove the .htaccess file from etc/ and html/ and move it to the sbin/ directory. That should give you access. Regards, Thomas >-----Original Message----- >From: jonejr [mailto:jonejr at gat.com] >Sent: Friday, February 07, 2003 3:16 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] cgi help on Nagios 1.0 > > >Hello nagios-users, > >I can't, for the life of me, get anything beyond the Home and >Docuementation buttons to work. >http://MyFQDN/nagios/ gives the interface. >Redhat 2.1 AS (uname -a output -->Linux p082207 2.4.9-e.3 #1 >Fri May 3 17:02:43 EDT 2002 i686 unknown > > >I have run the -v option to test the CFGs. >ps -ef | grep nagios shows it running. >I did a stop, start, and a restart. >I have an .htaccess file in /usr/local/nagios/etc and ../html but it >does not prompt for user authentication. > >I have NOT rebooted this server. I HAVE done a >/etc/rc.d/init.d/httpd restart several times. > >I have pages and pages of printouts. :( No help >I have 2 PDFs also, no help. > >It would seem that I have some cgi-bin issues. >The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. >Apache/1.3.23 Server at MyFQDN Port 80 > >And yet... ># ll tac.cgi >-rwxr-xr-x 1 nagios nagios 415779 Feb 6 06:40 tac.cgi ># pwd >/usr/local/nagios/cgi > >from my httpd.conf file... >ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > > >So close I can taste it....Please advise. > >-- >John R. Jones > >Oracle and Citrix Administrator >General Atomics, Aeronautical Systems, Inc. >http://www.gat.com/asi/home.html >PGP Fingerprint= >1A6C 6CFA 0064 52D8 B98C 5A72 8783 5845 > >2/7/2003 >5:55 AM > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Fri Feb 7 15:40:01 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 7 Feb 2003 08:40:01 -0600 Subject: 3D statusmap Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FD6@mismail.ena.com> I seem to remember some discussion of periods in names being a problem. Is that applicable? You might find something in the archives to confirm that. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Thomas Nilsen To: wim at hsmade.com CC: nagios-users at lists.sourceforge.net Sent: Fri Feb 07 08:21:15 2003 Subject: RE: [Nagios-users] 3D statusmap That's my "AI" hands trying to clever. :-) The comma is not in /etc/mime.types So this has to be for some other reason.... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 3:19 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >Thomas Nilsen zei: >> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >its supposed to be "model/vrml wrl vrml" for apache. dont >know if you put >that comma there yourself, or that its normal for windows or something. > > >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 2:49 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>mime-types maybe? >>> >>>Thomas Nilsen zei: >>>> I don't thinl it is a plugin issue, as the demo site for >Nagios works >>>> well when trying out the 3D statusmap. It's got to be >>>something with my >>>> Nagios setup. >>>> >>>>>-----Original Message----- >>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>To: Thomas Nilsen; Pawel Wojnicki; >nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>the trick >>>>> >>>>>-----Original Message----- >>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>This is the same issue as I did a post on earlier this week. >>>>>So far I've not >>>>>been able to solve it... >>>>> >>>>>>-----Original Message----- >>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>To: nagios-users at lists.sourceforge.net >>>>>>Subject: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>want to >>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>When I select "open", it's not accessible. >>>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>>suggestions? >>>>>> >>>>>>Pawel >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>>DISCLAIMER: >>>>>This message contains information that may be privileged or >>>>>confidential and >>>>>is the property of the Roxar Group. It is intended only for >>>>>the person to >>>>>whom it is addressed. If you are not the intended recipient, >>>>>you are not >>>>>authorised to read, print, retain, copy, disseminate, >>>>>distribute, or use >>>>>this message or any part thereof. If you receive this >>>message in error, >>>>>please notify the sender immediately and delete all copies of >>>>>this message. >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at cerbernet.co.uk Fri Feb 7 15:56:34 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 7 Feb 2003 14:56:34 -0000 Subject: cgi help on Nagios 1.0 In-Reply-To: <964413781.20030207061552@gat.com> References: <964413781.20030207061552@gat.com> Message-ID: <010401c2ceb9$1ce3adb0$f81fc3c1@TONYS> You do a #pwd in the directory that the cgi's are in and that says "/usr/local/nagios/cgi" Your apache config aliases /nagios/cgi-bin/ to /usr/local/nagios/sbin/, but your cgi's are in /usr/local/nagios/cgi. Think perhaps you should rename /usr/local/nagios/cgi to /usr/local/nagios/sbin/. Or change the alias in the apache conf file. Tony > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of jonejr > Sent: 07 February 2003 14:16 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] cgi help on Nagios 1.0 > > Hello nagios-users, > > I can't, for the life of me, get anything beyond the Home and > Docuementation buttons to work. > http://MyFQDN/nagios/ gives the interface. > Redhat 2.1 AS (uname -a output -->Linux p082207 2.4.9-e.3 #1 Fri May 3 17:02:43 > EDT 2002 i686 unknown > > > I have run the -v option to test the CFGs. > ps -ef | grep nagios shows it running. > I did a stop, start, and a restart. > I have an .htaccess file in /usr/local/nagios/etc and ../html but it > does not prompt for user authentication. > > I have NOT rebooted this server. I HAVE done a /etc/rc.d/init.d/httpd restart several > times. > > I have pages and pages of printouts. :( No help > I have 2 PDFs also, no help. > > It would seem that I have some cgi-bin issues. > The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. > Apache/1.3.23 Server at MyFQDN Port 80 > > And yet... > # ll tac.cgi > -rwxr-xr-x 1 nagios nagios 415779 Feb 6 06:40 tac.cgi > # pwd > /usr/local/nagios/cgi > > from my httpd.conf file... > ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > > > So close I can taste it....Please advise. > > -- > John R. Jones > > Oracle and Citrix Administrator > General Atomics, Aeronautical Systems, Inc. > http://www.gat.com/asi/home.html > PGP Fingerprint= > 1A6C 6CFA 0064 52D8 B98C 5A72 8783 5845 > > 2/7/2003 > 5:55 AM > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jonejr at gat.com Fri Feb 7 15:58:25 2003 From: jonejr at gat.com (jonejr) Date: Fri, 07 Feb 2003 06:58:25 -0800 Subject: cgi help on Nagios 1.0 In-Reply-To: References: Message-ID: <1606966468.20030207065825@gat.com> Hello, Friday, February 7, 2003, 6:35:34 AM, Thomas Nilson wrote: > Remove the .htaccess file from etc/ and html/ and move it to the sbin/ directory. That should give you access. No change... Your time in this matter is greatly appreciated. -- John R. Jones Oracle and Citrix Administrator General Atomics, Aeronautical Systems, Inc. http://www.gat.com/asi/home.html ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Fri Feb 7 16:04:56 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 07 Feb 2003 16:04:56 +0100 Subject: workstations References: Message-ID: <3E43CB18.D1E414A4@gcc.dhl.com> I imagine you don't have a large environment then? And if you do (let's say 500+ users), how do you add all this data into Nagios? An interesting thread. "Potter, G M (Greg)" wrote: > > We watch our workstations. It is helpful to know if your users > are having a problem before you get the call. Often I can be in the > office of a client with a down workstation and fix the problem before > they know they have one. That improves PR and customer satisfaction. > > Greg > > > -----Original Message----- > > From: Don Schultz [mailto:don_schultz at panvera.com] > > Sent: Thursday, February 06, 2003 5:39 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] workstations > > > > > > Are any of you checking workstations? Just asking for fun to see if > > anyone is. > > Thanks, > > > > -- > > Don Schultz | Panvera Corporation > > Unix Administrator | 501 Charmany Drive > > ph: 608.204.5060 | Madison, WI 53719 > > fax: 608.204.5061 | > > ------------------------------------------ > > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > > F8 75 25 B9 04 AF 67 A3 > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 16:04:41 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 16:04:41 +0100 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <1044630282.1070.35.camel@ntb00817> Hi, i using debian woody 3.0r1 and compiled nagios from the source. Nagios is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. nagios.cfg settings: check_external_commands=1 command_check_interval=-1 command_file=/opt/nagios/var/rw/nagios.cmd I setup the nagios.cmd file how it be descripted in the commandfile.html /usr/sbin/groupadd nagiocmd /usr/sbin/usermod -G nagiocmd nagios /usr/sbin/usermod -G nagiocmd nobody mkdir /opt/nagios/var/rw chown nagios.nagiocmd /opt/nagios/var/rw chmod u+rwx /opt/nagios/var/rw chmod g+rw /opt/nagios/var/rw chmod g+s /opt/nagios/var/rw The ls -l /opt/nagioss/var/ looks like drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw cgi.cfg settings: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin I'am logged in as nagiosadmin and when i try to start a "Schedule an immediate check of all services on this host" from the Host Command's i get this error back after i commit the command. Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Greetings Armin -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Fri Feb 7 16:25:28 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 7 Feb 2003 09:25:28 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> Assuming that your apache installation runs as group 'nobody', what do the permissions on the directories above /opt/nagios/var/rw look like? If /opt/nagios were chmod 600, then the web server would not be able to read rw, etc... You also might want to try restarting your web server just in case. -- Marc > -----Original Message----- > From: Armin Irger [mailto:irger at fh-rosenheim.de] > Sent: Friday, February 07, 2003 9:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > no help > > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > nagios.cfg settings: > > check_external_commands=1 > command_check_interval=-1 > command_file=/opt/nagios/var/rw/nagios.cmd > > I setup the nagios.cmd file how it be descripted in the commandfile.html > /usr/sbin/groupadd nagiocmd > /usr/sbin/usermod -G nagiocmd nagios > /usr/sbin/usermod -G nagiocmd nobody > mkdir /opt/nagios/var/rw > chown nagios.nagiocmd /opt/nagios/var/rw > chmod u+rwx /opt/nagios/var/rw > chmod g+rw /opt/nagios/var/rw > chmod g+s /opt/nagios/var/rw > > The ls -l /opt/nagioss/var/ looks like > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > cgi.cfg settings: > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. > > > Greetings > Armin > > > > > > > > -- > Wundere dich nicht da? du nicht ankommst, > wenn du nicht wei?t wo du hin willst. > > ==================================================================== > Fachhochschule Rosenheim > Armin Irger > Hochschulstr. 1 > D-83024 Rosenheim > Tel. +498031 805-532 > Fax. +498041 805-519 > ==================================================================== > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stevox2000 at yahoo.com Fri Feb 7 16:54:28 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Fri, 7 Feb 2003 16:54:28 +0100 (CET) Subject: Services and hostgroups Message-ID: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Hi, Is it possible to associate a hostgroup to a group of services ? Let me explain briefly what i'm looking for : I have 3 hostsgroups with many services for each hostgroup. I want to add a host in one of the hostgroup and automatically have the services associated with it. I don't want to add services for this new host. Can Nagios do this ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mmcclure at pneservices.com Fri Feb 7 16:52:38 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 7 Feb 2003 09:52:38 -0600 (CST) Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <1044630282.1070.35.camel@ntb00817> References: <1044630282.1070.35.camel@ntb00817> Message-ID: <2736.192.168.1.9.1044633158.squirrel@xyzzy.homeip.net> Is your web server chroot'ed as well? If so, where? Is the nagios.cmd file accessible from the web server user and in the chroot jail? > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > nagios.cfg settings: > > check_external_commands=1 > command_check_interval=-1 > command_file=/opt/nagios/var/rw/nagios.cmd > > I setup the nagios.cmd file how it be descripted in the commandfile.html > /usr/sbin/groupadd nagiocmd > /usr/sbin/usermod -G nagiocmd nagios > /usr/sbin/usermod -G nagiocmd nobody > mkdir /opt/nagios/var/rw > chown nagios.nagiocmd /opt/nagios/var/rw > chmod u+rwx /opt/nagios/var/rw > chmod g+rw /opt/nagios/var/rw > chmod g+s /opt/nagios/var/rw > > The ls -l /opt/nagioss/var/ looks like > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > cgi.cfg settings: > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. > > > Greetings > Armin > > > > > > > > -- > Wundere dich nicht da? du nicht ankommst, > wenn du nicht wei?t wo du hin willst. > > ===================================================================Fachhochschule > Rosenheim > Armin Irger > Hochschulstr. 1 > D-83024 Rosenheim > Tel. +498031 805-532 > Fax. +498041 805-519 > ================================================================------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Fri Feb 7 17:06:26 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 11:06:26 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help References: <1044630282.1070.35.camel@ntb00817> Message-ID: <005b01c2cec2$de18cde0$e112d287@gargantuan.com> I am receiving the exact same error while trying this on my FreeBSD server. I followed the FAQ instructions to the letter, and all permissions are just as they should be, and 'nobody' is in the 'nagiocmd' group. Still no joy... -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ----- Original Message ----- From: "Armin Irger" To: Sent: Friday, February 07, 2003 10:04 AM Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw no help Hi, i using debian woody 3.0r1 and compiled nagios from the source. Nagios is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. nagios.cfg settings: check_external_commands=1 command_check_interval=-1 command_file=/opt/nagios/var/rw/nagios.cmd I setup the nagios.cmd file how it be descripted in the commandfile.html /usr/sbin/groupadd nagiocmd /usr/sbin/usermod -G nagiocmd nagios /usr/sbin/usermod -G nagiocmd nobody mkdir /opt/nagios/var/rw chown nagios.nagiocmd /opt/nagios/var/rw chmod u+rwx /opt/nagios/var/rw chmod g+rw /opt/nagios/var/rw chmod g+s /opt/nagios/var/rw The ls -l /opt/nagioss/var/ looks like drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw cgi.cfg settings: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin I'am logged in as nagiosadmin and when i try to start a "Schedule an immediate check of all services on this host" from the Host Command's i get this error back after i commit the command. Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Greetings Armin -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dan at lanworksco.com Fri Feb 7 17:19:24 2003 From: dan at lanworksco.com (Dan Knoblauch) Date: Fri, 7 Feb 2003 09:19:24 -0700 Subject: Nagios reply notifications to acknowledge Message-ID: <1B523437EB2BA849BE6376636E03678701A614@knoblauchdc.dkconsulting.org> Hello all and good day! I have been looking for a mechanism that will allow me to 'reply' to nagios notifications via email with an acknowledgement. Often I am away from the office and I receive notifications on host/service outages on my cell phone. I have used another monitoring utility called "Big Brother" that had this capability. Outside of writing my own handler to do this, does anyone out there know if this is possible? I have scoured the documentation and the mailing lists and newsgroups and haven't seen even a small mention of this. Does this capability exist? You assistance is greatly appreciated. Dan. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Darren.Gamble at sjrb.ca Fri Feb 7 17:16:35 2003 From: Darren.Gamble at sjrb.ca (Darren.Gamble at sjrb.ca) Date: Fri, 07 Feb 2003 09:16:35 -0700 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <078EC26E265CD411BD9100508BDFFC861BCBB754@shawmail02> Good day, > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host > Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. I am not familiar with setting up nagios in a jailed environment, but wouldn't this mean nagios should be looking for the command file in /var/rw/nagios.cmd instead of /opt/nagios/var/rw/nagios.cmd ? HtH, ============================ Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios at cerbernet.co.uk Fri Feb 7 17:31:20 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 7 Feb 2003 16:31:20 -0000 Subject: Services and hostgroups In-Reply-To: <20030207155428.50874.qmail@web10901.mail.yahoo.com> References: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Message-ID: <01d801c2cec6$5ba12890$f81fc3c1@TONYS> If you use the template method for your config files.. define service{ hostgroup_name HOSTGROUP1,HOSTGROUP2,...,HOSTGROUPN service_description SOMESERVICE other service directives ... } Read the Time-Saving Tricks under Table of Contents > Object configuration file options > Template-based method > Time-Saving Tricks Tony > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Steve Dussaux > Sent: 07 February 2003 15:54 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Services and hostgroups > > Hi, > > Is it possible to associate a hostgroup to a group of services ? > Let me explain briefly what i'm looking for : > > I have 3 hostsgroups with many services for each hostgroup. > I want to add a host in one of the hostgroup and automatically have the services > associated with > it. > I don't want to add services for this new host. > > Can Nagios do this ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 17:28:50 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 17:28:50 +0100 Subject: SOLVED Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> Message-ID: <1044635335.668.16.camel@ntb00817> At the first time i changed the permissions by hand, but after a restart from nagios the problem appears because. 1. After the restart from nagios he creates the nagios.cmd like this. prw-rw---- 1 nagios nagios 0 Feb 7 17:11 nagios.cmd 2. The apache runs under nobody and if you follow the installation descriped on the "External Command File Permission" you add nobody to the nagiocmd group, and with the chown nagios.nagiocmd you give the rw-rights to the nagiocmd group. The apache can access the nagios/var/rw directory but he can't access the nagios.cmd, which is regenerated by a every restart of nagios, because nagios creates the nagios.cmd like above. 3. I make a chgrp nagios.nagios to the nagios/var/rw directory and added nobody back do the nagios group with usermod -G nagios nobody. 4. After every reboot nagios starts in the right way. ------ Armin On Fri, 2003-02-07 at 16:25, Marc Powell wrote: > Assuming that your apache installation runs as group 'nobody', what do > the permissions on the directories above /opt/nagios/var/rw look like? > If /opt/nagios were chmod 600, then the web server would not be able to > read rw, etc... You also might want to try restarting your web server > just in case. > > -- > Marc > > > -----Original Message----- > > From: Armin Irger [mailto:irger at fh-rosenheim.de] > > Sent: Friday, February 07, 2003 9:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > > no help > > > > Hi, > > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > > > nagios.cfg settings: > > > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/opt/nagios/var/rw/nagios.cmd > > > > I setup the nagios.cmd file how it be descripted in the commandfile.html > > /usr/sbin/groupadd nagiocmd > > /usr/sbin/usermod -G nagiocmd nagios > > /usr/sbin/usermod -G nagiocmd nobody > > mkdir /opt/nagios/var/rw > > chown nagios.nagiocmd /opt/nagios/var/rw > > chmod u+rwx /opt/nagios/var/rw > > chmod g+rw /opt/nagios/var/rw > > chmod g+s /opt/nagios/var/rw > > > > The ls -l /opt/nagioss/var/ looks like > > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > > > > cgi.cfg settings: > > authorized_for_system_information=nagiosadmin > > authorized_for_configuration_information=nagiosadmin > > authorized_for_system_commands=nagiosadmin > > authorized_for_all_hosts=nagiosadmin,guest > > authorized_for_all_service_commands=nagiosadmin > > authorized_for_all_host_commands=nagiosadmin > > > > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > > immediate check of all services on this host" from the Host Command's i > > get this error back after i commit the command. > > > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > > > The external command file may be missing, Nagios may not be running, > > and/or Nagios may not be checking external commands. > > > > An error occurred while attempting to commit your command for > > processing. > > > > > > Greetings > > Armin > > > > > > > > > > > > > > > > -- > > Wundere dich nicht da? du nicht ankommst, > > wenn du nicht wei?t wo du hin willst. > > > > ==================================================================== > > Fachhochschule Rosenheim > > Armin Irger > > Hochschulstr. 1 > > D-83024 Rosenheim > > Tel. +498031 805-532 > > Fax. +498041 805-519 > > ==================================================================== > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 17:31:30 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 17:31:30 +0100 Subject: Thanks for your advices ! Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> Message-ID: <1044635490.668.21.camel@ntb00817> -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Fri Feb 7 17:33:02 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 11:33:02 -0500 Subject: Services and hostgroups References: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Message-ID: <007e01c2cec6$959ac5b0$e112d287@gargantuan.com> ----- Original Message ----- From: "Steve Dussaux" To: Sent: Friday, February 07, 2003 10:54 AM Subject: [Nagios-users] Services and hostgroups > Hi, > > Is it possible to associate a hostgroup to a group of services ? > Let me explain briefly what i'm looking for : > > I have 3 hostsgroups with many services for each hostgroup. > I want to add a host in one of the hostgroup and automatically have the services associated with > it. > I don't want to add services for this new host. > > Can Nagios do this ? > > Steve Yes, in the documentation, under advanced stuff, in the time-saving section... define service{ hostgroup_name HOSTGROUP1,HOSTGROUP2,...,HOSTGROUPN service_description SOMESERVICE other service directives ... } so, it seems that once you have the service set up to run on all hosts in a particular group, all you have to do from that point it add the hosts to the respective group. Please correct me if I am wrong. Thanks. -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GWCOOK at mactec.com Fri Feb 7 17:32:15 2003 From: GWCOOK at mactec.com (Cook, Garry) Date: Fri, 7 Feb 2003 09:32:15 -0700 Subject: Fwd: Re: Monitoring HP switches Message-ID: When I run this check I receive the following error message: awk: cmd. line:4: if ($1 == 2) {printf("Information - /dev/null | awk -F~ '{ if ($1 == 1) {print "OK";exit 0;} if ($1 == 2) {printf("Information - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 3) {printf("Non-critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 4) {printf("Critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } print "Unknown"; exit -1; }' ------------8<----------------------- Its based on a file that resides on the webserver of the switch with the status in it. Pawel Wojnicki zei: > Hey sure - I'd appreciate any help and info > > Pawel > >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >>Subject: Re: [Nagios-users] Monitoring HP switches >>From: "Wim Fournier" >>To: >>Importance: Normal >>Reply-To: wim at hsmade.com >>X-Mailer: SquirrelMail (version 1.2.5) >>X-Spam-Status: No, hits=-3.1 required=5.0 >>tests=IN_REP_TO,MAY_BE_FORGED version=2.20 >>X-Spam-Level: >> >>Pawel Wojnicki zei: >> > Does anyone here have any experience in monitoring HP ethernet >> > switches? I figure you have to use check_snmp, but couldn't find >> > anything further in the faq or fm. >> >>even better, i hacked myself through the web management page and found >>a way to check for the status lamp in the left upper corner and create >>a link in the status field to the page with the error (if existant) >> >>contact me if you want it, it should be also somewhere on sourceforge >>as patch.. but can't remember where >> > >> > Pawel >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 >> > See! http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From johnmc at johnmc.org Fri Feb 7 17:41:40 2003 From: johnmc at johnmc.org (John McDonnell) Date: Fri, 7 Feb 2003 08:41:40 -0800 (PST) Subject: Linux.gif bind into the cgi In-Reply-To: <001c01c2ce9a$69c50440$0300a8c0@workstation> References: <001c01c2ce9a$69c50440$0300a8c0@workstation> Message-ID: On the 7th day of February, Marcel Strerath said to me: > how can I bind my Linux40.gif into the Status Map? I have added in the > cgi.cfg follow line: > hostextinfo[srv1]=;linux40.gif;linux40.gif;linux40.gd2;linux40.gif;; . As I said last week on this very list: >From the FAQ[1] specifically about using cgi.cfg for extended info: Note that although this is call the "default" method for historical reasons, the CGIs default to using the template-based method (described below) unless you specifically compile them with this method. Look here instead: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html I've done this and it works well, apart from the fact that I can't get any of my transparent .gd2 images to show up :( The ones supplied on the Nagios site show up just fine, my custom ones won't. I've tried generating them with several versions of the GD lib but to no avail. [1] http://nagios.sourceforge.net/docs/1_0/configextinfo.html johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 17:49:51 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 17:49:51 +0100 Subject: Services and hostgroups In-Reply-To: <20030207155428.50874.qmail@web10901.mail.yahoo.com> References: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Message-ID: <1044636592.895.10.camel@ntb00817> Hmmm. You have so hostgroups like this. define hostgroup{ hostgroup_name Servers_Novell alias Servers Novell contact_groups novell-admins members fh_route.fh-rosenheim.de,kaputnix.inf.fh-rosenheim.de } And have your service defined like this. define service{ use generic-service ; Name hostgroup_name Servers_Novell, host_group-1, ... service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } You associate the service to the hostgroup. Now you can add hosts only to the hostgroup without special adding to the services. I'am not sure that i understand your problem "3 hostsgroups with many services for each hostgroup" ? ------- - Armin On Fri, 2003-02-07 at 16:54, Steve Dussaux wrote: > Hi, > > Is it possible to associate a hostgroup to a group of services ? > Let me explain briefly what i'm looking for : > > I have 3 hostsgroups with many services for each hostgroup. > I want to add a host in one of the hostgroup and automatically have the services associated with > it. > I don't want to add services for this new host. > > Can Nagios do this ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GWCOOK at mactec.com Fri Feb 7 18:06:06 2003 From: GWCOOK at mactec.com (Cook, Garry) Date: Fri, 7 Feb 2003 10:06:06 -0700 Subject: SOLVED RE: Fwd: Re: Monitoring HP switches Message-ID: My mistake. When I cut/pasted the code from your original email some of the lines were wrapped. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Cook, Garry Sent: Friday, February 07, 2003 9:32 AM To: 'wim at hsmade.com'; wojnicki at asw.waw.pl Cc: nagios-users at lists.sourceforge.net Subject: RE: Fwd: Re: [Nagios-users] Monitoring HP switches When I run this check I receive the following error message: awk: cmd. line:4: if ($1 == 2) {printf("Information - /dev/null | awk -F~ '{ if ($1 == 1) {print "OK";exit 0;} if ($1 == 2) {printf("Information - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 3) {printf("Non-critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 4) {printf("Critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } print "Unknown"; exit -1; }' ------------8<----------------------- Its based on a file that resides on the webserver of the switch with the status in it. Pawel Wojnicki zei: > Hey sure - I'd appreciate any help and info > > Pawel > >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >>Subject: Re: [Nagios-users] Monitoring HP switches >>From: "Wim Fournier" >>To: >>Importance: Normal >>Reply-To: wim at hsmade.com >>X-Mailer: SquirrelMail (version 1.2.5) >>X-Spam-Status: No, hits=-3.1 required=5.0 >>tests=IN_REP_TO,MAY_BE_FORGED version=2.20 >>X-Spam-Level: >> >>Pawel Wojnicki zei: >> > Does anyone here have any experience in monitoring HP ethernet >> > switches? I figure you have to use check_snmp, but couldn't find >> > anything further in the faq or fm. >> >>even better, i hacked myself through the web management page and found >>a way to check for the status lamp in the left upper corner and create >>a link in the status field to the page with the error (if existant) >> >>contact me if you want it, it should be also somewhere on sourceforge >>as patch.. but can't remember where >> > >> > Pawel >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 >> > See! http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Fri Feb 7 18:42:47 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 12:42:47 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help References: <1044630282.1070.35.camel@ntb00817> <005b01c2cec2$de18cde0$e112d287@gargantuan.com> Message-ID: <009901c2ced0$53c0d120$e112d287@gargantuan.com> more information... # ls /usr/local/nagios/var/rw total 2 drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| # grep nagiocmd /etc/group nagiocmd:*:55554:nagios,nobody Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file was created by the Nagios process with nagios:nagios ownership, but mine isn't created that way. As you can see above, my nagios.cmd file is created with nagios:nagiocmd ownership. You can also see that 'nobody' is part of the 'nagiocmd' group, which _should_ give 'nobody' rw access to the nagios.cmd file. Even so, I still receive that error when trying to execute a command from the browser. BAH! In addition, in the 'SOLVED' reply, it looks like the user 'nobody' was added to the 'nagios' group, effectively eliminating the need for the 'nagiocmd' group. Isn't this insecure, putting the 'nobody' user in the 'nagios' group, effectively giving that user permission to everything that Nagios has permission to? I was under the impression that the whole purpose of creating the new group was to limit the access of the 'nobody' user. What am I missing? Thanks! -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ----- Original Message ----- From: "Michael W. Oliver" To: Sent: Friday, February 07, 2003 11:06 AM Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw no help I am receiving the exact same error while trying this on my FreeBSD server. I followed the FAQ instructions to the letter, and all permissions are just as they should be, and 'nobody' is in the 'nagiocmd' group. Still no joy... -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ----- Original Message ----- From: "Armin Irger" To: Sent: Friday, February 07, 2003 10:04 AM Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw no help Hi, i using debian woody 3.0r1 and compiled nagios from the source. Nagios is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. nagios.cfg settings: check_external_commands=1 command_check_interval=-1 command_file=/opt/nagios/var/rw/nagios.cmd I setup the nagios.cmd file how it be descripted in the commandfile.html /usr/sbin/groupadd nagiocmd /usr/sbin/usermod -G nagiocmd nagios /usr/sbin/usermod -G nagiocmd nobody mkdir /opt/nagios/var/rw chown nagios.nagiocmd /opt/nagios/var/rw chmod u+rwx /opt/nagios/var/rw chmod g+rw /opt/nagios/var/rw chmod g+s /opt/nagios/var/rw The ls -l /opt/nagioss/var/ looks like drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw cgi.cfg settings: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin I'am logged in as nagiosadmin and when i try to start a "Schedule an immediate check of all services on this host" from the Host Command's i get this error back after i commit the command. Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Greetings Armin -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Fri Feb 7 18:54:27 2003 From: rich at vel.net (Richard Gross) Date: Fri, 7 Feb 2003 09:54:27 -0800 Subject: SOLVED Schedule An Immediate Check - I have rtfmand stfw no help Message-ID: <52183F243CF19E44A1166F250311C34B5B2BE7@cheddarcheese.vel.net> Awsome job Armin, that was bugging me too and you solved it! richg -----Original Message----- From: Armin Irger [mailto:irger at fh-rosenheim.de] Sent: Friday, February 07, 2003 8:29 AM To: Marc Powell Cc: nagios-users at lists.sourceforge.net; nagios at nagios.org Subject: SOLVED [Nagios-users] Schedule An Immediate Check - I have rtfmand stfw no help At the first time i changed the permissions by hand, but after a restart from nagios the problem appears because. 1. After the restart from nagios he creates the nagios.cmd like this. prw-rw---- 1 nagios nagios 0 Feb 7 17:11 nagios.cmd 2. The apache runs under nobody and if you follow the installation descriped on the "External Command File Permission" you add nobody to the nagiocmd group, and with the chown nagios.nagiocmd you give the rw-rights to the nagiocmd group. The apache can access the nagios/var/rw directory but he can't access the nagios.cmd, which is regenerated by a every restart of nagios, because nagios creates the nagios.cmd like above. 3. I make a chgrp nagios.nagios to the nagios/var/rw directory and added nobody back do the nagios group with usermod -G nagios nobody. 4. After every reboot nagios starts in the right way. ------ Armin On Fri, 2003-02-07 at 16:25, Marc Powell wrote: > Assuming that your apache installation runs as group 'nobody', what do > the permissions on the directories above /opt/nagios/var/rw look like? > If /opt/nagios were chmod 600, then the web server would not be able to > read rw, etc... You also might want to try restarting your web server > just in case. > > -- > Marc > > > -----Original Message----- > > From: Armin Irger [mailto:irger at fh-rosenheim.de] > > Sent: Friday, February 07, 2003 9:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > > no help > > > > Hi, > > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > > > nagios.cfg settings: > > > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/opt/nagios/var/rw/nagios.cmd > > > > I setup the nagios.cmd file how it be descripted in the commandfile.html > > /usr/sbin/groupadd nagiocmd > > /usr/sbin/usermod -G nagiocmd nagios > > /usr/sbin/usermod -G nagiocmd nobody > > mkdir /opt/nagios/var/rw > > chown nagios.nagiocmd /opt/nagios/var/rw > > chmod u+rwx /opt/nagios/var/rw > > chmod g+rw /opt/nagios/var/rw > > chmod g+s /opt/nagios/var/rw > > > > The ls -l /opt/nagioss/var/ looks like > > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > > > > cgi.cfg settings: > > authorized_for_system_information=nagiosadmin > > authorized_for_configuration_information=nagiosadmin > > authorized_for_system_commands=nagiosadmin > > authorized_for_all_hosts=nagiosadmin,guest > > authorized_for_all_service_commands=nagiosadmin > > authorized_for_all_host_commands=nagiosadmin > > > > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > > immediate check of all services on this host" from the Host Command's i > > get this error back after i commit the command. > > > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > > > The external command file may be missing, Nagios may not be running, > > and/or Nagios may not be checking external commands. > > > > An error occurred while attempting to commit your command for > > processing. > > > > > > Greetings > > Armin > > > > > > > > > > > > > > > > -- > > Wundere dich nicht da? du nicht ankommst, > > wenn du nicht wei?t wo du hin willst. > > > > ==================================================================== > > Fachhochschule Rosenheim > > Armin Irger > > Hochschulstr. 1 > > D-83024 Rosenheim > > Tel. +498031 805-532 > > Fax. +498041 805-519 > > ==================================================================== > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 7 19:00:10 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 12:00:10 -0600 Subject: Feature request: alias for an service Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E145A@PKDWB03C.ad.sprint.com> Why not use serviceextinfo.cfg and the notes_url feature for this? jc > -----Original Message----- > From: Fredrik W?nglund [mailto:Fredrik.Wanglund at datavis.se] > Sent: Friday, February 07, 2003 12:33 AM > To: nagios > Subject: [Nagios-users] Feature request: alias for an service > > > > Should it be possible to allow the 'alias' keyword in a > service-definition and to show it on the service-information page? > I have hosts where different people are responible for > different services. It would be great if I could see the name > of that persion when I looked at a service... > > > > /FredrikW > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 19:12:01 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 12:12:01 -0600 Subject: Linux.gif bind into the cgi Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E145B@PKDWB03C.ad.sprint.com> For starters, you can rewrite your configuration to use the template-based method: http://nagios.sourceforge.net/docs/1_0/xodtemplate.html jc -----Original Message----- From: Marcel Strerath [mailto:strerath at 4all-networks.de] Sent: Friday, February 07, 2003 5:17 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Linux.gif bind into the cgi Hi, how can I bind my Linux40.gif into the Status Map? I have added in the cgi.cfg follow line: hostextinfo[srv1]=;linux40.gif;linux40.gif;linux40.gd2;linux40.gif;; . What I must do too? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 19:58:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 12:58:39 -0600 Subject: SOLVED Schedule An Immediate Check - I have r tfmand stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E145F@PKDWB03C.ad.sprint.com> That's great that it worked for Armin, but it's not the prescribed approach: http://nagios.sourceforge.net/docs/1_0/commandfile.html jc -----Original Message----- From: Richard Gross [mailto:rich at vel.net] Sent: Friday, February 07, 2003 11:54 AM Cc: nagios-users at lists.sourceforge.net Subject: RE: SOLVED [Nagios-users] Schedule An Immediate Check - I have rtfmand stfw no help Awsome job Armin, that was bugging me too and you solved it! richg -----Original Message----- From: Armin Irger [mailto:irger at fh-rosenheim.de] Sent: Friday, February 07, 2003 8:29 AM To: Marc Powell Cc: nagios-users at lists.sourceforge.net; nagios at nagios.org Subject: SOLVED [Nagios-users] Schedule An Immediate Check - I have rtfmand stfw no help At the first time i changed the permissions by hand, but after a restart from nagios the problem appears because. 1. After the restart from nagios he creates the nagios.cmd like this. prw-rw---- 1 nagios nagios 0 Feb 7 17:11 nagios.cmd 2. The apache runs under nobody and if you follow the installation descriped on the "External Command File Permission" you add nobody to the nagiocmd group, and with the chown nagios.nagiocmd you give the rw-rights to the nagiocmd group. The apache can access the nagios/var/rw directory but he can't access the nagios.cmd, which is regenerated by a every restart of nagios, because nagios creates the nagios.cmd like above. 3. I make a chgrp nagios.nagios to the nagios/var/rw directory and added nobody back do the nagios group with usermod -G nagios nobody. 4. After every reboot nagios starts in the right way. ------ Armin On Fri, 2003-02-07 at 16:25, Marc Powell wrote: > Assuming that your apache installation runs as group 'nobody', what do > the permissions on the directories above /opt/nagios/var/rw look like? > If /opt/nagios were chmod 600, then the web server would not be able to > read rw, etc... You also might want to try restarting your web server > just in case. > > -- > Marc > > > -----Original Message----- > > From: Armin Irger [mailto:irger at fh-rosenheim.de] > > Sent: Friday, February 07, 2003 9:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > > no help > > > > Hi, > > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > > > nagios.cfg settings: > > > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/opt/nagios/var/rw/nagios.cmd > > > > I setup the nagios.cmd file how it be descripted in the commandfile.html > > /usr/sbin/groupadd nagiocmd > > /usr/sbin/usermod -G nagiocmd nagios > > /usr/sbin/usermod -G nagiocmd nobody > > mkdir /opt/nagios/var/rw > > chown nagios.nagiocmd /opt/nagios/var/rw > > chmod u+rwx /opt/nagios/var/rw > > chmod g+rw /opt/nagios/var/rw > > chmod g+s /opt/nagios/var/rw > > > > The ls -l /opt/nagioss/var/ looks like > > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > > > > cgi.cfg settings: > > authorized_for_system_information=nagiosadmin > > authorized_for_configuration_information=nagiosadmin > > authorized_for_system_commands=nagiosadmin > > authorized_for_all_hosts=nagiosadmin,guest > > authorized_for_all_service_commands=nagiosadmin > > authorized_for_all_host_commands=nagiosadmin > > > > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > > immediate check of all services on this host" from the Host Command's i > > get this error back after i commit the command. > > > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > > > The external command file may be missing, Nagios may not be running, > > and/or Nagios may not be checking external commands. > > > > An error occurred while attempting to commit your command for > > processing. > > > > > > Greetings > > Armin > > > > > > > > > > > > > > > > -- > > Wundere dich nicht da? du nicht ankommst, > > wenn du nicht wei?t wo du hin willst. > > > > ==================================================================== > > Fachhochschule Rosenheim > > Armin Irger > > Hochschulstr. 1 > > D-83024 Rosenheim > > Tel. +498031 805-532 > > Fax. +498041 805-519 > > ==================================================================== > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 20:22:04 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:22:04 -0600 Subject: 3D statusmap Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1461@PKDWB03C.ad.sprint.com> That's what I think the problem is (depending on what version of Nagios you're running). What do you have default_statusmap_layout set for in cgi.cfg? If you have it set for 0, change it to one of the other values, restart nagios and see if that makes a difference. jc -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Friday, February 07, 2003 8:40 AM To: Thomas.Nilsen at roxar.com; wim at hsmade.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] 3D statusmap I seem to remember some discussion of periods in names being a problem. Is that applicable? You might find something in the archives to confirm that. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Thomas Nilsen To: wim at hsmade.com CC: nagios-users at lists.sourceforge.net Sent: Fri Feb 07 08:21:15 2003 Subject: RE: [Nagios-users] 3D statusmap That's my "AI" hands trying to clever. :-) The comma is not in /etc/mime.types So this has to be for some other reason.... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 3:19 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >Thomas Nilsen zei: >> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >its supposed to be "model/vrml wrl vrml" for apache. dont >know if you put >that comma there yourself, or that its normal for windows or something. > > >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 2:49 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>mime-types maybe? >>> >>>Thomas Nilsen zei: >>>> I don't thinl it is a plugin issue, as the demo site for >Nagios works >>>> well when trying out the 3D statusmap. It's got to be >>>something with my >>>> Nagios setup. >>>> >>>>>-----Original Message----- >>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>To: Thomas Nilsen; Pawel Wojnicki; >nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>the trick >>>>> >>>>>-----Original Message----- >>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>This is the same issue as I did a post on earlier this week. >>>>>So far I've not >>>>>been able to solve it... >>>>> >>>>>>-----Original Message----- >>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>To: nagios-users at lists.sourceforge.net >>>>>>Subject: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>want to >>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>When I select "open", it's not accessible. >>>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>>suggestions? >>>>>> >>>>>>Pawel >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>>DISCLAIMER: >>>>>This message contains information that may be privileged or >>>>>confidential and >>>>>is the property of the Roxar Group. It is intended only for >>>>>the person to >>>>>whom it is addressed. If you are not the intended recipient, >>>>>you are not >>>>>authorised to read, print, retain, copy, disseminate, >>>>>distribute, or use >>>>>this message or any part thereof. If you receive this >>>message in error, >>>>>please notify the sender immediately and delete all copies of >>>>>this message. >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Fri Feb 7 20:31:33 2003 From: rich at vel.net (Richard Gross) Date: Fri, 7 Feb 2003 11:31:33 -0800 Subject: website transaction monitor / simple web form Message-ID: <52183F243CF19E44A1166F250311C34B047771@cheddarcheese.vel.net> Wondering what can be done to use Nagios to check a simple webform? Maybe some modifiction of the wget that checked the hp switches? The opening page has:

Welcome to CommuniGate Pro,
the test.net Messaging Server!

Registered Users

Login Name Password

and would like to supply a username and password to this form, then check for a text string INBOX would be all that's required. I did try the command: wget -r --http-user=chris at test.net --http-passwd=chris06 http://webmail.test.net but only got back the index page... Not really sure how to proceed from here. richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 7 20:31:21 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:31:21 -0600 Subject: Nagios reply notifications to acknowledge Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1463@PKDWB03C.ad.sprint.com> Off the top of my head, I'd say you could write something which uses: - /etc/aliases (redirecting mail destined for 'nagios' and piping it to a script) - procmail (optional) - a script that you write - awareness of how to pipe commands into nagios.cmd, which I believe are available in the FAQ over on www.nagios.org. HTH. jc > -----Original Message----- > From: Dan Knoblauch [mailto:dan at lanworksco.com] > Sent: Friday, February 07, 2003 10:19 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios reply notifications to acknowledge > > > Hello all and good day! > > > > I have been looking for a mechanism that will allow me to 'reply' to > nagios notifications via email with an acknowledgement. > Often I am away > from the office and I receive notifications on host/service outages on > my cell phone. I have used another monitoring utility called "Big > Brother" that had this capability. Outside of writing my own > handler to > do this, does anyone out there know if this is possible? I > have scoured > the documentation and the mailing lists and newsgroups and > haven't seen > even a small mention of this. Does this capability exist? > > > > You assistance is greatly appreciated. > > > > Dan. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 20:29:12 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:29:12 -0600 Subject: workstations Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1462@PKDWB03C.ad.sprint.com> I did a major push of new service definitions to 50+ hosts last night. We're now monitoring 127 hosts, 1777 services. And a *lot* of servicedependencies. For starters, I'm using the cfg_dir directive in nagios.cfg. Then for each host out there, I have a file (eg, host fizzgig would have the filename fizzgig.cfg). Within that file exists the host definition and all the service definitions. I created a template file containing the services I wanted to add to all these hosts, but with "XXXXXXXX" instead of any particular hostname. Then with a bit of some shell scripting, using a 'for' loop and 'sed', I was able to massage then append to all the files I was interested in. This definitely cut down on the keystrokes and the 'oops' factor. Not sure if this was what you were asking.... jc > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Friday, February 07, 2003 9:05 AM > To: Potter G M (Greg) > Cc: Don Schultz; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] workstations > > > I imagine you don't have a large environment then? And if you do > (let's say 500+ users), how do you add all this data into Nagios? > > An interesting thread. > > "Potter, G M (Greg)" wrote: > > > > We watch our workstations. It is helpful to know if your users > > are having a problem before you get the call. Often I can be in the > > office of a client with a down workstation and fix the > problem before > > they know they have one. That improves PR and customer > satisfaction. > > > > Greg > > > > > -----Original Message----- > > > From: Don Schultz [mailto:don_schultz at panvera.com] > > > Sent: Thursday, February 06, 2003 5:39 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] workstations > > > > > > > > > Are any of you checking workstations? Just asking for fun > to see if > > > anyone is. > > > Thanks, > > > > > > -- > > > Don Schultz | Panvera Corporation > > > Unix Administrator | 501 Charmany Drive > > > ph: 608.204.5060 | Madison, WI 53719 > > > fax: 608.204.5061 | > > > ------------------------------------------ > > > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > > > F8 75 25 B9 04 AF 67 A3 > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Fri Feb 7 07:15:34 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Fri, 7 Feb 2003 00:15:34 -0600 Subject: Fwd: Distributed checking In-Reply-To: <3E428429.8090302@anvil.org> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> <3E428429.8090302@anvil.org> Message-ID: <20030207061534.GA16388@cannonfodder.org> I am still having this issue. I want it to perform the freshness check because I need to know if it is not getting the results from the passive server, so I set freshness threshold to 500, just to get it out there. Now, my passive server sends the results, the primary shows green, then goes red and in the log on the primary server I can see where it is trying to test the server itself. my check interval on teh passive server is set to 1. Any other suggestions? Does anyone have this working successfully? Which version of nagios? What is your freshness interval setting? I am an the edge of getting this implemented as our new production monitoring system, I just have to get this issue ironed out. on Thu Feb 06 Andrew Meredith spoke forth with the blessed manuscript > This is the same problem I described under: > Subject: Distributed Checks > Date: 2003-02-04 1512 > In that mail I confirm that if you were to do this, then the server > would indeed stop performing active checks .. which is what I want, as > the central server cannot successfully perform the checks from it's IP > address. > However, it doesn't then do anything else either. > I was expecting it to mark the service as unknown or down or somethng, > it just keeps on displaying the last service status that it received. > Andy M > Atul Gosain wrote: > >Hi > > > >The problem is simple. > >U have check_freshness variable set to 1. The effect of this is that > >whenever the passive service results does not reach nagios for some time > >(freshness_threshold ), it considers the result as stale and starts > >checking actively for that service. If u want that active checks are not > >executed when passive results are stale, then disable check_freshness > >variable. > >Just tell me in case ur problem is solved. > > > >Thanks > >Atul > > > >Jasmine wrote: > > > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: SHA1 > >> > >>HI all.. i m still having this problem sorry. i thought i made a > >>config mistake, but that does not solve the problem. > >> > >> > >>>>just a note that I am having about the same problem as you. Anyone has > >>>>any ideas? > >>>> > >>>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > >>>> > >>>> > >>>>>o.k. I am using the distributed method with passive checks to monitor > >>>>>some hosts I have behind a firewall that I dont want to punch holes > >>>>>in. > >>>>>For some reason my central nagios server keeps running active > >>>>>checks on > >>>>>the hosts even though I have that disabled on a per service instance. > >>>>>So I end up with the service up when it gets the info via the passive > >>>>>tests then it goes critical when the central server tries to check it > >>>>>with an active test. Here is the service config from the central > >>>>>server: > >>>>> > >>>>>define service{ > >>>>> host_name pinky > >>>>> service_description SSH > >>>>> check_command check_ssh > >>>>> max_check_attempts 2 > >>>>> normal_check_interval 5 > >>>>> retry_check_interval 5 > >>>>> passive_checks_enabled 1 > >>>>> active_checks_enabled 0 > >>>>> check_period 24x7 > >>>>> flap_detection_enabled 1 > >>>>> process_perf_data 1 > >>>>> retain_status_information 1 > >>>>> retain_nonstatus_information 1 > >>>>> notification_interval 1 > >>>>> notification_period 24x7 > >>>>> notification_options w,u,c,r > >>>>> notifications_enabled 1 > >>>>> check_freshness 1 > >>>>> freshness_threshold 180 > >>>>> contact_groups admins > >>>>>} > >>>>> > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Fri Feb 7 07:17:09 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Fri, 7 Feb 2003 00:17:09 -0600 Subject: host - a service In-Reply-To: <3E430DF1.6030200@anvil.org> References: <20030204035141.GA31963@cannonfodder.org> <3E430DF1.6030200@anvil.org> Message-ID: <20030207061709.GB16388@cannonfodder.org> Well, I just checked nagios into our CVS repository so i can start making some patches. I also need a way to give someone access to view all information about a host/service, only not be able to disable alerts or testing. Am I missing something simple or is this functionality not currently in the software? on Fri Feb 07 Andrew Meredith spoke forth with the blessed manuscript > Hi Jason, > I have been scouting around that area of the code myself just recently, > after trying to do something to yourself. > As far as I can tell, there is nothing that will do exactly what you > want, but it will get quite close. You will still have the service in > the system, but it will be switched off ... the same as if you didn't > mention the lack of this service on this particular host and then > switched it off through the interface. > There are 3 parameter names that seem to have something to do with this > function. > enable_active_checks > -------------------- > $ fgrep -rl enable_active_checks . > ./html/docs/distributed.html > This appears to be something that is either going to be and hasn't yet, > or used to be and hasn't been trimmed out of the docs yet .. either that > or its a typo :) > active_checks_enabled > --------------------- > This is service template parameter that has support all through the > template reading and writing stuff and in the examples and convertcfg > program. > However .. > checks_enabled > -------------- > ... is what it becomes when an xodtemplate_service structure is used to > initialise a service structure using set_service_state_information() in > xdata/xrddefault.c:593. > (It is also a parameter at the host level where it keeps it's name the > whole way through and would seem to be involved in host level checks.) > Why have just gone through all this ? .. two reasons. > 1 - I would be very grateful if someone who actually has a clue (unlike > myself) would please have a look through the above and confirm whether I > have got it right or not. The name change caught me right out until I > spotted that the set_service_state_information() argument named > active_checks_enabled was given the value of a variable called > checks_enabled in xdata/xrddefault.c .. which given that checks_enabled > is also a parameter in the host object made things a little confusing > for a bear of very little brain. > 2 - If this is true then (in theory .. I think) you should just be able > to explicitly reference the service description by hostname and service > name and then insert additional parameters of "active_checks_enabled=0" > and "passive_checks_enabled=0" .. I think this should over-ride the > value inherited from the hostgroup when that service structure is > actually created in memory and render that service inoperative. > The downside would be that it still shows up in the UI, but has no > effect on anything. This as I say is not really what you are after, but > might be a reasonable stop-gap until something tidier can be done in > version 2.0 ... how about a service parameter called "vanish" (or for > the LinuxHeads "mrproper" ;) that causes that service structure to be > deleted. > Having said all that, I haven't got a 1.0 test system on which I can try > it right now, so it may well turn out that this is flexing the > inheritance mechanism a little bit too hard. > BTW .. If the developers are watching, I would be quite willing to go > through the CVS version and rename the service structure variable from > checks_enabled to active_checks_enabled in the code. I know that this > would help me understand the logic a little better .. and I suspect that > future newcomers might also be a little confused by the sudden change of > name. > Cheers > Andy M > Jason Burnett wrote: > >is there any way to tell a host to ignore one of the tests assigned to > >it's hostgroup? > >example: > > > >define hostgroup{ > > hostgroup_name neospire-virtuals-apache > > alias Neospire Apache & Zeus webservers > > contact_groups admins > > members one,two,linux1 > >} > >define service{ > > hostgroup_name neo-vs-web-apache > > service_description SSH > >} > > > > > >define host{ > >#server only runs telnet > > host_name linux1 > > .... > > check_command **IGNORE SSH** > >} > >What I am looking for is an easy way to standardize tests across groups, > >but as always there are exceptions and I need to be able to tell a > >certain host to ignore certain tests inherited from it's group. > > > >oh and before anyone starts chastising me, I dont actually run telnet on > >any of my servers. -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Fri Feb 7 13:36:46 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Fri, 7 Feb 2003 06:36:46 -0600 Subject: Fwd: Distributed checking In-Reply-To: <3E428429.8090302@anvil.org> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> <3E428429.8090302@anvil.org> Message-ID: <20030207123646.GA1935@cannonfodder.org> It's till not working, log excerpt from primary server: [1044621302] SERVICE;pinky;HTTP;CRITICAL;1/2;HARD;1044621212;1044621302;ACTIVE;0;1;1;1044350435;0;CRITICAL;0;0;0;109991;0;0;1;0;0;1;0;0.00;0;1;1;1;Connection refused or timed out Service definition from primary server: define service{ host_name pinky service_description HTTP check_command check_http max_check_attempts 2 normal_check_interval 50 retry_check_interval 50 passive_checks_enabled 1 active_checks_enabled 0 check_period none flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 1 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 check_freshness 0 freshness_threshold 500 contact_groups admins } Log from passive server: [1044621346] SERVICE;pinky;HTTP;OK;1/2;HARD;1044621281;1044621341;ACTIVE;1;1;1;1044465516;0;OK;132731;0;0;0;0;0;0;0;0;1;0;0.00;0;1;1;1;HTTP ok: HTTP/1.1 401 Authorization Required - 0.003 second response time Config from passive server: define service{ host_name pinky service_description HTTP check_command check_http max_check_attempts 2 normal_check_interval 1 retry_check_interval 1 active_checks_enabled 1 check_period 24x7 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 0 } At this point I am open to try anything. So, does anyone actually have this working properly? on Thu Feb 06 Andrew Meredith spoke forth with the blessed manuscript > This is the same problem I described under: > Subject: Distributed Checks > Date: 2003-02-04 1512 > In that mail I confirm that if you were to do this, then the server > would indeed stop performing active checks .. which is what I want, as > the central server cannot successfully perform the checks from it's IP > address. > However, it doesn't then do anything else either. > I was expecting it to mark the service as unknown or down or somethng, > it just keeps on displaying the last service status that it received. > Andy M > Atul Gosain wrote: > >Hi > > > >The problem is simple. > >U have check_freshness variable set to 1. The effect of this is that > >whenever the passive service results does not reach nagios for some time > >(freshness_threshold ), it considers the result as stale and starts > >checking actively for that service. If u want that active checks are not > >executed when passive results are stale, then disable check_freshness > >variable. > >Just tell me in case ur problem is solved. > > > >Thanks > >Atul > > > >Jasmine wrote: > > > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: SHA1 > >> > >>HI all.. i m still having this problem sorry. i thought i made a > >>config mistake, but that does not solve the problem. > >> > >> > >>>>just a note that I am having about the same problem as you. Anyone has > >>>>any ideas? > >>>> > >>>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > >>>> > >>>> > >>>>>o.k. I am using the distributed method with passive checks to monitor > >>>>>some hosts I have behind a firewall that I dont want to punch holes > >>>>>in. > >>>>>For some reason my central nagios server keeps running active > >>>>>checks on > >>>>>the hosts even though I have that disabled on a per service instance. > >>>>>So I end up with the service up when it gets the info via the passive > >>>>>tests then it goes critical when the central server tries to check it > >>>>>with an active test. Here is the service config from the central > >>>>>server: > >>>>> > >>>>>define service{ > >>>>> host_name pinky > >>>>> service_description SSH > >>>>> check_command check_ssh > >>>>> max_check_attempts 2 > >>>>> normal_check_interval 5 > >>>>> retry_check_interval 5 > >>>>> passive_checks_enabled 1 > >>>>> active_checks_enabled 0 > >>>>> check_period 24x7 > >>>>> flap_detection_enabled 1 > >>>>> process_perf_data 1 > >>>>> retain_status_information 1 > >>>>> retain_nonstatus_information 1 > >>>>> notification_interval 1 > >>>>> notification_period 24x7 > >>>>> notification_options w,u,c,r > >>>>> notifications_enabled 1 > >>>>> check_freshness 1 > >>>>> freshness_threshold 180 > >>>>> contact_groups admins > >>>>>} > >>>>> > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 20:45:00 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:45:00 -0600 Subject: FW: Nagios to monitor MQSeries Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1465@PKDWB03C.ad.sprint.com> What was the incantation you used for compiling amqsailq.c? I tried: gcc -o amqsailq -I ../inc amqsailq.c but no joy. jc > -----Original Message----- > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] > Sent: Friday, February 07, 2003 3:04 AM > To: Carroll, Jim P [Contractor]; wim at hsmade.com > Cc: nagios-users at lists.sourceforge.net > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > I have talked about IBM MQSeries and I never said, that it was not an > proprietary product. I do not check MQ from the Nagios host > (Solaris 8 x86). > I call my script (which calls a modified sample program) > through NRPE on a > Solaris 9 Sparc host with a MQ Client: > > $ pkginfo -l | fgrep -i mq > PKGINST: mqm > NAME: WebSphere MQ Client for Sun Solaris > > $ ls -l /opt/mqm/samp/amqsailq.c > -r--r--r-- 1 mqm mqm 19373 Jun 14 2002 > /opt/mqm/samp/amqsailq.c > > The colleague have found/modified/written a program "queuedeep", that > queries the length of a single queue from the MQ-server. I > have wraped this > program in a shell script to generate the error-code/output > for Nagios. > > -vol > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > Sent: Thursday, February 06, 2003 7:11 PM > > To: 'wim at hsmade.com'; Aust, Volker, PRE > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > MQSeries is similar to but different than SonicMQ. The > > latter is a JMS > > product by Sonic Software. The former is an IBM product > > using a proprietary > > standard. > > > > We have both here; I wouldn't mind monitoring both of these > natively. > > > > Hm. We don't seem to have the 'amqsailq' program. What's > > the default path > > to this? I didn't find it under /opt/mqm nor under /usr (on > > Solaris8). > > > > $ pkginfo -l | grep -i mq > > PKGINST: mqjava > > DESC: MQSeries classes for Java and MQSeries classes > > for Java Message > > Service > > PKGINST: mqm > > NAME: MQSeries for Sun Solaris 2 > > PKGINST: mqm-upd03 > > NAME: MQSeries for Sun Solaris 2 - U478291 > > PKGINST: mqm-upd05 > > NAME: MQSeries for Sun Solaris 2 - U481514 > > > > jc > > > > > -----Original Message----- > > > From: Wim Fournier [mailto:wim at hsmade.com] > > > Sent: Thursday, February 06, 2003 10:38 AM > > > To: Volker.Aust at premiere.de > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > > > > Are you talking about Sonic MQ here? > > > > > > > > > > > > > Sorry, I have forgotten the list... > > > > > > > >> -----Original Message----- > > > >> From: Aust, Volker, PRE > > > >> Sent: Thursday, February 06, 2003 1:06 PM > > > >> To: 'Detlef.Knop at gmx.de' > > > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > > >> > > > >> > > > >> Hi Detlef, > > > >> > > > >> when you install the MQSeries client (with developer > > > >> support), you get some sample programs. One of these sample > > > >> programs is "amqsailq", which lists the length of all > > > >> MQ-queues of a server. You can use "amqsailq" local or > > > >> remote. When you use this program (or a mofified version, > > > >> that only checks important queues like we do (a colleague has > > > >> modified some of the sample programs)) remote, you can make > > > >> two tests with one call: > > > >> > > > >> - check the connectivity to the MQ-server and the -service > > > >> > > > >> - check the length of some important queues (too many, too > > > few, ...) > > > >> > > > >> I have wraped the program in a shell script to generate the > > > >> Nagios stuff (return-code and output). > > > >> > > > >> Hope this helps. > > > >> > > > >> -vol > > > >> > > > >> > -----Original Message----- > > > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > > >> > Sent: Thursday, February 06, 2003 7:40 AM > > > >> > To: nagios-users at lists.sourceforge.net > > > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > > > >> > > > > >> > > > > >> > Dear all, > > > >> > > > > >> > I would like to check whether MQSeries is available as a > > > >> > service on several > > > >> > of my hosts. My first approach was to use the check_tcp > > > >> > plugin which from my > > > >> > point of view worked fine. But the people looking after > > > >> > MQSeries on these > > > >> > machines came back to me and complained that each time the > > > >> > plugin ran MQSeries > > > >> > reported errors on these systems (two errors per check) > > > >> > because MQSeries > > > >> > detects the incoming connection and wants to receive proper > > > >> > data, but then the > > > >> > connection is closed. > > > >> > > > > >> > Has anyone ever tried to do the same and found a solution? > > > >> > Maybe there is a > > > >> > way using passive checks, or we might have to look into the > > > >> > possibility to > > > >> > write a plugin. > > > >> > > > > >> > Kind regards > > > >> > > > > >> > Detlef Knop > > > >> > > > > >> > -- > > > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ > > Min. surfen! > > > >> > > > > >> > > > > >> > > > > >> > ------------------------------------------------------- > > > >> > This SF.NET email is sponsored by: > > > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > > > Something 2 See! > > > >> > http://www.vasoftware.com > > > >> > _______________________________________________ > > > >> > Nagios-users mailing list > > > >> > Nagios-users at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >> > > > > >> > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > > Something 2 See! > > > > http://www.vasoftware.com > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > Grtz, > > > > > > Wim Fournier > > > wim at hsmade.[com|net|org] > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Fri Feb 7 21:21:44 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 7 Feb 2003 12:21:44 -0800 (PST) Subject: Nagios reply notifications to acknowledge In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1463@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1463@PKDWB03C.ad.sprint.com> Message-ID: <20030207202144.14057.qmail@web21506.mail.yahoo.com> Search the archives for my perl scripts to the list a few weeks ago. You'll have to modify them a little, but I can enable/disable notifications, acknowledge hosts, and get a quick summary stats of problems on my nextel. The nice thing is you don't have to type the replies, my script appends them to the message so you just hit reply. Great if your cell provider supports 2way messaging... :) "Carroll, Jim P [Contractor]" wrote:Off the top of my head, I'd say you could write something which uses: - /etc/aliases (redirecting mail destined for 'nagios' and piping it to a script) - procmail (optional) - a script that you write - awareness of how to pipe commands into nagios.cmd, which I believe are available in the FAQ over on www.nagios.org. HTH. jc > -----Original Message----- > From: Dan Knoblauch [mailto:dan at lanworksco.com] > Sent: Friday, February 07, 2003 10:19 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios reply notifications to acknowledge > > > Hello all and good day! > > > > I have been looking for a mechanism that will allow me to 'reply' to > nagios notifications via email with an acknowledgement. > Often I am away > from the office and I receive notifications on host/service outages on > my cell phone. I have used another monitoring utility called "Big > Brother" that had this capability. Outside of writing my own > handler to > do this, does anyone out there know if this is possible? I > have scoured > the documentation and the mailing lists and newsgroups and > haven't seen > even a small mention of this. Does this capability exist? > > > > You assistance is greatly appreciated. > > > > Dan. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonejr at gat.com Fri Feb 7 21:25:14 2003 From: jonejr at gat.com (jonejr) Date: Fri, 07 Feb 2003 12:25:14 -0800 Subject: cgi help on Nagios 1.0 In-Reply-To: <010401c2ceb9$1ce3adb0$f81fc3c1@TONYS> References: <010401c2ceb9$1ce3adb0$f81fc3c1@TONYS> Message-ID: <5926576390.20030207122514@gat.com> Hello , Although these are good ideas, they don't work.... > You do a #pwd in the directory that the cgi's are in and that says > "/usr/local/nagios/cgi" > Your apache config aliases /nagios/cgi-bin/ to /usr/local/nagios/sbin/, > but your cgi's are in /usr/local/nagios/cgi. > Think perhaps you should rename /usr/local/nagios/cgi to > /usr/local/nagios/sbin/. > Or change the alias in the apache conf file. > Remove the .htaccess file from etc/ and html/ and move it to the sbin/ directory. That should give you access. Anyone? -- John R. Jones Oracle and Citrix Administrator General Atomics, Aeronautical Systems, Inc. http://www.gat.com/asi/home.html ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Fri Feb 7 21:52:28 2003 From: williamw at xeye.com (Willy) Date: 7 Feb 2003 20:52:28 -0000 Subject: nsclient install problem on Solaris8 Message-ID: <20030207205228.22225.qmail@pod-163.dolphin-server.co.uk> I'm running Nagios1.0 on a Ultra5 running Solaris8. I want to use nsclient to monitor Windows NT/2000 servers. After I downloaded nsclient-1.07.1 I found there's only Linux version of check_nt. I only could get check_nt.c from UnixSource folder after I unzipped the file. I got errors while I complied check_nt.c on my Solaris8 box. It complained about missing "common.h" header file. Can anyone teach/tell me where I can get a compilable check_nt tar ball for Solaris8(sparc) or a executable check_nt for Solaris? nsclient install document tells me that I need to add some lines into "command.cfg" file. I don't have this file in Nagios configuration folder -- /usr/local/nagios/etc ! Any help is greatly appreciated! Willy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Fri Feb 7 22:01:36 2003 From: williamw at xeye.com (Willy) Date: 7 Feb 2003 21:01:36 -0000 Subject: NSClient - 38 OK and 1 Down In-Reply-To: References: Message-ID: <20030207210136.24246.qmail@pod-163.dolphin-server.co.uk> On what Platform do you run Nagios or netsaint server? Is it a Linux box? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Fri Feb 7 22:35:38 2003 From: williamw at xeye.com (Willy) Date: 7 Feb 2003 21:35:38 -0000 Subject: check_nt plugin In-Reply-To: <87273DB23407D511B8900008C7FA923301405D6A@EXCHANGE> References: <87273DB23407D511B8900008C7FA923301405D6A@EXCHANGE> Message-ID: <20030207213538.31841.qmail@pod-163.dolphin-server.co.uk> I'm running Nagios1.0 on an Ultra5 running Solaris8. I want to use nsclient to monitor Windows NT/2000 servers. After I downloaded nsclient-1.07.1 I found there's only Linux version of check_nt. I only could get check_nt.c from UnixSource folder after I unzipped the file. I got errors while I complied check_nt.c on my Solaris8 box. It complained about missing "common.h" header file. Can anyone teach/tell me where I can get a compilable check_nt tar ball for Solaris8(sparc) or a executable check_nt for Solaris? nsclient install document tells me that I need to add some lines into "command.cfg" file. I don't have this file in Nagios configuration folder -- /usr/local/nagios/etc ! Any help is greatly appreciated! Willy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Fri Feb 7 22:37:31 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 7 Feb 2003 15:37:31 -0600 Subject: workstations Message-ID: We are a small shop. We have 18 workstations and 7 servers. Greg > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Friday, February 07, 2003 9:05 AM > To: Potter, G M (Greg) > Cc: Don Schultz; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] workstations > > > I imagine you don't have a large environment then? And if you do > (let's say 500+ users), how do you add all this data into Nagios? > > An interesting thread. > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at skynetweb.com Fri Feb 7 23:00:20 2003 From: jason at skynetweb.com (Jason Lancaster) Date: Fri, 7 Feb 2003 17:00:20 -0500 Subject: member character limit in hostgroups.cfg Message-ID: <01a501c2cef4$4e6c07c0$f805ff0a@tekniq> I sent this to the devel list... but I'm beginning to think that maybe this list would have been more appropriate: Pardon me if this is common knowledge, but I can't find talk on any lists of a character limit for the member definition in the hostgroups.cfg file. There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a members definition over about 8,000 characters to execute. The error Nagios spits back is: Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 16. I won't flood you with line 16, but a snip of it would look like: members SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... (repeating for another 8,000 characters) A wildcard definition appears to load all of the members properly but unfortunately, I need to have separate hostgroups with about 700 members in each. It's hard to imagine that no one has run into this problem before considering Nagios appears to have been written to scale to this type of environment. Any ideas would be appreciated, whether it's someone pointing me to variable declarations in the source or a quick hack (perhaps you can define a hostgroup twice with the same hostgroup_name/alias?) Thanks, Jason Lancaster ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 23:21:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 16:21:30 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1469@PKDWB03C.ad.sprint.com> http://nagios.sourceforge.net/docs/1_0/commandfile.html > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Friday, February 07, 2003 11:43 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > more information... > > # ls /usr/local/nagios/var/rw > total 2 > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > # grep nagiocmd /etc/group > nagiocmd:*:55554:nagios,nobody > > Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file > was created by > the Nagios process with nagios:nagios ownership, but mine > isn't created that > way. As you can see above, my nagios.cmd file is created with > nagios:nagiocmd ownership. You can also see that 'nobody' is > part of the > 'nagiocmd' group, which _should_ give 'nobody' rw access to > the nagios.cmd > file. Even so, I still receive that error when trying to > execute a command > from the browser. BAH! > > In addition, in the 'SOLVED' reply, it looks like the user > 'nobody' was > added to the 'nagios' group, effectively eliminating the need for the > 'nagiocmd' group. Isn't this insecure, putting the 'nobody' > user in the > 'nagios' group, effectively giving that user permission to > everything that > Nagios has permission to? I was under the impression that > the whole purpose > of creating the new group was to limit the access of the > 'nobody' user. > > What am I missing? Thanks! > > -- > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > -------------------------------------------------------------- > ---------- > > > > > ----- Original Message ----- > From: "Michael W. Oliver" > To: > Sent: Friday, February 07, 2003 11:06 AM > Subject: Re: [Nagios-users] Schedule An Immediate Check - I > have rtfm and > stfw no help > > > I am receiving the exact same error while trying this on my > FreeBSD server. > I followed the FAQ instructions to the letter, and all > permissions are just > as they should be, and 'nobody' is in the 'nagiocmd' group. > > Still no joy... > > -- > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > -------------------------------------------------------------- > ---------- > > > > > ----- Original Message ----- > From: "Armin Irger" > To: > Sent: Friday, February 07, 2003 10:04 AM > Subject: [Nagios-users] Schedule An Immediate Check - I have > rtfm and stfw > no help > > > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > nagios.cfg settings: > > check_external_commands=1 > command_check_interval=-1 > command_file=/opt/nagios/var/rw/nagios.cmd > > I setup the nagios.cmd file how it be descripted in the > commandfile.html > /usr/sbin/groupadd nagiocmd > /usr/sbin/usermod -G nagiocmd nagios > /usr/sbin/usermod -G nagiocmd nobody > mkdir /opt/nagios/var/rw > chown nagios.nagiocmd /opt/nagios/var/rw > chmod u+rwx /opt/nagios/var/rw > chmod g+rw /opt/nagios/var/rw > chmod g+s /opt/nagios/var/rw > > The ls -l /opt/nagioss/var/ looks like > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > cgi.cfg settings: > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host > Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. > > > Greetings > Armin > > > > > > > > -- > Wundere dich nicht da? du nicht ankommst, > wenn du nicht wei?t wo du hin willst. > > ==================================================================== > Fachhochschule Rosenheim > Armin Irger > Hochschulstr. 1 > D-83024 Rosenheim > Tel. +498031 805-532 > Fax. +498041 805-519 > ==================================================================== > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 23:23:27 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 16:23:27 -0600 Subject: cgi help on Nagios 1.0 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E146A@PKDWB03C.ad.sprint.com> The thread of this e-mail appears to be truncated. Please restate the problem/symptoms and post snippets of relevant configs. jc > -----Original Message----- > From: jonejr [mailto:jonejr at gat.com] > Sent: Friday, February 07, 2003 2:25 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] cgi help on Nagios 1.0 > > > Hello , > > > Although these are good ideas, they don't work.... > > You do a #pwd in the directory that the cgi's are in and that says > > "/usr/local/nagios/cgi" > > Your apache config aliases /nagios/cgi-bin/ to > /usr/local/nagios/sbin/, > > but your cgi's are in /usr/local/nagios/cgi. > > > Think perhaps you should rename /usr/local/nagios/cgi to > > /usr/local/nagios/sbin/. > > Or change the alias in the apache conf file. > > > Remove the .htaccess file from etc/ and html/ and move it > to the sbin/ directory. That should give you access. > > Anyone? > > > -- > John R. Jones > Oracle and Citrix Administrator > General Atomics, Aeronautical Systems, Inc. > http://www.gat.com/asi/home.html > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Fri Feb 7 23:49:59 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Fri, 7 Feb 2003 16:49:59 -0600 Subject: member character limit in hostgroups.cfg Message-ID: I've run into this a couple of times in the past, but most recently when I went to upgrade from Nagios 1.0b3 to nagios1.0(final) it puked on a similarly large wildcard service definition. I ended up having to re-install beta 3. Unfortunately I haven't had much time to troubleshoot, but I plan on building another server to test on in this next week. I thought you would at least like to know you're not alone. Richard -----Original Message----- From: Jason Lancaster [mailto:jason at skynetweb.com] Sent: Friday, February 07, 2003 4:00 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] member character limit in hostgroups.cfg I sent this to the devel list... but I'm beginning to think that maybe this list would have been more appropriate: Pardon me if this is common knowledge, but I can't find talk on any lists of a character limit for the member definition in the hostgroups.cfg file. There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a members definition over about 8,000 characters to execute. The error Nagios spits back is: Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 16. I won't flood you with line 16, but a snip of it would look like: members SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... (repeating for another 8,000 characters) A wildcard definition appears to load all of the members properly but unfortunately, I need to have separate hostgroups with about 700 members in each. It's hard to imagine that no one has run into this problem before considering Nagios appears to have been written to scale to this type of environment. Any ideas would be appreciated, whether it's someone pointing me to variable declarations in the source or a quick hack (perhaps you can define a hostgroup twice with the same hostgroup_name/alias?) Thanks, Jason Lancaster ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 23:40:00 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 16:40:00 -0600 Subject: nsclient install problem on Solaris8 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E146B@PKDWB03C.ad.sprint.com> You can grab the latest plugin tarball, untar it, change into that directory: $ find . -name common.h ./plugins/common.h jc > -----Original Message----- > From: Willy [mailto:williamw at xeye.com] > Sent: Friday, February 07, 2003 2:52 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nsclient install problem on Solaris8 > > > > I'm running Nagios1.0 on a Ultra5 running Solaris8. I want to > use nsclient to monitor Windows NT/2000 servers. After I > downloaded nsclient-1.07.1 I found there's only Linux version > of check_nt. I only could get check_nt.c from UnixSource > folder after I unzipped the file. > > I got errors while I complied check_nt.c on my Solaris8 box. > It complained about missing "common.h" header file. Can > anyone teach/tell me where I can get a compilable check_nt > tar ball for Solaris8(sparc) or a executable check_nt for Solaris? > > nsclient install document tells me that I need to add some > lines into "command.cfg" file. I don't have this file in > Nagios configuration folder -- /usr/local/nagios/etc ! > > Any help is greatly appreciated! > > Willy > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Tong at keen.com Sat Feb 8 00:34:14 2003 From: Tong at keen.com (Tong Young) Date: Fri, 7 Feb 2003 15:34:14 -0800 Subject: Check SQL Server 2000? Message-ID: <96F2907F6F5F494DA70289DE3B15B11F28110355@keenx02.keencorp.keen.com> Is there a way for me to query a SQL Server for data? I have a database and inside the database is stored data about the performance of my database and other values. I would like to query the server for these values and then trigger an alarm when a threshold is reached. In Sitescope it is like this: ODBC connection: jdbc:odbc:SQLLiveMon Query: exec spMON_FindLastTimeExtTaskRan 'SQLMsgClick' I'm not sure if nagios can do something like this. Thanx!! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Sat Feb 8 00:27:33 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 7 Feb 2003 17:27:33 -0600 Subject: member character limit in hostgroups.cfg Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F28B0@mismail.ena.com> it's in xdata/xodtemplate.h: #define MAX_XODTEMPLATE_INPUT_BUFFER 49152 As you can see I've upped mine from the default of 8192 with no problems but YMMV. Marc -----Original Message----- From: Jason Lancaster [mailto:jason at skynetweb.com] Sent: Fri 2/7/2003 4:00 PM To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] member character limit in hostgroups.cfg I sent this to the devel list... but I'm beginning to think that maybe this list would have been more appropriate: Pardon me if this is common knowledge, but I can't find talk on any lists of a character limit for the member definition in the hostgroups.cfg file. There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a members definition over about 8,000 characters to execute. The error Nagios spits back is: Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 16. I won't flood you with line 16, but a snip of it would look like: members SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... (repeating for another 8,000 characters) A wildcard definition appears to load all of the members properly but unfortunately, I need to have separate hostgroups with about 700 members in each. It's hard to imagine that no one has run into this problem before considering Nagios appears to have been written to scale to this type of environment. Any ideas would be appreciated, whether it's someone pointing me to variable declarations in the source or a quick hack (perhaps you can define a hostgroup twice with the same hostgroup_name/alias?) Thanks, Jason Lancaster ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From r1p6os402 at sneakemail.com Sat Feb 8 00:45:54 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Fri, 7 Feb 2003 15:45:54 -0800 (PST) Subject: member character limit in hostgroups.cfg In-Reply-To: References: Message-ID: <17555-94098@sneakemail.com> Try this one: xdata/xodtemplate.h line 34: #define MAX_XODTEMPLATE_INPUT_BUFFER 8196 I bet bumping that up and recompiling would help. -- Steve On Fri, 7 Feb 2003, Burnson, Richard rburnson-at-cps.k12.il.us |Nagios| wrote: > I've run into this a couple of times in the past, but most recently when I > went to upgrade from Nagios 1.0b3 to nagios1.0(final) it puked on a > similarly large wildcard service definition. I ended up having to > re-install beta 3. Unfortunately I haven't had much time to troubleshoot, > but I plan on building another server to test on in this next week. I > thought you would at least like to know you're not alone. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Sat Feb 8 02:51:45 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 20:51:45 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <009901c2ced0$53c0d120$e112d287@gargantuan.com> References: <1044630282.1070.35.camel@ntb00817> <005b01c2cec2$de18cde0$e112d287@gargantuan.com> <009901c2ced0$53c0d120$e112d287@gargantuan.com> Message-ID: <200302072051.55137.michael@gargantuan.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, February 07, 2003 12:42, Michael W. Oliver wrote: > more information... > > # ls /usr/local/nagios/var/rw > total 2 > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > # grep nagiocmd /etc/group > nagiocmd:*:55554:nagios,nobody > > Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file was created > by the Nagios process with nagios:nagios ownership, but mine isn't > created that way. As you can see above, my nagios.cmd file is created > with > nagios:nagiocmd ownership. You can also see that 'nobody' is part of the > 'nagiocmd' group, which _should_ give 'nobody' rw access to the > nagios.cmd file. Even so, I still receive that error when trying to > execute a command from the browser. BAH! > > In addition, in the 'SOLVED' reply, it looks like the user 'nobody' was > added to the 'nagios' group, effectively eliminating the need for the > 'nagiocmd' group. Isn't this insecure, putting the 'nobody' user in the > 'nagios' group, effectively giving that user permission to everything > that Nagios has permission to? I was under the impression that the whole > purpose of creating the new group was to limit the access of the 'nobody' > user. > > What am I missing? Thanks! > > -- If there is anyone that can shed some light on why this isn't working, I would greatly appreciate it. - -- - ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RGK6sWv7q8X6o8kRAvusAJoD6I35uvAPYGl/WphHSXamIfqpmQCfZJN0 O4sl6LEp/Vmg2IK2PA7L2Uk= =38CK -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 03:06:04 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 13:06:04 +1100 Subject: Monitoring Application performance ??? Message-ID: <20030208130556.B349@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to request your comments on application performance monitoring preferably in an Nagios centric environment. Every one knows what a drag it is to acquit the 'network' of complicity or blame in slug like application response. The state of the art seems to be . L3 stats (RTA, Packet loss ratio etc) are helpful in indicating that the network performance is Ok, but are not conclusive except in the rare cases that network response is really poor. In my experience, with switched LANs and even low speed _uncongested_ WANs, this doesn't happen often. . Commercial products that generate synthetic transactions (Chariot, Vital Suite ?) are able to more accurately indicate application performance but are obviously useless in helping understand why a particuar workstation is getting poor response. This is the approach I use with most of my plugins: have the plugin do what the client does and whine if the server fails to respond in time. . Commercial application instrumentation for products like Oracle, and J2EE encironments are able to report on and account for application response times Similar products may be able to account for client resources and activities. . Commercial RMON2 based network probes (Netscout notably both with their own products and OEM blades in Cat switches) These products are located at nodal points in a network (intersection of flows from clients or servers) and by making some assumptions about the use of TCP flags in application flows, and by _very quickly_ inspecting the contents of every packet they receive, are able to get - network delay - server delay or in other words, account for the transaction processing time as seen by a client as a network component and a server component. Does anyone have any experience of application performance monitoring or of any of these products they are willing to share with the list or privately ? I think Nag would an immensely attractive product - especially with PHBs - if there was some way that it could in this matter. Thank you, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 02:48:05 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 12:48:05 +1100 Subject: workstations In-Reply-To: ; from GPotter@MarathonOil.com on Fri, Feb 07, 2003 at 08:18:47AM -0600 References: Message-ID: <20030208124758.A349@IPAustralia.Gov.AU> Dear Sir, Monitoring workstations sounds like a wonderful idea if you can identify application performance problems by asking a workstation based agent to report on network delay server processing time workstation resources within acceptable limits Are you, or anyone able to do this ? What is that you monitor on workstations ? On Fri, Feb 07, 2003 at 08:18:47AM -0600, Potter, G M (Greg) wrote: > We watch our workstations. It is helpful to know if your users > are having a problem before you get the call. Often I can be in the > office of a client with a down workstation and fix the problem before > they know they have one. That improves PR and customer satisfaction. > > Greg > Thank you, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 03:14:42 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 13:14:42 +1100 Subject: website transaction monitor / simple web form In-Reply-To: <52183F243CF19E44A1166F250311C34B047771@cheddarcheese.vel.net>; from rich@vel.net on Fri, Feb 07, 2003 at 11:31:33AM -0800 References: <52183F243CF19E44A1166F250311C34B047771@cheddarcheese.vel.net> Message-ID: <20030208131429.C349@IPAustralia.Gov.AU> Dear Sir, There are a number of approaches for dealing with HTTP transactions/web forms. They include your writing wrraper programs to Perl modules that are congnizant of the transaction structure (ie what to send to what URL and when). These modules include A CPAN 1 WWW::Mechanize 2 WWW::Automate B SourceForge 1 HTTP::MonkeyWrench C unpublished 1 Netsaint::Web_Trx Here's an example plugin using the latter, use constant Intro => 'http://external/atmoss/falcon.application_start' ; use constant ConnectToSearch => 'http://external/atmoss/Falcon_Users_Cookies.Define_User' ; use constant MultiSessConn => 'http://external/atmoss/Falcon_Users_Cookies.Run_Create' ; use constant Search => 'http://external/atmoss/Falcon.Result' ; use constant ResultAbstract => 'http://external/atmoss/falcon_details.show_tm_details' ; use constant ResultDetails => 'http://external/atmoss/Falcon_Details.Show_TM_Details' ; use constant DeleteSearches => 'http://external/atmoss/Falcon_Searches.Delete_All_Searches' ; use constant Int => 'Welcome to ATMOSS' ; use constant ConnSrch => 'Connect to Trade Mark Search' ; use constant MltiSess => 'Fill in one or more of the fields below' ; use constant Srch => 'Your search request retrieved\s+\d+\s+match(es)?' ; use constant ResAbs => 'Trade Mark\s+:\s+\d+' ; use constant ResDet => ResAbs ; use constant DelSrch => MltiSess ; use constant MSC_f => [p_Anon => 'REGISTERED', p_user_type => 'Connect to Existing Extract List', p_extID => 'Stanley Hopcroft', p_password => 'It', p_JS => 'N'] ; use constant Srch_v => [p_tmno1 => 'tmno'] ; use constant RA_v => [p_tm_number => 'tmno'] ; use constant RA_f => [p_detail => 'QUICK', p_rec_all => 1, p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D'] ; use constant RD_v => RA_v ; use constant RD_f => [p_Detail => 'DETAILED', p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D']; use constant OraFault => 'We were unable to process your request at this time' ; use constant URLS => [ {Method => 'GET', Url => Intro, Qs_var => [], Qs_fixed => [], Exp => Int, Exp_Fault => OraFault}, {Method => 'GET', Url => ConnectToSearch, Qs_var => [], Qs_fixed => [], Exp => ConnSrch,Exp_Fault => OraFault}, {Method => 'POST', Url => MultiSessConn, Qs_var => [], Qs_fixed => MSC_f,Exp => MltiSess,Exp_Fault => OraFault}, {Method => 'POST', Url => Search, Qs_var => Srch_v, Qs_fixed => [], Exp => Srch, Exp_Fault => OraFault}, {Method => 'GET', Url => ResultAbstract, Qs_var => RA_v, Qs_fixed => RA_f, Exp => ResAbs,Exp_Fault => OraFault}, {Method => 'POST', Url => ResultDetails, Qs_var => RD_v, Qs_fixed => RD_f, Exp => ResDet,Exp_Fault => OraFault}, {Method => 'POST', Url => DeleteSearches, Qs_var => [], Qs_fixed => [], Exp => DelSrch, Exp_Fault => OraFault}, ] ; my (@tmarks, $tmno, $i) ; @tmarks = @ARGV ? @ARGV : (3, 100092, 200099, 300006, 400075, 500067, 600076, 700066, 800061) ; $i = @ARGV == 1 ? 0 : int( rand($#tmarks) + 0.5 ) ; $tmno = $tmarks[$i] ; my $x = Netsaint::Web_Trx->new( URLS ) ; my ($rc, $message) = $x->check( {tmno => $tmno}, debug => $debug) ; print "ATMOSS $message\n" ; exit($rc ? $ERRORS{'OK'} : $ERRORS{'CRITICAL'}) ; Easy Peasi: call the constructor with a ref to a hash containing all the URLs and the data to be sent to each URL, then call the check method. The hard bit in this case - and it's a pretty big gotcha - is _you_ have to work out the sequence of URLs sent and the data supplied to each form (some of which is invisible). The CPAN modules may be a better bet but this works well for me. On Fri, Feb 07, 2003 at 11:31:33AM -0800, Richard Gross wrote: > Wondering what can be done to use Nagios to check > a simple webform? Maybe some modifiction of the wget that > checked the hp switches? The opening page has: > >

Welcome to CommuniGate Pro,
> the test.net Messaging > Server!

>
> > > > >
Registered Users
>
> > > > > > > > > > > > > > > >
color="#cc6600">Login > Name color="cc6600">Password
> maxlength=255> > > maxlength=99> > > >
>

>

> > and would like to supply a username and password to this form, > then check for a text string INBOX would be all that's required. > > I did try the command: > > wget -r --http-user=chris at test.net --http-passwd=chris06 > http://webmail.test.net but only got back the index page... > > Not really sure how to proceed from here. > > richg > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 03:39:38 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 13:39:38 +1100 Subject: member character limit in hostgroups.cfg In-Reply-To: <01a501c2cef4$4e6c07c0$f805ff0a@tekniq>; from jason@skynetweb.com on Fri, Feb 07, 2003 at 05:00:20PM -0500 References: <01a501c2cef4$4e6c07c0$f805ff0a@tekniq> Message-ID: <20030208133932.D349@IPAustralia.Gov.AU> Dear Sir, Is this what you are seeking (negative basically) ? tsitc> grep -r -2 'MAX_HOSTS_INPUT_BUFFER' * | grep -v Bin | more xdata/xoddefault.c- xdata/xoddefault.c- xdata/xoddefault.c:#define MAX_HOSTS_INPUT_BUFFER 8196 /* needed for very long definitions (i.e. hostgroups) */ xdata/xoddefault.c- xdata/xoddefault.c- -- You need to either hack it or use more hostgroups (many hostgroups eg hostg_8k, hostg_16k with each host in the groups having the same contactgroup so all the contacts can still manage the CGIs. This is prob better from the readability point of view anyway). If you increase from 8196 your memory consumption will obviously increase. Also, you may find that linked list search times are using CPU and leading to increased check latency. Is your installation the one with about 10k hosts ? Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jwbaker at acm.org Sat Feb 8 03:43:52 2003 From: jwbaker at acm.org (Jeffrey Baker) Date: Fri, 7 Feb 2003 18:43:52 -0800 Subject: event handler enabled in config, not enabled in reality Message-ID: <20030208024352.GA808@heat> Hi there. I just started using nagios. I have one Axis 2100 network camera that crashes and needs to be rebooted about 6 times per day. Therefore: define command { command_name camera-event command_line /usr/lib/nagios/plugins/eventhandlers/camera $SERVICESTATE$ } define service{ name generic-service2 active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 ; <= note flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups skunks-admins register 0 } define service{ use generic-service2 host_name eye service_description HTTP event_handler camera-event ; <= note is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http_url!/axis-cgi/jpg/image.cgi?resolution=640x480 } enable_event_handlers=1 So, you can see that I've tried to set this up. The problem is, when I start nagios, the eye/HTTP service shows up with the envent handler disabled. I have to enable it with a command at runtime. [1044663511] EXTERNAL COMMAND: ENABLE_SVC_EVENT_HANDLER;eye;HTTP I can see later that it did run: [1044669735] SERVICE ALERT: eye;HTTP;CRITICAL;SOFT;1;Socket timeout after 10 seconds [1044669735] SERVICE EVENT HANDLER: eye;HTTP;CRITICAL;SOFT;1;camera-event [1044669785] SERVICE ALERT: eye;HTTP;OK;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 4 second response time [1044669785] SERVICE EVENT HANDLER: eye;HTTP;OK;SOFT;2;camera-event What a piece of crap that camera is.... Anyway, what is wrong with my config file? I would like the event handler to be enabled at startup. I don't want to have to fool with it at runtime. BTW, I am using Nagios from Debian unstable distribution, package version 1.0-5. Regards, jwb ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 05:07:37 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 15:07:37 +1100 Subject: Check SQL Server 2000? In-Reply-To: <96F2907F6F5F494DA70289DE3B15B11F28110355@keenx02.keencorp.keen.com>; from Tong@keen.com on Fri, Feb 07, 2003 at 03:34:14PM -0800 References: <96F2907F6F5F494DA70289DE3B15B11F28110355@keenx02.keencorp.keen.com> Message-ID: <20030208150730.E349@IPAustralia.Gov.AU> Dear Sir, I am writing to thank yuo for your letter and say, On Fri, Feb 07, 2003 at 03:34:14PM -0800, Tong Young wrote: > Is there a way for me to query a SQL Server for data? > Of course - however, precisely how you do it depends on the server. Have a look at the plugin writers guidelines in the docs. Then, write some code to . have your 'SQL server' client - if you don't have the client code on the Nag host see below - to make the query . compare the result of the query to the threshold and . set the return code and write some output (for the human reading the alert) accordingly. Alternatively, if the 'SQL server' client code is _not_ on the Nag host, then run it on the host it is installed on with something like NRPE or use NCSA to submit its result to the Nag host. > I have a database and inside the database is stored data about the > performance of my database and other values. I would like to query the > server for these values and then trigger an alarm when a threshold is > reached. > > In Sitescope it is like this: > > ODBC connection: jdbc:odbc:SQLLiveMon > Query: exec spMON_FindLastTimeExtTaskRan 'SQLMsgClick' > > I'm not sure if nagios can do something like this. Thanx!! > If this is procedure is runnable from the shell (at a CLI), you can wrap it in the trivial extra bits required by Nag and use it as a a plugin. Or, use Tom De Blendes canonical answer to this question, >> Up until SQL Server 7, Microsoft officially supported Sybase client >> software. So you could download the Sybase client, and connect to MS >> SQL. With TDS version 8.0 (and legacy support for version 7.0) in SQL >> 2000, compatibility with Sybase client was broken. However, you can >> use the Freetds libraries instead. >> So here's what I've done to have a way to connect to both SQL 7 and >> SQL 2000: >> 1) Download and install freetds from http://www.freetds.org. >> 2) Download and install sqsh from http://www.sqsh.org. >> 3) export SYBASE=/usr/local/freetds (or where ever your freetds is >> installed) >> Now you can use sqsh to connect to your MS SQL: >> sqsh -S servername -U username >> You're now reasy to script your own plugins based on the output you >> get from your queries. Works great. HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Sat Feb 8 05:18:02 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 07 Feb 2003 23:18:02 -0500 (EST) Subject: check_nt plugin In-Reply-To: <20030207213538.31841.qmail@pod-163.dolphin-server.co.uk> References: <20030207213538.31841.qmail@pod-163.dolphin-server.co.uk> Message-ID: Try and download the napiosplug CVS version - the check_nt was put back in there because a lot folks had the same issue in compiling. -sg On 7 Feb 2003, Willy wrote: > > I'm running Nagios1.0 on an Ultra5 running Solaris8. I want to use > nsclient to monitor Windows NT/2000 servers. After I downloaded > nsclient-1.07.1 I found there's only Linux version of check_nt. I only > could get check_nt.c from UnixSource folder after I unzipped the file. > > I got errors while I complied check_nt.c on my Solaris8 box. It > complained about missing "common.h" header file. Can anyone teach/tell > me where I can get a compilable check_nt tar ball for Solaris8(sparc) or > a executable check_nt for Solaris? > > nsclient install document tells me that I need to add some lines into > "command.cfg" file. I don't have this file in Nagios configuration > folder -- /usr/local/nagios/etc ! > > Any help is greatly appreciated! > > Willy > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ackim at coppernet.zm Sat Feb 8 11:41:23 2003 From: ackim at coppernet.zm (Ackim Chisha) Date: Sat, 08 Feb 2003 12:41:23 +0200 Subject: How do I beautify my status map, by drawing? is there a tool I can use like saintmap for netsaint Message-ID: <3E44DED3.8000304@coppernet.zm> Hello all, Am new to Nagios but so far my nagios works fine and I can monitor services on my hosts. I however have a problem with trying to beautify the statusmap. I find supplying coordinates rather a tedius job. Is there a tool for drawing like saintmap for netsaint? I would like to draw my hosts so I can see how they are interconnected to the root parent on my backbone. I will appreciate any help. Regards, Ackim ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Sat Feb 8 20:15:11 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Sat, 8 Feb 2003 14:15:11 -0500 Subject: Compaq Insight Manager plugin v0.1 available In-Reply-To: References: Message-ID: NUMBER_OF_TEMP_SENSORS=0 MEMORY_ERR_WARN_PERCENT=1 # Warn above this percent MEMORY_ERR_WARN_PERCENT=50 # Panic above this percent PERCENT_TEMP_WARN=60 PERCENT_TEMP_PANIC=70 MEMORY_ERR_PANIC_PERCENT=20 Shouldn't that third line read MEMORY_ERR_PANIC_PERCENT ? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thomas Nilsen Sent: Friday, February 07, 2003 8:37 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Compaq Insight Manager plugin v0.1 available Hope this might be of interest to other Compaq server owners... I've modified Craig Cook's Big Brother script to work with Nagios. This is a pre release, which we are using in our production environment. It can be downloaded from http://home.broadpark.no/~tnilsen-1/check_cpqim.sh for the time being. I will put some docs together for it as well, but it will do for now. Any problems, please email me on thomas.nilsen at roxar.com or thomas.nilsen at doc-s.co.uk. Things to do: Timeout settings Command line options needs to be improved. Warning and Critical Level options (is currently using CPQ Agent levels and/or hard coded levels from the script). Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Sat Feb 8 21:31:00 2003 From: wim at hsmade.com (Wim Fournier) Date: Sat, 8 Feb 2003 21:31:00 +0100 (CET) Subject: Fwd: Re: Monitoring HP switches In-Reply-To: <5.1.1.2.0.20030207155332.027c8ca0@192.168.0.2> References: <5.1.1.2.0.20030207155332.027c8ca0@192.168.0.2> Message-ID: <3275.62.216.10.172.1044736260.squirrel@webmail.kern.nl> Pawel Wojnicki zei: > Thanks > You wouldn't have anything for HP procurve 9304M? > I get a 404 not found on this one. > Does it work on HP procurve 4000? I wrote it for the procurve 2524. but, i found it out like this: I extracted the class file off the 'status lamp' in the webgui for the switch. If you dont have the status lamp, it wont work anyhow ;( Then I decompiled the class file into Java and looked up how they extracted the status info from the switch as the class is run on the workstation. I found an URL in the java code that was requested for. So I requested it on my browser and found some numbers which should represent the status. I found that one number was for the actual status (OK,WARNING, CRITICAL, etc) and an other for the reference to the explanation page. So I tested it by disconnecting a cable (warning) and by generating some other errors (like with security). Thats how I found out how to query for the status. The actual link to the status explanation consists of an URL with, as cgi parameter, the error number stated in the status page. If you found anything, please let me and the list know. good luck! ;o) > > Pawel > > At 15:17 03-02-07 +0100, you wrote: >>Well here you go: >>------------8<----------------------- >>#!/bin/bash >># This check checks a HP procurve 2524 webgui for events >># Returns a link to the event found >># Author: Wim Fournier (wim at kern.nl) >># $0 ip-address >>test -n $1 || exit >>export IP=$1 >> >>wget --http-user= --http-passwd=******* >>http://$IP/cgi/fflog?action=status - O - >> 2>/dev/null | awk -F~ '{ >> if ($1 == 1) {print "OK";exit 0;} >> if ($1 == 2) {printf("Information - > href=\"http://% >>s/nc >>fw_b.html?index=%d\">%s\n",ENVIRON["IP"],$2,$3); exit 1; } >> if ($1 == 3) {printf("Non-critical - >href=\"http://%s/n >>cfw_b.html?index=%d\">%s\n",ENVIRON["IP"],$2,$3); exit 1; } >> if ($1 == 4) {printf("Critical - > href=\"http://% >>s/ncfw_ >>b.html?index=%d\">%s\n",ENVIRON["IP"],$2,$3); exit 1; } >>print "Unknown"; exit -1; >>}' >>------------8<----------------------- >> >>Its based on a file that resides on the webserver of the switch with >>the status in it. >> >>Pawel Wojnicki zei: >> > Hey sure - I'd appreciate any help and info >> > >> > Pawel >> > >> >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >> >>Subject: Re: [Nagios-users] Monitoring HP switches >> >>From: "Wim Fournier" >> >>To: >> >>Importance: Normal >> >>Reply-To: wim at hsmade.com >> >>X-Mailer: SquirrelMail (version 1.2.5) >> >>X-Spam-Status: No, hits=-3.1 required=5.0 >> >>tests=IN_REP_TO,MAY_BE_FORGED >> >> version=2.20 >> >>X-Spam-Level: >> >> >> >>Pawel Wojnicki zei: >> >> > Does anyone here have any experience in monitoring HP ethernet >> >> > switches? I figure you have to use check_snmp, but couldn't >> >> > find anything further in the faq or fm. >> >> >> >>even better, i hacked myself through the web management page and >> >>found a way to check for the status lamp in the left upper corner >> >>and create a link in the status field to the page with the error (if >> >>existant) >> >> >> >>contact me if you want it, it should be also somewhere on >> >>sourceforge as patch.. but can't remember where >> >> > >> >> > Pawel >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------- >> >> > This SF.NET email is sponsored by: >> >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 >> >> > See! http://www.vasoftware.com >> >> > _______________________________________________ >> >> > Nagios-users mailing list >> >> > Nagios-users at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >> >> >> >> >>Grtz, >> >> >> >>Wim Fournier >> >>wim at hsmade.[com|net|org] >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Sun Feb 9 07:09:51 2003 From: rich at vel.net (Richard Gross) Date: Sat, 8 Feb 2003 22:09:51 -0800 Subject: website transaction monitor / simple web form Message-ID: <52183F243CF19E44A1166F250311C34B047772@cheddarcheese.vel.net> Stanley, Thanks for your approach. I elected to try WWW::Mechanize and got This far: #!/usr/bin/perl -w # Check Communigate Pro webmail for Nagios use WWW::Mechanize; use HTML::TokeParser; use diagnostics; my $browser = WWW::Mechanize->new(); $browser->get("http://webmail.vel.net/"); $browser->form(1); $browser->field("Username", "test\@vel.net"); $browser->field("Password", "test06"); $browser->click("login"); $browser->follow("here"); $pattern = "INBOX"; $_ = $browser->{content}; if ( /$pattern/ ) { print "INBOX"; exit 0; } else { print "CRITICAL"; exit -1; } I wrote this for the purpose of seeing whether webmail was up or not. It Was easy to monitor for SMTP and POP3. I'd love to figure out SMTP transaction to a POP3 box. Anyways... The above works for the way I have Communigate Pro setup. I know everything is hard coded and I'm not taking any ARGV things. My limited knowledge of Perl is preventing me on how to send Nagios the results of OK or CRITICAL. Been trying to figure it out, but kinda stumped right now. But Perl is an Amazing beast. So few lines of code to do something very useful. So, any ideas are appreciated. richg -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Friday, February 07, 2003 6:15 PM To: Richard Gross Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] website transaction monitor / simple web form Dear Sir, There are a number of approaches for dealing with HTTP transactions/web forms. They include your writing wrraper programs to Perl modules that are congnizant of the transaction structure (ie what to send to what URL and when). These modules include A CPAN 1 WWW::Mechanize 2 WWW::Automate B SourceForge 1 HTTP::MonkeyWrench C unpublished 1 Netsaint::Web_Trx Here's an example plugin using the latter, use constant Intro => 'http://external/atmoss/falcon.application_start' ; use constant ConnectToSearch => 'http://external/atmoss/Falcon_Users_Cookies.Define_User' ; use constant MultiSessConn => 'http://external/atmoss/Falcon_Users_Cookies.Run_Create' ; use constant Search => 'http://external/atmoss/Falcon.Result' ; use constant ResultAbstract => 'http://external/atmoss/falcon_details.show_tm_details' ; use constant ResultDetails => 'http://external/atmoss/Falcon_Details.Show_TM_Details' ; use constant DeleteSearches => 'http://external/atmoss/Falcon_Searches.Delete_All_Searches' ; use constant Int => 'Welcome to ATMOSS' ; use constant ConnSrch => 'Connect to Trade Mark Search' ; use constant MltiSess => 'Fill in one or more of the fields below' ; use constant Srch => 'Your search request retrieved\s+\d+\s+match(es)?' ; use constant ResAbs => 'Trade Mark\s+:\s+\d+' ; use constant ResDet => ResAbs ; use constant DelSrch => MltiSess ; use constant MSC_f => [p_Anon => 'REGISTERED', p_user_type => 'Connect to Existing Extract List', p_extID => 'Stanley Hopcroft', p_password => 'It', p_JS => 'N'] ; use constant Srch_v => [p_tmno1 => 'tmno'] ; use constant RA_v => [p_tm_number => 'tmno'] ; use constant RA_f => [p_detail => 'QUICK', p_rec_all => 1, p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D'] ; use constant RD_v => RA_v ; use constant RD_f => [p_Detail => 'DETAILED', p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D']; use constant OraFault => 'We were unable to process your request at this time' ; use constant URLS => [ {Method => 'GET', Url => Intro, Qs_var => [], Qs_fixed => [], Exp => Int, Exp_Fault => OraFault}, {Method => 'GET', Url => ConnectToSearch, Qs_var => [], Qs_fixed => [], Exp => ConnSrch,Exp_Fault => OraFault}, {Method => 'POST', Url => MultiSessConn, Qs_var => [], Qs_fixed => MSC_f,Exp => MltiSess,Exp_Fault => OraFault}, {Method => 'POST', Url => Search, Qs_var => Srch_v, Qs_fixed => [], Exp => Srch, Exp_Fault => OraFault}, {Method => 'GET', Url => ResultAbstract, Qs_var => RA_v, Qs_fixed => RA_f, Exp => ResAbs,Exp_Fault => OraFault}, {Method => 'POST', Url => ResultDetails, Qs_var => RD_v, Qs_fixed => RD_f, Exp => ResDet,Exp_Fault => OraFault}, {Method => 'POST', Url => DeleteSearches, Qs_var => [], Qs_fixed => [], Exp => DelSrch, Exp_Fault => OraFault}, ] ; my (@tmarks, $tmno, $i) ; @tmarks = @ARGV ? @ARGV : (3, 100092, 200099, 300006, 400075, 500067, 600076, 700066, 800061) ; $i = @ARGV == 1 ? 0 : int( rand($#tmarks) + 0.5 ) ; $tmno = $tmarks[$i] ; my $x = Netsaint::Web_Trx->new( URLS ) ; my ($rc, $message) = $x->check( {tmno => $tmno}, debug => $debug) ; print "ATMOSS $message\n" ; exit($rc ? $ERRORS{'OK'} : $ERRORS{'CRITICAL'}) ; Easy Peasi: call the constructor with a ref to a hash containing all the URLs and the data to be sent to each URL, then call the check method. The hard bit in this case - and it's a pretty big gotcha - is _you_ have to work out the sequence of URLs sent and the data supplied to each form (some of which is invisible). The CPAN modules may be a better bet but this works well for me. On Fri, Feb 07, 2003 at 11:31:33AM -0800, Richard Gross wrote: > Wondering what can be done to use Nagios to check > a simple webform? Maybe some modifiction of the wget that > checked the hp switches? The opening page has: > >

Welcome to CommuniGate Pro,
> the test.net Messaging > Server!

>
> > > > >
Registered Users
>
> > > > > > > > > > > > > > > >
color="#cc6600">Login > Name color="cc6600">Password
> maxlength=255> > > maxlength=99> > > >
>

>

> > and would like to supply a username and password to this form, > then check for a text string INBOX would be all that's required. > > I did try the command: > > wget -r --http-user=chris at test.net --http-passwd=chris06 > http://webmail.test.net but only got back the index page... > > Not really sure how to proceed from here. > > richg > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jens at nha.co.za Sun Feb 9 09:26:14 2003 From: jens at nha.co.za (=?utf-8?Q?Jens_von_B=C3=BClow?=) Date: Sun, 9 Feb 2003 10:26:14 +0200 Subject: check_ifstatus: Missing right curly or square bracket at ./check_ifstatus line 254 Message-ID: <8F2D061DFD77E444B00D8FE9B8273DD012E6C5@titan.nha.co.za> R3JlZXRpbmdzLA0KIA0KRG9lcyBhbnlvbmUga25vdyBob3cgdG8gZml4IHRoaXMgZXJyb3IgbWVz c2FnZT8NCiANCjxzbmlwPg0KW2plbnNAaG9zdCBwbHVnaW5zXSMgLi9jaGVja19pZnN0YXR1cw0K TWlzc2luZyByaWdodCBjdXJseSBvciBzcXVhcmUgYnJhY2tldCBhdCAuL2NoZWNrX2lmc3RhdHVz IGxpbmUgMjU0LCBhdCBlbmQgb2YgbGluZQ0Kc3ludGF4IGVycm9yIGF0IC4vY2hlY2tfaWZzdGF0 dXMgbGluZSAyNTQsIGF0IEVPRg0KRXhlY3V0aW9uIG9mIC4vY2hlY2tfaWZzdGF0dXMgYWJvcnRl ZCBkdWUgdG8gY29tcGlsYXRpb24gZXJyb3JzLg0KPC9zbmlwPg0KIA0KV2UgYXJlIHVzaW5nIHBl cmwgdmVyc2lvbiB2NS42LjEgYnVpbHQgZm9yIGkzODYtbGludXggYW5kIG5hZ2lvcy1wbHVnaW5z LTEuMy4wLWJldGEyICYgbmFnaW9zLXBsdWdpbnMtZXh0cmFzLTEuMy4wLWJldGEyLg0KIA0KVGhh bmtzICYgUmVnYXJkcw0KSmVucw0KIA0K ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Sun Feb 9 12:10:51 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 09 Feb 2003 06:10:51 -0500 (EST) Subject: check_ifstatus: Missing right curly or square bracket at ./check_ifstatus line 254 In-Reply-To: <8F2D061DFD77E444B00D8FE9B8273DD012E6C5@titan.nha.co.za> References: <8F2D061DFD77E444B00D8FE9B8273DD012E6C5@titan.nha.co.za> Message-ID: add a "}" to line 199 fixed in CVS - bug 651021 -sg On Sun, 9 Feb 2003, [utf-8] Jens von B??low wrote: > Greetings, > > Does anyone know how to fix this error message? > > > [jens at host plugins]# ./check_ifstatus > Missing right curly or square bracket at ./check_ifstatus line 254, at end of line > syntax error at ./check_ifstatus line 254, at EOF > Execution of ./check_ifstatus aborted due to compilation errors. > > We are using perl version v5.6.1 built for i386-linux and > nagios-plugins-1.3.0-beta2 & nagios-plugins-extras-1.3.0-beta2. > > Thanks & Regards > Jens > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Sun Feb 9 16:50:58 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Sun, 09 Feb 2003 10:50:58 -0500 Subject: check_citrix problem Message-ID: Hey all, I get the following when trying to ./check_citrix -h: Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./check_citrix line 32.BEGIN failed--compilation aborted at ./check_citrix line 32. How do I fix this? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sonar at kaos.xs4all.nl Sun Feb 9 17:12:25 2003 From: sonar at kaos.xs4all.nl (Frank de Groodt) Date: Sun, 9 Feb 2003 17:12:25 +0100 (CET) Subject: check_citrix problem In-Reply-To: References: Message-ID: You are probable not executing it from the plugins directory where utils.pm is located. Frank On Sun, 9 Feb 2003, Jarett DeAngelis wrote: > Hey all, > > I get the following when trying to ./check_citrix -h: > > Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./check_citrix line 32.BEGIN failed--compilation aborted at ./check_citrix line 32. > How do I fix this? > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 10 02:57:10 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 09 Feb 2003 20:57:10 -0500 (EST) Subject: check_citrix problem In-Reply-To: References: Message-ID: Make sure there is a "use lib /path/to/utils.pm" statement before "use utils.pm" -sg On Sun, 9 Feb 2003, Jarett DeAngelis wrote: > Hey all, > > I get the following when trying to ./check_citrix -h: > > Can't locate utils.pm in @INC (@INC contains: > /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at > ./check_citrix line 32.BEGIN failed--compilation aborted at > ./check_citrix line 32. How do I fix this? > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 10 05:20:09 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 10 Feb 2003 15:20:09 +1100 Subject: FYI. Authentication of Nag/Netsaint web pages _without_ password challeng for MS IE browsers .. Message-ID: <20030210151958.K55236@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to let you know about a means of granting protected access to Nag/Netsaint web pages _without_ being challenged for a username and password (This authentication method is called NTLM; MS IE browsers take the 'logged in user name and password hash' from a MS Win wokstation and send it instead of 'basic' authentication). First the caveats 1 Works only with MS IE browsers, Other browsers eg Mozilla for Win, Nav/Moz for Unix challenge the user with the usual realm/username/password dialogue box ie it works exactly as one is used to with a decent browser. 2 Works only for MS Workstations _excepting_ Metaframe sessions with MS Terminal server/Metaframe application servers 3 Workstation must be logged into an MS domain/workgroup (probably including a Samba pdc/bdc but I haven't tried this) 4 Provides no group information This means you can't insist that only logged in users in specific NT groups can access Nag/Netsaint. This is probably only relevant to people that use domain auth in a big way. 5 Requires 5.1 mod_perl 5.2 Authen::Smb } published CPAN modules 5.3 Apache::AuthenNTLM } Note 1 Authen::Smb is a Perl XS that doesn't build cleanly on at least some Unix systems (however, the solution is a trivial patch). 2 AuthenNTLM _almost certainly_ requires a trivial patch to work with existing Nag setups since the user it valiudates is 'Domain\UserName' rather than UserName (as you have probably set in cgi.cfg). The patch again is trivial. Why would you want to mess with yet another 'extend and embrace' MS proprietary protocol ? Because you may have PHBs that only use MS IE browsers and you don't want them whining about yet another password. If on the other hand, you have Linux desktops/Management stations, you can happily ignore this. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 08:24:03 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 08:24:03 +0100 Subject: 3D statusmap Message-ID: default_statusmap_layout is set to 5 and default_statuswrl_layout is set to 4. And I've got no hostnames with periods either... Thomas >-----Original Message----- >From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] >Sent: Friday, February 07, 2003 8:22 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >That's what I think the problem is (depending on what version of Nagios >you're running). > >What do you have default_statusmap_layout set for in cgi.cfg? >If you have >it set for 0, change it to one of the other values, restart >nagios and see >if that makes a difference. > >jc > >-----Original Message----- >From: Marc Powell [mailto:mpowell at ena.com] >Sent: Friday, February 07, 2003 8:40 AM >To: Thomas.Nilsen at roxar.com; wim at hsmade.com >Cc: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] 3D statusmap > > >I seem to remember some discussion of periods in names being a >problem. Is >that applicable? You might find something in the archives to >confirm that. > > >-- >Marc > >Sent from a very tiny wireless device with a very tiny unlit keyboard. > > >-----Original Message----- >From: Thomas Nilsen >To: wim at hsmade.com >CC: nagios-users at lists.sourceforge.net > >Sent: Fri Feb 07 08:21:15 2003 >Subject: RE: [Nagios-users] 3D statusmap > >That's my "AI" hands trying to clever. :-) The comma is not in >/etc/mime.types > >So this has to be for some other reason.... > >>-----Original Message----- >>From: Wim Fournier [mailto:wim at hsmade.com] >>Sent: Friday, February 07, 2003 3:19 PM >>To: Thomas Nilsen >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>Thomas Nilsen zei: >>> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >>its supposed to be "model/vrml wrl vrml" for apache. dont >>know if you put >>that comma there yourself, or that its normal for windows or >something. >> >> >>> >>>>-----Original Message----- >>>>From: Wim Fournier [mailto:wim at hsmade.com] >>>>Sent: Friday, February 07, 2003 2:49 PM >>>>To: Thomas Nilsen >>>>Cc: nagios-users at lists.sourceforge.net >>>>Subject: RE: [Nagios-users] 3D statusmap >>>> >>>> >>>>mime-types maybe? >>>> >>>>Thomas Nilsen zei: >>>>> I don't thinl it is a plugin issue, as the demo site for >>Nagios works >>>>> well when trying out the 3D statusmap. It's got to be >>>>something with my >>>>> Nagios setup. >>>>> >>>>>>-----Original Message----- >>>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>>To: Thomas Nilsen; Pawel Wojnicki; >>nagios-users at lists.sourceforge.net >>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>>the trick >>>>>> >>>>>>-----Original Message----- >>>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>This is the same issue as I did a post on earlier this week. >>>>>>So far I've not >>>>>>been able to solve it... >>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>>To: nagios-users at lists.sourceforge.net >>>>>>>Subject: [Nagios-users] 3D statusmap >>>>>>> >>>>>>> >>>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>>want to >>>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>>When I select "open", it's not accessible. >>>>>>>I tried it with cortona wrml viewer and cosmoplayer - no >dice. Any >>>>>>>suggestions? >>>>>>> >>>>>>>Pawel >>>>>>> >>>>>>> >>>>>>> >>>>>>>------------------------------------------------------- >>>>>>>This SF.NET email is sponsored by: >>>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>Something 2 See! >>>>>>>http://www.vasoftware.com >>>>>>>_______________________________________________ >>>>>>>Nagios-users mailing list >>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>> >>>>>> >>>>>> >>>>>>DISCLAIMER: >>>>>>This message contains information that may be privileged or >>>>>>confidential and >>>>>>is the property of the Roxar Group. It is intended only for >>>>>>the person to >>>>>>whom it is addressed. If you are not the intended recipient, >>>>>>you are not >>>>>>authorised to read, print, retain, copy, disseminate, >>>>>>distribute, or use >>>>>>this message or any part thereof. If you receive this >>>>message in error, >>>>>>please notify the sender immediately and delete all copies of >>>>>>this message. >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>> DISCLAIMER: >>>>> This message contains information that may be privileged or >>>>> confidential and is the property of the Roxar Group. It >is intended >>>>> only for the person to whom it is addressed. If you are not the >>>>> intended recipient, you are not authorised to read, print, retain, >>>>> copy, disseminate, distribute, or use this message or any >>>>part thereof. >>>>> If you receive this message in error, please notify the sender >>>>> immediately and delete all copies of this message. >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.NET email is sponsored by: >>>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >>Something 2 See! >>>>> http://www.vasoftware.com >>>>> _______________________________________________ >>>>> Nagios-users mailing list >>>>> Nagios-users at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>>> >>>> >>>>Grtz, >>>> >>>>Wim Fournier >>>>wim at hsmade.[com|net|org] >>>> >>>> >>>> >>> >>> >>> DISCLAIMER: >>> This message contains information that may be privileged or >>> confidential and is the property of the Roxar Group. It is intended >>> only for the person to whom it is addressed. If you are not the >>> intended recipient, you are not authorised to read, print, retain, >>> copy, disseminate, distribute, or use this message or any >>part thereof. >>> If you receive this message in error, please notify the sender >>> immediately and delete all copies of this message. >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: >>> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>> http://www.vasoftware.com >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] >> >> >> > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and >is the property of the Roxar Group. It is intended only for >the person to >whom it is addressed. If you are not the intended recipient, >you are not >authorised to read, print, retain, copy, disseminate, >distribute, or use >this message or any part thereof. If you receive this message in error, >please notify the sender immediately and delete all copies of >this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 08:26:58 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 08:26:58 +0100 Subject: FYI. Authentication of Nag/Netsaint web pages _without_ password challeng for MS IE browsers .. Message-ID: Stanley, Could you post some more details on this? I've tried unsuccessfully to get Apache:AuthenNTLM to work. which pathces do you use, and from where do you get them? Regards, Thomas >-----Original Message----- >From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] >Sent: Monday, February 10, 2003 5:20 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] FYI. Authentication of Nag/Netsaint web pages >_without_ password challeng for MS IE browsers .. > > >Dear Ladies and Gentlemen, > >I am writing to let you know about a means of granting protected access >to Nag/Netsaint web pages _without_ being challenged for a username and >password (This authentication method is called NTLM; MS IE >browsers take >the 'logged in user name and password hash' from a MS Win >wokstation and >send it instead of 'basic' authentication). > >First the caveats > >1 Works only with MS IE browsers, > >Other browsers eg Mozilla for Win, Nav/Moz for Unix challenge the user >with the usual realm/username/password dialogue box ie it >works exactly >as one is used to with a decent browser. > >2 Works only for MS Workstations _excepting_ Metaframe >sessions with MS >Terminal server/Metaframe application servers > >3 Workstation must be logged into an MS domain/workgroup (probably >including a Samba pdc/bdc but I haven't tried this) > >4 Provides no group information > >This means you can't insist that only logged in users in specific NT >groups can access Nag/Netsaint. This is probably only relevant >to people >that use domain auth in a big way. > >5 Requires > >5.1 mod_perl >5.2 Authen::Smb } published CPAN modules >5.3 Apache::AuthenNTLM } > >Note > >1 Authen::Smb is a Perl XS that doesn't build cleanly on at least >some Unix systems (however, the solution is a trivial patch). > >2 AuthenNTLM _almost certainly_ requires a trivial patch to work with >existing Nag setups since the user it valiudates is 'Domain\UserName' >rather than UserName (as you have probably set in cgi.cfg). The patch >again is trivial. > >Why would you want to mess with yet another 'extend and embrace' MS >proprietary protocol ? > >Because you may have PHBs that only use MS IE browsers and you don't >want them whining about yet another password. > >If on the other hand, you have Linux desktops/Management stations, you >can happily ignore this. > >Yours sincerely. > > > -- >--------------------------------------------------------------- >--------- >Stanley Hopcroft >--------------------------------------------------------------- >--------- > >'...No man is an island, entire of itself; every man is a piece of the >continent, a part of the main. If a clod be washed away by the sea, >Europe is the less, as well as if a promontory were, as well as if a >manor of thy friend's or of thine own were. Any man's death diminishes >me, because I am involved in mankind; and therefore never send to know >for whom the bell tolls; it tolls for thee...' > >from Meditation 17, J Donne. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 08:33:34 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 08:33:34 +0100 Subject: Compaq Insight Manager plugin v0.1 available Message-ID: Yes, it should. Will fix till next release. Thanks, Thomas >-----Original Message----- >From: Shayne Lebrun [mailto:slebrun at muskoka.com] >Sent: Saturday, February 08, 2003 8:15 PM >To: Thomas Nilsen; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] Compaq Insight Manager plugin v0.1 >available > > >NUMBER_OF_TEMP_SENSORS=0 >MEMORY_ERR_WARN_PERCENT=1 # Warn above this percent >MEMORY_ERR_WARN_PERCENT=50 # Panic above this percent >PERCENT_TEMP_WARN=60 >PERCENT_TEMP_PANIC=70 >MEMORY_ERR_PANIC_PERCENT=20 > >Shouldn't that third line read MEMORY_ERR_PANIC_PERCENT ? > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thomas >Nilsen >Sent: Friday, February 07, 2003 8:37 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Compaq Insight Manager plugin v0.1 available > > >Hope this might be of interest to other Compaq server owners... > >I've modified Craig Cook's Big Brother script to work with >Nagios. This is a >pre release, which we are using in our production environment. > >It can be downloaded from >http://home.broadpark.no/~tnilsen->1/check_cpqim.sh >for the >time being. I will put some docs >together for it as well, but it >will do for now. > >Any problems, please email me on thomas.nilsen at roxar.com or >thomas.nilsen at doc-s.co.uk. > >Things to do: > >Timeout settings >Command line options needs to be improved. >Warning and Critical Level options (is currently using CPQ Agent levels >and/or hard coded levels from the script). > >Regards, >Thomas Nilsen >Svg Support >Tel: +47 51 81 01 30 - Mob: +47 916 98 229 > > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and >is the property of the Roxar Group. It is intended only for >the person to >whom it is addressed. If you are not the intended recipient, >you are not >authorised to read, print, retain, copy, disseminate, >distribute, or use >this message or any part thereof. If you receive this message in error, >please notify the sender immediately and delete all copies of >this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 09:18:15 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 09:18:15 +0100 Subject: 3D statusmap Message-ID: found the culprit... I'm using Nagios over HTTPS, which causes the 3D view to fail. I don't know if it is Nagios/Apache or the 3d plugin for the browser that's causing it, but once I swithced to HTTP it works. The error logged in apache's error_log is: Mon Feb 10 08:36:20 2003] [error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows) [Mon Feb 10 08:36:20 2003] [error] System: Connection reset by peer (errno: 104) Thomas >-----Original Message----- >From: Thomas Nilsen >Sent: Monday, February 10, 2003 8:24 AM >To: nagios-users at lists.sourceforge.net >Cc: Carroll, Jim P [Contractor] >Subject: RE: [Nagios-users] 3D statusmap > > >default_statusmap_layout is set to 5 and >default_statuswrl_layout is set to 4. > >And I've got no hostnames with periods either... > >Thomas > >>-----Original Message----- >>From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] >>Sent: Friday, February 07, 2003 8:22 PM >>To: Thomas Nilsen >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>That's what I think the problem is (depending on what version >of Nagios >>you're running). >> >>What do you have default_statusmap_layout set for in cgi.cfg? >>If you have >>it set for 0, change it to one of the other values, restart >>nagios and see >>if that makes a difference. >> >>jc >> >>-----Original Message----- >>From: Marc Powell [mailto:mpowell at ena.com] >>Sent: Friday, February 07, 2003 8:40 AM >>To: Thomas.Nilsen at roxar.com; wim at hsmade.com >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] 3D statusmap >> >> >>I seem to remember some discussion of periods in names being a >>problem. Is >>that applicable? You might find something in the archives to >>confirm that. >> >> >>-- >>Marc >> >>Sent from a very tiny wireless device with a very tiny unlit keyboard. >> >> >>-----Original Message----- >>From: Thomas Nilsen >>To: wim at hsmade.com >>CC: nagios-users at lists.sourceforge.net >> >>Sent: Fri Feb 07 08:21:15 2003 >>Subject: RE: [Nagios-users] 3D statusmap >> >>That's my "AI" hands trying to clever. :-) The comma is not in >>/etc/mime.types >> >>So this has to be for some other reason.... >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 3:19 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>Thomas Nilsen zei: >>>> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >>>its supposed to be "model/vrml wrl vrml" for apache. dont >>>know if you put >>>that comma there yourself, or that its normal for windows or >>something. >>> >>> >>>> >>>>>-----Original Message----- >>>>>From: Wim Fournier [mailto:wim at hsmade.com] >>>>>Sent: Friday, February 07, 2003 2:49 PM >>>>>To: Thomas Nilsen >>>>>Cc: nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>mime-types maybe? >>>>> >>>>>Thomas Nilsen zei: >>>>>> I don't thinl it is a plugin issue, as the demo site for >>>Nagios works >>>>>> well when trying out the 3D statusmap. It's got to be >>>>>something with my >>>>>> Nagios setup. >>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>>>To: Thomas Nilsen; Pawel Wojnicki; >>>nagios-users at lists.sourceforge.net >>>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>>> >>>>>>> >>>>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>>>the trick >>>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>>> >>>>>>> >>>>>>>This is the same issue as I did a post on earlier this week. >>>>>>>So far I've not >>>>>>>been able to solve it... >>>>>>> >>>>>>>>-----Original Message----- >>>>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>>>To: nagios-users at lists.sourceforge.net >>>>>>>>Subject: [Nagios-users] 3D statusmap >>>>>>>> >>>>>>>> >>>>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>>>want to >>>>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>>>When I select "open", it's not accessible. >>>>>>>>I tried it with cortona wrml viewer and cosmoplayer - no >>dice. Any >>>>>>>>suggestions? >>>>>>>> >>>>>>>>Pawel >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>------------------------------------------------------- >>>>>>>>This SF.NET email is sponsored by: >>>>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>>Something 2 See! >>>>>>>>http://www.vasoftware.com >>>>>>>>_______________________________________________ >>>>>>>>Nagios-users mailing list >>>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>>> >>>>>>> >>>>>>> >>>>>>>DISCLAIMER: >>>>>>>This message contains information that may be privileged or >>>>>>>confidential and >>>>>>>is the property of the Roxar Group. It is intended only for >>>>>>>the person to >>>>>>>whom it is addressed. If you are not the intended recipient, >>>>>>>you are not >>>>>>>authorised to read, print, retain, copy, disseminate, >>>>>>>distribute, or use >>>>>>>this message or any part thereof. If you receive this >>>>>message in error, >>>>>>>please notify the sender immediately and delete all copies of >>>>>>>this message. >>>>>>> >>>>>>> >>>>>>>------------------------------------------------------- >>>>>>>This SF.NET email is sponsored by: >>>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>>Something 2 See! >>>>>>>http://www.vasoftware.com >>>>>>>_______________________________________________ >>>>>>>Nagios-users mailing list >>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>> >>>>>> >>>>>> >>>>>> DISCLAIMER: >>>>>> This message contains information that may be privileged or >>>>>> confidential and is the property of the Roxar Group. It >>is intended >>>>>> only for the person to whom it is addressed. If you are not the >>>>>> intended recipient, you are not authorised to read, >print, retain, >>>>>> copy, disseminate, distribute, or use this message or any >>>>>part thereof. >>>>>> If you receive this message in error, please notify the sender >>>>>> immediately and delete all copies of this message. >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.NET email is sponsored by: >>>>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >>>Something 2 See! >>>>>> http://www.vasoftware.com >>>>>> _______________________________________________ >>>>>> Nagios-users mailing list >>>>>> Nagios-users at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>>> >>>>> >>>>>Grtz, >>>>> >>>>>Wim Fournier >>>>>wim at hsmade.[com|net|org] >>>>> >>>>> >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >>DISCLAIMER: >>This message contains information that may be privileged or >>confidential and >>is the property of the Roxar Group. It is intended only for >>the person to >>whom it is addressed. If you are not the intended recipient, >>you are not >>authorised to read, print, retain, copy, disseminate, >>distribute, or use >>this message or any part thereof. If you receive this message >in error, >>please notify the sender immediately and delete all copies of >>this message. >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and is the property of the Roxar Group. It is >intended only for the person to whom it is addressed. If you >are not the intended recipient, you are not authorised to >read, print, retain, copy, disseminate, distribute, or use >this message or any part thereof. If you receive this message >in error, please notify the sender immediately and delete all >copies of this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 10 09:33:28 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 10 Feb 2003 19:33:28 +1100 Subject: FYI. Authentication of Nag/Netsaint web pages _without_ password challeng for MS IE browsers .. In-Reply-To: ; from Thomas.Nilsen@roxar.com on Mon, Feb 10, 2003 at 08:26:58AM +0100 References: Message-ID: <20030210193319.B220@IPAustralia.Gov.AU> Dear Sir, On Mon, Feb 10, 2003 at 08:26:58AM +0100, Thomas Nilsen wrote: > Stanley, > > Could you post some more details on this? I've tried unsuccessfully to > get Apache::AuthenNTLM to work. which patches do you use, I am a litle reluctant to talk more about this for various reasons, most particuarly 1 Authen::AuthenSmb is based on _old_ technology. I would like to provide a better basis for modules like this. 2 There is another list member who has been devoting some time to this matter and he indicated a wish to provide the list with a blow by blow description of how setup Domain authentication of Nag CGIs. I apologise for preempting his work but suggest that there is ample scope for what he intends. > and from where do you get them? >From me. Caveat Emptor. > Regards, Thomas Here are the patches. tsitc> diff -U3 smbval/smbencrypt.c.orig smbval/smbencrypt.c --- smbval/smbencrypt.c.orig Sat Jul 14 19:53:56 2001 +++ smbval/smbencrypt.c Sat Jul 14 19:54:11 2001 @@ -24,7 +24,7 @@ #include #include #include -#include +/* #include */ #include #include #include "smblib-priv.h" tsitc> # Note, this is known to work _only_ on FreeBSD 4.x # Don't even think about hacking Mr Sharpes 'portable SMB library'. # Samba now provides a portable client library 'libsmbclient.so'. tsitc> diff -U3 AuthenNTLM.pm.dist AuthenNTLM.pm --- AuthenNTLM.pm.dist Fri Feb 7 19:30:20 2003 +++ AuthenNTLM.pm Fri Feb 7 19:31:25 2003 @@ -232,7 +232,8 @@ { my ($self, $r) = @_ ; - return lc("$self->{userdomain}\\$self->{username}") ; + return lc("$self->{username}") ; + # return lc("$self->{userdomain}\\$self->{username}") ; } tsitc> # Note 1 You almost certainly need this patch unless your Nag users are # of the form Domain\UserName # Note 2 Unless your Nag usernames and Domain Account names are # # _identical_, _none_ of these means of Authentication methods # are going to be useful. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Wibo.Lammerts at hmg.nl Mon Feb 10 10:01:32 2003 From: Wibo.Lammerts at hmg.nl (Wibo Lammerts) Date: Mon, 10 Feb 2003 10:01:32 +0100 Subject: NSCLIENT ERRORS IN NAGIOS Message-ID: Hi all, Could someone please clarify the errors listed below? Error on server 1: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&8&\Paging File(_Total)\% Usage&Paging File usage is %.2f %% After restarting the service, the following error comes up in the logs: NSCleint Error: PDH.dll Collect CPU - ERROR: 0x800007D6 Error on server 2: NSClient - ERROR:Wrong password Any info is appreciated. Wibo Lammerts Systems Engineering HMG / RTL GROUP SA ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Mon Feb 10 10:40:31 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 10 Feb 2003 10:40:31 +0100 Subject: FW: Nagios to monitor MQSeries Message-ID: I have to include some libraries: gcc -o amqsailq -lmqic -lmqicb -lmqmcs -lmqmzse amqsailq.c -vol > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Friday, February 07, 2003 8:45 PM > To: Aust, Volker, PRE; wim at hsmade.com > Cc: nagios-users at lists.sourceforge.net > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > What was the incantation you used for compiling amqsailq.c? I tried: > > gcc -o amqsailq -I ../inc amqsailq.c > > but no joy. > > jc > > > -----Original Message----- > > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] > > Sent: Friday, February 07, 2003 3:04 AM > > To: Carroll, Jim P [Contractor]; wim at hsmade.com > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > I have talked about IBM MQSeries and I never said, that it > was not an > > proprietary product. I do not check MQ from the Nagios host > > (Solaris 8 x86). > > I call my script (which calls a modified sample program) > > through NRPE on a > > Solaris 9 Sparc host with a MQ Client: > > > > $ pkginfo -l | fgrep -i mq > > PKGINST: mqm > > NAME: WebSphere MQ Client for Sun Solaris > > > > $ ls -l /opt/mqm/samp/amqsailq.c > > -r--r--r-- 1 mqm mqm 19373 Jun 14 2002 > > /opt/mqm/samp/amqsailq.c > > > > The colleague have found/modified/written a program > "queuedeep", that > > queries the length of a single queue from the MQ-server. I > > have wraped this > > program in a shell script to generate the error-code/output > > for Nagios. > > > > -vol > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Thursday, February 06, 2003 7:11 PM > > > To: 'wim at hsmade.com'; Aust, Volker, PRE > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > > > > MQSeries is similar to but different than SonicMQ. The > > > latter is a JMS > > > product by Sonic Software. The former is an IBM product > > > using a proprietary > > > standard. > > > > > > We have both here; I wouldn't mind monitoring both of these > > natively. > > > > > > Hm. We don't seem to have the 'amqsailq' program. What's > > > the default path > > > to this? I didn't find it under /opt/mqm nor under /usr (on > > > Solaris8). > > > > > > $ pkginfo -l | grep -i mq > > > PKGINST: mqjava > > > DESC: MQSeries classes for Java and MQSeries classes > > > for Java Message > > > Service > > > PKGINST: mqm > > > NAME: MQSeries for Sun Solaris 2 > > > PKGINST: mqm-upd03 > > > NAME: MQSeries for Sun Solaris 2 - U478291 > > > PKGINST: mqm-upd05 > > > NAME: MQSeries for Sun Solaris 2 - U481514 > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Wim Fournier [mailto:wim at hsmade.com] > > > > Sent: Thursday, February 06, 2003 10:38 AM > > > > To: Volker.Aust at premiere.de > > > > Cc: nagios-users at lists.sourceforge.net > > > > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > > > > > > > Are you talking about Sonic MQ here? > > > > > > > > > > > > > > > > > Sorry, I have forgotten the list... > > > > > > > > > >> -----Original Message----- > > > > >> From: Aust, Volker, PRE > > > > >> Sent: Thursday, February 06, 2003 1:06 PM > > > > >> To: 'Detlef.Knop at gmx.de' > > > > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > > > >> > > > > >> > > > > >> Hi Detlef, > > > > >> > > > > >> when you install the MQSeries client (with developer > > > > >> support), you get some sample programs. One of these sample > > > > >> programs is "amqsailq", which lists the length of all > > > > >> MQ-queues of a server. You can use "amqsailq" local or > > > > >> remote. When you use this program (or a mofified version, > > > > >> that only checks important queues like we do (a colleague has > > > > >> modified some of the sample programs)) remote, you can make > > > > >> two tests with one call: > > > > >> > > > > >> - check the connectivity to the MQ-server and the -service > > > > >> > > > > >> - check the length of some important queues (too many, too > > > > few, ...) > > > > >> > > > > >> I have wraped the program in a shell script to generate the > > > > >> Nagios stuff (return-code and output). > > > > >> > > > > >> Hope this helps. > > > > >> > > > > >> -vol > > > > >> > > > > >> > -----Original Message----- > > > > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > > > >> > Sent: Thursday, February 06, 2003 7:40 AM > > > > >> > To: nagios-users at lists.sourceforge.net > > > > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > > > > >> > > > > > >> > > > > > >> > Dear all, > > > > >> > > > > > >> > I would like to check whether MQSeries is available as a > > > > >> > service on several > > > > >> > of my hosts. My first approach was to use the check_tcp > > > > >> > plugin which from my > > > > >> > point of view worked fine. But the people looking after > > > > >> > MQSeries on these > > > > >> > machines came back to me and complained that each time the > > > > >> > plugin ran MQSeries > > > > >> > reported errors on these systems (two errors per check) > > > > >> > because MQSeries > > > > >> > detects the incoming connection and wants to receive proper > > > > >> > data, but then the > > > > >> > connection is closed. > > > > >> > > > > > >> > Has anyone ever tried to do the same and found a solution? > > > > >> > Maybe there is a > > > > >> > way using passive checks, or we might have to look into the > > > > >> > possibility to > > > > >> > write a plugin. > > > > >> > > > > > >> > Kind regards > > > > >> > > > > > >> > Detlef Knop > > > > >> > > > > > >> > -- > > > > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > > > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ > > > Min. surfen! > > > > >> > > > > > >> > > > > > >> > > > > > >> > ------------------------------------------------------- > > > > >> > This SF.NET email is sponsored by: > > > > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > > > > Something 2 See! > > > > >> > http://www.vasoftware.com > > > > >> > _______________________________________________ > > > > >> > Nagios-users mailing list > > > > >> > Nagios-users at lists.sourceforge.net > > > > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > >> > > > > > >> > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: > > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > > > Something 2 See! > > > > > http://www.vasoftware.com > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > Grtz, > > > > > > > > Wim Fournier > > > > wim at hsmade.[com|net|org] > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > > Something 2 See! > > > > http://www.vasoftware.com > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From katja.lehmann at web.de Mon Feb 10 11:57:19 2003 From: katja.lehmann at web.de (Katja Lehmann) Date: Mon, 10 Feb 2003 11:57:19 +0100 Subject: Misccommands... Message-ID: <200302101057.h1AAvJe00949@mailgate5.cinetic.de> Hi there! Well my Nagios works really fine since 4 month right now but I have just 2 problems with it: I want that my nagios notificates me via sms and ring me on the phone so I wrote two scripts. One to connect to our sms-gateway and for the phone I changed the /etc/wvdial.conf to ring me. Well... when I exec the two scripts from commandline e.g. ./wvdial it is functionally. But when I write it into misccomands it does not work. Of course I wrote the notification command into the contacts.cfg but I did not recive a sms or a calling from nagios. Here my misccommands.cfg: define command { name notify-by-phone command_name notify-by-phone command_line /usr/bin/wvdial } define command { name host-notify-by-phone command_name host-notify-by-phone command_line /usr/bin/wvdial } define command { name notify-by-sys command_name notify-by-sms command_line /usr/bin/printf "%b" "Nagios Notification Type:$NOTIFICATIONTYPE$ Service:$SERVICEDESK$ Host:$ HOSTALIAS$ Adress:$HOSTADDRESS$ State:$SERVICESTATE$ Date:$DATETIME$ Info:$OUTPUT$" > /root/smsmsg } define command { name host-notify-by-sms command_name host-notify-by-sms command_line /usr/bin/printf "%b" "test" > /root/smsmsg } I hope that someboddy can help me!!!! Katja ______________________________________________________________________________ Nur ein Zuhause im Internet: Verwalten Sie alle Ihre E-Mail-Adressen einfach bei WEB.DE FreeMail! http://freemail.web.de/features/?mc=021124 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Mon Feb 10 12:17:49 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 10 Feb 2003 06:17:49 -0500 Subject: Misccommands... In-Reply-To: <200302101057.h1AAvJe00949@mailgate5.cinetic.de> References: <200302101057.h1AAvJe00949@mailgate5.cinetic.de> Message-ID: <1044875867.2943.32.camel@localhost.localdomain> At first blush, it appears unlikely that the webserver user or the nagios user would be able to access /root/smsmsg. Maybe the file need to go int /tmp? -- Karl On Mon, 2003-02-10 at 05:57, Katja Lehmann wrote: > Hi there! > Well my Nagios works really fine since 4 month right now but I have just 2 problems with it: > I want that my nagios notificates me via sms and ring me on the phone so I wrote two scripts. One to connect to our sms-gateway and for the phone I changed the /etc/wvdial.conf to ring me. > Well... when I exec the two scripts from commandline e.g. ./wvdial it is functionally. > But when I write it into misccomands it does not work. > Of course I wrote the notification command into the contacts.cfg but I did not recive a sms or a calling from nagios. > > Here my misccommands.cfg: > > define command { > name notify-by-phone > command_name notify-by-phone > command_line /usr/bin/wvdial > } > > define command { > name host-notify-by-phone > command_name host-notify-by-phone > command_line /usr/bin/wvdial > } > > > define command { > name notify-by-sys > command_name notify-by-sms > command_line /usr/bin/printf "%b" "Nagios Notification Type:$NOTIFICATIONTYPE$ Service:$SERVICEDESK$ Host:$ > HOSTALIAS$ Adress:$HOSTADDRESS$ State:$SERVICESTATE$ Date:$DATETIME$ Info:$OUTPUT$" > /root/smsmsg > } > > define command { > name host-notify-by-sms > command_name host-notify-by-sms > command_line /usr/bin/printf "%b" "test" > /root/smsmsg > } > > I hope that someboddy can help me!!!! > > > Katja > ______________________________________________________________________________ > Nur ein Zuhause im Internet: Verwalten Sie alle Ihre E-Mail-Adressen > einfach bei WEB.DE FreeMail! http://freemail.web.de/features/?mc=021124 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Mon Feb 10 14:02:59 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Mon, 10 Feb 2003 07:02:59 -0600 Subject: NSCLIENT ERRORS IN NAGIOS Message-ID: Have you upgraded to the latest version of the NSClient? It's supposed to stop those errors being written to the Eventlog. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: Wibo.Lammerts [mailto:Wibo.Lammerts at hmg.nl] Sent: Monday, February 10, 2003 3:02 AM To: nagios-users Subject: [Nagios-users] NSCLIENT ERRORS IN NAGIOS Hi all, Could someone please clarify the errors listed below? Error on server 1: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&8&\Paging File(_Total)\% Usage&Paging File usage is %.2f %% After restarting the service, the following error comes up in the logs: NSCleint Error: PDH.dll Collect CPU - ERROR: 0x800007D6 Error on server 2: NSClient - ERROR:Wrong password Any info is appreciated. Wibo Lammerts Systems Engineering HMG / RTL GROUP SA ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Mon Feb 10 14:20:30 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Mon, 10 Feb 2003 07:20:30 -0600 Subject: Config Question Message-ID: Does it seem kind of redundant to have a PING service on a host since the check_host command for a host definition also performs a ping? Also, if a service, for example NSClient performing a check_nt, for some reason can't hook up with the client piece returns an error "unknown" or "can't connect to the client". Isn't it supposed to first check to see if it's a "Host Down" situation before I get numerous pages about NSClient? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jsm at inpro.net Mon Feb 10 14:52:02 2003 From: jsm at inpro.net (Jeff McKeon) Date: 10 Feb 2003 08:52:02 -0500 Subject: check-host-alive Message-ID: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> Ok, this one is probably really simple... added a new host to the nagios config over the weekend, a 3COM switch. I didn't put any service checks on it because there's nothing really running on it because it's a switch. The status still says "Pending." Shouldn't the default "Check-host-alive" command that is defined in the host file change the status to "up?" thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rau at rieder.net.py Mon Feb 10 15:48:20 2003 From: rau at rieder.net.py (=?iso-8859-1?Q?Ra=FAl_Guti=E9rrez_Segal=E9s?=) Date: Mon, 10 Feb 2003 10:48:20 -0400 Subject: (no subject) Message-ID: <200302101348.h1ADmKCt031742@mail.rieder.net> Hi, I have moved the images from share/images/logos directory to another location so I dont get the interrogation marks in the statusmap. The statusmap is much more readble now but I still get the borderlines from the images (that dont appear). Is it possible to get rid of this lines so I can a cleaner statusmap ? I looked at the configuration files and didnt find anything, perhaps I should touch the code... The Layout method that I use is Circular marked up. Thanks in advance. Raul __________________________________________________ Este mensaje es enviado via Webmail Rieder Internet ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 10 15:03:41 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 10 Feb 2003 15:03:41 +0100 Subject: check-host-alive References: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> Message-ID: <3E47B13D.DB2A04FF@gcc.dhl.com> Every host needs at least one service. Jeff McKeon wrote: > > Ok, this one is probably really simple... > > added a new host to the nagios config over the weekend, a 3COM switch. > I didn't put any service checks on it because there's nothing really > running on it because it's a switch. > > The status still says "Pending." Shouldn't the default > "Check-host-alive" command that is defined in the host file change the > status to "up?" > > thanks, > > jeff > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Mon Feb 10 15:06:47 2003 From: mpowell at ena.com (Marc Powell) Date: Mon, 10 Feb 2003 08:06:47 -0600 Subject: check-host-alive Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FE0@mismail.ena.com> No. Hosts are never checked unless a service on that hosts fails a check. You'll need to define at least one service, even if its just a check_ping service. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Jeff McKeon To: Nagios List Sent: Mon Feb 10 07:52:02 2003 Subject: [Nagios-users] check-host-alive Ok, this one is probably really simple... added a new host to the nagios config over the weekend, a 3COM switch. I didn't put any service checks on it because there's nothing really running on it because it's a switch. The status still says "Pending." Shouldn't the default "Check-host-alive" command that is defined in the host file change the status to "up?" thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From brendon at iwg.info Mon Feb 10 15:30:45 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 10 Feb 2003 15:30:45 +0100 Subject: check-host-alive Message-ID: It seems that hosts need at least a service. For hosts that had nothing to check but an interface I added pinging as a service. B -----Original Message----- From: Jeff McKeon [mailto:jsm at inpro.net] Sent: 10 February 2003 14:52 To: Nagios List Subject: [Nagios-users] check-host-alive Ok, this one is probably really simple... added a new host to the nagios config over the weekend, a 3COM switch. I didn't put any service checks on it because there's nothing really running on it because it's a switch. The status still says "Pending." Shouldn't the default "Check-host-alive" command that is defined in the host file change the status to "up?" thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 10 15:27:49 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 10 Feb 2003 09:27:49 -0500 (EST) Subject: check-host-alive In-Reply-To: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> References: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> Message-ID: On 10 Feb 2003, Jeff McKeon wrote: > Ok, this one is probably really simple... > > added a new host to the nagios config over the weekend, a 3COM switch. > I didn't put any service checks on it because there's nothing really > running on it because it's a switch. > > The status still says "Pending." Shouldn't the default > "Check-host-alive" command that is defined in the host file change the > status to "up?" > > thanks, > > jeff > I could say "rtfm" ;) Nagios doesn't do anything without services. At the very least the switch is switching packets. If you cannot monitor that without snmp, you should be able to ping its ip address. If it is an unmanaged device and you want to include it for parent/child relationships, use the check_dummy plugin -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Mon Feb 10 15:24:37 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Mon, 10 Feb 2003 14:24:37 +0000 Subject: plugins dependencies Message-ID: Hi, There are various plugins that will not be compiled unless I have these dependencies. For example: check_fping - requires the fping utility. check_game - requires qstat check_hpjd - requires the snmpget binary and so on and so on. What i want to know is that after doing a Redhat 8.0 installation with the Install Everything option will i still need to download these as it says in the Requirements Nagios plugins readme. Also is there a way to check if I have any of these already before getting all that it suggests and installing them. Regards ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 10 16:09:26 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 10 Feb 2003 10:09:26 -0500 (EST) Subject: plugins dependencies In-Reply-To: References: Message-ID: On Mon, 10 Feb 2003, Raj Mudhar wrote: > Hi, > > There are various plugins that will not be compiled unless I have these dependencies. > > For example: check_fping - requires the fping utility. > check_game - requires qstat > check_hpjd - requires the snmpget binary > > and so on and so on. > > What i want to know is that after doing a Redhat 8.0 installation with > the Install Everything option will i still need to download these as it > says in the Requirements Nagios plugins readme. Also is there a way to > check if I have any of these already before getting all that it suggests > and installing them. > > Regards > > (line wrap to <80 please) Currently there is no list of dependencies except those generated from the ./configure process. A full install of RedHat will not always include all the dependencies. fping is not included in RedHat qstat is not included in RedHat lmstat is not included in RedHat snmpget is included in RedHat -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Mon Feb 10 16:32:14 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 10 Feb 2003 10:32:14 -0500 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> <3E3E2862.7050007@cern.ch> <20030203162818.C17473@cadge.midwinter.com> Message-ID: <3E47C5FE.5000209@quadrix.com> For what its worth, the default check_by_ssh plugin already allows multiple checks to be performed in one ssh command and then dumps the results into the command pipe to be processed passively. Russell Scibetti Steven Grimm wrote: >If you want to check multiple services on remote hosts using ssh, you >might want to look at my batch_by_ssh script, which will check all of >a remote host's services with one ssh command (rather than one ssh >per remote service) which should reduce your scaling woes. It's still >not as cheap as NRPE, but especially if you have several services per >host on a ton of remote hosts, it'll cut way down on ssh overhead. >It also lets you centrally manage the commands that are run on remote >hosts, rather than doing it on config files on those hosts as with NRPE; >whether that's a plus or a drawback is a matter of taste. > >http://www.midwinter.com/~koreth/nagios/batch_by_ssh > >There's extensive documentation (by Nagios plugin standards, anyway) >at the top of the script. > >If you use it you'll want to make sure you've applied the following >check_by_ssh buffer overflow patch: > >https://sourceforge.net/tracker/index.php?func=detail&aid=673863&group_id=29880&atid=397599 > >-Steve > > >On Mon, Feb 03, 2003 at 09:29:22AM +0100, Marian Zurek wrote: > >>Hi, >> >> Thanks for you reply. As the first approach I applied the 'check_by_ssh' >>solution for couple of machines. >> I have here around 100 PC and plan to perform two remote checks on each of >>them. Could you tell me at which point I might >> hit the wall/scalability problem ? >> My future plans will be most probably SNMP based, but I am a bit hesitant >>if it is really needed with this number of host/services ?? >> >> Thnaks in advance for your comments. >> >>Regards, >>Marian >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Huettig at Medien-Systempartner.de Mon Feb 10 16:44:25 2003 From: Michael.Huettig at Medien-Systempartner.de (Michael =?iso-8859-1?q?H=FCttig?=) Date: Mon, 10 Feb 2003 16:44:25 +0100 Subject: check_nt plugins In-Reply-To: <20030207064227.51017.qmail@web40602.mail.yahoo.com> References: <20030207064227.51017.qmail@web40602.mail.yahoo.com> Message-ID: <200302101644.25937.Michael.Huettig@Medien-Systempartner.de> > I would like to ask why does the warning and critical > option in check_nt nagios plugins wont work? It only > works to verify my disk space. Below is my sample > command: > > ./check_nt -H -v USEDDISKSPACE -w > 50 -c 60 -l c > > output: > > c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free 0.66 > Gb (17%) > > Eventhough I increase or decrease the value of -w and > -c , it doesn't have an effect. > > > Thanks > Bernie > Hi Bernie, I'm looking to the sources and i've found that in check_nt.c ... int check_warning_value=FALSE; int check_critical_value=FALSE; ... but i'm not so firm in programming C, so that i'm not shure that it's wrong, 'cause the other routines will working properly. If you have some time to test it, please let me know. Greetings Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Mon Feb 10 17:05:44 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Mon, 10 Feb 2003 10:05:44 -0600 Subject: check_nt plugins Message-ID: The check_nt plugin does not return any text stating critical or not. What you need to look at is the return value. After you run the plugin from the command line, enter the command "echo $?" to see what the exit value was. A 0 is OK, a 1 is Warning a 2 is critical and -1 is unkown. Here's an example: [libexec]# ./check_nt -H x.x.x.x -v CPULOAD -l 15,8,9 CPU Load (15 min. 5%) [libexec]# echo $? 0 [libexec]# ./check_nt -H x.x.x.x -v CPULOAD -l 15,2,9 CPU Load (15 min. 5%) [libexec]# echo $? 1 [libexec]# ./check_nt -H x.x.x.x -v CPULOAD -l 15,2,3 CPU Load (15 min. 5%) [libexec]# echo $? 2 HTH, Richard -----Original Message----- From: Michael H?ttig [mailto:Michael.Huettig at Medien-Systempartner.de] Sent: Monday, February 10, 2003 9:44 AM To: bernie liwanag; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt plugins > I would like to ask why does the warning and critical > option in check_nt nagios plugins wont work? It only > works to verify my disk space. Below is my sample > command: > > ./check_nt -H -v USEDDISKSPACE -w > 50 -c 60 -l c > > output: > > c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free 0.66 > Gb (17%) > > Eventhough I increase or decrease the value of -w and > -c , it doesn't have an effect. > > > Thanks > Bernie > Hi Bernie, I'm looking to the sources and i've found that in check_nt.c ... int check_warning_value=FALSE; int check_critical_value=FALSE; ... but i'm not so firm in programming C, so that i'm not shure that it's wrong, 'cause the other routines will working properly. If you have some time to test it, please let me know. Greetings Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 10 16:38:20 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 09:38:20 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1472@PKDWB03C.ad.sprint.com> Do an "ls -ld /usr/local/nagios/var/rw" and let us know what the results are. jc > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Friday, February 07, 2003 7:59 PM > To: Carroll, Jim P [Contractor] > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday, February 07, 2003 17:21, you wrote: > > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > > > I followed those directions to the letter, as evidenced by > the earlier post > displaying the permissions. What am I missing here? > - -- > - > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > - > -------------------------------------------------------------- > ---------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) > > iD8DBQE+RGSDsWv7q8X6o8kRAi7rAKCf0FIMqkC4UP6QYqpe6xebUR7eAACfSWq3 > Tdoq4+pBtQv/HvxhO/NvMYU= > =6MHu > -----END PGP SIGNATURE----- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 10 16:46:15 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 09:46:15 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1473@PKDWB03C.ad.sprint.com> I wasn't too keen on the notion of adding 'nobody' to 'nagiocmd'. Having said that, let's move forwards. To illustrate which usernames should be a member of 'nagiocmd': $ groups apache nagios apache : apache nagiocmd nagios : nagios nagiocmd I also noticed you have the wrong perms on /usr/local/nagios/var/rw -- try this: $ chmod 2770 /usr/local/nagios/var/rw $ ls -ld /usr/local/nagios/var/rw drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 /usr/local/nagios/var/rw You must have done a "chmod 2760" on the 'rw' directory. You need mode 2770. Do all this, then restart nagios. Then do a: ls -l /usr/local/nagios/var/rw and see what nagios.cmd has for permissions. Everything should be good to go at this point. jc > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Friday, February 07, 2003 7:52 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday, February 07, 2003 12:42, Michael W. Oliver wrote: > > more information... > > > > # ls /usr/local/nagios/var/rw > > total 2 > > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > > drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ > > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > > > # grep nagiocmd /etc/group > > nagiocmd:*:55554:nagios,nobody > > > > Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file > was created > > by the Nagios process with nagios:nagios ownership, but mine isn't > > created that way. As you can see above, my nagios.cmd file > is created > > with > > nagios:nagiocmd ownership. You can also see that 'nobody' > is part of the > > 'nagiocmd' group, which _should_ give 'nobody' rw access to the > > nagios.cmd file. Even so, I still receive that error when trying to > > execute a command from the browser. BAH! > > > > In addition, in the 'SOLVED' reply, it looks like the user > 'nobody' was > > added to the 'nagios' group, effectively eliminating the > need for the > > 'nagiocmd' group. Isn't this insecure, putting the > 'nobody' user in the > > 'nagios' group, effectively giving that user permission to > everything > > that Nagios has permission to? I was under the impression > that the whole > > purpose of creating the new group was to limit the access > of the 'nobody' > > user. > > > > What am I missing? Thanks! > > > > -- > > > If there is anyone that can shed some light on why this isn't > working, I > would greatly appreciate it. > > - -- > - > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > - > -------------------------------------------------------------- > ---------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) > > iD8DBQE+RGK6sWv7q8X6o8kRAvusAJoD6I35uvAPYGl/WphHSXamIfqpmQCfZJN0 > O4sl6LEp/Vmg2IK2PA7L2Uk= > =38CK > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From kdebisschop at mail.debisschop.net Mon Feb 10 16:29:15 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Mon, 10 Feb 2003 10:29:15 -0500 Subject: plugins dependencies In-Reply-To: References: Message-ID: Subhendu Ghosh writes: > On Mon, 10 Feb 2003, Raj Mudhar wrote: > >> Hi, >> >> There are various plugins that will not be compiled unless I have these dependencies. >> >> For example: check_fping - requires the fping utility. >> check_game - requires qstat >> check_hpjd - requires the snmpget binary >> >> and so on and so on. >> >> What i want to know is that after doing a Redhat 8.0 installation with >> the Install Everything option will i still need to download these as it >> says in the Requirements Nagios plugins readme. Also is there a way to >> check if I have any of these already before getting all that it suggests >> and installing them. >> >> Regards >> >> > > (line wrap to <80 please) > > Currently there is no list of dependencies except those generated from the > ./configure process. The RPM does list the dependencies. If you want a rpm that is not built for all possible dependencies, use rpmbuild -ta --define 'custom 1' nagios-plugins-*.tar.gz' > A full install of RedHat will not always include all the dependencies. > > fping is not included in RedHat > qstat is not included in RedHat > lmstat is not included in RedHat > > snmpget is included in RedHat > > -- > > -sg > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wgong at smu.edu.sg Mon Feb 10 17:23:53 2003 From: wgong at smu.edu.sg (GONG Wei) Date: Tue, 11 Feb 2003 00:23:53 +0800 Subject: Which version of CVS should I download for regex pattern matching for host, hostgroup and service names? Message-ID: <108506BDA45F1F45AA6EDE147A27FC0102013FC3@mail1.smu.edu.sg> Looks like this feature has already been implemented (2.0 completed features). Have they been committed to the CVS? If yes which branch should I download? Tried: cvs -d:pserver:anonymous at cvs.nagios.sourceforge.net:/cvsroot/nagios login cvs -z3 -d:pserver:anonymous at cvs.nagios.sourceforge.net:/cvsroot/nagios co nagios And the result has been quite disappointing. It builds fine but complained about: ===================== Error: Invalid hostgroup object directive 'contact_groups'. Error: Could not add object property in file '/usr/local/nagios/etc/lan/all-ap.cfg' on line 478. ===================== When I was trying "bin/nagios -v etc/nagios.cfg" command. The same config files, however, works perfectly in the nagios-1.0 downloaded from the web. I am using RedHat 7.2 and the built command used is: ./configure \ --with-mail=/bin/mail \ --with-init-dir=/etc/rc.d/init.d \ --with-default-status \ --with-default-comments \ --with-file-perfdata \ --with-default-downtime \ --with-gd-lib=/usr/lib \ --with-gd-inc=/usr/include \ --enable-regexp-matching \ --with-perlcache --enable-DEBUG4 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Mon Feb 10 18:14:03 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Mon, 10 Feb 2003 12:14:03 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1473@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1473@PKDWB03C.ad.sprint.com> Message-ID: <200302101214.12962.michael@gargantuan.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, February 10, 2003 10:46, you wrote: > I wasn't too keen on the notion of adding 'nobody' to 'nagiocmd'. Having > said that, let's move forwards. > > To illustrate which usernames should be a member of 'nagiocmd': > > $ groups apache nagios > apache : apache nagiocmd > nagios : nagios nagiocmd > # grep nagiocmd /etc/group nagiocmd:*:55554:nagios,nobody # grep nagios /etc/group nagios:*:55555:nagios nagiocmd:*:55554:nagios,nobody # grep nobody /etc/group nobody:*:65534: nagiocmd:*:55554:nagios,nobody So, you can see that the user 'nobody' is in the correct group... more below... > I also noticed you have the wrong perms on /usr/local/nagios/var/rw -- > try this: > > $ chmod 2770 /usr/local/nagios/var/rw > $ ls -ld /usr/local/nagios/var/rw > drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 > /usr/local/nagios/var/rw > > You must have done a "chmod 2760" on the 'rw' directory. You need mode > 2770. > > Do all this, then restart nagios. Then do a: > > ls -l /usr/local/nagios/var/rw > > and see what nagios.cmd has for permissions. > > Everything should be good to go at this point. > > jc # pwd /usr/local/nagios/var/rw # ls -alF total 2 drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ drwxrwxr-x 4 nagios nagios 512 Feb 10 11:59 ../ prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| Now, I just figured out what was wrong... and you are right! In the above, you see the permissions on /usr/local/nagios/var/rw as 'drwxrwS---', which is the result of following the instructions at: http://nagios.sourceforge.net/docs/1_0/commandfile.html I took your advice and changed it to 2770 (drwxrws---, lowercase 's'), and now it works just as it should. The documentation assumes an initial state of g+x on /usr/local/nagios/var/rw, which isn't the case for me. Following the doc to change the permissions to 'g+rw' resulted in 'drwxrwS---', or 2760, instead of the desired 'drwxrws---'. Perhaps the doc could use 'chmod 2770' instead of listing three chmod commands which still didn't give the desired result (for me, anyway). Thanks very much for your help jc, you da man. - -- - -------------------------------+---------------------------------------- Michael W. Oliver, CCNP | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass +---------------------------------------- gpg --keyserver pgpkeys.mit.edu --recv-keys C5FAA3C9 - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+R93ksWv7q8X6o8kRAu/ZAJ9Ulmy7hGrA0lWYEVFHZZ4J7GqOfQCeJ6VG N47XQ+IxkiNcl1d5+PVOmVA= =LxVN -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From lilesb at ijet.com Mon Feb 10 18:58:57 2003 From: lilesb at ijet.com (Bryan Liles) Date: Mon, 10 Feb 2003 12:58:57 -0500 Subject: nagios perl module Message-ID: <200302101258.57810.lilesb@ijet.com> I have created Nagios-Perl for the Osesm GTK Nagios project. This perl module will load a nagios configuration given the location of a local nagios.cfg file. Currently, Nagios-Perl will load host configuration files given a cfg_file or a cfg_dir directive. Since this is a brand new package, saving the changes you might make back to the config file isn't implemented yet. I plan on implementing this, so you can load up a set of configuration files, make changes to hosts, hostgroups, services, etc..., and then save them back to the same file they were defined in. I am developing this package with the small to medium site in mind. I have no idea how much memory will be used when you load up thousands of objects (yet!!) Right now, this module is only packaged for use in the Osesm project. Could anyone else here find use for this? If so, I will document it, and package it as a separate file release at sourceforge. An example: #!/usr/bin/perl # Load nagios module use nagios; # Turn on strict use strict; # Create Nagios object my $ncfg = nagios->new(); # Point Nagios object to a nagios config $ncfg->config("/usr/local/nagios/etc/nagios.cfg"); # Get a list of host files in the config my @hosts = $ncfg->getHosts(); # List all the hosts in the config foreach my $h (@hosts) { # Get the name of this host. nagios.pm sets a qName object for each record # as the quick name. It does this because you can have host objects and # host object templates. my $name = $h->qName; # if this is a template, the qName will match name if ($name eq $h->name) { print "Host Template: $name\n"; } # if this is a host, the qName will match host_name elsif ($name eq $h->host_name) { print "Host: $name\n"; } } -- Bryan Liles ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 10 18:26:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 11:26:39 -0600 Subject: Config Question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1477@PKDWB03C.ad.sprint.com> To answer your two questions: 1) Yes. When I first set up Nagios, I had also set up the redundant check_ping service. Eventually I decided that that was a bit excessive, and removed it. 2) Yes, that's what's supposed to happen. We recently had a situation where the NT host in question (resident in the DMZ) was pingable, but all the other services got alerted on, because the firewall got gummed up with too many processes. (This required manual intervention on behalf of the firewall admin to clear up.) FWIW, if you want to simplify the number of alerts you receive for anything relating to check_nt, define some servicedependencies. Maybe make them all depend on a simple test such as checking for the version of NSClient that's running. That's what we're doing. jc > -----Original Message----- > From: Martin, Stanley G > Sent: Monday, February 10, 2003 7:21 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Config Question > > > Does it seem kind of redundant to have a PING service on a host since > the check_host command for a host definition also performs a ping? > Also, if a service, for example NSClient performing a > check_nt, for some > reason can't hook up with the client piece returns an error > "unknown" or > "can't connect to the client". Isn't it supposed to first > check to see > if it's a "Host Down" situation before I get numerous pages about > NSClient? > > Stanley G. Martin > Sprint - EIS? Customer Care > Stanley.G.Martin at mail.sprint.com > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rgonline99 at netzero.com Mon Feb 10 20:00:32 2003 From: rgonline99 at netzero.com (T Mellon) Date: Mon, 10 Feb 2003 19:00:32 GMT Subject: Assistance Needed: RH 7.3 w/cpanel Message-ID: <20030210.110129.1770.16479@webmail08.lax.untd.com> I'm in the middle of installing Nagios on a RH 7.3 server with Cpanel (cpanel.net) installed, and I'm slightly confused in what to put in the ./configure line :\ My brain is slightly fizzled right now (long day already ;) ). I have this for my ./configure line: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios And I get: --with-htmurl=/nagios/: No such file or directory What should I put for my htmurl? I've tried /home/username/public_html/nagios - but that didn't go through (username inserted with hosting account username, etc). If someone can help me out, that would be great. I've been up since 4:30 this morning, and my brain is half awake right now :) Thanks!! Tonya rgonline99 at netzero.net ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Mon Feb 10 20:11:15 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 10 Feb 2003 14:11:15 -0500 Subject: Oracle DB Query check Message-ID: <3E47F953.9010605@quadrix.com> I have created a "plugin" to check connecting and querying an Oracle DB. However, instead of needing the Oracle client installed on your monitoring machine, I use java (JDK1.3.1 and up) and a Jar/Zip file of the Oracle JDBC libraries (classes12.zip for those that know it). It is a small java class that connects, runs a query and exits, and you can wrap it with any number of different shell scripts for running different queries and processing the results. The class takes a connection string, user, password, and query to run. It returns OK if the query executes and returns any resultset, which is printed to the OUTPUT string. It returns a Critical if a SQLException occurs or the resultset of the query is empty. The SQLException message is printed as the OUTPUT if one occurs. Is anyone interested in this code? If so, I will email it out to the list. I was just trying to avoid installing the Oracle client where I didn't need it, and take advantage of an already existing Java installation. Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Mon Feb 10 20:20:02 2003 From: rich at vel.net (Richard Gross) Date: Mon, 10 Feb 2003 11:20:02 -0800 Subject: website transaction monitor / simple web form SOLVED Message-ID: <52183F243CF19E44A1166F250311C34B047773@cheddarcheese.vel.net> Here's the final result for my WWW::Mechanize perl script: #!/usr/bin/perl -w # Check Communigate Pro webmail for Nagios use WWW::Mechanize; use diagnostics; use lib "/usr/local/nagios/libexec" ; use utils qw($TIMEOUT %ERRORS &print_revision &support); my $browser = WWW::Mechanize->new(); $browser->get(" http://webmail.vel.net/ "); $browser->form(1); $browser->field("Username", "test\@vel.net"); $browser->field("Password", "test06"); $browser->click("login"); $browser->follow("here"); $pattern = "INBOX"; $_ = $browser->{content}; if ( /$pattern/ ) { print "INBOX"; exit $ERRORS{'OK'}; } else { print ("ERROR: No response from webmail.vel.net\n"); exit $ERRORS{'CRITICAL'}; } Hope this helps someone. Thanks to Stanley for his input. richg -----Original Message----- From: Richard Gross Sent: Saturday, February 08, 2003 10:10 PM To: Stanley Hopcroft Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] website transaction monitor / simple web form Stanley, Thanks for your approach. I elected to try WWW::Mechanize and got This far: #!/usr/bin/perl -w # Check Communigate Pro webmail for Nagios use WWW::Mechanize; use HTML::TokeParser; use diagnostics; my $browser = WWW::Mechanize->new(); $browser->get(" http://webmail.vel.net/ "); $browser->form(1); $browser->field("Username", "test\@vel.net"); $browser->field("Password", "test06"); $browser->click("login"); $browser->follow("here"); $pattern = "INBOX"; $_ = $browser->{content}; if ( /$pattern/ ) { print "INBOX"; exit 0; } else { print "CRITICAL"; exit -1; } I wrote this for the purpose of seeing whether webmail was up or not. It Was easy to monitor for SMTP and POP3. I'd love to figure out SMTP transaction to a POP3 box. Anyways... The above works for the way I have Communigate Pro setup. I know everything is hard coded and I'm not taking any ARGV things. My limited knowledge of Perl is preventing me on how to send Nagios the results of OK or CRITICAL. Been trying to figure it out, but kinda stumped right now. But Perl is an Amazing beast. So few lines of code to do something very useful. So, any ideas are appreciated. richg -----Original Message----- From: Stanley Hopcroft [ mailto:Stanley.Hopcroft at IPAustralia.Gov.AU ] Sent: Friday, February 07, 2003 6:15 PM To: Richard Gross Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] website transaction monitor / simple web form Dear Sir, There are a number of approaches for dealing with HTTP transactions/web forms. They include your writing wrraper programs to Perl modules that are congnizant of the transaction structure (ie what to send to what URL and when). These modules include A CPAN 1 WWW::Mechanize 2 WWW::Automate B SourceForge 1 HTTP::MonkeyWrench C unpublished 1 Netsaint::Web_Trx Here's an example plugin using the latter, use constant Intro => ' http://external/atmoss/falcon.application_start' ; use constant ConnectToSearch => ' http://external/atmoss/Falcon_Users_Cookies.Define_User' ; use constant MultiSessConn => ' http://external/atmoss/Falcon_Users_Cookies.Run_Create' ; use constant Search => ' http://external/atmoss/Falcon.Result' ; use constant ResultAbstract => ' http://external/atmoss/falcon_details.show_tm_details' ; use constant ResultDetails => ' http://external/atmoss/Falcon_Details.Show_TM_Details' ; use constant DeleteSearches => ' http://external/atmoss/Falcon_Searches.Delete_All_Searches' ; use constant Int => 'Welcome to ATMOSS' ; use constant ConnSrch => 'Connect to Trade Mark Search' ; use constant MltiSess => 'Fill in one or more of the fields below' ; use constant Srch => 'Your search request retrieved\s+\d+\s+match(es)?' ; use constant ResAbs => 'Trade Mark\s+:\s+\d+' ; use constant ResDet => ResAbs ; use constant DelSrch => MltiSess ; use constant MSC_f => [p_Anon => 'REGISTERED', p_user_type => 'Connect to Existing Extract List', p_extID => 'Stanley Hopcroft', p_password => 'It', p_JS => 'N'] ; use constant Srch_v => [p_tmno1 => 'tmno'] ; use constant RA_v => [p_tm_number => 'tmno'] ; use constant RA_f => [p_detail => 'QUICK', p_rec_all => 1, p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D'] ; use constant RD_v => RA_v ; use constant RD_f => [p_Detail => 'DETAILED', p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D']; use constant OraFault => 'We were unable to process your request at this time' ; use constant URLS => [ {Method => 'GET', Url => Intro, Qs_var => [], Qs_fixed => [], Exp => Int, Exp_Fault => OraFault}, {Method => 'GET', Url => ConnectToSearch, Qs_var => [], Qs_fixed => [], Exp => ConnSrch,Exp_Fault => OraFault}, {Method => 'POST', Url => MultiSessConn, Qs_var => [], Qs_fixed => MSC_f,Exp => MltiSess,Exp_Fault => OraFault}, {Method => 'POST', Url => Search, Qs_var => Srch_v, Qs_fixed => [], Exp => Srch, Exp_Fault => OraFault}, {Method => 'GET', Url => ResultAbstract, Qs_var => RA_v, Qs_fixed => RA_f, Exp => ResAbs,Exp_Fault => OraFault}, {Method => 'POST', Url => ResultDetails, Qs_var => RD_v, Qs_fixed => RD_f, Exp => ResDet,Exp_Fault => OraFault}, {Method => 'POST', Url => DeleteSearches, Qs_var => [], Qs_fixed => [], Exp => DelSrch, Exp_Fault => OraFault}, ] ; my (@tmarks, $tmno, $i) ; @tmarks = @ARGV ? @ARGV : (3, 100092, 200099, 300006, 400075, 500067, 600076, 700066, 800061) ; $i = @ARGV == 1 ? 0 : int( rand($#tmarks) + 0.5 ) ; $tmno = $tmarks[$i] ; my $x = Netsaint::Web_Trx->new( URLS ) ; my ($rc, $message) = $x->check( {tmno => $tmno}, debug => $debug) ; print "ATMOSS $message\n" ; exit($rc ? $ERRORS{'OK'} : $ERRORS{'CRITICAL'}) ; Easy Peasi: call the constructor with a ref to a hash containing all the URLs and the data to be sent to each URL, then call the check method. The hard bit in this case - and it's a pretty big gotcha - is _you_ have to work out the sequence of URLs sent and the data supplied to each form (some of which is invisible). The CPAN modules may be a better bet but this works well for me. On Fri, Feb 07, 2003 at 11:31:33AM -0800, Richard Gross wrote: > Wondering what can be done to use Nagios to check > a simple webform? Maybe some modifiction of the wget that > checked the hp switches? The opening page has: > >

Welcome to CommuniGate Pro,
> the test.net Messaging > Server!

>
> > > > >
Registered Users
>
> > > > > > > > > > > > > > > >
color="#cc6600">Login > Name color="cc6600">Password
> maxlength=255> > > maxlength=99> > > >
>

>

> > and would like to supply a username and password to this form, > then check for a text string INBOX would be all that's required. > > I did try the command: > > wget -r --http-user=chris at test.net --http-passwd=chris06 > http://webmail.test.net but only got back the index page... > > Not really sure how to proceed from here. > > richg > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Feb 10 19:31:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 12:31:30 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2551@PKDWB03C.ad.sprint.com> Glad you got it working. I'm puzzling over why you're bothering with username 'nobody' at all, instead of 'apache' or 'http' or whatever you run your webserver under. What you've effectively done is grant more privs to user 'nobody', which should really be just that, nobody. Let someone login as 'nobody' (which isn't really a realistic scenario, but anyway...), and voila, they have access to your nagios.cmd file, something you probably don't want. Let me take a step backwards. What username are you running Apache under? (I'm making the wild assumption that you're running Apache at all.) Once you have that info, what group(s) does that username belong to? Ideally that username would belong to 'nagiocmd'. For your particular customization, you've added 'nobody' to 'nagiocmd', but the prescribed approach is to have apache belong to 'nagiocmd'. As for the particulars of the indicated link, let me try to follow the documentation 'as is' and see what we get (modified to use 'foo' instead of 'rw', since I already have a 'rw'): $ mkdir /usr/local/nagios/var/foo $ chown nagios.nagiocmd /usr/local/nagios/var/foo $ chmod u+rwx /usr/local/nagios/var/foo $ chmod g+rw /usr/local/nagios/var/foo $ chmod g+s /usr/local/nagios/var/foo $ ls -ld /usr/local/nagios/var/foo drwxrwsr-x 2 nagios nagiocmd 4096 Feb 10 12:23 /usr/local/nagios/var/foo So you are partly right: Yes, the result isn't the same as the more secure mode of 2770. But as near as I can see, this would still work for you. Notice that the group mode is 'rws' and not 'rwS', which is what you had to begin with (which would prevent things from working). If you're satisfied with the security of your host at this point, then don't change anything. Food for thought. jc > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Monday, February 10, 2003 11:14 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday, February 10, 2003 10:46, you wrote: > > I wasn't too keen on the notion of adding 'nobody' to > 'nagiocmd'. Having > > said that, let's move forwards. > > > > To illustrate which usernames should be a member of 'nagiocmd': > > > > $ groups apache nagios > > apache : apache nagiocmd > > nagios : nagios nagiocmd > > > > # grep nagiocmd /etc/group > nagiocmd:*:55554:nagios,nobody > > # grep nagios /etc/group > nagios:*:55555:nagios > nagiocmd:*:55554:nagios,nobody > > > # grep nobody /etc/group > nobody:*:65534: > nagiocmd:*:55554:nagios,nobody > > So, you can see that the user 'nobody' is in the correct > group... more > below... > > > I also noticed you have the wrong perms on > /usr/local/nagios/var/rw -- > > try this: > > > > $ chmod 2770 /usr/local/nagios/var/rw > > $ ls -ld /usr/local/nagios/var/rw > > drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 > > /usr/local/nagios/var/rw > > > > You must have done a "chmod 2760" on the 'rw' directory. > You need mode > > 2770. > > > > Do all this, then restart nagios. Then do a: > > > > ls -l /usr/local/nagios/var/rw > > > > and see what nagios.cmd has for permissions. > > > > Everything should be good to go at this point. > > > > jc > > # pwd > /usr/local/nagios/var/rw > > > # ls -alF > total 2 > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > drwxrwxr-x 4 nagios nagios 512 Feb 10 11:59 ../ > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > Now, I just figured out what was wrong... and you are right! > In the above, > you see the permissions on /usr/local/nagios/var/rw as > 'drwxrwS---', which > is the result of following the instructions at: > > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > I took your advice and changed it to 2770 (drwxrws---, > lowercase 's'), and > now it works just as it should. > > The documentation assumes an initial state of g+x on > /usr/local/nagios/var/rw, which isn't the case for me. > Following the doc > to change the permissions to 'g+rw' resulted in 'drwxrwS---', > or 2760, > instead of the desired 'drwxrws---'. Perhaps the doc could > use 'chmod > 2770' instead of listing three chmod commands which still > didn't give the > desired result (for me, anyway). > > Thanks very much for your help jc, you da man. > - -- > - > -------------------------------+------------------------------ > ---------- > Michael W. Oliver, CCNP | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass > +---------------------------------------- > gpg --keyserver pgpkeys.mit.edu --recv-keys C5FAA3C9 > - > -------------------------------------------------------------- > ---------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) > > iD8DBQE+R93ksWv7q8X6o8kRAu/ZAJ9Ulmy7hGrA0lWYEVFHZZ4J7GqOfQCeJ6VG > N47XQ+IxkiNcl1d5+PVOmVA= > =LxVN > -----END PGP SIGNATURE----- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rau at rieder.net.py Mon Feb 10 21:21:01 2003 From: rau at rieder.net.py (=?iso-8859-1?Q?Ra=FAl_Guti=E9rrez_Segal=E9s?=) Date: Mon, 10 Feb 2003 16:21:01 -0400 Subject: borders in statusmap Message-ID: <200302101921.h1AJL1Ct013537@mail.rieder.net> Hi, I already send this message before but accidentally forgot to write the subject. I have moved the images from share/images/logos directory to another location so I dont get the interrogation marks in the statusmap. The statusmap is much more readble now but I still get the borderlines from the images that dont appear. Is it possible to get rid of this lines so I can a cleaner statusmap ? I looked at the configuration files and didnt find anything, perhaps I should touch the code... The Layout method that I use is Circular marked up. Thanks in advance. Raul __________________________________________________ Este mensaje es enviado via Webmail Rieder Internet ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Mon Feb 10 21:15:32 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 10 Feb 2003 12:15:32 -0800 (PST) Subject: 2way messaging pager .02 (snpp capable devices) In-Reply-To: <1B523437EB2BA849BE6376636E03678701BF7C@knoblauchdc.dkconsulting.org> References: <1B523437EB2BA849BE6376636E03678701BF7C@knoblauchdc.dkconsulting.org> Message-ID: <20030210201532.41504.qmail@web21512.mail.yahoo.com> Here ya go.... Dan Knoblauch wrote: Hi Jon! Thanks for your reply. I was wondering though, I searched the archives and found the message that you posted regarding your nextel scripts but the scripts weren't attached. Unfortunately, it takes 5 minutes to go from page to page on the sourceforge.net -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Friday, February 07, 2003 1:22 PM To: Carroll, Jim P [Contractor]; Dan Knoblauch; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios reply notifications to acknowledge Search the archives for my perl scripts to the list a few weeks ago. You'll have to modify them a little, but I can enable/disable notifications, acknowledge hosts, and get a quick summary stats of problems on my nextel. The nice thing is you don't have to type the replies, my script appends them to the message so you just hit reply. Great if your cell provider supports 2way messaging... :) "Carroll, Jim P [Contractor]" wrote: Off the top of my head, I'd say you could write something which uses: - /etc/aliases (redirecting mail destined for 'nagios' and piping it to a script) - procmail (optional) - a script that you write - awareness of how to pipe commands into nagios.cmd, which I believe are available in the FAQ over on www.nagios.org. HTH. jc > -----Original Message----- > From: Dan Knoblauch [mailto:dan at lanworksco.com] > Sent: Friday, February 07, 2003 10:19 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios reply notifications to acknowledge > > > Hello all and good day! > > > > I have been looking for a mechanism that will allow me to 'reply' to > nagios notifications via email with an acknowledgement. > Often I am away > from the office and I receive notifications on host/service outages on > my cell phone. I have used another monitoring utility called "Big > Brother" that had this capability. Outside of writing my own > handler to > do this, does anyone out there know if this is possible? I > have scoured > the documentation and the mailing lists and newsgroups and > haven't seen > even a small mention of this. Does this capability exist? > > > > You assistance is greatly appreciated. > > > > Dan. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2way-messaging-snpp.02.tar.gz Type: application/x-gzip-compressed Size: 72 bytes Desc: 2way-messaging-snpp.02.tar.gz URL: From jcarro10 at sprintspectrum.com Mon Feb 10 20:23:44 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 13:23:44 -0600 Subject: Q: time-saving tricks for Service Dependencies? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2552@PKDWB03C.ad.sprint.com> Just looking for some 'warm fuzzies' here. In: http://nagios.sourceforge.net/docs/1_0/templatetricks.html under "Service Dependencies", there appears to be a great time-saver. However, I'm concerned that creating this definition will mean that *all* hosts defined in the dependent_host_name declaration would become dependent on *all* hosts defined in the host_name declaration. (I have a similar concern when using a dependent_hostgroup_name/hostgroup_name approach.) Can anyone say with authority and conviction that (using the example given on that page) SERVICE2 on HOST3 is dependent on SERVICE2 on HOST1, and SERVICE2 on HOST4 is dependent on SERVICE2 on HOST2, but that there's no crossover where SERVICE2 on HOST3 becomes dependent on SERVICE2 on HOST2, and likewise with SERVICE2 on HOST4 crossing over to SERVICE2 on HOST1? A 1-to-1 correlation would do quite nicely, so long as there are N hosts defined on each of the dependent_host_name and host_name lines. A 1-to-many, many-to-1, or many-to-many is *not* what I want. In short: I'd like to take advantage of this time-saving feature, but I don't want to end up creating logic where a vast selection of services are dependent on one particular service being up or down. Thoughts? jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From syed at nec-labs.com Mon Feb 10 21:38:09 2003 From: syed at nec-labs.com (Syed Ali) Date: Mon, 10 Feb 2003 15:38:09 -0500 Subject: Priority of host versus services Message-ID: <951A499AA688EF47A898B45F25BD8EE822CD52@mailer.nec-labs.com> Hello, If I have notification_period set for workhours in hosts.cfg and notification_period set for 24x7 in services.cfg for the same host, which one takes precedence? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From GWCOOK at mactec.com Mon Feb 10 22:04:05 2003 From: GWCOOK at mactec.com (Cook, Garry) Date: Mon, 10 Feb 2003 14:04:05 -0700 Subject: Priority of host versus services Message-ID: Neither. If a service goes CRITICAL (or perhaps WARNING), you will be notified 24x7. If a host actually goes down, you will only be notified during work hours. For further information on the difference between host and service checks, start here: http://nagios.sourceforge.net/docs/1_0/networkreachability.html Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Monday, February 10, 2003 1:38 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Priority of host versus services Hello, If I have notification_period set for workhours in hosts.cfg and notification_period set for 24x7 in services.cfg for the same host, which one takes precedence? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 10 21:48:56 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 11 Feb 2003 07:48:56 +1100 Subject: Assistance Needed: RH 7.3 w/cpanel In-Reply-To: <20030210.110129.1770.16479@webmail08.lax.untd.com>; from rgonline99@netzero.com on Mon, Feb 10, 2003 at 07:00:32PM +0000 References: <20030210.110129.1770.16479@webmail08.lax.untd.com> Message-ID: <20030211074851.D232@IPAustralia.Gov.AU> Dear Madam, I am writing to thank you for your letter and hope you get it sorted out. On Mon, Feb 10, 2003 at 07:00:32PM +0000, T Mellon wrote: > I'm in the middle of installing Nagios on a RH 7.3 server with Cpanel (cpanel.net) installed, and I'm slightly confused in what to put in the ./configure line :\ My brain is slightly fizzled right now (long day already ;) ). > > I have this for my ./configure line: > ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > > And I get: > --with-htmurl=/nagios/: No such file or directory > > What should I put for my htmurl? > > I've tried /home/username/public_html/nagios - but that didn't go through (username inserted with hosting account username, etc). > > If someone can help me out, that would be great. I've been up since 4:30 this morning, and my brain is half awake right now :) Two observations: 1 There are rpms available on the Nag site 2 All the Nag directories should be relative to the --prefix In my installation, prefix is /usr/local/nagios html " "/share cgi " "/sbin But you don't need that since it's the default. (From your web servers point of view, there are alias and script-alias definitions so that /nagios/ is the same as prefix/share etc Setting up apache is where most people have problems). However, now after reading your letter again, then the remarks above are either wrong or the -url options to configure are poorly named. --with-cgiurl= sets URL for cgi programs (do not use a trailing slash) --with-htmurl= sets URL for public html I would have to try and read configure to work out what they do but one thing is certain: they are not going to configure alias directives in apache, so perhaps they are suffering from bit rot. After running configure with no options, here is the summary *** Configuration summary for nagios 1.0 11-24-2002 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Init directory: /usr/local/etc/rc.d Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute External Data Routines: ------------------------ Status data: Default (text file) Object data: Template-based (text file) Comment data: Default (text file) Downtime data: Default (text file) Retention data: Default (text file) Peformance data: Default (external commands) Extended info data: Template-based (text file) Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. So, you get the right html and cgi paths (wrt file system _not_ web server) by default. The only options I specify to configure are (in my case) those relating to gd. HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jamie at bclnz.net Mon Feb 10 22:22:33 2003 From: jamie at bclnz.net (Jamie) Date: Tue, 11 Feb 2003 10:22:33 +1300 Subject: Q: time-saving tricks for Service Dependencies? References: <74D428BDBFD5D04CB54E84499ECA29DB2F2552@PKDWB03C.ad.sprint.com> Message-ID: <005201c2d14a$873ad4c0$b58031ca@bcl977307> Hi Jim, "..In short: I'd like to take advantage of this time-saving feature, but I don't want to end up creating logic where a vast selection of services are dependent on one particular service being up or down.." -Excuse me for stating the obvious, but I guess that depends whether logic reflects reality or not...(Hmm. begin debate: "Is Reality logic? - Or is Logic reality?" ;-) Aren't service dependencies de-coupled from host dependencies? jamie ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "Nagios-Users (E-mail)" Sent: Tuesday, February 11, 2003 8:23 AM Subject: [Nagios-users] Q: time-saving tricks for Service Dependencies? > Just looking for some 'warm fuzzies' here. In: > > http://nagios.sourceforge.net/docs/1_0/templatetricks.html > > under "Service Dependencies", there appears to be a great time-saver. > > However, I'm concerned that creating this definition will mean that *all* > hosts defined in the dependent_host_name declaration would become dependent > on *all* hosts defined in the host_name declaration. > > (I have a similar concern when using a > dependent_hostgroup_name/hostgroup_name approach.) > > Can anyone say with authority and conviction that (using the example given > on that page) SERVICE2 on HOST3 is dependent on SERVICE2 on HOST1, and > SERVICE2 on HOST4 is dependent on SERVICE2 on HOST2, but that there's no > crossover where SERVICE2 on HOST3 becomes dependent on SERVICE2 on HOST2, > and likewise with SERVICE2 on HOST4 crossing over to SERVICE2 on HOST1? > > A 1-to-1 correlation would do quite nicely, so long as there are N hosts > defined on each of the dependent_host_name and host_name lines. A > 1-to-many, many-to-1, or many-to-many is *not* what I want. > > In short: I'd like to take advantage of this time-saving feature, but I > don't want to end up creating logic where a vast selection of services are > dependent on one particular service being up or down. > > Thoughts? > > jc > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Mon Feb 10 22:18:35 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 10 Feb 2003 22:18:35 +0100 Subject: Priority of host versus services In-Reply-To: <951A499AA688EF47A898B45F25BD8EE822CD52@mailer.nec-labs.com>; from syed@nec-labs.com on Mon, Feb 10, 2003 at 03:38:09PM -0500 References: <951A499AA688EF47A898B45F25BD8EE822CD52@mailer.nec-labs.com> Message-ID: <20030210221835.A1481@hpce.nec.com> On Mon, Feb 10, 2003 at 03:38:09PM -0500, Syed Ali wrote: > > If I have notification_period set for workhours in hosts.cfg and > notification_period set for 24x7 in services.cfg for the same host, > which one takes precedence? Is this a trick question? The one in hosts.cfg for host notifications, the one in services.cfg for service notifications. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From syed at nec-labs.com Mon Feb 10 22:22:33 2003 From: syed at nec-labs.com (Syed Ali) Date: Mon, 10 Feb 2003 16:22:33 -0500 Subject: Priority of host versus services Message-ID: <951A499AA688EF47A898B45F25BD8EE81573E1@mailer.nec-labs.com> To my knowledge: Every defined host in hosts.cfg should have at least one service in service.cfg for things to work well. The check-host-alive in hosts.cfg does a ping to see if the host is alive. If the service defined in services.cfg is check_ping, then check-host-alive in hosts.cfg and check_ping in services do the same thing, right? So if a service check for host A for check_ping is for 24x7, then I will get notified 24x7 However, if the host actually goes down, then I will be notified only during work hours? That makes no sense... Thank you, Syed Ali (609) 951-2989 -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: Monday, February 10, 2003 4:04 PM To: Syed Ali; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Priority of host versus services Neither. If a service goes CRITICAL (or perhaps WARNING), you will be notified 24x7. If a host actually goes down, you will only be notified during work hours. For further information on the difference between host and service checks, start here: http://nagios.sourceforge.net/docs/1_0/networkreachability.html Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Monday, February 10, 2003 1:38 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Priority of host versus services Hello, If I have notification_period set for workhours in hosts.cfg and notification_period set for 24x7 in services.cfg for the same host, which one takes precedence? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Feb 10 21:21:42 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 14:21:42 -0600 Subject: Oracle DB Query check Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1484@PKDWB03C.ad.sprint.com> Perhaps something which could be added to the contrib directory...? jc > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Monday, February 10, 2003 1:11 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Oracle DB Query check > > > I have created a "plugin" to check connecting and querying an > Oracle DB. > However, instead of needing the Oracle client installed on your > monitoring machine, I use java (JDK1.3.1 and up) and a > Jar/Zip file of > the Oracle JDBC libraries (classes12.zip for those that know > it). It is > a small java class that connects, runs a query and exits, and you can > wrap it with any number of different shell scripts for > running different > queries and processing the results. > > The class takes a connection string, user, password, and > query to run. > It returns OK if the query executes and returns any > resultset, which is > printed to the OUTPUT string. It returns a Critical if a > SQLException > occurs or the resultset of the query is empty. The > SQLException message > is printed as the OUTPUT if one occurs. > > Is anyone interested in this code? If so, I will email it out to the > list. I was just trying to avoid installing the Oracle > client where I > didn't need it, and take advantage of an already existing > Java installation. > > Russell Scibetti > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Mon Feb 10 23:49:26 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Mon, 10 Feb 2003 23:49:26 +0100 Subject: path to plugins in hosts.cfg In-Reply-To: <1044892985.16238.6060.camel@ryano> References: <1044547350.16238.301.camel@ryano> <20030206170347.GC19769@skynet.be> <1044892985.16238.6060.camel@ryano> Message-ID: <20030210224926.GA3504@skynet.be> On Mon, Feb 10, 2003 at 10:03:03AM -0600, Ryan O'Rourke wrote: > Thank you for the quick response. That line does exist in resource.cfg > and I see what you are talking about with checkcommands.cfg. > I've still got more work to do before I can actually get Nagios to run > but your advice certainly helps. Great !!! > One more quick request: Can you point me to someplace in the docs that > might help to explain your command line syntax for "check_ftp" in your > example? AFAIK, there is no documentation about plugins (for the moment, but it's in the Karl's mind) :-) The only help you can find, is while running the check itself without arguments, or most of the time with "--help" option... somehost:/usr/local/nagios/libexec$ ./check_ftp No arguments found Usage: check_ftp -H host -p port [-w warn_time] [-c crit_time] [-s send] [-e expect] [-W wait] [-t to_sec] [-v] somehost:/usr/local/nagios/libexec$ ./check_ftp --help check_ftp (nagios-plugins 1.3.0-beta2) 1.8 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 1999 Ethan Galstad (nagios at nagios.org) This plugin tests FTP connections with the specified host. Usage: check_ftp -H host -p port [-w warn_time] [-c crit_time] [-s send] [-e expect] [-W wait] [-t to_sec] [-v] Options: -H, --hostname=ADDRESS Host name argument for servers using host headers (use numeric address if possible to bypass DNS lookup). -p, --port=INTEGER Port number -s, --send=STRING String to send to the server -e, --expect=STRING String to expect in server response -W, --wait=INTEGER Seconds to wait between sending string and polling for response -w, --warning=DOUBLE Response time to result in warning status (seconds) -c, --critical=DOUBLE Response time to result in critical status (seconds) -t, --timeout=INTEGER Seconds before connection times out (default: 10) -v Show details for command-line debugging (do not use with nagios server) -h, --help Print detailed help screen -V, --version Print version information This is the only help i can point you to :) No i will show you my definition of check_ftp command in my config # 'check_ftp' command definition define command{ command_name check_ftp command_line $USER1$/check_ftp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -t $ARG3$ } And i call my check_ftp command definition in my services.cfg like this: define service{ use generic-service host_name somehost service_description FTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups Unix-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_ftp!10!15!20 } where 10 == $ARG1$ (warning threshold) 15 == $ARG2$ (critical threshold) 20 == $ARG3$ (timeout) I know, it's not easy to understand in the beginning, but if you can understand this time, most of your troubles will be solved right now :) Hope this helps, Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mike at innercite.com Mon Feb 10 23:58:57 2003 From: mike at innercite.com (Mike Machado) Date: 10 Feb 2003 14:58:57 -0800 Subject: Priority of host versus services In-Reply-To: <951A499AA688EF47A898B45F25BD8EE81573E1@mailer.nec-labs.com> References: <951A499AA688EF47A898B45F25BD8EE81573E1@mailer.nec-labs.com> Message-ID: <1044917937.9054.88.camel@rocket> On Mon, 2003-02-10 at 13:22, Syed Ali wrote: > To my knowledge: > > Every defined host in hosts.cfg should have at least one service in > service.cfg for things to work well. > The check-host-alive in hosts.cfg does a ping to see if the host is > alive. > > If the service defined in services.cfg is check_ping, then > check-host-alive in hosts.cfg and check_ping in services do the same > thing, right? > If you look at the stock check-host-alive, it only sends one packet and checks for a specific delay time. What we do is have a check_ping service called 'PING', where it sends 4 packets that way I can get warnings based on packet loss and not just an up or a down like the host version check-host-alive. We also tighten up the delay times so if there are abnormally long ping times, we get warned as well (possible DoS attack). > So if a service check for host A for check_ping is for 24x7, then I will > get notified 24x7 > However, if the host actually goes down, then I will be notified only > during work hours? > That makes no sense... It does not have to be configured that way. Change the host notifications to 24x7 as well. -- Mike Machado mike at innercite.com InnerCite Inc. Engineering Director / CTO ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jamie at bclnz.net Tue Feb 11 00:08:43 2003 From: jamie at bclnz.net (Jamie) Date: Tue, 11 Feb 2003 12:08:43 +1300 Subject: Check_Radius References: <74D428BDBFD5D04CB54E84499ECA29DB014E1484@PKDWB03C.ad.sprint.com> Message-ID: <03f801c2d159$5c2eca20$b58031ca@bcl977307> Hi, I'm running Nagios on a debian system and a redhat system. They both report (via syslog) this error: Feb 11 11:26:04 foo-bar check_radius: rc_get_seqnbr: couldn't open sequence file /var/run/radius.seq: Permission denied ...every time Nagios runs the check_radius command. I assume everyone else has this happening. Does anyone know how to get rid of it? Permissions of the file in question: -rw-r--r-- 1 root root 4 Feb 11 12:01 /var/run/radius.seq Cheers Jamie ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hidden at invalid Tue Feb 11 00:36:37 2003 From: hidden at invalid (Anonymous Writer) Date: Tue, 11 Feb 2003 00:36:37 +0100 (CET) Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: <3717.80.133.5.133.1044920197.squirrel@vhost1.gh-online.net> Hi folks, i am searching for a way to export the view of " Service Status Details For All Hosts " from the Monitoring Menue: Serive Detail to a static html page on our Webserver. Our Nagios server resides at our office an the webserver is located in a Colocation some miles away. So i seeked the whole archive for a script or something else to export scheduled every minute the current state of our hosts and their services. Any ideas? greetings M. Gaffke ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Tue Feb 11 00:51:27 2003 From: mpowell at ena.com (Marc Powell) Date: Mon, 10 Feb 2003 17:51:27 -0600 Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FF2@mismail.ena.com> wget or the libwww-perl GET alias come to mind if the webserver machine is a linux box. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Anonymous Writer To: nagios-users at lists.sourceforge.net Sent: Mon Feb 10 17:36:37 2003 Subject: [Nagios-users] How to export "Service Status Details For All Hosts" to a Webserver? Hi folks, i am searching for a way to export the view of " Service Status Details For All Hosts " from the Monitoring Menue: Serive Detail to a static html page on our Webserver. Our Nagios server resides at our office an the webserver is located in a Colocation some miles away. So i seeked the whole archive for a script or something else to export scheduled every minute the current state of our hosts and their services. Any ideas? greetings M. Gaffke ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Feb 10 23:22:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 16:22:03 -0600 Subject: Q: time-saving tricks for Service Dependencies ? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2554@PKDWB03C.ad.sprint.com> To answer your question first: Yes, as far as I know. To respond to your statement: Yes, that could perhaps spark a philosophical debate. But perhaps I wasn't clear enough. My goal: To be able to create a servicedependency whereby I can merely add a host (in the case of host_name / dependent_host_name) or a hostgroup (in the case of hostgroup_name / dependent_hostgroup_name) such that the trivial case of a service on a host is dependent on another service *on that same host* (and not on any other host). Allow me to attempt to illustrate by example. define servicedependency{ host_name fizzgig,wingnut service_description NRPE status dependent_host_name fizzgig,wingnut dependent_service_description Check swap other dependency directives ... } I want 'Check swap' on fizzgig to be dependent on 'NRPE status', also on fizzgig. Similarly, I want 'Check swap' on wingnut to be dependent on 'NRPE status', also on wingnut. But I do *not* want 'Check swap' on fizzgig to be dependent on 'NRPE status' on wingnut, nor do I want 'Check swap' on wingnut to be dependent on 'NRPE status' on fizzgig. Now that I'm reviewing the Service Dependency links (see URLs below) once again after a long absence, I suspect that multiple hosts for either host_name or dependent_host_name could only refer to template tricks, and not any sort of matrix of dependency. I will proceed with this suspicion. Comments welcome. jc > -----Original Message----- > From: Jamie [mailto:jamie at bclnz.net] > Sent: Monday, February 10, 2003 3:23 PM > To: Carroll, Jim P [Contractor]; Nagios-Users (E-mail) > Subject: Re: [Nagios-users] Q: time-saving tricks for Service > Dependencies? > > > Hi Jim, > > "..In short: I'd like to take advantage of this time-saving > feature, but I > don't want to end up creating logic where a vast selection of > services are > dependent on one particular service being up or down.." > > -Excuse me for stating the obvious, but I guess that depends > whether logic > reflects reality or not...(Hmm. begin debate: "Is Reality > logic? - Or is > Logic reality?" ;-) > > Aren't service dependencies de-coupled from host dependencies? > > jamie > ----- Original Message ----- > From: "Carroll, Jim P [Contractor]" > To: "Nagios-Users (E-mail)" > Sent: Tuesday, February 11, 2003 8:23 AM > Subject: [Nagios-users] Q: time-saving tricks for Service > Dependencies? > > > > Just looking for some 'warm fuzzies' here. In: > > > > http://nagios.sourceforge.net/docs/1_0/templatetricks.html > > > > under "Service Dependencies", there appears to be a great > time-saver. > > > > However, I'm concerned that creating this definition will > mean that *all* > > hosts defined in the dependent_host_name declaration would become > dependent > > on *all* hosts defined in the host_name declaration. > > > > (I have a similar concern when using a > > dependent_hostgroup_name/hostgroup_name approach.) > > > > Can anyone say with authority and conviction that (using > the example given > > on that page) SERVICE2 on HOST3 is dependent on SERVICE2 on > HOST1, and > > SERVICE2 on HOST4 is dependent on SERVICE2 on HOST2, but > that there's no > > crossover where SERVICE2 on HOST3 becomes dependent on > SERVICE2 on HOST2, > > and likewise with SERVICE2 on HOST4 crossing over to > SERVICE2 on HOST1? > > > > A 1-to-1 correlation would do quite nicely, so long as > there are N hosts > > defined on each of the dependent_host_name and host_name lines. A > > 1-to-many, many-to-1, or many-to-many is *not* what I want. > > > > In short: I'd like to take advantage of this time-saving > feature, but I > > don't want to end up creating logic where a vast selection > of services are > > dependent on one particular service being up or down. > > > > Thoughts? > > > > jc > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From whiatt at upstanding.com Tue Feb 11 01:16:46 2003 From: whiatt at upstanding.com (Hiatt, William) Date: Mon, 10 Feb 2003 16:16:46 -0800 Subject: check_snmp errors on CPU Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA266E@exch-be-01.upstanding.com> I'm having an issue with the output of the check_snmp plugin, and wanted to know if anybody had any tips. No matter what I do, I can't get a STATE_OK out of the check_snmp plugin. When run from the command line: ./check_snmp -H rtr-ed01.upstanding.com -o 1.3.6.1.4.1.9.2.1.58.0 -C UPITRO -c 0:85 -w 0:70 I get the following returned: SNMP WARNING - 0 Maybe I'm not all there today and didn't get the help file right, but as I understood it, when specifying the ranges in a MIN:MAX form, that is the range that is "OK". So by my command above, that means anything within 0:85 will not result in a critical state, and anything within 0:70 will not result in a warning state. Thanks for your help! William ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 11 01:16:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 18:16:46 -0600 Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1488@PKDWB03C.ad.sprint.com> NSCA might do the trick. Ditto rsync. Someone also recently mentioned making it work with postnuke. jc -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Monday, February 10, 2003 5:51 PM To: hidden at invalid; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] How to export "Service Status Details For All Hosts" to a Webserver? wget or the libwww-perl GET alias come to mind if the webserver machine is a linux box. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Anonymous Writer To: nagios-users at lists.sourceforge.net Sent: Mon Feb 10 17:36:37 2003 Subject: [Nagios-users] How to export "Service Status Details For All Hosts" to a Webserver? Hi folks, i am searching for a way to export the view of " Service Status Details For All Hosts " from the Monitoring Menue: Serive Detail to a static html page on our Webserver. Our Nagios server resides at our office an the webserver is located in a Colocation some miles away. So i seeked the whole archive for a script or something else to export scheduled every minute the current state of our hosts and their services. Any ideas? greetings M. Gaffke ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Tue Feb 11 02:32:01 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Mon, 10 Feb 2003 17:32:01 -0800 (PST) Subject: How to Implement SMS Alert Message-ID: <20030211013201.95011.qmail@web40612.mail.yahoo.com> Hello to all! Anyone can help me on where to find the exact details on how to implement the SMS Alert using a nokia gsm phone (specifically 6150 model). Thanks a lot! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Tue Feb 11 02:36:52 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Mon, 10 Feb 2003 17:36:52 -0800 (PST) Subject: check_nt plugins In-Reply-To: <200302101644.25937.Michael.Huettig@Medien-Systempartner.de> References: <200302101644.25937.Michael.Huettig@Medien-Systempartner.de> Message-ID: <20030211013652.24426.qmail@web40606.mail.yahoo.com> Thanks to all your reply! By the way this thing is not very critical to me. I just want to use this as my test procedure before i implement it in nagios configuration using the web.However my check_nt plugins works in critical and warning alert on the actual nagios web page. Regards, Bernie --- Michael H?ttig wrote: > > I would like to ask why does the warning and > critical > > option in check_nt nagios plugins wont work? It > only > > works to verify my disk space. Below is my sample > > command: > > > > ./check_nt -H -v USEDDISKSPACE > -w > > 50 -c 60 -l c > > > > output: > > > > c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free > 0.66 > > Gb (17%) > > > > Eventhough I increase or decrease the value of -w > and > > -c , it doesn't have an effect. > > > > > > Thanks > > Bernie > > > Hi Bernie, > I'm looking to the sources and i've found that in > check_nt.c > ... > int check_warning_value=FALSE; > int check_critical_value=FALSE; > ... > > but i'm not so firm in programming C, so that i'm > not shure that it's wrong, > 'cause the other routines will working properly. If > you have some time to test it, please let me know. > > Greetings > > Michael > > > > ********************************************************************** > Diese E-Mail wurde auf Viren ueberprueft. > www.mimesweeper.com > ********************************************************************** > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 11 04:48:35 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 10 Feb 2003 22:48:35 -0500 (EST) Subject: check_snmp errors on CPU In-Reply-To: <71520D1F83A0C6408D99155D4CCAE0AA266E@exch-be-01.upstanding.com> References: <71520D1F83A0C6408D99155D4CCAE0AA266E@exch-be-01.upstanding.com> Message-ID: On Mon, 10 Feb 2003, Hiatt, William wrote: > I'm having an issue with the output of the check_snmp plugin, and wanted > to know if anybody had any tips. > > No matter what I do, I can't get a STATE_OK out of the check_snmp > plugin. When run from the command line: > > ./check_snmp -H rtr-ed01.upstanding.com -o 1.3.6.1.4.1.9.2.1.58.0 -C > UPITRO -c 0:85 -w 0:70 > > I get the following returned: > > SNMP WARNING - 0 > > Maybe I'm not all there today and didn't get the help file right, but as > I understood it, when specifying the ranges in a MIN:MAX form, that is > the range that is "OK". So by my command above, that means anything > within 0:85 will not result in a critical state, and anything within > 0:70 will not result in a warning state. > > Thanks for your help! > > William > A warning state is possible even if you use correct args if there is an output retured on stderr from snmpget. The most likely (nay - is) culprit is that the snmpcmds are loading the MIBs ad are having some parsing issues. To eliminate the possiblility of MIB parsing issues, and specially since you are using numeric OIDs is to add a -m "" option to prevent loading the MIB files. The command will run much faster and any error on stderr will be a much more substantial error. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From whiatt at upstanding.com Tue Feb 11 05:06:47 2003 From: whiatt at upstanding.com (Hiatt, William) Date: Mon, 10 Feb 2003 20:06:47 -0800 Subject: check_snmp errors on CPU Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA2673@exch-be-01.upstanding.com> Now I get the following: [whiatt at watchdog libexec]$ ./check_snmp -H host -o 1.3.6.1.4.1.9.2.1.58.0 -C XXX -c 0:85 -w 0:7 -m "" SNMP problem - No data recieved from host CMD: /usr/bin/snmpget -m -v 1 -c XXX host:161 1.3.6.1.4.1.9.2.1.58.0 Any ideas? I'm running Redhat 8.0 and running the latest version of nagiosplug Thanks william ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 11 05:14:39 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 10 Feb 2003 23:14:39 -0500 (EST) Subject: check_snmp errors on CPU In-Reply-To: <71520D1F83A0C6408D99155D4CCAE0AA2673@exch-be-01.upstanding.com> References: <71520D1F83A0C6408D99155D4CCAE0AA2673@exch-be-01.upstanding.com> Message-ID: On Mon, 10 Feb 2003, Hiatt, William wrote: > Now I get the following: > > [whiatt at watchdog libexec]$ ./check_snmp -H host -o > 1.3.6.1.4.1.9.2.1.58.0 -C XXX -c 0:85 -w 0:7 -m "" > SNMP problem - No data recieved from host > CMD: /usr/bin/snmpget -m -v 1 -c XXX host:161 1.3.6.1.4.1.9.2.1.58.0 > > > Any ideas? I'm running Redhat 8.0 and running the latest version of > nagiosplug > > Thanks > william > escape the quotes as such. [whiatt at watchdog libexec]$ ./check_snmp -H host -o 1.3.6.1.4.1.9.2.1.58.0 -C XXX -c 0:85 -w 0:7 -m \" \" -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From whiatt at upstanding.com Tue Feb 11 05:33:46 2003 From: whiatt at upstanding.com (Hiatt, William) Date: Mon, 10 Feb 2003 20:33:46 -0800 Subject: check_snmp errors on CPU Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA2675@exch-be-01.upstanding.com> I got it. I can get the appropriate output by running the following command: [whiatt at watchdog libexec]$ ./check_snmp -H host -o 1.3.6.1.4.1.9.2.1.58.0 -C XXX -c 0:85 -w 0:7 -m quit Weird. Thanks William -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, February 10, 2003 8:15 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] check_snmp errors on CPU On Mon, 10 Feb 2003, Hiatt, William wrote: > Now I get the following: > > [whiatt at watchdog libexec]$ ./check_snmp -H host -o > 1.3.6.1.4.1.9.2.1.58.0 -C XXX -c 0:85 -w 0:7 -m "" SNMP problem - No > data recieved from host > CMD: /usr/bin/snmpget -m -v 1 -c XXX host:161 1.3.6.1.4.1.9.2.1.58.0 > > > Any ideas? I'm running Redhat 8.0 and running the latest version of > nagiosplug > > Thanks > william > escape the quotes as such. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios at nagios.org Tue Feb 11 05:30:57 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 10 Feb 2003 22:30:57 -0600 Subject: Which version of CVS should I download for regex pattern matching for host, hostgroup and service names? In-Reply-To: <108506BDA45F1F45AA6EDE147A27FC0102013FC3@mail1.smu.edu.sg> References: <108506BDA45F1F45AA6EDE147A27FC0102013FC3@mail1.smu.edu.sg> Message-ID: <3E482821.31401.1311D0B@localhost> Yes, regex matching has already been implemented in CVS, but I would stronly urge against using CVS code at this time. A lot of things have changed, a lot will be changing, some stuff still doesn't work, and there's absolutely no documentation on anything new. :-) The contact_groups directive (which you were getting an error about) has been moved from hostgroup definitions to host definitions in the 2.0 code. On 11 Feb 2003 at 0:23, GONG Wei wrote: > Looks like this feature has already been implemented (2.0 completed > features). Have they been committed to the CVS? If yes which branch should > I download? > > Tried: > cvs -d:pserver:anonymous at cvs.nagios.sourceforge.net:/cvsroot/nagios login > cvs -z3 -d:pserver:anonymous at cvs.nagios.sourceforge.net:/cvsroot/nagios co > nagios > > And the result has been quite disappointing. It builds fine but complained > about: > > ===================== > Error: Invalid hostgroup object directive 'contact_groups'. > Error: Could not add object property in file > '/usr/local/nagios/etc/lan/all-ap.cfg' on line 478. > ===================== > > When I was trying "bin/nagios -v etc/nagios.cfg" command. > > The same config files, however, works perfectly in the nagios-1.0 downloaded > from the web. > > I am using RedHat 7.2 and the built command used is: > > ./configure \ > --with-mail=/bin/mail \ > --with-init-dir=/etc/rc.d/init.d \ > --with-default-status \ > --with-default-comments \ > --with-file-perfdata \ > --with-default-downtime \ > --with-gd-lib=/usr/lib \ > --with-gd-inc=/usr/include \ > --enable-regexp-matching \ > --with-perlcache --enable-DEBUG4 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Tue Feb 11 05:52:51 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Mon, 10 Feb 2003 20:52:51 -0800 (PST) Subject: availabity in report Message-ID: <20030211045251.18277.qmail@web40603.mail.yahoo.com> Hi to all! Why is it that I always get always 0 value in %TIME OK , %TIME WARNING, %TIME, %TIME UNKNOWN,%TIME CRITICAL and %TIME UNDETERMINED in "report" options in "Avaiability" but my service and host are running. Thanks! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Tue Feb 11 06:07:54 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 11 Feb 2003 00:07:54 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2551@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2551@PKDWB03C.ad.sprint.com> Message-ID: <1044940073.6329.17.camel@localhost.localdomain> On Mon, 2003-02-10 at 13:31, Carroll, Jim P [Contractor] wrote: > Glad you got it working. > > I'm puzzling over why you're bothering with username 'nobody' at all, Sad but but true fact --- many packages run apache as 'nobody' I'd recommend that the poster change that -- for the reasons you suggest, it is not a great idea. > instead of 'apache' or 'http' or whatever you run your webserver under. > What you've effectively done is grant more privs to user 'nobody', which > should really be just that, nobody. Let someone login as 'nobody' (which > isn't really a realistic scenario, but anyway...), and voila, they have > access to your nagios.cmd file, something you probably don't want. > > Let me take a step backwards. What username are you running Apache under? > (I'm making the wild assumption that you're running Apache at all.) Once > you have that info, what group(s) does that username belong to? Ideally > that username would belong to 'nagiocmd'. For your particular > customization, you've added 'nobody' to 'nagiocmd', but the prescribed > approach is to have apache belong to 'nagiocmd'. > > As for the particulars of the indicated link, let me try to follow the > documentation 'as is' and see what we get (modified to use 'foo' instead of > 'rw', since I already have a 'rw'): > > $ mkdir /usr/local/nagios/var/foo > $ chown nagios.nagiocmd /usr/local/nagios/var/foo > $ chmod u+rwx /usr/local/nagios/var/foo > $ chmod g+rw /usr/local/nagios/var/foo > $ chmod g+s /usr/local/nagios/var/foo > $ ls -ld /usr/local/nagios/var/foo > drwxrwsr-x 2 nagios nagiocmd 4096 Feb 10 12:23 > /usr/local/nagios/var/foo > > So you are partly right: Yes, the result isn't the same as the more secure > mode of 2770. But as near as I can see, this would still work for you. > Notice that the group mode is 'rws' and not 'rwS', which is what you had to > begin with (which would prevent things from working). > > If you're satisfied with the security of your host at this point, then don't > change anything. I end up with this, using RPM install: $ ls -ld /var/spool/nagios/nagios.cmd prw-rw---- 1 nagios www 0 Feb 8 09:23 /var/spool/nagios/nagios.cmd $ ls -ld /var/spool/nagios/ drwxrwxr-x 2 nagios root 4096 Feb 8 09:14 /var/spool/nagios/ > > -----Original Message----- > > From: Michael W. Oliver [mailto:michael at gargantuan.com] > > Sent: Monday, February 10, 2003 11:14 AM > > To: Carroll, Jim P [Contractor] > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > > and stfw no help > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Monday, February 10, 2003 10:46, you wrote: > > > I wasn't too keen on the notion of adding 'nobody' to > > 'nagiocmd'. Having > > > said that, let's move forwards. > > > > > > To illustrate which usernames should be a member of 'nagiocmd': > > > > > > $ groups apache nagios > > > apache : apache nagiocmd > > > nagios : nagios nagiocmd > > > > > > > # grep nagiocmd /etc/group > > nagiocmd:*:55554:nagios,nobody > > > > # grep nagios /etc/group > > nagios:*:55555:nagios > > nagiocmd:*:55554:nagios,nobody > > > > > > # grep nobody /etc/group > > nobody:*:65534: > > nagiocmd:*:55554:nagios,nobody > > > > So, you can see that the user 'nobody' is in the correct > > group... more > > below... > > > > > I also noticed you have the wrong perms on > > /usr/local/nagios/var/rw -- > > > try this: > > > > > > $ chmod 2770 /usr/local/nagios/var/rw > > > $ ls -ld /usr/local/nagios/var/rw > > > drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 > > > /usr/local/nagios/var/rw > > > > > > You must have done a "chmod 2760" on the 'rw' directory. > > You need mode > > > 2770. > > > > > > Do all this, then restart nagios. Then do a: > > > > > > ls -l /usr/local/nagios/var/rw > > > > > > and see what nagios.cmd has for permissions. > > > > > > Everything should be good to go at this point. > > > > > > jc > > > > # pwd > > /usr/local/nagios/var/rw > > > > > > # ls -alF > > total 2 > > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > > drwxrwxr-x 4 nagios nagios 512 Feb 10 11:59 ../ > > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > > > Now, I just figured out what was wrong... and you are right! > > In the above, > > you see the permissions on /usr/local/nagios/var/rw as > > 'drwxrwS---', which > > is the result of following the instructions at: > > > > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > > > I took your advice and changed it to 2770 (drwxrws---, > > lowercase 's'), and > > now it works just as it should. > > > > The documentation assumes an initial state of g+x on > > /usr/local/nagios/var/rw, which isn't the case for me. > > Following the doc > > to change the permissions to 'g+rw' resulted in 'drwxrwS---', > > or 2760, > > instead of the desired 'drwxrws---'. Perhaps the doc could > > use 'chmod > > 2770' instead of listing three chmod commands which still > > didn't give the > > desired result (for me, anyway). > > > > Thanks very much for your help jc, you da man. > > - -- > > - > > -------------------------------+------------------------------ > > ---------- > > Michael W. Oliver, CCNP | "The tree of liberty must be > > refreshed > > michael at gargantuan.com | from time to time with the blood of > > http://michael.gargantuan.com/ | patriots and tyrants." > > (via IPv4 and IPv6) | - President Thomas Jefferson > > IPv6 ASPathTree, Looking Glass > > +---------------------------------------- > > gpg --keyserver pgpkeys.mit.edu --recv-keys C5FAA3C9 > > - > > -------------------------------------------------------------- > > ---------- > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.2.1 (FreeBSD) > > > > iD8DBQE+R93ksWv7q8X6o8kRAu/ZAJ9Ulmy7hGrA0lWYEVFHZZ4J7GqOfQCeJ6VG > > N47XQ+IxkiNcl1d5+PVOmVA= > > =LxVN > > -----END PGP SIGNATURE----- > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Tue Feb 11 08:15:28 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 11 Feb 2003 08:15:28 +0100 Subject: Feature request: alias for an service Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804C0@storevis.datavis.se> >Why not use serviceextinfo.cfg and the notes_url feature for this? > No, for two reasons; It conflicts with Apan that uses serviceextinfo and it's 'to many clicks away' I want a comment on the service-detail page as well as other service related pages (trends, avail etc). >jc /FredrikW > >> -----Original Message----- >> From: Fredrik W?nglund [mailto:Fredrik.Wanglund at datavis.se] >> Sent: Friday, February 07, 2003 12:33 AM >> To: nagios >> Subject: [Nagios-users] Feature request: alias for an service >> >> >> >> Should it be possible to allow the 'alias' keyword in a >> service-definition and to show it on the service-information page? >> I have hosts where different people are responible for >> different services. It would be great if I could see the name >> of that persion when I looked at a service... >> >> >> >> /FredrikW >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Tue Feb 11 08:31:40 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 11 Feb 2003 08:31:40 +0100 Subject: How to Implement SMS Alert Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804C1@storevis.datavis.se> Have a look at Gnokii (www.gnokii.org). /FredrikW -----Original Message----- From: bernie liwanag [mailto:bliwanag at yahoo.com] Sent: Tue 11-Feb-03 02:32 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] How to Implement SMS Alert Hello to all! Anyone can help me on where to find the exact details on how to implement the SMS Alert using a nokia gsm phone (specifically 6150 model). Thanks a lot! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Michael.Huettig at Medien-Systempartner.de Tue Feb 11 08:37:17 2003 From: Michael.Huettig at Medien-Systempartner.de (Michael =?iso-8859-1?q?H=FCttig?=) Date: Tue, 11 Feb 2003 08:37:17 +0100 Subject: How to Implement SMS Alert In-Reply-To: <20030211013201.95011.qmail@web40612.mail.yahoo.com> References: <20030211013201.95011.qmail@web40612.mail.yahoo.com> Message-ID: <200302110837.17162.Michael.Huettig@Medien-Systempartner.de> Am Dienstag, 11. Februar 2003 02:32 schrieb bernie liwanag: > Hello to all! > > Anyone can help me on where to find the exact details > on how to implement the SMS Alert using a nokia gsm > phone (specifically 6150 model). Thanks a lot! > > Bernie Hi Bernie, i'm using yaps-0.96 which is working fine with the commands explained in the faq-section, i defined escalations, so the first notifications go out via email, when state is critical a longer time, then they go out via sms. Another nice sms-tool is sms-client.2.08y Greets Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 11 09:01:50 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 11 Feb 2003 09:01:50 +0100 Subject: How to Implement SMS Alert References: <20030211013201.95011.qmail@web40612.mail.yahoo.com> <200302110837.17162.Michael.Huettig@Medien-Systempartner.de> Message-ID: <3E48ADEE.66FF6CA8@gcc.dhl.com> Michael H?ttig wrote: > Another nice sms-tool is sms-client.2.08y True, sms_client is a nice tool. Especially the Belgacom driver in version 2.0.9a *grin*. This is the command definition I use: # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/sms_client -q $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTADDRESS$ $HOSTALIAS$: $SERVICEDESC$ is $SERVICESTATE$" } Works like a charm. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Tue Feb 11 10:11:09 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Tue, 11 Feb 2003 10:11:09 +0100 Subject: Example nagios.cmd file for external commands Message-ID: Does anyone have a external command file for enabling/disabling for servers they could share? I don't want to spend a lot of time figuring out how this is supposed to work if I can avoid it. Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Tue Feb 11 10:24:09 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Tue, 11 Feb 2003 01:24:09 -0800 (PST) Subject: How to Implement SMS Alert In-Reply-To: <3E48ADEE.66FF6CA8@gcc.dhl.com> References: <3E48ADEE.66FF6CA8@gcc.dhl.com> Message-ID: <20030211092409.30964.qmail@web40609.mail.yahoo.com> Thanks to all for the reply! I will try all of them! Bernie --- Tom DE BLENDE wrote: > > > Michael H?ttig wrote: > > > Another nice sms-tool is sms-client.2.08y > > True, sms_client is a nice tool. Especially the > Belgacom driver in > version 2.0.9a *grin*. > > This is the command definition I use: > > # 'notify-by-epager' command definition > define command{ > command_name notify-by-epager > command_line /usr/bin/sms_client -q > $CONTACTPAGER$ > "$NOTIFICATIONTYPE$: $HOSTADDRESS$ $HOSTALIAS$: > $SERVICEDESC$ is > $SERVICESTATE$" > } > > Works like a charm. __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Tue Feb 11 10:33:28 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Tue, 11 Feb 2003 01:33:28 -0800 (PST) Subject: Availabity Report Message-ID: <20030211093328.17652.qmail@web40613.mail.yahoo.com> Why is it that some of my Hosts has a 0.000% result on their Time up,Time Down, Time Unreachable and Time Undetermined. Also what is the meaning of %Time Undetermined? Below are some of my sample server result in Availabity Reports. Pls take note on server7,server10,server11 Host % Time Up % Time Down % Time Unreachable % Time Undetermined server1 99.820% (99.820%) 0.180% (0.180%) 0.000% (0.000%) 0.000% server2 100.000% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% server3 11.506% (99.656%) 0.040% (0.344%) 0.000% (0.000%) 88.454% server4 98.483% (98.483%) 1.517% (1.517%) 0.000% (0.000%) 0.000% server5 76.240% (76.240%) 23.760% (23.760%) 0.000% (0.000%) 0.000% server6 100.000% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% server7 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100.000% server8 84.917% (84.917%) 15.083% (15.083%) 0.000% (0.000%) 0.000% server9 11.824% (96.637%) 0.412% (3.363%) 0.000% (0.000%) 87.764% server10 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100.000% server11 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100.000% Thanks a lot in Advance! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From francesco.albrizio at init.it Tue Feb 11 10:39:32 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Tue, 11 Feb 2003 10:39:32 +0100 Subject: Hostgroup in notifications Message-ID: <001201c2d1b1$7b7b7420$3302a8c0@init.it> Hi everybody, Does anyone knows how to make appear the server hostgroup in notifications? Does exists some variable like i.e. $HOSTGROUP$ to use in miscommands.cfg that does the trick? Thanks guys, Francesco Albrizio E-mail: francesco.albrizio at init.it Network & Security Manager UNITEAM INIT InterNetworking & Information Technology via Imperia, 2 20142 MILANO Tel. 02-89546000 Fax. 02-8467832 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdeblend at gcc.dhl.com Tue Feb 11 10:55:24 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 11 Feb 2003 10:55:24 +0100 Subject: Availabity Report References: <20030211093328.17652.qmail@web40613.mail.yahoo.com> Message-ID: <3E48C88C.EA5781B7@gcc.dhl.com> http://www.nagios.org/faqs/viewfaq.php?faq_id=136 bernie liwanag wrote: > > Why is it that some of my Hosts has a 0.000% result on > their Time up,Time Down, Time Unreachable and Time > Undetermined. Also what is the meaning of %Time > Undetermined? > > Below are some of my sample server result in > Availabity Reports. Pls take note on > server7,server10,server11 > > Host % Time Up % Time Down % Time Unreachable % Time > Undetermined > server1 99.820% (99.820%) 0.180% (0.180%) 0.000% > (0.000%) 0.000% > server2 100.000% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 0.000% > server3 11.506% (99.656%) 0.040% (0.344%) 0.000% > (0.000%) 88.454% > server4 98.483% (98.483%) 1.517% (1.517%) 0.000% > (0.000%) 0.000% > server5 76.240% (76.240%) 23.760% (23.760%) 0.000% > (0.000%) 0.000% > server6 100.000% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 0.000% > server7 0.000% (0.000%) 0.000% (0.000%) 0.000% > (0.000%) 100.000% > server8 84.917% (84.917%) 15.083% (15.083%) 0.000% > (0.000%) 0.000% > server9 11.824% (96.637%) 0.412% (3.363%) 0.000% > (0.000%) 87.764% > server10 0.000% (0.000%) 0.000% (0.000%) 0.000% > (0.000%) 100.000% > server11 0.000% (0.000%) 0.000% (0.000%) 0.000% > (0.000%) 100.000% > > Thanks a lot in Advance! > > Bernie > > __________________________________________________ > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day > http://shopping.yahoo.com > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Tom De Blende Senior NT Infrastructure Analyst (Frango) DHL Global Coordination Center - IT Department Tel +32 2 713 42 62 Fax +32 2 713 52 00 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From laurent.vaills at dms.at Tue Feb 11 11:17:51 2003 From: laurent.vaills at dms.at (Laurent Vaills) Date: 11 Feb 2003 11:17:51 +0100 Subject: Does configuration reloading work well ? Message-ID: <1044958672.29443.24.camel@neo.sophia.dms.at> Hello, We are using nagios 1.0b6. Some modifications in configuration files don't appear when reloading nagios. In fact, we have around 30 hosts definition using a template which set the notifications_enable option to 1. We changed this value to 0. But this modification doesn't appear in nagios. All hosts have still the notification enabled. Is this an error ? Regards, Laurent ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From syed at nec-labs.com Tue Feb 11 15:49:32 2003 From: syed at nec-labs.com (Syed Ali) Date: Tue, 11 Feb 2003 09:49:32 -0500 Subject: Monitoring Windows 2000 Print Services Message-ID: <951A499AA688EF47A898B45F25BD8EE822CD7D@mailer.nec-labs.com> Hello, Before I start writing my own..... Does anyone have a working plug-in for monitoring Windows print services in an active directory environment? (Just to see if the print spooler is running is sufficient) The contrib directory has a check_ms_spooler.pl that does not work even after tweaking in our environment. Thank you, -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Tue Feb 11 15:50:08 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Tue, 11 Feb 2003 22:50:08 +0800 Subject: removing host from schedule downtime? Message-ID: <200302112250.14722.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi guys, any tips for disabling a host that I have scheduled downtime on the Web GUI? - --Jasmine Chua -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+SQ2lNgvTa7Hj2AURApaSAJ0TCxV/isvSDupInB4VnYtzpZxQZQCgmUkq /FrgLYudpVGOl8/5gmS+uD4= =qkHd -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Tue Feb 11 15:58:08 2003 From: brendon at iwg.info (Brendon Caligari) Date: Tue, 11 Feb 2003 15:58:08 +0100 Subject: How to Implement SMS Alert Message-ID: A good start is buying a nice gsm modem (very cheap nowadays). I prefer a good gsm modem over a mobile fone connected via a serial interface (I had to recharge my old siemens m35 every other day whilst prototyping) I used sms daemon tools (freshmeat.net) and added a couple of additional strings in misccomands.cfg. I still have to play a bit with the printf strings to make the messages a bit shorter (sms is 160 char max). B -----Original Message----- From: bernie liwanag [mailto:bliwanag at yahoo.com] Sent: 11 February 2003 02:32 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to Implement SMS Alert Hello to all! Anyone can help me on where to find the exact details on how to implement the SMS Alert using a nokia gsm phone (specifically 6150 model). Thanks a lot! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mgj at unb.ca Tue Feb 11 16:08:57 2003 From: mgj at unb.ca (Michael Jewett) Date: Tue, 11 Feb 2003 11:08:57 -0400 Subject: Help with check_ntp Message-ID: <009801c2d1df$7ffd15c0$87a9ca83@unb.ca> Hi, I'm trying to get the check_ntp to work on my newly installed Nagios setup. Here is what I did for running it and the output... ./check_ntp -H ntp.domain.ca -v server xxx.xxx.xxx.xxx, stratum 2, offset -0.000924, delay 0.02592 ntperr = 0 29 Jan 15:33:38 ntpdate[9302]: adjust time server xxx.xxx.xxx.xxx offset -0.000924 sec ntperr = 0 ***Server reports a format error in the received packet (shouldn't happen) UNKNOWN: Dispersion too high Does anyone have a suggestion on how to fix it? This worked great with Netsaint. Michael Jewett Network Analyst Communications & Network Services Integrated Technology Services University of New Brunswick mgj at unb.ca (506) 447-3022 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Tue Feb 11 16:15:51 2003 From: wim at hsmade.com (Wim Fournier) Date: Tue, 11 Feb 2003 16:15:51 +0100 (CET) Subject: How to Implement SMS Alert In-Reply-To: <20030211013201.95011.qmail@web40612.mail.yahoo.com> References: <20030211013201.95011.qmail@web40612.mail.yahoo.com> Message-ID: <28400.217.198.203.200.1044976551.squirrel@webmail.kern.nl> bernie liwanag zei: > Hello to all! > > Anyone can help me on where to find the exact details > on how to implement the SMS Alert using a nokia gsm > phone (specifically 6150 model). Thanks a lot! > have a look at gammu (http://www.mwiacek.com/english/gsm/gammu/gammu.html) works for me ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Tue Feb 11 16:32:32 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 11 Feb 2003 09:32:32 -0600 Subject: Example nagios.cmd file for external commands Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED3E9@mismail.ena.com> I'm going to be the one to say it. You've got to at least read the documentation enough to know that the external command file isn't really a file at all but rather a named pipe and not a configuration file like nagios.cfg, etc... It's not something that can be 'shared.' The documentation is very clear and it's very straightforward to set up. http://nagios.sourceforge.net/docs/1_0/extcommands.html. For a very basic setup you only have 4 bullet points to follow, 3 of which are just options in nagios.cfg. Most of the people on this list are very busy and while we are glad to help whenever it's possible, you can not expect someone on _any_ mailing list to do your work or basic research for you. -- Marc > -----Original Message----- > From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] > Sent: Tuesday, February 11, 2003 3:11 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Example nagios.cmd file for external commands > > Does anyone have a external command file for enabling/disabling for > servers they could share? I don't want to spend a lot of time figuring out > how this is supposed to work if I can avoid it. > > Regards, > Thomas Nilsen > Svg Support > Tel: +47 51 81 01 30 - Mob: +47 916 98 229 > > > > DISCLAIMER: > This message contains information that may be privileged or confidential > and is the property of the Roxar Group. It is intended only for the person > to whom it is addressed. If you are not the intended recipient, you are > not authorised to read, print, retain, copy, disseminate, distribute, or > use this message or any part thereof. If you receive this message in > error, please notify the sender immediately and delete all copies of this > message. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 11 16:37:43 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 11 Feb 2003 10:37:43 -0500 Subject: removing host from schedule downtime? References: <200302112250.14722.jasmine.chua@securecirt.com> Message-ID: <3E4918C7.5070304@quadrix.com> On the left side menu, click on Downtime. That gives you a list of all hosts and services scheduled for a downtime. Click on the recycle bin icon for the item you want to take out of a downtime. You have to do this by first clicking on Downtime. If you go to the particular service or host and click on the recycle bin logo next to the comment (at the bottom), it only removes the comment, not the downtime. Maybe as a feature request for the UI, since when you view an acknowledged service/host, the list of options on the right includes a "Remove Problem Acknowledgement" link. Maybe services/hosts in a downtime should have a "Remove Scheduled Downtime" link in the command list. Russell Scibetti Jasmine wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi guys, > >any tips for disabling a host that I have scheduled downtime on the Web GUI? > > >- --Jasmine Chua > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.1 (GNU/Linux) > >iD8DBQE+SQ2lNgvTa7Hj2AURApaSAJ0TCxV/isvSDupInB4VnYtzpZxQZQCgmUkq >/FrgLYudpVGOl8/5gmS+uD4= >=qkHd >-----END PGP SIGNATURE----- > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From francesco.albrizio at init.it Tue Feb 11 16:54:41 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Tue, 11 Feb 2003 16:54:41 +0100 Subject: Hostgroup in notifications References: <001201c2d1b1$7b7b7420$3302a8c0@init.it> <3E491C3C.3030903@quadrix.com> Message-ID: <014301c2d1e5$e41829e0$3302a8c0@init.it> You're right. Thank you. F. ----- Original Message ----- From: Russell Scibetti To: Francesco Albrizio Cc: nagios-users at lists.sourceforge.net Sent: Tuesday, February 11, 2003 4:52 PM Subject: Re: [Nagios-users] Hostgroup in notifications Since notifications are spawned by a service failure on a particular host, and a host can be in multiple hostgroups, there is no real way of getting the Hostgroup for that notification. There is no $HOSTGROUP$ macro. Russell Scibetti Francesco Albrizio wrote: Hi everybody, Does anyone knows how to make appear the server hostgroup in notifications? Does exists some variable like i.e. $HOSTGROUP$ to use in miscommands.cfg that does the trick? Thanks guys, Francesco Albrizio E-mail: francesco.albrizio at init.it Network & Security Manager UNITEAM INIT InterNetworking & Information Technology via Imperia, 2 20142 MILANO Tel. 02-89546000 Fax. 02-8467832 -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Tue Feb 11 16:52:28 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 11 Feb 2003 10:52:28 -0500 Subject: Hostgroup in notifications References: <001201c2d1b1$7b7b7420$3302a8c0@init.it> Message-ID: <3E491C3C.3030903@quadrix.com> Since notifications are spawned by a service failure on a particular host, and a host can be in multiple hostgroups, there is no real way of getting the Hostgroup for that notification. There is no $HOSTGROUP$ macro. Russell Scibetti Francesco Albrizio wrote: > Hi everybody, > > > > Does anyone knows how to make appear the server hostgroup in > notifications? Does exists some variable like i.e. $HOSTGROUP$ to use > in miscommands.cfg that does the trick? > > > > Thanks guys, > > > > Francesco Albrizio > E-mail: francesco.albrizio at init.it > Network & Security Manager > UNITEAM INIT > InterNetworking & Information Technology > via Imperia, 2 > 20142 MILANO > Tel. 02-89546000 > Fax. 02-8467832 > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 11 17:01:02 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 11 Feb 2003 11:01:02 -0500 (EST) Subject: Help with check_ntp In-Reply-To: <009801c2d1df$7ffd15c0$87a9ca83@unb.ca> References: <009801c2d1df$7ffd15c0$87a9ca83@unb.ca> Message-ID: On Tue, 11 Feb 2003, Michael Jewett wrote: > Hi, > > I'm trying to get the check_ntp to work on my newly installed Nagios setup. > Here is what I did for running it and the output... > > ./check_ntp -H ntp.domain.ca -v > server xxx.xxx.xxx.xxx, stratum 2, offset -0.000924, delay 0.02592 > ntperr = 0 > 29 Jan 15:33:38 ntpdate[9302]: adjust time server xxx.xxx.xxx.xxx > offset -0.000924 sec > ntperr = 0 > ***Server reports a format error in the received packet (shouldn't happen) > UNKNOWN: Dispersion too high > > Does anyone have a suggestion on how to fix it? > > This worked great with Netsaint. > Version info helps. Can you use the latest CVS - check_ntp now uses ntpdate and ntpq (over ntpdc) -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 11 16:54:26 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 11 Feb 2003 10:54:26 -0500 Subject: Availabity Report References: <20030211093328.17652.qmail@web40613.mail.yahoo.com> Message-ID: <3E491CB2.1060901@quadrix.com> Do you have any services defined for those hosts? Remember that Nagios will only check a host if a service for that host fails. If you don't define any services for a host, it will NEVER get checked, regardless of whether or not you have a check-host-command defined. Russell Scibetti bernie liwanag wrote: >Why is it that some of my Hosts has a 0.000% result on >their Time up,Time Down, Time Unreachable and Time >Undetermined. Also what is the meaning of %Time >Undetermined? > >Below are some of my sample server result in >Availabity Reports. Pls take note on >server7,server10,server11 > > >Host % Time Up % Time Down % Time Unreachable % Time >Undetermined >server1 99.820% (99.820%) 0.180% (0.180%) 0.000% >(0.000%) 0.000% >server2 100.000% (100.000%) 0.000% (0.000%) 0.000% >(0.000%) 0.000% >server3 11.506% (99.656%) 0.040% (0.344%) 0.000% >(0.000%) 88.454% >server4 98.483% (98.483%) 1.517% (1.517%) 0.000% >(0.000%) 0.000% >server5 76.240% (76.240%) 23.760% (23.760%) 0.000% >(0.000%) 0.000% >server6 100.000% (100.000%) 0.000% (0.000%) 0.000% >(0.000%) 0.000% >server7 0.000% (0.000%) 0.000% (0.000%) 0.000% >(0.000%) 100.000% >server8 84.917% (84.917%) 15.083% (15.083%) 0.000% >(0.000%) 0.000% >server9 11.824% (96.637%) 0.412% (3.363%) 0.000% >(0.000%) 87.764% >server10 0.000% (0.000%) 0.000% (0.000%) 0.000% >(0.000%) 100.000% >server11 0.000% (0.000%) 0.000% (0.000%) 0.000% >(0.000%) 100.000% > > >Thanks a lot in Advance! > >Bernie > >__________________________________________________ >Do you Yahoo!? >Yahoo! Shopping - Send Flowers for Valentine's Day >http://shopping.yahoo.com > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Tue Feb 11 17:19:19 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Tue, 11 Feb 2003 17:19:19 +0100 Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: You could use cURL (curl.haxx.se) called from crontab: curl -u user:password http://your.nagios.host/nagios/cgi-bin/status.cgi?host=all > your-static.html -vol > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Tuesday, February 11, 2003 1:17 AM > To: 'Marc Powell'; hidden at invalid; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] How to export "Service Status Details For > All Hosts" to a Webserver? > > > NSCA might do the trick. Ditto rsync. > > Someone also recently mentioned making it work with postnuke. > > jc > > -----Original Message----- > From: Marc Powell [mailto:mpowell at ena.com] > Sent: Monday, February 10, 2003 5:51 PM > To: hidden at invalid; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] How to export "Service Status > Details For All > Hosts" to a Webserver? > > > wget or the libwww-perl GET alias come to mind if the > webserver machine is a > linux box. > > > -- > Marc > > Sent from a very tiny wireless device with a very tiny unlit keyboard. > > > -----Original Message----- > From: Anonymous Writer > To: nagios-users at lists.sourceforge.net > > Sent: Mon Feb 10 17:36:37 2003 > Subject: [Nagios-users] How to export "Service Status Details For All > Hosts" to a Webserver? > > > Hi folks, > > i am searching for a way to export the view of " Service > Status Details > For All Hosts " from the Monitoring Menue: Serive Detail to a > static html > page on our Webserver. Our Nagios server resides at our office an the > webserver is located in a Colocation some miles away. > > So i seeked the whole archive for a script or something else to export > scheduled every minute the current state of our hosts and > their services. > > Any ideas? > > greetings > > M. Gaffke > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dack at msi.umn.edu Tue Feb 11 17:20:41 2003 From: dack at msi.umn.edu (Dack Anderson) Date: Tue, 11 Feb 2003 10:20:41 -0600 (CST) Subject: status.log fields Message-ID: can someone point me to a file or what not that defines the fields in status.log. thanks. -- Dack ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 11 17:46:36 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 11 Feb 2003 11:46:36 -0500 Subject: status.log fields References: Message-ID: <3E4928EC.5010408@quadrix.com> The FAQ is a beautiful thing! http://www.nagios.org/faqs/viewfaq.php?faq_id=66 Hope that helps. If you're looking for ways of parsing the status.log, check out the check_status.pl (or check_remote_status.pl if it got renamed) in the contrib on the Plugins CVS. Russell Scibetti Dack Anderson wrote: >can someone point me to a file or what not that defines the fields >in status.log. > >thanks. > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Tue Feb 11 18:35:40 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Tue, 11 Feb 2003 11:35:40 -0600 Subject: Hostgroup based service definitions, unable to load with stable r elease... Message-ID: I am currently running Nagios1b3 with hostgroups with over 600 members and a total of over 7,000 service checks. A while ago I implemented the new feature that allows me to define service on the hostgroup level instead of per host. I am trying to upgrade to the Nagios 1 final release, but when I try to load the config that works for the beta version, I receive the following error: ================= Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL Reading configuration data... Error: Host name '2020-ADM01 2030-ADM01 6290-ADM01 2710-ADM01 2050-ADM01 2090 -ADM01 1210-ADM01 7480-ADM01 4590-ADM01 3640-ADM01 2070-ADM01 1900-ADM01 2100 -ADM01 1220-ADM01 2130-ADM01 2140-ADM01 6880-ADM01 2150-ADM01 2180-ADM01 2190 -ADM01 2240-ADM01 2260-ADM01 2270-ADM01 2280-ADM01 1020-ADM01 7860-ADM01 2300 -ADM01 4990-ADM01 1230-ADM01 5750-ADM01 2430-ADM01 1240-ADM01 2340-ADM01 2370 -ADM01 2380-ADM01 2390-ADM01 7470-ADM01 1500-ADM01 2400-ADM01 5040-ADM01 2550 -ADM01 2432-ADM01 2440-ADM01 2450-ADM01 2460-ADM01 2470-ADM01 2520-ADM01 2560 -ADM01 2580-ADM01 6610-ADM01 1250-ADM01 2610-ADM01 4260-ADM01 2620-ADM01 4320 -ADM01 4321-ADM01 2630-ADM01 2640-ADM01 2650-ADM01 2660-ADM01 2670-ADM01 1850 -ADM01 2700-ADM01 4290-ADM01 1910-ADM01 2720-ADM01 2510-ADM01 2740-ADM01 2750 -ADM01 2760-ADM01 5640-ADM01 564A-ADM01 6670-ADM01 1790-ADM01 6620-ADM01 1840 -ADM01 2800-ADM01 2810-ADM01 5651-ADM01 6170-ADM01 1880-ADM01 2880-ADM01 2890 -ADM01 289A-ADM01 1860-ADM01 1270-ADM01 2940-ADM01 4090-ADM01 1820-ADM01 1010 -ADM01 6560-ADM01 297 Error: Could not register service (config file '/usr/local/nagios/etc/sites.cfg', line 40914) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation on the main and host config files, as well as the 'Whats New' section to find out what has changed. =========== I tried to increasing the buffer size in xdata/xodtemplate.h and recompiling, but that did not alleviate this issue. What has changed in the way that Nagios loads the configuration? I followed the latest documentation in the configuration of the service. Here is an example: define service{ use check-service ; Name of service template to use hostgroup_name _Servers service_description PAGING contact_groups lan check_command check_nt_pagingfile!80!90 } Even if I comment out the lines Nagios errors on of, Nagios errors on the next hostgroup based definition. Any ideas as to what is causing this issue or what I can do to troubleshoot? Is there some other input buffer I need to modify? TIA, Richard ? ??? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From patrick.benson at tradingtechnologies.com Tue Feb 11 18:36:32 2003 From: patrick.benson at tradingtechnologies.com (Patrick Benson (TT)) Date: Tue, 11 Feb 2003 11:36:32 -0600 Subject: Division by zero error in Win2K. Message-ID: <7C5D35FF99E3154280AFC226C88D70DF7295F3@exchange> I have been upgrading several Win2K and NT4 servers from PNSClient version 1.0.6.2 to version 1.0.7.1. Out of thirty upgrades, one system is now generating a "Division by zero" application error every five minutes, and it sites NSClient as the source with an Event ID: 2. The original install was uneventful, and uninstalling and reinstalling the PNSClient did not help. The MS knowledge base was a bust as to what might be causing this. Has anyone had a similar experience, or knows of a fix? Please let me know. Thanks! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mgj at unb.ca Tue Feb 11 19:12:36 2003 From: mgj at unb.ca (Michael Jewett) Date: Tue, 11 Feb 2003 14:12:36 -0400 Subject: Help with check_ntp References: Message-ID: <00c801c2d1f9$28ff7f50$87a9ca83@unb.ca> hi, I got the latest version of the check_ntp(v1.12) and it seemed to work a little bit. but it complained some, so looking at the source, I noticed that it was making reference to things in utils, so I got the latest version of that as well, since I noticed a change in that. So I currently have: check_ntp --> 1.12 utils.pm --> 1.6 Now my error message is as follows, again using verbose mode: ./check_ntp -H xxx.xxx.xxx.xxx -v server xxx.xxx.xxx.xxx, stratum 2, offset 0.005577, delay 0.02592 ntperr = 0 11 Feb 14:06:39 ntpdate[11392]: adjust time server 131.202.3.20 offset 0.005577 sec ntperr = 0 remote refid st t when poll reach delay offset jitter ============================================================================ == 192.68.54.20 0.0.0.0 16 - - 1024 0 0.000 0.000 16000.0 198.164.163.107 0.0.0.0 16 - - 1024 0 0.000 0.000 16000.0 x128.118.46.3 .WWV. 1 u 510 1024 377 79.120 -36.329 1.130 +128.118.25.3 192.5.41.209 2 u 470 1024 377 79.150 -0.815 0.980 Candiate count= 1 129.116.3.5 0.0.0.0 16 - - 1024 0 0.000 0.000 16000.0 yyy.yyy.yyy.yyy 0.0.0.0 16 - - 1024 0 0.000 0.000 16000.0 132.246.168.80 0.0.0.0 16 - - 1024 0 0.000 0.000 16000.0 +132.246.168.2 .PPS. 1 u 851 1024 377 25.010 -0.283 0.200 Candiate count= 2 *132.246.168.3 .PPS. 1 u 216 1024 377 24.980 -0.554 0.240 Candiate count= 3 Use of uninitialized value at ./check_ntp line 297. UNKNOWN: Jitter too high Any ideas? Michael ----- Original Message ----- From: "Subhendu Ghosh" To: "Michael Jewett" Cc: Sent: Tuesday, February 11, 2003 12:01 PM Subject: Re: [Nagios-users] Help with check_ntp > On Tue, 11 Feb 2003, Michael Jewett wrote: > > > Hi, > > > > I'm trying to get the check_ntp to work on my newly installed Nagios setup. > > Here is what I did for running it and the output... > > > > ./check_ntp -H ntp.domain.ca -v > > server xxx.xxx.xxx.xxx, stratum 2, offset -0.000924, delay 0.02592 > > ntperr = 0 > > 29 Jan 15:33:38 ntpdate[9302]: adjust time server xxx.xxx.xxx.xxx > > offset -0.000924 sec > > ntperr = 0 > > ***Server reports a format error in the received packet (shouldn't happen) > > UNKNOWN: Dispersion too high > > > > Does anyone have a suggestion on how to fix it? > > > > This worked great with Netsaint. > > > > Version info helps. > > Can you use the latest CVS - check_ntp now uses ntpdate and ntpq (over > ntpdc) > > -- > -sg > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mgj at unb.ca Tue Feb 11 19:31:53 2003 From: mgj at unb.ca (Michael Jewett) Date: Tue, 11 Feb 2003 14:31:53 -0400 Subject: Help with check_ntp References: <00c801c2d1f9$28ff7f50$87a9ca83@unb.ca> Message-ID: <00e101c2d1fb$dbbedb70$87a9ca83@unb.ca> I did a look at the regular expression on line 254 or so. It didn't appear to be correct, so I did a different match and it worked. I don't know if I did it correct or not, but here is the line I changed, original first and new version next. old if (/^(\*|o)([-0-9.\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+( [-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { new if (/^(\*|o)(\d+\.\d+\.\d+\.\d+)\s+(.+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s +([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { Michael ----- Original Message ----- From: "Michael Jewett" To: "Subhendu Ghosh" Cc: Sent: Tuesday, February 11, 2003 2:12 PM Subject: Re: [Nagios-users] Help with check_ntp > hi, > > I got the latest version of the check_ntp(v1.12) and it seemed to work a > little bit. but it complained some, so looking at the source, I noticed that > it was making reference to things in utils, so I got the latest version of > that as well, since I noticed a change in that. > > So I currently have: > > check_ntp --> 1.12 > utils.pm --> 1.6 > > Now my error message is as follows, again using verbose mode: > > ./check_ntp -H xxx.xxx.xxx.xxx -v > server xxx.xxx.xxx.xxx, stratum 2, offset 0.005577, delay 0.02592 > ntperr = 0 > 11 Feb 14:06:39 ntpdate[11392]: adjust time server 131.202.3.20 offset > 0.005577 sec > ntperr = 0 > remote refid st t when poll reach delay offset > jitter > ============================================================================ > == > 192.68.54.20 0.0.0.0 16 - - 1024 0 0.000 0.000 > 16000.0 > 198.164.163.107 0.0.0.0 16 - - 1024 0 0.000 0.000 > 16000.0 > x128.118.46.3 .WWV. 1 u 510 1024 377 79.120 -36.329 > 1.130 > +128.118.25.3 192.5.41.209 2 u 470 1024 377 79.150 -0.815 > 0.980 > Candiate count= 1 > 129.116.3.5 0.0.0.0 16 - - 1024 0 0.000 0.000 > 16000.0 > yyy.yyy.yyy.yyy 0.0.0.0 16 - - 1024 0 0.000 0.000 > 16000.0 > 132.246.168.80 0.0.0.0 16 - - 1024 0 0.000 0.000 > 16000.0 > +132.246.168.2 .PPS. 1 u 851 1024 377 25.010 -0.283 > 0.200 > Candiate count= 2 > *132.246.168.3 .PPS. 1 u 216 1024 377 24.980 -0.554 > 0.240 > Candiate count= 3 > Use of uninitialized value at ./check_ntp line 297. > UNKNOWN: Jitter too high > > Any ideas? > > Michael > > > ----- Original Message ----- > From: "Subhendu Ghosh" > To: "Michael Jewett" > Cc: > Sent: Tuesday, February 11, 2003 12:01 PM > Subject: Re: [Nagios-users] Help with check_ntp > > > > On Tue, 11 Feb 2003, Michael Jewett wrote: > > > > > Hi, > > > > > > I'm trying to get the check_ntp to work on my newly installed Nagios > setup. > > > Here is what I did for running it and the output... > > > > > > ./check_ntp -H ntp.domain.ca -v > > > server xxx.xxx.xxx.xxx, stratum 2, offset -0.000924, delay 0.02592 > > > ntperr = 0 > > > 29 Jan 15:33:38 ntpdate[9302]: adjust time server xxx.xxx.xxx.xxx > > > offset -0.000924 sec > > > ntperr = 0 > > > ***Server reports a format error in the received packet (shouldn't > happen) > > > UNKNOWN: Dispersion too high > > > > > > Does anyone have a suggestion on how to fix it? > > > > > > This worked great with Netsaint. > > > > > > > Version info helps. > > > > Can you use the latest CVS - check_ntp now uses ntpdate and ntpq (over > > ntpdc) > > > > -- > > -sg > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 11 19:52:32 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 11 Feb 2003 13:52:32 -0500 (EST) Subject: status.log fields In-Reply-To: <3E4928EC.5010408@quadrix.com> References: <3E4928EC.5010408@quadrix.com> Message-ID: renamed to check_remote_nagios_status.pl in contrib. -sg On Tue, 11 Feb 2003, Russell Scibetti wrote: > The FAQ is a beautiful thing! > > http://www.nagios.org/faqs/viewfaq.php?faq_id=66 > > Hope that helps. If you're looking for ways of parsing the status.log, > check out the check_status.pl (or check_remote_status.pl if it got > renamed) in the contrib on the Plugins CVS. > > Russell Scibetti > > Dack Anderson wrote: > > >can someone point me to a file or what not that defines the fields > >in status.log. > > > >thanks. > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From chris.stankaitis at datawire.net Tue Feb 11 19:53:23 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Tue, 11 Feb 2003 13:53:23 -0500 Subject: statusmap.cgi Question - How to make it Pretty Message-ID: <3E4946A3.7090402@datawire.net> I personally don't care too much for the Status Map, it's nice to look at but ultimately there are much more important screens in Nagios.. However the Non-Techie Management types love the little pictures and network layout graph and such... so it has become my problem :) Problem is with 70+ hosts even after defining and seting up parents the thng is still a MAJOR mess... it seems the only solution is to define manual XYZ coordinates, which seems like a VERY LONG job. Does anyone have any advice out there on how I can do this in the easiest most painless way possible?? I heard rumors that in the day of Netsaint there was a GUI which would read in the config let you drag n' drop things to where you want them, then would write out the configs with the proper XYZ coordinates. Does this still exist and does it work with the new template configs?? if not is there a comparable method out there to acomplish this Thanks! -- Chris Stankaitis Systems Administrator Datawire Communication Networks Inc. chris.stankaitis at datawire.net ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 11 19:43:38 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 11 Feb 2003 13:43:38 -0500 (EST) Subject: Help with check_ntp In-Reply-To: <00e101c2d1fb$dbbedb70$87a9ca83@unb.ca> References: <00e101c2d1fb$dbbedb70$87a9ca83@unb.ca> Message-ID: you have a bug :( lack of testing against a stratum 1 peer. Will add the regex for WWV/PPS/GPS for the refid field. -sg On Tue, 11 Feb 2003, Michael Jewett wrote: > I did a look at the regular expression on line 254 or so. It didn't appear > to be correct, so I did a different match and it worked. > > I don't know if I did it correct or not, but here is the line I changed, > original first and new version next. > > old > if > (/^(\*|o)([-0-9.\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+( > [-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { > > new > if > (/^(\*|o)(\d+\.\d+\.\d+\.\d+)\s+(.+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s > +([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { > > > Michael > > > > > ----- Original Message ----- > From: "Michael Jewett" > To: "Subhendu Ghosh" > Cc: > Sent: Tuesday, February 11, 2003 2:12 PM > Subject: Re: [Nagios-users] Help with check_ntp > > > > hi, > > > > I got the latest version of the check_ntp(v1.12) and it seemed to work a > > little bit. but it complained some, so looking at the source, I noticed > that > > it was making reference to things in utils, so I got the latest version of > > that as well, since I noticed a change in that. > > > > So I currently have: > > > > check_ntp --> 1.12 > > utils.pm --> 1.6 > > > > Now my error message is as follows, again using verbose mode: > > > > ./check_ntp -H xxx.xxx.xxx.xxx -v > > server xxx.xxx.xxx.xxx, stratum 2, offset 0.005577, delay 0.02592 > > ntperr = 0 > > 11 Feb 14:06:39 ntpdate[11392]: adjust time server 131.202.3.20 offset > > 0.005577 sec > > ntperr = 0 > > remote refid st t when poll reach delay offset > > jitter > > > ============================================================================ > > == > > 192.68.54.20 0.0.0.0 16 - - 1024 0 0.000 0.000 > > 16000.0 > > 198.164.163.107 0.0.0.0 16 - - 1024 0 0.000 0.000 > > 16000.0 > > x128.118.46.3 .WWV. 1 u 510 1024 377 79.120 -36.329 > > 1.130 > > +128.118.25.3 192.5.41.209 2 u 470 1024 377 79.150 -0.815 > > 0.980 > > Candiate count= 1 > > 129.116.3.5 0.0.0.0 16 - - 1024 0 0.000 0.000 > > 16000.0 > > yyy.yyy.yyy.yyy 0.0.0.0 16 - - 1024 0 0.000 0.000 > > 16000.0 > > 132.246.168.80 0.0.0.0 16 - - 1024 0 0.000 0.000 > > 16000.0 > > +132.246.168.2 .PPS. 1 u 851 1024 377 25.010 -0.283 > > 0.200 > > Candiate count= 2 > > *132.246.168.3 .PPS. 1 u 216 1024 377 24.980 -0.554 > > 0.240 > > Candiate count= 3 > > Use of uninitialized value at ./check_ntp line 297. > > UNKNOWN: Jitter too high > > > > Any ideas? > > > > Michael > > > > > > ----- Original Message ----- > > From: "Subhendu Ghosh" > > To: "Michael Jewett" > > Cc: > > Sent: Tuesday, February 11, 2003 12:01 PM > > Subject: Re: [Nagios-users] Help with check_ntp > > > > > > > On Tue, 11 Feb 2003, Michael Jewett wrote: > > > > > > > Hi, > > > > > > > > I'm trying to get the check_ntp to work on my newly installed Nagios > > setup. > > > > Here is what I did for running it and the output... > > > > > > > > ./check_ntp -H ntp.domain.ca -v > > > > server xxx.xxx.xxx.xxx, stratum 2, offset -0.000924, delay 0.02592 > > > > ntperr = 0 > > > > 29 Jan 15:33:38 ntpdate[9302]: adjust time server xxx.xxx.xxx.xxx > > > > offset -0.000924 sec > > > > ntperr = 0 > > > > ***Server reports a format error in the received packet (shouldn't > > happen) > > > > UNKNOWN: Dispersion too high > > > > > > > > Does anyone have a suggestion on how to fix it? > > > > > > > > This worked great with Netsaint. > > > > > > > > > > Version info helps. > > > > > > Can you use the latest CVS - check_ntp now uses ntpdate and ntpq (over > > > ntpdc) > > > > > > -- > > > -sg > > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From koreth-nagios at midwinter.com Tue Feb 11 20:12:31 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Tue, 11 Feb 2003 11:12:31 -0800 Subject: NRPE vs. check_by_ssh vs. nagios_statd In-Reply-To: <3E47C5FE.5000209@quadrix.com>; from russell@quadrix.com on Mon, Feb 10, 2003 at 10:32:14AM -0500 References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> <3E3E2862.7050007@cern.ch> <20030203162818.C17473@cadge.midwinter.com> <3E47C5FE.5000209@quadrix.com> Message-ID: <20030211111231.A1852@cadge.midwinter.com> Yep, my batch_by_ssh script uses that functionality of check_by_ssh. When you're checking large numbers of services on a bunch of remote hosts, and not always the *same* services, constructing monster check_by_ssh command lines by hand gets a bit tedious and error-prone. Hence my script, which is really just an easy-to-administer frontend to check_by_ssh. -Steve On Mon, Feb 10, 2003 at 10:32:14AM -0500, Russell Scibetti wrote: > For what its worth, the default check_by_ssh plugin already allows multiple > checks to be performed in one ssh command and then dumps the results into the > command pipe to be processed passively. > > Russell Scibetti ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From celeste at startech.org Tue Feb 11 20:24:46 2003 From: celeste at startech.org (Celeste Hilliard) Date: Tue, 11 Feb 2003 13:24:46 -0600 Subject: Temp Trax not consistent Message-ID: I have Nagios running on RH 7.3 with MRTG and RRD for graphing. I have a a Temp Trax device with 2 sensors connected to the RH box with one sensor in each server room, with the Temp Trax plug-in installed. The data being reported is very inconsistent. The first 2 weeks of my graph show that both of the sensors timed out about 4 times that week at approximately the same time, but it would always recover. Then I had a whole week that the sensors did not time out at all. The next week they started timing out on Thursday afternoon, and did not recover. In response, I re-booted the server, and everything seems to be working again. Where should I be looking to see why this keeps happening, and how I can fix it without re-booting my server every week? I also would like to know if there is a way I can tell Nagios to check the temp trax service at specific times of the day or at a different time interval than the rest of the service and host checks. Thanks in advance. Celeste -------------- next part -------------- An HTML attachment was scrubbed... URL: From don_schultz at panvera.com Tue Feb 11 21:03:00 2003 From: don_schultz at panvera.com (Don Schultz) Date: Tue, 11 Feb 2003 14:03:00 -0600 Subject: check_nt Message-ID: <72CF2973A7532D478D85271D40F608FCC3F9C9@mercury.panvera.com> Checking disk space on NT machines with Nsclient & nagios. What units does the check_nt disk space checker return disk space values in? kb? B? mb? Gb? What? And for setting warning and critical values, what do I put in there? Percent? Kb? Mb? Gb? Thanks~ -- Don Schultz | Panvera Corporation Unix Administrator | 501 Charmany Drive ph: 608.204.5060 | Madison, WI 53719 fax: 608.204.5061 | ------------------------------------------ pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C F8 75 25 B9 04 AF 67 A3 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From JSleeper at ecpi.edu Tue Feb 11 21:43:40 2003 From: JSleeper at ecpi.edu (Sleeper, Joe (Virginia Beach)) Date: Tue, 11 Feb 2003 15:43:40 -0500 Subject: check_nt Message-ID: <405B5DFB00BC1543810B0BAD9B4C5B06032F810C@adminstuinfo.ecpivab.edu> check_nt returns values in Gb, for the values use percentage. nsclient is cool, the one thing that i don't like is the fact that for memory utililization, it combines virtual memory and physical memory. Has anyone done anything different so that it reports them seperately (i'm most worried about the physical). joe sleeper wan engineer ecpi colleges, inc 5555 greenwich rd virginia beach, va 23462 757.671.7171 x257 -----Original Message----- From: Don Schultz [mailto:don_schultz at panvera.com] Sent: Tuesday, February 11, 2003 3:03 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt Checking disk space on NT machines with Nsclient & nagios. What units does the check_nt disk space checker return disk space values in? kb? B? mb? Gb? What? And for setting warning and critical values, what do I put in there? Percent? Kb? Mb? Gb? Thanks~ -- Don Schultz | Panvera Corporation Unix Administrator | 501 Charmany Drive ph: 608.204.5060 | Madison, WI 53719 fax: 608.204.5061 | ------------------------------------------ pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C F8 75 25 B9 04 AF 67 A3 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 11 22:04:24 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 11 Feb 2003 16:04:24 -0500 Subject: Oracle DB Query check References: <74D428BDBFD5D04CB54E84499ECA29DB014E1484@PKDWB03C.ad.sprint.com> Message-ID: <3E496558.80104@quadrix.com> I received a few requests about this, so I'm submitting it to the list. I don't know if this belongs in the contrib section of the nagios-plugins, because it doesn't exactly fit the form. If I improve it significantly, then I'll formally resubmit it. Anyway, this requires that Java JDK1.3.1 or higher is installed on the monitoring machine, but you don't need to install the Oracle client. You only need the Oracle JDBC libraries, found in the form of classes12.zip or classes12.jar. My code uses the Java Thin Client to connect to the DB. You first need to compile the NagiosDBTest.java file to get NagiosDBTest.class. Then, in the shell script, you'll see that I set the $CLASSPATH to wherever the classes12 file is. My script then takes 4 args: host, sid, username, and password. The args that actually get passed to the java program are (in order), the connection string (which contains the host and sid), username, password, and query string (in quotes). You can vary the shell script as you like to run different queries or take different args, as long as these 4 args get passed to the java program (or edit the .java file to set up your own defaults). The java code simply makes a connection to the Oracle DB and runs the query. If a SQLException occurs, or the resultset of the query is empty, the java code returns a critical, and either the Exception message or "Empty Set" will be returned as output. If the query returns a resultset that has content, the java code returns an OK and outputs the result of the query. If you write smarter shell scripts, you can use the resultset output to do more calculations (check # of connections, etc). This code should work with non-Oracle databases are long as you have the proper JDBC libraries in the $CLASSPATH and use the correct connection string. Please feel free to email if you have any questions. Russell Scibetti Carroll, Jim P [Contractor] wrote: >Perhaps something which could be added to the contrib directory...? > >jc > >>-----Original Message----- >>From: Russell Scibetti [mailto:russell at quadrix.com] >>Sent: Monday, February 10, 2003 1:11 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Oracle DB Query check >> >> >>I have created a "plugin" to check connecting and querying an >>Oracle DB. >> However, instead of needing the Oracle client installed on your >>monitoring machine, I use java (JDK1.3.1 and up) and a >>Jar/Zip file of >>the Oracle JDBC libraries (classes12.zip for those that know >>it). It is >>a small java class that connects, runs a query and exits, and you can >>wrap it with any number of different shell scripts for >>running different >>queries and processing the results. >> >>The class takes a connection string, user, password, and >>query to run. >> It returns OK if the query executes and returns any >>resultset, which is >>printed to the OUTPUT string. It returns a Critical if a >>SQLException >>occurs or the resultset of the query is empty. The >>SQLException message >>is printed as the OUTPUT if one occurs. >> >>Is anyone interested in this code? If so, I will email it out to the >>list. I was just trying to avoid installing the Oracle >>client where I >>didn't need it, and take advantage of an already existing >>Java installation. >> >>Russell Scibetti >> >>-- >>Russell Scibetti >>Quadrix Solutions, Inc. >>http://www.quadrix.com >>(732) 235-2335, ext. 7038 >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: NagiosDBTest.java URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_db_withjava.sh URL: From efinleywork at efinley.com Tue Feb 11 22:14:14 2003 From: efinleywork at efinley.com (Elliot Finley) Date: Tue, 11 Feb 2003 14:14:14 -0700 Subject: Monitoring process may not be running Message-ID: <083c01c2d212$89ba08b0$695ad70a@elliotdevelop> Since the archive search function doesn't work, I'll ask this question here. When viewing the Tactical Monitoring Overview, in the upper left corner it says 'Warning: Monitoring process may not be running!'. When I click on it for more info it shows the correct process information. It has the correct Nagios PID and the correct Total Running Time, Program Start Time, etc... But under the Process Commands section it says 'It appears as though Nagios is not running, so commands are temporarily unavailable...'. And under the Process Status Information section it says: 'Process Status: CRITICAL', 'Check Command Output: Could not locate a running Nagios process!'. But if I run the command as it is in the cgi.cfg file nagios_check_command=/usr/local/libexec/nagios/check_nagios /usr/local/var/nagios/status.log 5 ' /usr/local/bin/nagios' it has the following output: Nagios ok: located 1 process, status log updated 10 seconds ago Anyone have any ideas? I've already read and re-read TFM. Elliot ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Feb 11 22:57:31 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 12 Feb 2003 08:57:31 +1100 Subject: Monitoring Windows 2000 Print Services In-Reply-To: <951A499AA688EF47A898B45F25BD8EE822CD7D@mailer.nec-labs.com>; from syed@nec-labs.com on Tue, Feb 11, 2003 at 09:49:32AM -0500 References: <951A499AA688EF47A898B45F25BD8EE822CD7D@mailer.nec-labs.com> Message-ID: <20030212085721.B223@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Tue, Feb 11, 2003 at 09:49:32AM -0500, Syed Ali wrote: > Hello, > > Before I start writing my own..... > > Does anyone have a working plug-in for monitoring Windows print services > in an active directory environment? AD should have no impact on the ways and means to check Windows printing. Win2K has a little more impact but not too much. > (Just to see if the print spooler is running is sufficient) > > The contrib directory has a check_ms_spooler.pl that does not work even > after tweaking in our environment. Please would you post either me or the list, (or alternatively, what do you think is wrong with it) ./check_ms_spool -V ./check_ms_spool -H - u - p -d (the debugging is pretty slack) ? eg tsitc> ./check_ms_spooler -H ipaprint -u _ -p _ -d |& more /usr/local/samba/bin/smbclient //ipaprint/BS01 -U _%_ -c 'queue; quit' ==> "added interface ip=10.0.100.252 bcast=10.255.255.255 nmask=255.0.0.0 Domain=[IPAUSTRALIA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] " $queue_report for $printer BS01: "" /usr/local/samba/bin/smbclient //ipaprint/BS13 -U _%_ -c 'queue; quit' ==> "added interface ip=10.0.100.252 bcast=10.255.255.255 nmask=255.0.0.0 Domain=[IPAUSTRALIA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] " $queue_report for $printer BS13: "" /usr/local/samba/bin/smbclient //ipaprint/Local -U _%_ -c 'queue; quit' ==> "added interface ip=10.0.100.252 bcast=10.255.255.255 nmask=255.0.0.0 Domain=[IPAUSTRALIA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] 387 103370 ATMOSS - Australian Trade Mark Online Search System 416 40787 ATMOSS - Australian Trade Mark Online Search System 421 40787 ATMOSS - Australian Trade Mark Online Search System 431 40787 ATMOSS - Australian Trade Mark Online Search System 755 8303 Print Job 782 43086 ATMOSS - Australian Trade Mark Online Search System 787 43086 ATMOSS - Australian Trade Mark Online Search System " $queue_report for $printer Local: "387 103370 ATMOSS - Australian Trade Mark Online Search System 416 40787 ATMOSS - Australian Trade Mark Online Search System 4 21 40787 ATMOSS - Australian Trade Mark Online Search System 431 40787 ATMOSS - Australian Trade Mark Online Search System 755 8303 Print Job 782 43086 ATMOSS - Australian Trade Mark Online Search System 787 43086 ATMOSS - Australian Trade Mark Online Search System" .... yada This plugin isn't very accurate in that it does not report whether or not the spooling process is running. To my mind a good way of doing that is to . define a share on the MS printer server . define a queue that outputs anything spooled to it, to the share above . have the check spool a file of known size to the queue and then check if the size of the file on the share is equal to what was spooled. Such a check does in fact exist but at this stage relies on the same smbclient that the check_ms_spooler.pl does. Thank you, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From marek.dohojda at linksys.com Wed Feb 12 00:17:59 2003 From: marek.dohojda at linksys.com (Marek Dohojda) Date: Tue, 11 Feb 2003 15:17:59 -0800 Subject: Avaliability report Message-ID: Hello everyone I have a quick question. I am using Nagios 1.0 and I need to produce avaliability reports automatically and formated differently then they are displayed in Nagios. I am using MySQL as a holder for all the log files. Looking through the cgi code it seems that it is looking for archive files in order to determine when a host was down or up. However I don't see any of hte archive files. Therefore my question is this. How does Nagios, using MySQL to store all Logs, know when system was down or up in given period of time? Marek Dohojda Sr. Network Administrator Linksys Group, Inc., www.linksys.com 949-784-2814 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Wed Feb 12 02:18:57 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Tue, 11 Feb 2003 17:18:57 -0800 (PST) Subject: Availabity Report In-Reply-To: <3E491CB2.1060901@quadrix.com> References: <3E491CB2.1060901@quadrix.com> Message-ID: <20030212011857.49027.qmail@web40605.mail.yahoo.com> Russell, Thanks for your response! Yes i have some services defined for those hosts that has always 0.00% value. Actually even my availability report in each services on that hosts are giving me 0.0% in % Time Up,% Time Down %,Time Unreachable,%Time Undetermined. Bernie --- Russell Scibetti wrote: > Do you have any services defined for those hosts? > Remember that Nagios > will only check a host if a service for that host > fails. If you don't > define any services for a host, it will NEVER get > checked, regardless of > whether or not you have a check-host-command > defined. > > Russell Scibetti > > bernie liwanag wrote: > > >Why is it that some of my Hosts has a 0.000% result > on > >their Time up,Time Down, Time Unreachable and Time > >Undetermined. Also what is the meaning of %Time > >Undetermined? > > > >Below are some of my sample server result in > >Availabity Reports. Pls take note on > >server7,server10,server11 > > > > > >Host % Time Up % Time Down % Time Unreachable % > Time > >Undetermined > >server1 99.820% (99.820%) 0.180% (0.180%) 0.000% > >(0.000%) 0.000% > >server2 100.000% (100.000%) 0.000% (0.000%) 0.000% > >(0.000%) 0.000% > >server3 11.506% (99.656%) 0.040% (0.344%) 0.000% > >(0.000%) 88.454% > >server4 98.483% (98.483%) 1.517% (1.517%) 0.000% > >(0.000%) 0.000% > >server5 76.240% (76.240%) 23.760% (23.760%) 0.000% > >(0.000%) 0.000% > >server6 100.000% (100.000%) 0.000% (0.000%) 0.000% > >(0.000%) 0.000% > >server7 0.000% (0.000%) 0.000% (0.000%) 0.000% > >(0.000%) 100.000% > >server8 84.917% (84.917%) 15.083% (15.083%) 0.000% > >(0.000%) 0.000% > >server9 11.824% (96.637%) 0.412% (3.363%) 0.000% > >(0.000%) 87.764% > >server10 0.000% (0.000%) 0.000% (0.000%) 0.000% > >(0.000%) 100.000% > >server11 0.000% (0.000%) 0.000% (0.000%) 0.000% > >(0.000%) 100.000% > > > > > >Thanks a lot in Advance! > > > >Bernie > > > >__________________________________________________ > >Do you Yahoo!? > >Yahoo! Shopping - Send Flowers for Valentine's Day > >http://shopping.yahoo.com > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From securityguy at ikano.com Wed Feb 12 02:51:30 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Tue, 11 Feb 2003 18:51:30 -0700 Subject: Dans Guardian - Proxy Flitering Software Message-ID: <000001c2d239$433c7680$ddd0d0cd@pendleton> Has anyone here tried to monitor the Dans Guardian proxy/filtering software? I'm trying to use the check_http plugin, but it returns an "HTTP/1.0 400 Bad Request". Thank you, Robert S. Galloway Chief Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark_leddy at hotmail.com Wed Feb 12 03:41:00 2003 From: mark_leddy at hotmail.com (Mark Leddy) Date: Wed, 12 Feb 2003 02:41:00 +0000 Subject: check_nt - custom counters retun values from perfmon counters Message-ID: Joe, NS_Client can return the same values that can be accessed by perfmon (performance Monitor). Look at the nsclient readme.html on custom COUNTERs. To look at physical memory, memory would be the performance object you want to look at, not sure what the performance counter would be. Hope this helps. Mark From: "Sleeper, Joe (Virginia Beach)" To: "'nagios-users at lists.sourceforge.net'" Subject: RE: [Nagios-users] check_nt Date: Tue, 11 Feb 2003 15:43:40 -0500 MIME-Version: 1.0 Received: from mc6-f14.law1.hotmail.com ([65.54.252.150]) by mc6-s4.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 11 Feb 2003 12:52:09 -0800 Received: from sc8-sf-list2.sourceforge.net ([66.35.250.206]) by mc6-f14.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 11 Feb 2003 12:51:55 -0800 Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] helo=sc8-sf-list1.sourceforge.net)by sc8-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id 18ihJ8-00085S-00; Tue, 11 Feb 2003 12:47:10 -0800 Received: from ecpi.edu ([66.11.11.5] helo=mailsweeper.ecpi.edu)by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id 18ihIQ-0002kI-00for ; Tue, 11 Feb 2003 12:46:26 -0800 Received: from mailhost2.ecpi.edu (unverified) by mailsweeper.ecpi.edu (Content Technologies SMTPRS 4.3.1) with ESMTP id for ; Tue, 11 Feb 2003 15:40:17 -0500 Received: by adminstuinfo.ecpivab.edu with Internet Mail Service (5.5.2656.59) id ; Tue, 11 Feb 2003 15:43:41 -0500 X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-ID: <405B5DFB00BC1543810B0BAD9B4C5B06032F810C at adminstuinfo.ecpivab.edu> X-Mailer: Internet Mail Service (5.5.2656.59) Sender: nagios-users-admin at lists.sourceforge.net Errors-To: nagios-users-admin at lists.sourceforge.net X-BeenThere: nagios-users at lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Nagios Users List List-Unsubscribe: , List-Archive: X-Original-Date: Tue, 11 Feb 2003 15:43:40 -0500 Return-Path: nagios-users-admin at lists.sourceforge.net X-OriginalArrivalTime: 11 Feb 2003 20:51:55.0113 (UTC) FILETIME=[6933A590:01C2D20F] check_nt returns values in Gb, for the values use percentage. nsclient is cool, the one thing that i don't like is the fact that for memory utililization, it combines virtual memory and physical memory. Has anyone done anything different so that it reports them seperately (i'm most worried about the physical). joe sleeper wan engineer ecpi colleges, inc 5555 greenwich rd virginia beach, va 23462 757.671.7171 x257 -----Original Message----- From: Don Schultz [mailto:don_schultz at panvera.com] Sent: Tuesday, February 11, 2003 3:03 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt Checking disk space on NT machines with Nsclient & nagios. What units does the check_nt disk space checker return disk space values in? kb? B? mb? Gb? What? And for setting warning and critical values, what do I put in there? Percent? Kb? Mb? Gb? Thanks~ -- Don Schultz | Panvera Corporation Unix Administrator | 501 Charmany Drive ph: 608.204.5060 | Madison, WI 53719 fax: 608.204.5061 | ------------------------------------------ pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C F8 75 25 B9 04 AF 67 A3 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From alexicas at copextel.com.cu Tue Feb 11 23:17:54 2003 From: alexicas at copextel.com.cu (Alexi) Date: Tue, 11 Feb 2003 22:17:54 +0000 Subject: Dans Guardian - Proxy Flitering Software In-Reply-To: <000001c2d239$433c7680$ddd0d0cd@pendleton> References: <000001c2d239$433c7680$ddd0d0cd@pendleton> Message-ID: <5.0.0.25.2.20030211215959.00b080f0@192.168.7.14> Robert, Recently we have installed Nagios like excellent and free software for monitoring our net. We have three (3) proxy-cache with Squid installed, and gives us error HTTP/1.0 400 Bad Request too, when we try to check service with check_http plugin. Now I am checking Squid with check_tcp -H $HOSTADDRESS$ -p 3128 and gives me good result. I will revise to see if I can discover the cause of this failure. But, with Apache port 80 the plugin check_http works good. greetings, Alexi Castro Network Manager Engineer Division Tecnostar Copextel S.A. La Habana, Cuba. E-mail: alexicas at copextel.com.cu At 11-02-03 06:51 PM, you wrote: >Has anyone here tried to monitor the Dans Guardian proxy/filtering >software? I m trying to use the check_http plugin, but it returns an >HTTP/1.0 400 Bad Request . > > >Thank you, > > >Robert S. Galloway > >Chief Network Security Engineer > >IKANO Communications > >...the Internet branding company > >Official Data Networking Services Provider for the > >Salt Lake Olympic Winter Games of 2002 > >securityguy at ikano.com > >801-415-8089 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamie at bclnz.net Wed Feb 12 04:45:48 2003 From: jamie at bclnz.net (Jamie) Date: Wed, 12 Feb 2003 16:45:48 +1300 Subject: Notifications Message-ID: <046a01c2d249$3b784ae0$b58031ca@bcl977307> Hi, If anyone is having problems with nagios emailing notifications, with part of the info section missing (typically anything following the % sign about packet loss), then make the following changes to misccommands.cfg: change /usr/bin/printf "blah blah.. to /bin/echo -e "blah blah... This has been frustrating me for a while. I think other nagiosers have had the same problem in the past.... Perhaps this should change in the sample configs? peace. jamie ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 12 04:52:11 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 11 Feb 2003 22:52:11 -0500 Subject: Dans Guardian - Proxy Flitering Software In-Reply-To: <5.0.0.25.2.20030211215959.00b080f0@192.168.7.14> References: <5.0.0.25.2.20030211215959.00b080f0@192.168.7.14> Message-ID: <1045021931.20393.2.camel@localhost.localdomain> On Tue, 2003-02-11 at 17:17, Alexi wrote: > Robert, > Recently we have installed Nagios like excellent and free software for > monitoring our net. We have three (3) proxy-cache with Squid > installed, and gives us error HTTP/1.0 400 Bad Request too, when we > try to check service with check_http plugin. Now I am checking Squid > with check_tcp -H $HOSTADDRESS$ -p 3128 and gives me good result. I > will revise to see if I can discover the cause of this failure. But, > with Apache port 80 the plugin check_http works good. > greetings, > > Alexi Castro You might want to try the version from CVS or tfrom the snapshots at http://www.debisschop.net/src.nagios -- there are recent patches that ma resolve this. You might also consider providing version information in your postings in the future. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atulsh at hclinsys.com Wed Feb 12 05:32:58 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 12 Feb 2003 10:02:58 +0530 Subject: Bandwidth Utilization using check_snmp Message-ID: <002901c2d24f$d207c890$5f7b0297@atul> Hello All, I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I require the diffenence the between the two counter values at some time interval so that i can make a table for this for further use. Has anyone done some work on that, pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at unbeatenpath.net Wed Feb 12 05:47:02 2003 From: lists at unbeatenpath.net (Cameron Moore) Date: Tue, 11 Feb 2003 22:47:02 -0600 Subject: Notifications In-Reply-To: <046a01c2d249$3b784ae0$b58031ca@bcl977307> References: <046a01c2d249$3b784ae0$b58031ca@bcl977307> Message-ID: <20030212044701.GB9648@unbeatenpath.net> * jamie at bclnz.net (Jamie) [2003.02.11 22:05]: > If anyone is having problems with nagios emailing notifications, with part > of the info section missing (typically anything following the % sign about > packet loss), then make the following changes to misccommands.cfg: > change /usr/bin/printf "blah blah.. to /bin/echo -e "blah blah... > > This has been frustrating me for a while. I think other nagiosers have had > the same problem in the past.... > > Perhaps this should change in the sample configs? Did you remove the "%b" string after printf? It should read: /usr/bin/printf "%b" "blah blah..." But FWIW, 'echo -e "blah blah...' seems like a simple replacement. Is there some reason why Nagios uses printf over echo? -- Cameron Moore [ Why don't they just make mouse-flavored cat food? ] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Wed Feb 12 06:08:59 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 11 Feb 2003 23:08:59 -0600 Subject: Dans Guardian - Proxy Flitering Software Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F28BD@mismail.ena.com> I think you're looking for something like this: # 'check_caching' command definition define command{ command_name check_caching command_line $USER1$/check_http -H $HOSTADDRESS$ --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u http://www.cnn.com -s \/html } You'll need to change your -p flag to match the proxy port on the device you are monitoring and the -u for a URL you want to verify is being served correctly. I've also made some minor changes to check_http that allow me to verify that an HTTP filtering device is returning a 403 Forbidden as it should for blocked sites. I think it really should be a flag to check_http though that 403's can be an OK state and not an automatic warning state. -- Marc -----Original Message----- From: Robert S. Galloway [mailto:securityguy at ikano.com] Sent: Tue 2/11/2003 7:51 PM To: 'Nagios List' Cc: Subject: [Nagios-users] Dans Guardian - Proxy Flitering Software Has anyone here tried to monitor the Dans Guardian proxy/filtering software? I?m trying to use the check_http plugin, but it returns an ?HTTP/1.0 400 Bad Request?. Thank you, Robert S. Galloway Chief Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Wed Feb 12 06:12:42 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 11 Feb 2003 23:12:42 -0600 Subject: Bandwidth Utilization using check_snmp Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F28BE@mismail.ena.com> Cricket or some other RRDtool based progarm might be more useful to you in this regard than nagios. http://cricket.sourceforge.net If you want to alert in nagios for bandwidth utilization then you'll need to combine the check_mrtgtraf plugin with http://people.ee.ethz.ch/~oetiker/webtools/mrtg/, which actually gathers and stores the utilization information. -- Marc -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Tue 2/11/2003 10:32 PM To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Bandwidth Utilization using check_snmp Hello All, I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I require the diffenence the between the two counter values at some time interval so that i can make a table for this for further use. Has anyone done some work on that, pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From securityguy at ikano.com Wed Feb 12 06:31:42 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Tue, 11 Feb 2003 22:31:42 -0700 Subject: Dans Guardian - Proxy Flitering Software In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83029F28BD@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83029F28BD@mismail.ena.com> Message-ID: <001d01c2d258$0630c650$ddd0d0cd@pendleton> Hi Marc, Thanks for the reply. I am using today's CVS snapshot of the plugins (200302111100) and Nagios 1.0. Here is the command and output that I get. ------ ./check_http -I 209.210.176.32 --onredirect follow -p 8888 -w 20 -c 30 -t 35 -u http://www.cnn.com -s html -v Page is 206 characters STATUS: HTTP/1.0 400 Bad Request **** HEADER **** Content-Type: text/html **** CONTENT **** DansGuardian - 400 Bad Request

DansGuardian - 400 Bad Request

The requested URL is malformed. HTTP WARNING: HTTP/1.0 400 Bad Request ------ Thanks, Robert S. Galloway Chief Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 12 06:52:45 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 11 Feb 2003 23:52:45 -0600 Subject: Dans Guardian - Proxy Flitering Software Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F28BF@mismail.ena.com> The Dansguardian documentation indicates that it listens on port 8080 for connections. Have you changed that to be 8888? What happens when you issue the following commands: telnet 208.210.176.32 8080 (or 8888 as the case may be) GET http://www.cnn.com HTTP/1.0 How about : telnet 208.210.176.32 3128 GET http://www.cnn.com HTTP/1.0 That should at least narrow it down to a Dansguardian or squid problem. -- Marc -----Original Message----- From: Robert S. Galloway [mailto:securityguy at ikano.com] Sent: Tue 2/11/2003 11:31 PM To: Marc Powell; 'Nagios List' Cc: Subject: RE: [Nagios-users] Dans Guardian - Proxy Flitering Software Hi Marc, Thanks for the reply. I am using today's CVS snapshot of the plugins (200302111100) and Nagios 1.0. Here is the command and output that I get. ------ ./check_http -I 209.210.176.32 --onredirect follow -p 8888 -w 20 -c 30 -t 35 -u http://www.cnn.com -s html -v Page is 206 characters STATUS: HTTP/1.0 400 Bad Request **** HEADER **** Content-Type: text/html **** CONTENT **** DansGuardian - 400 Bad Request

DansGuardian - 400 Bad Request

The requested URL is malformed. HTTP WARNING: HTTP/1.0 400 Bad Request ------ Thanks, Robert S. Galloway Chief Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 -------------- next part -------------- An HTML attachment was scrubbed... URL: From securityguy at ikano.com Wed Feb 12 07:01:58 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Tue, 11 Feb 2003 23:01:58 -0700 Subject: Dans Guardian - Proxy Flitering Software In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83029F28BF@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83029F28BF@mismail.ena.com> Message-ID: <002201c2d25c$40c6a6a0$ddd0d0cd@pendleton> Same results for port 8888 using telnet. (We are running DG on a different port because we are migrating from another solution.) I can monitor squid directly using: check_http -H www.cnn.com -I $HOSTADDRESS$ -p 3128 I can provide a tcpdump from the filter if it would be helpful. I looked it over and everything seemed to be in order. The requests look exactly the same as the requests from a browser with the proxy turned on. Thanks, Robert S. Galloway Chief Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 -------------- next part -------------- An HTML attachment was scrubbed... URL: From igor.godi at laposte.net Wed Feb 12 11:15:40 2003 From: igor.godi at laposte.net (=?iso-8859-1?Q?igor.godi?=) Date: Wed, 12 Feb 2003 11:15:40 +0100 Subject: =?iso-8859-1?Q?Authentification_Problem?= Message-ID: Hello, I'm french user of linux (sorry for my small english). I try to install Nagios with Mandrake 9.0 distribution. I arrived to install Nagios with RPM or Sources but the problem are same : Whem I launch an connexion with Mozilla (or Netscape or IE6) : I write my login and password accept by apache because my .htaccess and .htpasswd are correct. Nagios write you are login : Nagiosadmin. Normally no problem but whem I launch ? CGI the response is : If you see this message you are unauthorized to use....... I can execute CGI (in restrict mode) if i place use_authentification=0 in cgi.cfg What'is the problem ? Apache authetification is OK because i want to enter nagios home page and Nagios say loggin: NagiosAdmin. Please Help Me Thank you very much. Igor ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Wibo.Lammerts at hmg.nl Wed Feb 12 12:04:52 2003 From: Wibo.Lammerts at hmg.nl (Wibo Lammerts) Date: Wed, 12 Feb 2003 12:04:52 +0100 Subject: Strange VRML problem... Message-ID: Hi all, This is something strange. Got the latest Cortona VRML viewer adn installed it on my machine to support both Netscape and IE. The strange thing is, even though the normal status map is displaying everything correctly, de 3D status map is showing objects on top of one another. So what looks like one server object, is in fact 2, or maybe even 3 objects on top of one another. This problem appears in both Netscape and IE and also appears with that latest Cortona 4.1 beta viewer. So I guess this is a Nagios problem. Or could another viewer work? Please Advice, Wibo Lammerts Systems Engineering Holland Media Groep / RTL Group SA RTL4 / RTL5 / Yorin / Yorin FM ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Feb 12 12:45:08 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 12 Feb 2003 06:45:08 -0500 Subject: Dans Guardian - Proxy Flitering Software In-Reply-To: <001d01c2d258$0630c650$ddd0d0cd@pendleton> References: <001d01c2d258$0630c650$ddd0d0cd@pendleton> Message-ID: <1045050308.22453.5.camel@localhost.localdomain> On Wed, 2003-02-12 at 00:31, Robert S. Galloway wrote: > Hi Marc, > > Thanks for the reply. I am using today's CVS snapshot of the plugins > (200302111100) and Nagios 1.0. Here is the command and output that I get. > > ------ > > ./check_http -I 209.210.176.32 --onredirect follow -p 8888 -w 20 -c 30 -t 35 > -u http://www.cnn.com -s html -v ./plugins/check_http -I 209.210.176.32 --onredirect follow -p 8888 -w 5 -c 6 -t 7 -H www.cnn.com -u / -s html -v I have done very little proxy checking, so you probably know something about the desired syntax that I don't. But I think I would have used the following sysntax ./plugins/check_http -I 209.210.176.32 -p 8888 \ -w 5 -c 6 -t 7 -v \ -H www.cnn.com -u / -s html (Note that for diagnostic puorposes I'm not following the redirect in this test either.) Is the above construction wrong? Can you try it if it seems reasonable?? -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kai.sulfrian at alis.de Wed Feb 12 12:53:07 2003 From: kai.sulfrian at alis.de (Kai Sulfrian) Date: Wed, 12 Feb 2003 12:53:07 +0100 Subject: host notifications (dependency problem?) Message-ID: <03021212530701.00847@kasinux> Example: Host A is UP, Host B (router) is DOWN, Host C (behind router) is probable UP but not reachable -> Nagios shows DOWN. I configured the host dependency, so that I will only get notified that the Host B (the router) is down. -> That's what I want !!! When the Host B is coming UP I will be notified, that Host B ist UP again. -> That's what I want !!! But I get a notification that Host C is UP again, too. That is not nessesary. If Host C is really DOWN, I will be notified in any case. What can I do to solve the problem. Thanks, Kai. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Wed Feb 12 13:21:27 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 12 Feb 2003 13:21:27 +0100 Subject: host notifications (dependency problem?) References: <03021212530701.00847@kasinux> Message-ID: <3E4A3C47.30D2E561@gcc.dhl.com> Dear, What you are looking for is parent/child host relationships in your host definitions, not host dependencies. "parents: This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host's "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored." Kai Sulfrian wrote: > > Example: > > Host A is UP, Host B (router) is DOWN, Host C (behind router) is probable UP > but not reachable -> Nagios shows DOWN. > > I configured the host dependency, so that I will only get notified that the > Host B (the router) is down. -> That's what I want !!! > > When the Host B is coming UP I will be notified, that Host B ist UP again. > -> That's what I want !!! > > But I get a notification that Host C is UP again, too. That is not nessesary. > If Host C is really DOWN, I will be notified in any case. > > What can I do to solve the problem. > > Thanks, Kai. > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Nilsen at roxar.com Wed Feb 12 13:39:28 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Wed, 12 Feb 2003 13:39:28 +0100 Subject: Strange VRML problem... Message-ID: Try changing the default wrl layout in cgi.cfg mine is set to: default_statuswrl_layout=4 and displays correctly with the Cortona plugin. This assumes that your hosts are already showing up properly in the normal status map, and that you don't have any 3D coordinates defined in hostextinfo.cfg that messes up the display. (I assume "parents" have been defined in hosts.cfg) Regards, Thomas >-----Original Message----- >From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >Sent: Wednesday, February 12, 2003 12:05 PM >To: nagios-users >Subject: [Nagios-users] Strange VRML problem... > > >Hi all, > >This is something strange. Got the latest Cortona VRML viewer >adn installed >it on my machine to support both Netscape and IE. > >The strange thing is, even though the normal status map is displaying >everything correctly, de 3D status map is showing objects on top of one >another. So what looks like one server object, is in fact 2, >or maybe even 3 >objects on top of one another. > >This problem appears in both Netscape and IE and also appears with that >latest Cortona 4.1 beta viewer. > >So I guess this is a Nagios problem. Or could another viewer work? > >Please Advice, > >Wibo Lammerts >Systems Engineering >Holland Media Groep / RTL Group SA >RTL4 / RTL5 / Yorin / Yorin FM > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Wibo.Lammerts at hmg.nl Wed Feb 12 14:07:10 2003 From: Wibo.Lammerts at hmg.nl (Wibo Lammerts) Date: Wed, 12 Feb 2003 14:07:10 +0100 Subject: Strange VRML problem... Message-ID: Hi Thomas, My wrl layout is already set to 4. This "problem" only occurs in this view, I do not recall seeing it in the other 3. Both my maps are circular, and the regular status map is doing fine, but the 3d map is ruining things at the bottom off the screen. -----Original Message----- From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] Sent: woensdag 12 februari 2003 13:39 To: Wibo Lammerts; nagios-users Subject: RE: [Nagios-users] Strange VRML problem... Try changing the default wrl layout in cgi.cfg mine is set to: default_statuswrl_layout=4 and displays correctly with the Cortona plugin. This assumes that your hosts are already showing up properly in the normal status map, and that you don't have any 3D coordinates defined in hostextinfo.cfg that messes up the display. (I assume "parents" have been defined in hosts.cfg) Regards, Thomas >-----Original Message----- >From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >Sent: Wednesday, February 12, 2003 12:05 PM >To: nagios-users >Subject: [Nagios-users] Strange VRML problem... > > >Hi all, > >This is something strange. Got the latest Cortona VRML viewer >adn installed >it on my machine to support both Netscape and IE. > >The strange thing is, even though the normal status map is displaying >everything correctly, de 3D status map is showing objects on top of one >another. So what looks like one server object, is in fact 2, >or maybe even 3 >objects on top of one another. > >This problem appears in both Netscape and IE and also appears with that >latest Cortona 4.1 beta viewer. > >So I guess this is a Nagios problem. Or could another viewer work? > >Please Advice, > >Wibo Lammerts >Systems Engineering >Holland Media Groep / RTL Group SA >RTL4 / RTL5 / Yorin / Yorin FM > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Wed Feb 12 14:21:50 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 12 Feb 2003 14:21:50 +0100 Subject: Bandwidth Utilization using check_snmp Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804C9@storevis.datavis.se> Look at Apan, apan.sourceforge.net. It's a tool that is integrated in Nagios and uses RRDTool to store/graph various data. /FredrikW -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Wed 12-Feb-03 05:32 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Bandwidth Utilization using check_snmp Hello All, I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I require the diffenence the between the two counter values at some time interval so that i can make a table for this for further use. Has anyone done some work on that, pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From slebrun at muskoka.com Wed Feb 12 14:35:26 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Wed, 12 Feb 2003 08:35:26 -0500 Subject: Bandwidth Utilization using check_snmp In-Reply-To: <002901c2d24f$d207c890$5f7b0297@atul> References: <002901c2d24f$d207c890$5f7b0297@atul> Message-ID: Do an snmpwalk, and you'll see that it's a SNMP COUNTER32 datatype; the plugin is picking up the 32 and returning that. This has, I was told a few weeks ago, been fixed in CVS, but not yet released, to my knowledge. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Atul Shrivastava Sent: Tuesday, February 11, 2003 11:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Bandwidth Utilization using check_snmp Importance: High Hello All, I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I require the diffenence the between the two counter values at some time interval so that i can make a table for this for further use. Has anyone done some work on that, pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pete.dewell at volteurope.com Wed Feb 12 14:28:13 2003 From: pete.dewell at volteurope.com (Pete Dewell) Date: Wed, 12 Feb 2003 13:28:13 +0000 Subject: check_nt Message-ID: Hi, I'm having problems with the pnsclient and check_nt on win2k machines. I downloaded the latest version (v1071) and installed the win2k binary on a win2k machine. The check_nt program (v 1.1.2.3) keeps reporting "No data received from host", but *only* on w2k boxes (I have tried it on three). It works fine on NT. Using gdb on check_nt, I can get the client to respond with the right info. The problem appears to be in the netutils.c file, my_connect routine, in the actual "result = connect(*sd ..." line. If I "run" gdb over this line, the connection times out. If I step through the program & ensure that the line is executed, then the right data is returned, and check_nt works fine. Any ideas ? Or preferably, fixes. Pete Dewell -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 12 14:55:53 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 12 Feb 2003 07:55:53 -0600 Subject: Dans Guardian - Proxy Flitering Software Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FFE@mismail.ena.com> I think the key is going to be whether squid is set up in transparent mode or forward proxy mode. The checks I use are for foward proxy ports as opposed to transparent (I'm checkind about a hundred or so devices throughout our network). If its transparent, yours will likely work. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Karl DeBisschop To: Robert S. Galloway CC: Marc Powell ; 'Nagios List' Sent: Wed Feb 12 05:45:08 2003 Subject: RE: [Nagios-users] Dans Guardian - Proxy Flitering Software On Wed, 2003-02-12 at 00:31, Robert S. Galloway wrote: > Hi Marc, > > Thanks for the reply. I am using today's CVS snapshot of the plugins > (200302111100) and Nagios 1.0. Here is the command and output that I get. > > ------ > > ./check_http -I 209.210.176.32 --onredirect follow -p 8888 -w 20 -c 30 -t 35 > -u http://www.cnn.com -s html -v ./plugins/check_http -I 209.210.176.32 --onredirect follow -p 8888 -w 5 -c 6 -t 7 -H www.cnn.com -u / -s html -v I have done very little proxy checking, so you probably know something about the desired syntax that I don't. But I think I would have used the following sysntax ./plugins/check_http -I 209.210.176.32 -p 8888 \ -w 5 -c 6 -t 7 -v \ -H www.cnn.com -u / -s html (Note that for diagnostic puorposes I'm not following the redirect in this test either.) Is the above construction wrong? Can you try it if it seems reasonable?? -- Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Wed Feb 12 14:59:04 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 12 Feb 2003 19:29:04 +0530 (IST) Subject: Bandwidth Utilization using check_snmp In-Reply-To: References: Message-ID: Oh!!! Thats the problem, I think but can it be correct in the coming version. Can't we remove the first few characters and then record the query. Also there is one more problem. When the query returns the data, it is a counter not an exact value. So how can we enable warning for this type because here we have to substract the two values and then divide it by that much of time interval and then supply it to the chechcommand.cfg. I am working on this issue. If I get any solution then i will mail it, if you have then pls give it to me. Regards, Atul Shrivastava On Wed, 12 Feb 2003, Shayne Lebrun wrote: > Do an snmpwalk, and you'll see that it's a SNMP COUNTER32 datatype; the > plugin is picking up the 32 and returning that. This has, I was told a few > weeks ago, been fixed in CVS, but not yet released, to my knowledge. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Atul > Shrivastava > Sent: Tuesday, February 11, 2003 11:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Bandwidth Utilization using check_snmp > Importance: High > > > Hello All, > > I am trying to monitor the Bandwidth Utilization for all the interfaces > for rotuers. I am able to get the counters for the InOctets and OutOctets > (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c > 15:1000) But when I give the -w and -c option then the interface is showing > SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I > require the diffenence the between the two counter values at some time > interval so that i can make a table for this for further use. > Has anyone done some work on that, pls tell me. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > -- Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ton.Voon at egg.com Wed Feb 12 15:08:33 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Wed, 12 Feb 2003 14:08:33 -0000 Subject: check_nt Message-ID: <53104E20A25CD411B556009027E50636064D52CE@pnnemp02.pn.egg.com> Try check_nt that is in the latest nagios plugins tarball: http://www.debisschop.net/src/nagios/ > -----Original Message----- > From: Pete Dewell [SMTP:pete.dewell at volteurope.com] > Sent: Wednesday, February 12, 2003 1:28 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt > > Hi, > > I'm having problems with the pnsclient and check_nt on win2k machines. > I downloaded the latest version (v1071) and installed the win2k binary > on a win2k machine. The check_nt program (v 1.1.2.3) keeps reporting "No > data received from host", but *only* on w2k boxes (I have tried it on > three). It works fine on NT. > > Using gdb on check_nt, I can get the client to respond with the right > info. The problem appears to be in the netutils.c file, my_connect > routine, in the actual "result = connect(*sd ..." line. If I "run" gdb > over this line, the connection times out. If I step through the program > & ensure that the line is executed, then the right data is returned, and > check_nt works fine. > > Any ideas ? Or preferably, fixes. > > Pete Dewell > -- > > Technical Support/Analyst > Volt Europe > Tel : (+44) (0) 1737 774100 > Fax : (+44) (0) 1737 772949 > Mobile : (+44) (0) 777 1513066 > E-mail pete.dewell at volteurope.com > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steves at ipctech.com Wed Feb 12 15:10:18 2003 From: steves at ipctech.com (Sarkees, Steve) Date: Wed, 12 Feb 2003 09:10:18 -0500 Subject: SMTP Checks Always Critical Message-ID: <8FBAD66B77E1D31183A200805F5755420149B8BD@mail.ipctech.com> I am having a problem with SMTP checks. The response time on my SMTP port is 0 seconds (fast). I set the "critical" threshold to be 120 seconds, but I still get a critical alert. Does anyone have an idea why this happens? It is possible that my syntax is incorrect..?.. Thanks Steve Sarkees -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdeblend at gcc.dhl.com Wed Feb 12 15:41:02 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 12 Feb 2003 15:41:02 +0100 Subject: SMTP Checks Always Critical References: <8FBAD66B77E1D31183A200805F5755420149B8BD@mail.ipctech.com> Message-ID: <3E4A5CFE.64908171@gcc.dhl.com> > "Sarkees, Steve" wrote: > >It is possible that my syntax is incorrect..?.. Well, if you'd paste it here, we could have a look... Together with the output... ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 12 15:47:15 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 12 Feb 2003 09:47:15 -0500 (EST) Subject: SMTP Checks Always Critical In-Reply-To: <8FBAD66B77E1D31183A200805F5755420149B8BD@mail.ipctech.com> References: <8FBAD66B77E1D31183A200805F5755420149B8BD@mail.ipctech.com> Message-ID: version of plugin / which mailserver ? On Wed, 12 Feb 2003, Sarkees, Steve wrote: > I am having a problem with SMTP checks. The response time on my SMTP port is > 0 seconds (fast). I set the "critical" threshold to be 120 seconds, but I > still get a critical alert. Does anyone have an idea why this happens? It is > possible that my syntax is incorrect..?.. > Thanks > Steve Sarkees > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steves at ipctech.com Wed Feb 12 15:39:58 2003 From: steves at ipctech.com (Sarkees, Steve) Date: Wed, 12 Feb 2003 09:39:58 -0500 Subject: SMTP Checks Always Critical Message-ID: <8FBAD66B77E1D31183A200805F5755420149B8BF@mail.ipctech.com> Hope this helps.. I appreciate the help. ##Verbose Output in Nagios (actually show critical) SMTP CRITICAL 02-12-2003 09:47:11 8d 10h 41m 53s 6/6 SMTP OK - 0 sec. response time, 220 vafb.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Wed, 12 Feb 2003 09:43:52 -0500 ##Checkcommands.cfg for check_smtp define command { command_name check_smtp command_line $USER1$/check_smtp -H $HOSTADDRESS$ -c 120 -v } ##Services.cfg Config: define service { use generic-service ; Name of service template to use host_name VFBEXCHANGE2 service_description SMTP is_volatile 0 check_period 24x7 max_check_attempts 6 normal_check_interval 5 retry_check_interval 2 contact_groups engineering notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_smtp } -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: Wednesday, February 12, 2003 9:41 AM To: Sarkees, Steve Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SMTP Checks Always Critical > "Sarkees, Steve" wrote: > >It is possible that my syntax is incorrect..?.. Well, if you'd paste it here, we could have a look... Together with the output... ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 12 15:55:26 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 12 Feb 2003 08:55:26 -0600 Subject: SMTP Checks Always Critical Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D4000@mismail.ena.com> I know the solution to this is in the archives. At the least you'll need the cvs version of check_smtp. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Sarkees, Steve To: nagios-users at lists.sourceforge.net Sent: Wed Feb 12 08:10:18 2003 Subject: [Nagios-users] SMTP Checks Always Critical I am having a problem with SMTP checks. The response time on my SMTP port is 0 seconds (fast). I set the "critical" threshold to be 120 seconds, but I still get a critical alert. Does anyone have an idea why this happens? It is possible that my syntax is incorrect..?.. Thanks Steve Sarkees -------------- next part -------------- An HTML attachment was scrubbed... URL: From pete.dewell at VoltEurope.com Wed Feb 12 15:47:49 2003 From: pete.dewell at VoltEurope.com (Pete Dewell) Date: Wed, 12 Feb 2003 14:47:49 +0000 Subject: check_nt Message-ID: Nice try - still the same problem. I have compiled on Red Hat 7.3 and X86 Solaris. The problem remains. gdb through & run the steps individually, check_nt works. Run the prog from CLI, it times out. Voon, Ton wrote: > Try check_nt that is in the latest nagios plugins tarball: > http://www.debisschop.net/src/nagios/ > > >>-----Original Message----- >>From: Pete Dewell [SMTP:pete.dewell at volteurope.com] >>Sent: Wednesday, February 12, 2003 1:28 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] check_nt >> >>Hi, >> >>I'm having problems with the pnsclient and check_nt on win2k machines. >>I downloaded the latest version (v1071) and installed the win2k binary >>on a win2k machine. The check_nt program (v 1.1.2.3) keeps reporting "No >>data received from host", but *only* on w2k boxes (I have tried it on >>three). It works fine on NT. >> >>Using gdb on check_nt, I can get the client to respond with the right >>info. The problem appears to be in the netutils.c file, my_connect >>routine, in the actual "result = connect(*sd ..." line. If I "run" gdb >>over this line, the connection times out. If I step through the program >>& ensure that the line is executed, then the right data is returned, and >>check_nt works fine. >> >>Any ideas ? Or preferably, fixes. >> >>Pete Dewell >>-- >> >>Technical Support/Analyst >>Volt Europe >>Tel : (+44) (0) 1737 774100 >>Fax : (+44) (0) 1737 772949 >>Mobile : (+44) (0) 777 1513066 >>E-mail pete.dewell at volteurope.com >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >>reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null > > > > This private and confidential e-mail has been sent to you by Egg. > The Egg group of companies includes Egg Banking plc > (registered no. 2999842), Egg Financial Products Ltd (registered > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > carries out investment business on behalf of Egg and is regulated > by the Financial Services Authority. > Registered in England and Wales. Registered offices: 1 Waterhouse Square, > 138-142 Holborn, London EC1N 2NA. > If you are not the intended recipient of this e-mail and have > received it in error, please notify the sender by replying with > 'received in error' as the subject and then delete it from your > mailbox. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 12 16:17:11 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 12 Feb 2003 09:17:11 -0600 Subject: SMTP Checks Always Critical Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED3F4@mismail.ena.com> As a followup to my previous short email, the problem is that Exchange expects to see a \r\n after the QUIT but the previous plugin version only sent a \r (or \n, I can't remember). The net effect was that while the SMTP service would respond OK, the connection wouldn't terminate properly leading to the CRITICAL status because of a timeout. -- Marc > -----Original Message----- > From: Sarkees, Steve [mailto:steves at ipctech.com] > Sent: Wednesday, February 12, 2003 8:40 AM > To: 'Tom DE BLENDE' > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] SMTP Checks Always Critical > > Hope this helps.. I appreciate the help. > > ##Verbose Output in Nagios (actually show critical) > > SMTP > CRITICAL 02-12-2003 09:47:11 8d 10h 41m 53s 6/6 SMTP OK - 0 sec. > response > time, 220 vafb.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 > ready at Wed, 12 Feb 2003 09:43:52 -0500 > > > ##Checkcommands.cfg for check_smtp > > define command { > command_name check_smtp > command_line $USER1$/check_smtp -H $HOSTADDRESS$ -c 120 > -v > } > > > ##Services.cfg Config: > > define service { > use generic-service ; Name of service > template to use > host_name VFBEXCHANGE2 > service_description SMTP > is_volatile 0 > check_period 24x7 > max_check_attempts 6 > normal_check_interval 5 > retry_check_interval 2 > contact_groups engineering > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_smtp > } > > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Wednesday, February 12, 2003 9:41 AM > To: Sarkees, Steve > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SMTP Checks Always Critical > > > > > "Sarkees, Steve" wrote: > > > >It is possible that my syntax is incorrect..?.. > > Well, if you'd paste it here, we could have a look... Together with > the output... > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ton.Voon at egg.com Wed Feb 12 16:15:55 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Wed, 12 Feb 2003 15:15:55 -0000 Subject: check_nt Message-ID: <53104E20A25CD411B556009027E50636064D52D4@pnnemp02.pn.egg.com> Maybe running through with gdb gives the NT box more time to reply. On CLI, is there a huge wait before it comes back with "No data..."? Have you tried increasing the socket timeout? > -----Original Message----- > From: Pete Dewell [SMTP:pete.dewell at VoltEurope.com] > Sent: Wednesday, February 12, 2003 2:48 PM > To: nagios-users at lists.sourceforge.net > Cc: Voon, Ton > Subject: Re: [Nagios-users] check_nt > > Nice try - still the same problem. I have compiled on Red Hat 7.3 and > X86 Solaris. The problem remains. gdb through & run the steps > individually, check_nt works. Run the prog from CLI, it times out. > > > Voon, Ton wrote: > > Try check_nt that is in the latest nagios plugins tarball: > > http://www.debisschop.net/src/nagios/ > > > > > >>-----Original Message----- > >>From: Pete Dewell [SMTP:pete.dewell at volteurope.com] > >>Sent: Wednesday, February 12, 2003 1:28 PM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] check_nt > >> > >>Hi, > >> > >>I'm having problems with the pnsclient and check_nt on win2k machines. > >>I downloaded the latest version (v1071) and installed the win2k binary > >>on a win2k machine. The check_nt program (v 1.1.2.3) keeps reporting "No > > >>data received from host", but *only* on w2k boxes (I have tried it on > >>three). It works fine on NT. > >> > >>Using gdb on check_nt, I can get the client to respond with the right > >>info. The problem appears to be in the netutils.c file, my_connect > >>routine, in the actual "result = connect(*sd ..." line. If I "run" gdb > >>over this line, the connection times out. If I step through the program > >>& ensure that the line is executed, then the right data is returned, and > > >>check_nt works fine. > >> > >>Any ideas ? Or preferably, fixes. > >> > >>Pete Dewell > >>-- > >> > >>Technical Support/Analyst > >>Volt Europe > >>Tel : (+44) (0) 1737 774100 > >>Fax : (+44) (0) 1737 772949 > >>Mobile : (+44) (0) 777 1513066 > >>E-mail pete.dewell at volteurope.com > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when > >>reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > This private and confidential e-mail has been sent to you by Egg. > > The Egg group of companies includes Egg Banking plc > > (registered no. 2999842), Egg Financial Products Ltd (registered > > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > > carries out investment business on behalf of Egg and is regulated > > by the Financial Services Authority. > > Registered in England and Wales. Registered offices: 1 Waterhouse > Square, > > 138-142 Holborn, London EC1N 2NA. > > If you are not the intended recipient of this e-mail and have > > received it in error, please notify the sender by replying with > > 'received in error' as the subject and then delete it from your > > mailbox. > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > -- > > Technical Support/Analyst > Volt Europe > Tel : (+44) (0) 1737 774100 > Fax : (+44) (0) 1737 772949 > Mobile : (+44) (0) 777 1513066 > E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pete.dewell at VoltEurope.com Wed Feb 12 16:48:49 2003 From: pete.dewell at VoltEurope.com (Pete Dewell) Date: Wed, 12 Feb 2003 15:48:49 +0000 Subject: check_nt Message-ID: I have extended the timeout to 30 seconds - still the same. Also, the box is win2k - NT machines work fine. It's *only* the w2k boxes that timeout, and then only from a CLI without gdb. I am extremely confused. Voon, Ton wrote: > Maybe running through with gdb gives the NT box more time to reply. On CLI, > is there a huge wait before it comes back with "No data..."? Have you tried > increasing the socket timeout? > > >>-----Original Message----- >>From: Pete Dewell [SMTP:pete.dewell at VoltEurope.com] >>Sent: Wednesday, February 12, 2003 2:48 PM >>To: nagios-users at lists.sourceforge.net >>Cc: Voon, Ton >>Subject: Re: [Nagios-users] check_nt >> >>Nice try - still the same problem. I have compiled on Red Hat 7.3 and >>X86 Solaris. The problem remains. gdb through & run the steps >>individually, check_nt works. Run the prog from CLI, it times out. >> >> >>Voon, Ton wrote: >> >>>Try check_nt that is in the latest nagios plugins tarball: >>>http://www.debisschop.net/src/nagios/ >>> >>> >>> >>>>-----Original Message----- >>>>From: Pete Dewell [SMTP:pete.dewell at volteurope.com] >>>>Sent: Wednesday, February 12, 2003 1:28 PM >>>>To: nagios-users at lists.sourceforge.net >>>>Subject: [Nagios-users] check_nt >>>> >>>>Hi, >>>> >>>>I'm having problems with the pnsclient and check_nt on win2k machines. >>>>I downloaded the latest version (v1071) and installed the win2k binary >>>>on a win2k machine. The check_nt program (v 1.1.2.3) keeps reporting "No >>> >>>>data received from host", but *only* on w2k boxes (I have tried it on >>>>three). It works fine on NT. >>>> >>>>Using gdb on check_nt, I can get the client to respond with the right >>>>info. The problem appears to be in the netutils.c file, my_connect >>>>routine, in the actual "result = connect(*sd ..." line. If I "run" gdb >>>>over this line, the connection times out. If I step through the program >>>>& ensure that the line is executed, then the right data is returned, and >>> >>>>check_nt works fine. >>>> >>>>Any ideas ? Or preferably, fixes. >>>> >>>>Pete Dewell >>>>-- >>>> >>>>Technical Support/Analyst >>>>Volt Europe >>>>Tel : (+44) (0) 1737 774100 >>>>Fax : (+44) (0) 1737 772949 >>>>Mobile : (+44) (0) 777 1513066 >>>>E-mail pete.dewell at volteurope.com >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>::: Please include Nagios version, plugin version (-v) and OS when >>>>reporting any issue. >>>>::: Messages without supporting info will risk being sent to /dev/null >>> >>> >>> >>>This private and confidential e-mail has been sent to you by Egg. >>>The Egg group of companies includes Egg Banking plc >>>(registered no. 2999842), Egg Financial Products Ltd (registered >>>no. 3319027) and Egg Investments Ltd (registered no. 3403963) which >>>carries out investment business on behalf of Egg and is regulated >>>by the Financial Services Authority. >>>Registered in England and Wales. Registered offices: 1 Waterhouse >> >>Square, >> >>>138-142 Holborn, London EC1N 2NA. >>>If you are not the intended recipient of this e-mail and have >>>received it in error, please notify the sender by replying with >>>'received in error' as the subject and then delete it from your >>>mailbox. >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when >> >>reporting any issue. >> >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> >> >>-- >> >>Technical Support/Analyst >>Volt Europe >>Tel : (+44) (0) 1737 774100 >>Fax : (+44) (0) 1737 772949 >>Mobile : (+44) (0) 777 1513066 >>E-mail pete.dewell at volteurope.com > -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ackim at coppernet.zm Wed Feb 12 17:05:12 2003 From: ackim at coppernet.zm (Ackim Chisha) Date: Wed, 12 Feb 2003 18:05:12 +0200 Subject: statusmap.cgi Question - How to make it Pretty References: <3E4946A3.7090402@datawire.net> Message-ID: <3E4A70B8.1010405@coppernet.zm> Hi Cris, I have a similar problem like yours. I have about 150 hosts to monitor, and all the layout methods available are a total mess. Earlier I asked the same question I had no response so I have taken it may be you only have to do it the manual way by specifying the coordinates but can you imagine doing that for more that 150 hosts!! I now regret why I moved from Netsaint to nagios. Yes netsaint had something called saintmap that you could use to draw your host layout and then it would set the coordinates for you. Any way I guess am not helping much but just trying to shed more light. I think we need to write one. Thanks, Ackim Chris Stankaitis wrote: > > I personally don't care too much for the Status Map, it's nice to look > at but ultimately there are much more important screens in Nagios.. > However the Non-Techie Management types love the little pictures and > network layout graph and such... so it has become my problem :) > > Problem is with 70+ hosts even after defining and seting up parents > the thng is still a MAJOR mess... it seems the only solution is to > define manual XYZ coordinates, which seems like a VERY LONG job. > > Does anyone have any advice out there on how I can do this in the > easiest most painless way possible?? I heard rumors that in the day > of Netsaint there was a GUI which would read in the config let you > drag n' drop things to where you want them, then would write out the > configs with the proper XYZ coordinates. > > Does this still exist and does it work with the new template configs?? > if not is there a comparable method out there to acomplish this > > Thanks! > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmusone at shatterit.com Wed Feb 12 17:12:09 2003 From: mmusone at shatterit.com (Mark Musone) Date: Wed, 12 Feb 2003 11:12:09 -0500 Subject: statusmap.cgi Question - How to make it Pretty In-Reply-To: <3E4A70B8.1010405@coppernet.zm>; from ackim@coppernet.zm on Wed, Feb 12, 2003 at 06:05:12PM +0200 References: <3E4946A3.7090402@datawire.net> <3E4A70B8.1010405@coppernet.zm> Message-ID: <20030212111209.A15953@shatterit.com> i'd suggest laying it out in tkined, and then it should be a simple script to write that will take the tkined layout and put it in the nagios format. -Mark On Wed, Feb 12, 2003 at 06:05:12PM +0200, Ackim Chisha wrote: > Hi Cris, > > I have a similar problem like yours. I have about 150 hosts to monitor, > and all the layout methods available are a total mess. > Earlier I asked the same question I had no response so I have taken it > may be you only have to do it the manual way by specifying the > coordinates but can you imagine doing that for more that 150 hosts!! > > I now regret why I moved from Netsaint to nagios. Yes netsaint had > something called saintmap that you could use to draw your host layout > and then it would set the coordinates for you. > > Any way I guess am not helping much but just trying to shed more light. > I think we need to write one. > > Thanks, > Ackim > > Chris Stankaitis wrote: > > > > > I personally don't care too much for the Status Map, it's nice to look > > at but ultimately there are much more important screens in Nagios.. > > However the Non-Techie Management types love the little pictures and > > network layout graph and such... so it has become my problem :) > > > > Problem is with 70+ hosts even after defining and seting up parents > > the thng is still a MAJOR mess... it seems the only solution is to > > define manual XYZ coordinates, which seems like a VERY LONG job. > > > > Does anyone have any advice out there on how I can do this in the > > easiest most painless way possible?? I heard rumors that in the day > > of Netsaint there was a GUI which would read in the config let you > > drag n' drop things to where you want them, then would write out the > > configs with the proper XYZ coordinates. > > > > Does this still exist and does it work with the new template configs?? > > if not is there a comparable method out there to acomplish this > > > > Thanks! > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GPotter at MarathonOil.com Wed Feb 12 17:42:17 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Wed, 12 Feb 2003 10:42:17 -0600 Subject: statusmap.cgi Question - How to make it Pretty Message-ID: Could you write a perl script that would read in a list of hosts and write the configuration file with a reasonable spacing of hosts. It would be relatively straight forward if you wanted just a rectangular arrangement of hosts on the page. Greg > -----Original Message----- > From: Ackim Chisha [mailto:ackim at coppernet.zm] > Sent: Wednesday, February 12, 2003 10:05 AM > To: Chris Stankaitis > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] statusmap.cgi Question - How to make it > Pretty > > > Hi Cris, > > I have a similar problem like yours. I have about 150 hosts > to monitor, > and all the layout methods available are a total mess. > Earlier I asked the same question I had no response so I have > taken it > may be you only have to do it the manual way by specifying the > coordinates but can you imagine doing that for more that 150 hosts!! > > I now regret why I moved from Netsaint to nagios. Yes netsaint had > something called saintmap that you could use to draw your host layout > and then it would set the coordinates for you. > > Any way I guess am not helping much but just trying to shed > more light. > I think we need to write one. > > Thanks, > Ackim > > Chris Stankaitis wrote: > > > > > I personally don't care too much for the Status Map, it's > nice to look > > at but ultimately there are much more important screens in Nagios.. > > However the Non-Techie Management types love the little > pictures and > > network layout graph and such... so it has become my problem :) > > > > Problem is with 70+ hosts even after defining and seting up parents > > the thng is still a MAJOR mess... it seems the only solution is to > > define manual XYZ coordinates, which seems like a VERY LONG job. > > > > Does anyone have any advice out there on how I can do this in the > > easiest most painless way possible?? I heard rumors that > in the day > > of Netsaint there was a GUI which would read in the config let you > > drag n' drop things to where you want them, then would > write out the > > configs with the proper XYZ coordinates. > > > > Does this still exist and does it work with the new > template configs?? > > if not is there a comparable method out there to acomplish this > > > > Thanks! > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From abune at exobrain.com Wed Feb 12 18:23:50 2003 From: abune at exobrain.com (abune at exobrain.com) Date: Wed, 12 Feb 2003 12:23:50 -0500 Subject: can see only docs - set up web interface problem Message-ID: <1045070630.3e4a8326f2d82@mail.exobrain.com> Hi! I'm former user of NetSaint, now decided to move on to Nagios. Looks like Nagios is OK ( I have e-mail notifications) and looks like webpage is OK (can see documentation fine) When I go to any item below Documentation, like "Tactical overview" I got Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster Error 404 192.1.1.8 Wed Feb 12 12:12:40 2003 Apache/2.0.40 (Red Hat Linux) For my installation I used 5355520 Mar 30 2002 nagios-1.0.tar 1771520 Feb 11 19:07 nagios-plugins-1.3.0-beta2.tar Am I missing something? , like nagios-plugins-extras or nagios-www ? if so where I can get tar files for these two ? Is there any difference that I use Apache/2.0.40 (Red Hat Linux) ? To set up web interface I followed instructions on doc page http://nagios.sourceforge.net/docs/1_0/installweb.html Thanks for help a ton, Andris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kdebisschop at mail.debisschop.net Wed Feb 12 17:40:05 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Wed, 12 Feb 2003 11:40:05 -0500 Subject: SMTP Checks Always Critical In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED3F4@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED3F4@mismail.ena.com> Message-ID: Marc Powell writes: > As a followup to my previous short email, the problem is that Exchange > expects to see a \r\n after the QUIT but the previous plugin version > only sent a \r (or \n, I can't remember). The net effect was that while > the SMTP service would respond OK, the connection wouldn't terminate > properly leading to the CRITICAL status because of a timeout. fixed in CVS and snapshots at http://www.debisschop.net/src/nagios we are aiming for beta 3 on Monday, which will also have the fix -- Karl > -- > Marc > >> -----Original Message----- >> From: Sarkees, Steve [mailto:steves at ipctech.com] >> Sent: Wednesday, February 12, 2003 8:40 AM >> To: 'Tom DE BLENDE' >> Cc: nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] SMTP Checks Always Critical >> >> Hope this helps.. I appreciate the help. >> >> ##Verbose Output in Nagios (actually show critical) >> >> SMTP >> CRITICAL 02-12-2003 09:47:11 8d 10h 41m 53s 6/6 SMTP OK - 0 sec. >> response >> time, 220 vafb.com Microsoft ESMTP MAIL Service, Version: > 5.0.2195.5329 >> ready at Wed, 12 Feb 2003 09:43:52 -0500 >> >> >> ##Checkcommands.cfg for check_smtp >> >> define command { >> command_name check_smtp >> command_line $USER1$/check_smtp -H $HOSTADDRESS$ -c > 120 >> -v >> } >> >> >> ##Services.cfg Config: >> >> define service { >> use generic-service ; Name of > service >> template to use >> host_name VFBEXCHANGE2 >> service_description SMTP >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 6 >> normal_check_interval 5 >> retry_check_interval 2 >> contact_groups engineering >> notification_interval 120 >> notification_period 24x7 >> notification_options w,u,c,r >> check_command check_smtp >> } >> >> -----Original Message----- >> From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] >> Sent: Wednesday, February 12, 2003 9:41 AM >> To: Sarkees, Steve >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] SMTP Checks Always Critical >> >> >> >> > "Sarkees, Steve" wrote: >> > >> >It is possible that my syntax is incorrect..?.. >> >> Well, if you'd paste it here, we could have a look... Together with >> the output... >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aleksey at loehmanns.com Wed Feb 12 18:40:58 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Wed, 12 Feb 2003 12:40:58 -0500 Subject: can see only docs - set up web interface probl em Message-ID: <87273DB23407D511B8900008C7FA923301405D97@EXCHANGE> You should look into apache2 Config as it differs from apache1.x And also see if your cgi.cfg file is correct -----Original Message----- From: abune at exobrain.com [mailto:abune at exobrain.com] Sent: Wednesday, February 12, 2003 12:24 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] can see only docs - set up web interface problem Hi! I'm former user of NetSaint, now decided to move on to Nagios. Looks like Nagios is OK ( I have e-mail notifications) and looks like webpage is OK (can see documentation fine) When I go to any item below Documentation, like "Tactical overview" I got Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster Error 404 192.1.1.8 Wed Feb 12 12:12:40 2003 Apache/2.0.40 (Red Hat Linux) For my installation I used 5355520 Mar 30 2002 nagios-1.0.tar 1771520 Feb 11 19:07 nagios-plugins-1.3.0-beta2.tar Am I missing something? , like nagios-plugins-extras or nagios-www ? if so where I can get tar files for these two ? Is there any difference that I use Apache/2.0.40 (Red Hat Linux) ? To set up web interface I followed instructions on doc page http://nagios.sourceforge.net/docs/1_0/installweb.html Thanks for help a ton, Andris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From kdebisschop at mail.debisschop.net Wed Feb 12 17:42:30 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Wed, 12 Feb 2003 11:42:30 -0500 Subject: Bandwidth Utilization using check_snmp In-Reply-To: References: Message-ID: Atul Shrivastava writes: > Oh!!! Thats the problem, I think but can it be correct in the coming > version. Can't we remove the first few characters and then record the > query. Also there is one more problem. When the query returns the data, it > is a counter not an exact value. So how can we enable warning for this > type because here we have to substract the two values and then divide it > by that much of time interval and then supply it to the chechcommand.cfg. > > I am working on this issue. If I get any solution then i will mail it, if > you have then pls give it to me. I believe the fix has already been committed to CVS. If so, it is in the snapshots at http://www.debisschop.net/src/nagios and will be in Monday's beta 3 -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From abune at exobrain.com Wed Feb 12 19:08:21 2003 From: abune at exobrain.com (abune at exobrain.com) Date: Wed, 12 Feb 2003 13:08:21 -0500 Subject: can see only docs - set up web interface probl em In-Reply-To: <87273DB23407D511B8900008C7FA923301405D97@EXCHANGE> References: <87273DB23407D511B8900008C7FA923301405D97@EXCHANGE> Message-ID: <1045073301.3e4a8d95a7a21@mail.exobrain.com> Aleksey thank you, but again I can get just fine on webpage all I have in [root at nagios html]# cd /usr/local/nagios/share [root at nagios share]# ls -al total 60 drwxrwxr-x 8 nagios nagios 4096 Feb 12 11:38 . drwxr-xr-x 16 root root 4096 Feb 12 11:31 .. drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 contexthelp drwxrwxr-x 3 nagios nagios 4096 Feb 11 12:56 docs drwxrwxr-x 3 nagios nagios 4096 Feb 11 12:56 images -rw-rw-r-- 1 nagios nagios 658 Feb 11 12:56 index.html -rw-rw-r-- 1 nagios nagios 2344 Feb 11 12:56 main.html drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 media -rw-rw-r-- 1 nagios nagios 26 Feb 11 12:56 robots.txt -rw-rw-r-- 1 nagios nagios 10608 Feb 11 12:56 side.html drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 ssi drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 stylesheets I'm missing something I guess ... I also have [root at nagios share]# rpm -q gd gd-1.8.4-9 [root at nagios share]# rpm -q zlib zlib-1.1.4-4 Didn't use any rpms for Nagios..... Andris Quoting Aleksey Domorad : > You should look into apache2 Config as it differs from apache1.x > And also see if your cgi.cfg file is correct > > > -----Original Message----- > From: abune at exobrain.com [mailto:abune at exobrain.com] > Sent: Wednesday, February 12, 2003 12:24 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] can see only docs - set up web interface problem > > > Hi! > I'm former user of NetSaint, now decided to move on to Nagios. Looks like > Nagios is OK ( I have e-mail notifications) and looks like webpage is OK > (can see documentation fine) When I go to any item below Documentation, > like > "Tactical overview" I got Object not found! The requested URL was not found > on this server. The link on the referring page > seems to be wrong or outdated. Please inform the author of that page about > the > error. > If you think this is a server error, please contact the webmaster > Error 404 > 192.1.1.8 > Wed Feb 12 12:12:40 2003 > Apache/2.0.40 (Red Hat Linux) > For my installation I used > 5355520 Mar 30 2002 nagios-1.0.tar > 1771520 Feb 11 19:07 nagios-plugins-1.3.0-beta2.tar > Am I missing something? , like > nagios-plugins-extras > or > nagios-www ? > if so where I can get tar files for these two ? > Is there any difference that I use Apache/2.0.40 (Red Hat Linux) ? To set > up > web interface I followed instructions on doc page > http://nagios.sourceforge.net/docs/1_0/installweb.html > Thanks for help a ton, > Andris > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From henrique.leandro at varig.com Wed Feb 12 19:22:25 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 12 Feb 2003 16:22:25 -0200 Subject: External Commands Message-ID: <1045074145.1937.2.camel@operacao.varig.com> Hi, How do i for execute any Nagios external commands in a event handler ? something like add a comment to service when the check failed. Thanks all -- Henrique leandro Varig S.A ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark_leddy at hotmail.com Wed Feb 12 19:12:30 2003 From: mark_leddy at hotmail.com (Mark Leddy) Date: Wed, 12 Feb 2003 18:12:30 +0000 Subject: nsclient counters - detect increase / decrease Message-ID: I have been able to run nsclient and check_nt to return the counters. Works real nice! Does anyone have or could anyone tell me some specifics on how I could check the values returned against the previous check to see if the counter(s) incremented, and if the counter has not incremented to give a warning or critical status, alert, etc.? One of the areas this would help is checking smtp mail flow, with Exchange and Lotus Notes where a simple too high/ too low threshold does not apply. Thanks, Mark Nagios output for smtp counter SMTP Messages Received Total 77583 check command I am using: define command{ command_name check_nt_smtptotalmsgreceived command_line $USER1$/check_nt -H $HOSTNAME$ -p 1248 -v COUNTER -l "\\SMTP Server(_Total)\\Messages Received Total","SMTP Messages Received Total %.f" } _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DPothorin at PresiNET.com Wed Feb 12 19:37:17 2003 From: DPothorin at PresiNET.com (Dean Pothorin) Date: Wed, 12 Feb 2003 10:37:17 -0800 Subject: Intermitent Results Message-ID: <0118463F2D3BD4119EF600C0A847F1E93CE868@presinet-main.presinet.com> I have installed NAGIOS on a server to monitor a hundred or so remote ping hosts. I am upgrading from the Netsaint version. I go have an interesting issue. About half the time when I check the summaries, of any CGI, I get a dozen or so monitored systems saying "No matching hosts" in the hosts field and "No matching services" in the services field. The next time I reload, I get everything working fine. Does anyone have any Ideas. All I need is to monitor for host uptime, not services. Here is a status check Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 114 Total hosts: 114 Command check interval: -1 sec Check reaper interval: 10 sec Inter-check delay method: SMART Average check interval: 300.000 sec Inter-check delay: 2.632 sec Interleave factor method: SMART Average services per host: 1.000 Service interleave factor: 1 Initial service check scheduling info: -------------------------------------- First scheduled check: 1045074597 -> Wed Feb 12 10:29:57 2003 Last scheduled check: 1045074895 -> Wed Feb 12 10:34:55 2003 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 4 Recommend value: 12 ___________________________________ Dean Pothorin, -------------- next part -------------- An HTML attachment was scrubbed... URL: From abune at exobrain.com Wed Feb 12 19:46:23 2003 From: abune at exobrain.com (abune at exobrain.com) Date: Wed, 12 Feb 2003 13:46:23 -0500 Subject: can see only docs - set up web interface probl em In-Reply-To: <87273DB23407D511B8900008C7FA923301405D98@EXCHANGE> References: <87273DB23407D511B8900008C7FA923301405D98@EXCHANGE> Message-ID: <1045075583.3e4a967f20d17@mail.exobrain.com> Aleksey, My set-up /etc/httpd/conf/httpd.conf looks the same as yours, I even put copy of .cgi to [root at nagios init.d]# cd /var/www/cgi-bin [root at nagios cgi-bin]# ls -al total 1636 drwxr-xr-x 2 root root 4096 Feb 12 11:52 . drwxr-xr-x 7 root root 4096 Apr 4 2002 .. -rwxr-xr-x 1 root root 143760 Feb 12 11:52 avail.cgi -rwxr-xr-x 1 root root 144956 Feb 12 11:52 cmd.cgi -rwxr-xr-x 1 root root 113808 Feb 12 11:52 config.cgi -rwxr-xr-x 1 root root 160324 Feb 12 11:52 extinfo.cgi -rwxr-xr-x 1 root root 105764 Feb 12 11:52 history.cgi -rwxr-xr-x 1 root root 101636 Feb 12 11:52 notifications.cgi -rwxr-xr-x 1 root root 98072 Feb 12 11:52 outages.cgi -rwxr-xr-x 1 root root 100228 Feb 12 11:52 showlog.cgi -rwxr-xr-x 1 root root 145116 Feb 12 11:52 status.cgi -rwxr-xr-x 1 root root 114832 Feb 12 11:52 statuswml.cgi -rwxr-xr-x 1 root root 108728 Feb 12 11:52 statuswrl.cgi -rwxr-xr-x 1 root root 119024 Feb 12 11:52 summary.cgi -rwxr-xr-x 1 root root 123100 Feb 12 11:52 tac.cgi still same thing.... Andris Quoting Aleksey Domorad : > Andris, > > Here is my apache config for nagios > > ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/ > > AllowOverride AuthConfig > Options ExecCGI > order deny,allow > deny from all > allow from all > > > Alias /nagios/ /usr/share/nagios/ > > AllowOverride AuthConfig > Options None > order deny,allow > deny from all > allow from all > > > I run 1.3.27 > Note the scriptalias directive > Also > Make sure you have all permissions setup correctly for your CGI location. > > IMHO your problem is somewhere here > > -----Original Message----- > From: abune at exobrain.com [mailto:abune at exobrain.com] > Sent: Wednesday, February 12, 2003 1:08 PM > To: Aleksey Domorad; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] can see only docs - set up web interface probl > em > > > Aleksey > thank you, but again I can get just fine on webpage all I have in > [root at nagios html]# cd /usr/local/nagios/share [root at nagios share]# ls -al > total 60 > drwxrwxr-x 8 nagios nagios 4096 Feb 12 11:38 . > drwxr-xr-x 16 root root 4096 Feb 12 11:31 .. > drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 contexthelp > drwxrwxr-x 3 nagios nagios 4096 Feb 11 12:56 docs > drwxrwxr-x 3 nagios nagios 4096 Feb 11 12:56 images > -rw-rw-r-- 1 nagios nagios 658 Feb 11 12:56 index.html > -rw-rw-r-- 1 nagios nagios 2344 Feb 11 12:56 main.html > drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 media > -rw-rw-r-- 1 nagios nagios 26 Feb 11 12:56 robots.txt > -rw-rw-r-- 1 nagios nagios 10608 Feb 11 12:56 side.html > drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 ssi > drwxrwxr-x 2 nagios nagios 4096 Feb 11 12:56 stylesheets > I'm missing something I guess ... > I also have > [root at nagios share]# rpm -q gd > gd-1.8.4-9 > [root at nagios share]# rpm -q zlib > zlib-1.1.4-4 > Didn't use any rpms for Nagios..... > Andris > > Quoting Aleksey Domorad : > > > You should look into apache2 Config as it differs from apache1.x And > > also see if your cgi.cfg file is correct > > > > > > -----Original Message----- > > From: abune at exobrain.com [mailto:abune at exobrain.com] > > Sent: Wednesday, February 12, 2003 12:24 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] can see only docs - set up web interface problem > > > > > > Hi! > > I'm former user of NetSaint, now decided to move on to Nagios. Looks > > like Nagios is OK ( I have e-mail notifications) and looks like > > webpage is OK (can see documentation fine) When I go to any item below > > Documentation, like "Tactical overview" I got Object not found! The > > requested URL was not found on this server. The link on the referring > > page seems to be wrong or outdated. Please inform the author of that > > page about the > > error. > > If you think this is a server error, please contact the webmaster > > Error 404 > > 192.1.1.8 > > Wed Feb 12 12:12:40 2003 > > Apache/2.0.40 (Red Hat Linux) > > For my installation I used > > 5355520 Mar 30 2002 nagios-1.0.tar > > 1771520 Feb 11 19:07 nagios-plugins-1.3.0-beta2.tar > > Am I missing something? , like > > nagios-plugins-extras > > or > > nagios-www ? > > if so where I can get tar files for these two ? > > Is there any difference that I use Apache/2.0.40 (Red Hat Linux) ? To set > > up > > web interface I followed instructions on doc page > > http://nagios.sourceforge.net/docs/1_0/installweb.html > > Thanks for help a ton, > > Andris > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scarpe01 at usg.tufts.edu Wed Feb 12 20:21:48 2003 From: scarpe01 at usg.tufts.edu (Stephen Carpenter) Date: Wed, 12 Feb 2003 14:21:48 -0500 Subject: escalation rule creep Message-ID: <20030212192148.GA11242@brake.usg.tufts.edu> So, we are in process of rolling out our nagios system here into production. Seems like a good time to sit back and look at where I see as good areas of improvement. Nagios has a great and very flexible way of specifying who to contact. Its great. However, I think that it has some limitations that are hard to get around as is... for example... We monitor NTP on all hosts. On every single host we run we care if NTP stops working or is way off. However, we don't care so much that we want to be paged and maybe woken up about it. Email would be just dandy. On EVERY other service (ok there are one or two like NTP in this regard but, NTP ius the ubiquitous one) we want to be paged if its down and to escalate up through manager and last ditch efforts to "page the world" if its not taken care of within some period of time. Thats easy to do of course we just make our rules and for the escalations we just do "Service_description *" and it works great. The problem is...this then matches NTP and escalates. Getting around this has been interesting... it basically seems to mean that we have to have a huge set of escalation rules to handle all services individually for each hostgroup that has different contacts associated because.... we can't list grpoups of services in the service description. (ie if "foogroup" has services PING NTP and SMTP we need a service escalation definition for each of PING and SMTP - which is fine for 3 but, I count about 12 checks that are on most every host, and no less than 3 or 4 groups of hosts that have different escalation paths which means several 10s of rules for something that could easily be defined in 4 or 5 rules if there was just a way to group services better) And of course, going forward as we have more checks and more groups on board and having their machines monitored, we expect these numbers will grow. Heh if this continues, I may have to start generating the escalations config with m4 macros :/ Anyone have any ideas on how to get around this? Any chance we might see some manner of this in the future? -Steve -- "The Creation of the Universe was made possible by a grant from Texas Instruments. " -- PBS ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maarten at hartsuijker.com Wed Feb 12 20:20:34 2003 From: maarten at hartsuijker.com (Maarten Hartsuijker) Date: Wed, 12 Feb 2003 20:20:34 +0100 Subject: reporting availability Message-ID: <003601c2d2cb$d13a5410$195019ac@shadowplay> Hi, I was wondering if any of you could tell me something about the process that is used on availability reporting. The specific question I am having is about how nagios is calculating the availability report if the monitoring period is not 7x24. An example: For a server, I am having a service window of weekdays 7am till 7 pm. On monday 9-10 am, the server is down due to a failure. Will the availabily for that day now be reported as 92% (11/12th) or as 96% (23/24th)? maarten ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From willipl1 at jhuapl.edu Wed Feb 12 21:12:32 2003 From: willipl1 at jhuapl.edu (Lane Williams) Date: Wed, 12 Feb 2003 15:12:32 -0500 Subject: reporting availability In-Reply-To: <003601c2d2cb$d13a5410$195019ac@shadowplay> References: <003601c2d2cb$d13a5410$195019ac@shadowplay> Message-ID: <1045080759.21445.10.camel@lenny.jhuapl.edu> You can modify the source of the avail.c and recompile. Goto to line 629 and change the 'shour' from type hidden to type text in the html. I've provided the altered code you can compare with the original and see what needed to be done. The capabality is already there, it just wasn't provided. My management was asking for the same thing you mentioned. The variable to look for in the code is 'shour','smin','ssec','start_hour','start_minute','start_second', and also the end time variables (replace s with e and start with end). Lane On Wed, 2003-02-12 at 14:20, Maarten Hartsuijker wrote: > Hi, > > I was wondering if any of you could tell me something about the process > that > is used on availability reporting. The specific question I am having is > about how nagios is calculating the availability report if the > monitoring > period is not 7x24. > > An example: > For a server, I am having a service window of weekdays 7am till 7 pm. On > monday 9-10 am, the server is down due to a failure. Will the availabily > for > that day now be reported as 92% (11/12th) or as 96% (23/24th)? > > maarten > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: avail.c Type: text/x-c Size: 150695 bytes Desc: not available URL: From greg.goston at wholefoods.com Wed Feb 12 22:05:05 2003 From: greg.goston at wholefoods.com (Greg Goston) Date: Wed, 12 Feb 2003 15:05:05 -0600 Subject: status.cgi character limit? Message-ID: <3E4AB701.D0FA23D6@wholefoods.com> Hi all, I'm setting up Nagios 1.0 on a Solaris 8 box for use in monitoring various Oracle and Informix databases. I'm making a modified version of the check_oracle_instance.pl plugin for this purpose. I need to have the cgi interface display not only the tablespaces which pass the warning/critical stage, but also those tablespaces which are ok. I've hit a snag in the cgi, though: there seems to be a limit on the length of the "status information" message that can be displayed, and some of the info is getting chopped off for db's with lots of tablespaces. The information that's being returned is fine; it appears to be just in the cgi display that it's being truncated. My question: could anyone point me to a simple config modification which would increase the length limit of this "status information" message? I looked at the source code for status.c and MAX_MESSAGE_BUFFER looked promising, but I don't know enough C to figure out what should be changed and where, if anything. As an experiment I increased the amount for both MAX_MESSAGE_BUFFER and MAX_INPUT_BUFFER (in common.h), but after recompiling, there was no change in the display. Much thanks in advance for any help anyone can provide, greg p.s. I'm using Perl 5.8.0, DBI 1.32, DBD::Oracle 1.12, DBD::Informix 1.04.PC1, Oracle 8.1.7, and Informix 7.3. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From whiatt at upstanding.com Wed Feb 12 22:20:08 2003 From: whiatt at upstanding.com (Hiatt, William) Date: Wed, 12 Feb 2003 13:20:08 -0800 Subject: Monitoring LaserJet 4050 with JetDirect 610N? Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA2676@exch-be-01.upstanding.com> Has anyone successfully used check_hpjd with this printer? I've tried, but when the paper is out, the plug-in still reports the status as OK. I figured I'll ask before I go off and develop something myself Thanks william ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 12 23:02:57 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 12 Feb 2003 17:02:57 -0500 (EST) Subject: Monitoring LaserJet 4050 with JetDirect 610N? In-Reply-To: <71520D1F83A0C6408D99155D4CCAE0AA2676@exch-be-01.upstanding.com> References: <71520D1F83A0C6408D99155D4CCAE0AA2676@exch-be-01.upstanding.com> Message-ID: I haven't dealt with the 610N but have used it with the 615N. Attached is a work in progress that uses the standard Print-MIB in addition to the login of check_hpjd. Todo is support for the HOST-Resources mib printer alerts which seems to be relatively well support across the HP JetDirects... -sg On Wed, 12 Feb 2003, Hiatt, William wrote: > Has anyone successfully used check_hpjd with this printer? I've tried, > but when the paper is out, the plug-in still reports the status as OK. > > I figured I'll ask before I go off and develop something myself > > Thanks > william > -- -------------- next part -------------- #!/usr/local/bin/perl -w # check_snmp_printer - check for printer status via snmp # Supports both standard PRINT-MIB (RFC-1759) and HP Enterprise print-mib # that is supported by some of the older JetDirect interfaces # Acknowledgements: # the JetDirect code is taken from check_hpjd.c by Ethan Galstad # # The idea for the plugin (as well as some code) were taken from Jim # Trocki's pinter alert script in his "mon" utility, found at # http://www.kernel.org/software/mon # # Notes: # 'JetDirect' is copyrighted by Hewlett-Packard # # # License Information: # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ############################################################################ # # TODO: Query HOST-RESOURCE MIB for a quick status # # hrPrinterStatus = .1.3.6.1.2.1.25.3.5.1; # hrPrinterDetectedErrorState = .1.3.6.1.2.1.25.3.5.1.2 # # hrPrinterStatus OBJECT-TYPE # SYNTAX INTEGER { # other(1), # unknown(2), # idle(3), # printing(4), # warmup(5) # } # # hrPrinterDetectedErrorState OBJECT-TYPE # SYNTAX OCTET STRING # MAX-ACCESS read-only # STATUS current # DESCRIPTION # "This object represents any error conditions detected # by the printer. The error conditions are encoded as # bits in an octet string, with the following # definitions: # # Condition Bit # # # lowPaper 0 # # noPaper 1 # lowToner 2 # noToner 3 # doorOpen 4 # jammed 5 # offline 6 # serviceRequested 7 # inputTrayMissing 8 # outputTrayMissing 9 # markerSupplyMissing 10 # outputNearFull 11 # outputFull 12 # inputTrayEmpty 13 # overduePreventMaint 14 # # # use POSIX; use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_H $opt_P $opt_t $session $error $answer $key $response $PROGNAME $port $hostname ); use lib "/home/sghosh/npd/test/nagiosplug/plugins-scripts"; use utils qw(%ERRORS &print_revision &support &usage ); use Net::SNMP; sub print_help (); sub print_usage (); $ENV{'PATH'}=''; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; # defaults my $ptype = 1; # to standard RFC printer type my $state = $ERRORS{'UNKNOWN'}; my $community = "public"; my $snmp_version = 1; my $port = 161; Getopt::Long::Configure('bundling'); GetOptions ("V" => \$opt_V, "version" => \$opt_V, "P=s" => \$opt_P, "Printer=s" => \$opt_P, # printer type - HP or RFC "v=i" => \$snmp_version, "snmp_version=i" => \$snmp_version, "p=i" => \$port, "port=i" => \$port, "C=s" => \$community,"community=s" => \$community, "h" => \$opt_h, "help" => \$opt_h, "H=s" => \$opt_H, "hostname=s" => \$opt_H); $PROGNAME = "check_snmp_printer"; if ($opt_V) { print_revision($PROGNAME,'$Revision: 1.1.1.1 $'); exit $ERRORS{'OK'}; } if ($opt_h) {print_help(); exit $ERRORS{'OK'};} unless (defined $opt_H) { print "No target hostname specified\n"; exit $ERRORS{"UNKNOWN"}; } $hostname = $opt_H; if (! utils::is_hostname($hostname)){ usage(" $hostname did not match pattern\n"); exit $ERRORS{"UNKNOWN"}; } if (defined $opt_P) { if ($opt_P eq "HP" ) { $ptype = 2; }elsif ($opt_P eq "RFC" ) { $ptype = 1; }else{ print "Only \"HP\" and \"RFC\" are supported as printer options at this time.\n"; exit $ERRORS{"UNKNOWN"}; } } if ( $snmp_version =~ /[12]/ ) { ($session, $error) = Net::SNMP->session( -hostname => $hostname, -community => $community, -port => $port, -version => $snmp_version ); if (!defined($session)) { $state='UNKNOWN'; $answer=$error; print ("$state: no session - $answer\n"); exit $ERRORS{$state}; } }elsif ( $snmp_version =~ /3/ ) { $state='UNKNOWN'; print ("$state: No support for SNMP v3 yet\n"); exit $ERRORS{$state}; }else{ $state='UNKNOWN'; print ("$state: No support for SNMP v$snmp_version yet\n"); exit $ERRORS{$state}; } ### main logic if ( $ptype == 1 ) { # STD MIB my %snmp_response; my $snmp_index; my $col_oid; my %std_mib_inst_count ; my %std_mib_instances; my $display; my $inst; my $group; #### RFC1759 MIB OIDS # sub-unit status - textual convention my $subunit_status; # integer from 0-126 # column oid - not instances my %std_mib = ( std_mib_input_status => ".1.3.6.1.2.1.43.8.2.1.11", # 2 element index std_mib_input_name => ".1.3.6.1.2.1.43.8.2.1.13", std_mib_output_remaining_capacity => ".1.3.6.1.2.1.43.9.2.1.5", std_mib_output_status => ".1.3.6.1.2.1.43.9.2.1.6", std_mib_marker_tech => ".1.3.6.1.2.1.43.10.2.1.2", std_mib_marker_status => ".1.3.6.1.2.1.43.10.2.1.15", std_mib_supplies_type => ".1.3.6.1.2.1.43.11.1.1.5", std_mib_supplies_level => ".1.3.6.1.2.1.43.11.1.1.9", std_mib_media_path_type => ".1.3.6.1.2.1.43.13.4.1.9", std_mib_media_path_status => ".1.3.6.1.2.1.43.13.4.1.11", std_mib_status_display => ".1.3.6.1.2.1.43.16.5.1.2", # 2 element index std_mib_alert_sev_level => ".1.3.6.1.2.1.43.18.1.1.2", std_mib_alert_grp => ".1.3.6.1.2.1.43.18.1.1.4", std_mib_alert_location => ".1.3.6.1.2.1.43.18.1.1.5", ); my %std_mib_alert_groups = ( 1 => "unspecifiedOther", 3 => "printerStorageMemory", # hostResourcesMIBStorageTable 4 => "internalDevice", # hostResourcesMIBDeviceTable 5 => "generalPrinter", 6 => "cover", 7 => "localization", 8 => "input", 9 => "output", 10 => "marker", 11 => "markerSupplies", 12 => "markerColorant", 13 => "mediaPath", 14 => "connectionChannel", 15 => "interpreter", 16 => "consoleDisplayBuffer", 17 => "consoleLights", ); my %std_mib_prt_alert_code = ( 1 => "other", # ok if on power save 2 => "unknown", # -- codes common to serveral groups 3 => "coverOpen", 4 => "coverClosed", 5 => "interlockOpen", 6 => "interlockClosed", 7 => "configurationChange", 8 => "jam", # critical # -- general Printer group 501 => "doorOpen", 502 => "doorClosed", 503 => "powerUp", 504 => "powerDown", # -- Input Group 801 => "inputMediaTrayMissing", 802 => "inputMediaSizeChange", 803 => "inputMediaWeightChange", 804 => "inputMediaTypeChange", 805 => "inputMediaColorChange", 806 => "inputMediaFormPartsChange", 807 => "inputMediaSupplyLow", 808 => "inputMediaSupplyEmpty", # -- Output Group 901 => "outputMediaTrayMissing", 902 => "outputMediaTrayAlmostFull", 903 => "outputMediaTrayFull", # -- Marker group 1001 => "markerFuserUnderTemperature", 1002 => "markerFuserOverTemperature", # -- Marker Supplies group 1101 => "markerTonerEmpty", 1102 => "markerInkEmpty", 1103 => "markerPrintRibbonEmpty", 1104 => "markerTonerAlmostEmpty", 1105 => "markerInkAlmostEmpty", 1106 => "markerPrintRibbonAlmostEmpty", 1107 => "markerWasteTonerReceptacleAlmostFull", 1108 => "markerWasteInkReceptacleAlmostFull", 1109 => "markerWasteTonerReceptacleFull", 1110 => "markerWasteInkReceptacleFull", 1111 => "markerOpcLifeAlmostOver", 1112 => "markerOpcLifeOver", 1113 => "markerDeveloperAlmostEmpty", 1114 => "markerDeveloperEmpty", # -- Media Path Device Group 1301 => "mediaPathMediaTrayMissing", 1302 => "mediaPathMediaTrayAlmostFull", 1303 => "mediaPathMediaTrayFull", # -- interpreter Group 1501 => "interpreterMemoryIncrease", 1502 => "interpreterMemoryDecrease", 1503 => "interpreterCartridgeAdded", 1504 => "interpreterCartridgeDeleted", 1505 => "interpreterResourceAdded", 1506 => "interpreterResourceDeleted", ); ## Need multiple passes as oids are all part of tables foreach $col_oid (keys %std_mib ){ if ( !defined( $response = $session->get_table($std_mib{$col_oid}) ) ) { if (! ($col_oid =~ m/std_mib_alert/ ) ) { # alerts don't have to exist all the time! $answer=$session->error; $session->close; $state = 'CRITICAL'; print ("$state: $answer for $std_mib{$col_oid}\n"); exit $ERRORS{$state}; } } foreach $key (keys %{$response}) { $key =~ /.*\.(\d+)\.(\d+)$/; # all oids have a two part index appended $snmp_index = $1 . "." . $2; #print "$key => $col_oid.$snmp_index = $response->{$key} \n"; $snmp_response{$key} = $response->{$key} ; $std_mib_inst_count{$col_oid} += 1 ; # count how many instances $std_mib_instances{$col_oid} .= ":" . $snmp_index; } } #foreach $key ( keys %std_mib_inst_count) { # print "$key = $std_mib_inst_count{$key} $std_mib_instances{$key} \n"; #} # combine all lines of status display into one line $std_mib_instances{'std_mib_status_display'} = substr($std_mib_instances{'std_mib_status_display'}, 1); my @display_index = split(/:/, $std_mib_instances{'std_mib_status_display'} ); foreach $inst (@display_index) { $display .= $snmp_response{$std_mib{'std_mib_status_display'} . "." . $inst} . " "; } # see if there are any alerts if (defined ( $std_mib_inst_count{'std_mib_alert_sev_level'} ) ) { if ( ( lc($display) =~ /save/ || lc($display) =~ /warm/ ) && $std_mib_inst_count{'std_mib_alert_sev_level'} == 1 ) { $state='OK'; $answer = "Printer ok - $display "; print $answer . "\n"; exit $ERRORS{$state}; } # sometime during transitions from power save to warming there are 2 alerts # if the 2nd alert is for something else it should get caught in the # next call since warmup typically is much smaller than check time # interval. if ( lc($display) =~ /warm/ && $std_mib_inst_count{'std_mib_alert_sev_level'} == 2 ) { $state='OK'; $answer = "$state: Printer - $display "; print $answer . "\n"; exit $ERRORS{$state}; } # We have alerts and the display does not say power save or warming up $std_mib_instances{'std_mib_alert_sev_level'} = substr($std_mib_instances{'std_mib_alert_sev_level'}, 1); @display_index = split(/:/, $std_mib_instances{'std_mib_alert_sev_level'} ); $answer = "Alert location(s): "; for $inst (@display_index) { $state = 'WARNING'; if ( $snmp_response{$std_mib{'std_mib_alert_location'} . "." . $inst} < 1) { $answer .= "unknown location "; }else{ $answer .= $std_mib_prt_alert_code{$snmp_response{$std_mib{'std_mib_alert_location'} . "." . $inst} } . " "; #print $std_mib_prt_alert_code{$snmp_response{$std_mib{'std_mib_alert_location'}. "." . $inst}} ; } } print "$state: $answer \n"; exit $ERRORS{$state}; }else{ $state='OK'; $answer = "$state: Printer ok - $display "; print $answer . "\n"; exit $ERRORS{$state}; } } elsif( $ptype == 2 ) { # HP MIB - JetDirect #### HP MIB OIDS - instance OIDs my $HPJD_LINE_STATUS= ".1.3.6.1.4.1.11.2.3.9.1.1.2.1.0"; my $HPJD_PAPER_STATUS= ".1.3.6.1.4.1.11.2.3.9.1.1.2.2.0"; my $HPJD_INTERVENTION_REQUIRED= ".1.3.6.1.4.1.11.2.3.9.1.1.2.3.0"; my $HPJD_GD_PERIPHERAL_ERROR= ".1.3.6.1.4.1.11.2.3.9.1.1.2.6.0"; my $HPJD_GD_PAPER_JAM= ".1.3.6.1.4.1.11.2.3.9.1.1.2.8.0"; my $HPJD_GD_PAPER_OUT= ".1.3.6.1.4.1.11.2.3.9.1.1.2.9.0"; my $HPJD_GD_TONER_LOW= ".1.3.6.1.4.1.11.2.3.9.1.1.2.10.0"; my $HPJD_GD_PAGE_PUNT= ".1.3.6.1.4.1.11.2.3.9.1.1.2.11.0"; my $HPJD_GD_MEMORY_OUT= ".1.3.6.1.4.1.11.2.3.9.1.1.2.12.0"; my $HPJD_GD_DOOR_OPEN= ".1.3.6.1.4.1.11.2.3.9.1.1.2.17.0"; my $HPJD_GD_PAPER_OUTPUT= ".1.3.6.1.4.1.11.2.3.9.1.1.2.19.0"; my $HPJD_GD_STATUS_DISPLAY= ".1.3.6.1.4.1.11.2.3.9.1.1.3.0"; #define ONLINE 0 #define OFFLINE 1 my @hp_oids = ( $HPJD_LINE_STATUS,$HPJD_PAPER_STATUS,$HPJD_INTERVENTION_REQUIRED,$HPJD_GD_PERIPHERAL_ERROR, $HPJD_GD_PAPER_JAM,$HPJD_GD_PAPER_OUT,$HPJD_GD_TONER_LOW,$HPJD_GD_PAGE_PUNT,$HPJD_GD_MEMORY_OUT, $HPJD_GD_DOOR_OPEN,$HPJD_GD_PAPER_OUTPUT,$HPJD_GD_STATUS_DISPLAY); $state = $ERRORS{'OK'}; if (!defined($response = $session->get_request(@hp_oids))) { $answer=$session->error; $session->close; $state = 'CRITICAL'; print ("$state: $answer \n"); exit $ERRORS{$state}; } # cycle thru the responses and set the appropriate state if($response->{$HPJD_GD_PAPER_JAM} ) { $state='WARNING'; $answer = "Paper Jam"; } elsif($response->{$HPJD_GD_PAPER_OUT} ) { $state='WARNING'; $answer = "Out of Paper"; } elsif($response->{$HPJD_LINE_STATUS} ) { if ($response->{$HPJD_LINE_STATUS} ne "POWERSAVE ON" ) { $state='WARNING'; $answer = "Printer Offline"; } } elsif($response->{$HPJD_GD_PERIPHERAL_ERROR} ) { $state='WARNING'; $answer = "Peripheral Error"; } elsif($response->{$HPJD_INTERVENTION_REQUIRED} ) { $state='WARNING'; $answer = "Intervention Required"; } elsif($response->{$HPJD_GD_TONER_LOW} ) { $state='WARNING'; $answer = "Toner Low"; } elsif($response->{$HPJD_GD_MEMORY_OUT} ) { $state='WARNING'; $answer = "Insufficient Memory"; } elsif($response->{$HPJD_GD_DOOR_OPEN} ) { $state='WARNING'; $answer = "Insufficient Memory"; } elsif($response->{$HPJD_GD_PAPER_OUTPUT} ) { $state='WARNING'; $answer = "OutPut Tray is Full"; } elsif($response->{$HPJD_GD_PAGE_PUNT} ) { $state='WARNING'; $answer = "Data too slow for Engine"; } elsif($response->{$HPJD_PAPER_STATUS} ) { $state='WARNING'; $answer = "Unknown Paper Error"; } else # add code to parse STATUS DISPLAY here { $state='OK'; $answer = "Printer ok - $response->{$HPJD_GD_STATUS_DISPLAY} "; } # print and exit print "$state: $answer \n"; exit $ERRORS{$state}; } else{ # 3rd printer type - not yet supported print "Printer type $opt_P has not been implemented\n"; $state='UNKNOWN'; exit $ERRORS{$state}; } #### subroutines sub unit_status { my $stat = shift; } sub print_usage () { print "Usage: $PROGNAME -H [-C community] [-P HP or RFC] [-p port] [-v snmp_version] [-h help] [-V version]\n"; } sub print_help () { print_revision($PROGNAME,'$Revision: 1.1.1.1 $'); print "Copyright (c) 2002 Subhendu Ghosh/Ethan Galstad. This plugin reports the status of an network printer with an SNMP management module. "; print_usage(); print " -H, --hostname=HOST Name or IP address of host to check -C --community snmp community string (default: public) -P --Printer supported values are \"HP\" for Jetdirect printers and \"RFC\" for RFC 1759 Print MIB based implementations (default: RFC) -p --port Port where snmp agent is listening (default: 161) -v --snmp_version SNMP version to use (default: version 1) -h --help This screen -V --version Plugin version "; support(); } From russell at quadrix.com Wed Feb 12 23:09:26 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 12 Feb 2003 17:09:26 -0500 Subject: NSCA and Perfdata Message-ID: <3E4AC616.60802@quadrix.com> If using NSCA, you sent the output of a plugin with the perdata (in the form " | ", can the Nagios receiving the passive update process the included perfdata? Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 12 23:02:46 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 12 Feb 2003 16:02:46 -0600 Subject: External Commands Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED3FE@mismail.ena.com> Docs: http://nagios.sourceforge.net/docs/1_0/extcommands.html -- Marc > -----Original Message----- > From: Henrique leandro [mailto:henrique.leandro at varig.com] > Sent: Wednesday, February 12, 2003 12:22 PM > To: NAGIOS > Subject: [Nagios-users] External Commands > > Hi, > > > How do i for execute any Nagios external commands in a event handler ? > something like add a comment to service when the check failed. > > > Thanks all > > > > -- > Henrique leandro > Varig S.A > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshua at turquoise.net Wed Feb 12 23:12:43 2003 From: joshua at turquoise.net (Josh) Date: Wed, 12 Feb 2003 12:12:43 -1000 Subject: 1)GOOD plugin documentation? 2)library issues. Message-ID: <005701c2d2e3$e018b540$22cf483f@korth> First off this program rules, I have been searching for usefull documentation on writing plugins for nagios but havent found much. So any links/whatever there would be greaetly appreciated. Secondly: I have been struggling with running nagios on sloaris 2.7 and have ironed everything out except for one issue. For the status map to work you need to have the gd/jpg/png lib installed. The most recent verisions of all have been isntalled, on installing the GD lib it checked for and found the png and jpg libs fine and dandy, also that install went fine. When one actually clicks on the status map link we get an internal server error and the following line appears in the apache error logs. --begin log snippet-- ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or directory [Wed Feb 12 12:01:59 2003] [error] [client 63.72.207.34] Premature end of script headers: /usr/local/nagios/sbin//statusmap.cgi --end log snippet-- The file name 'libgd.so.2' is a symbolic link in /usr/local/lib that points to /usr/local/lib/libgd.so.2.0.0 the ls -l /usr/local/lib/libgd.so* output shows me this: --begin ls output-- lrwxrwxrwx 1 root other 14 Feb 10 13:33 libgd.so -> libgd.so.2.0.0 lrwxrwxrwx 1 root other 14 Feb 10 13:33 libgd.so.2 -> libgd.so.2.0.0 -rwxr-xr-x 1 bin bin 479764 Feb 10 13:33 libgd.so.2.0.0 --end ls output-- I have compiled nagios using: --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/inc I for grins, put a symbolic link to the file in a few other dirs i thought it maybe trying to look in, even though it was compiled with the gd dir specified. Anyhelp on this matter would make me a pretty happy fellow. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 12 23:44:51 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 12 Feb 2003 15:44:51 -0700 (MST) Subject: 1)GOOD plugin documentation? 2)library issues. In-Reply-To: <005701c2d2e3$e018b540$22cf483f@korth> References: <005701c2d2e3$e018b540$22cf483f@korth> Message-ID: > First off this program rules, I have been searching for usefull > documentation on writing plugins for nagios but havent found much. > So any links/whatever there would be greaetly appreciated. here's all the documentation you need: Have it do whatever you want to to, and spit out a string for the status/error message, and exit with an appropriate code (0,1,2?) depending on success, warning, or failure. Literally, that's all there is to it... See the attachment for a very simple example... --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe -------------- next part -------------- #!/bin/sh # jm020501 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PROGNAME=`basename $0` PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` REVISION="1.0.0.0" . $PROGPATH/utils.sh cd /opt/nagios || (echo "Cannot cd to /opt/nagios..." ; exit 1) swap=`vmstat 1 2 |tail -1 |awk '{print $4}'` if [ $swap -le 65536 ]; then echo "Only ${swap}k of swap left..." exit $STATE_CRITICAL else if [ $swap -le 131072 ]; then echo "Only ${swap}k of swap left..." exit $STATE_WARNING else echo "${swap}k of swap." exit $STATE_OK fi fi From jcarro10 at sprintspectrum.com Wed Feb 12 22:30:23 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 12 Feb 2003 15:30:23 -0600 Subject: nsclient counters - detect increase / decrease Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F255E@PKDWB03C.ad.sprint.com> Sounds like you'll want to write a wrapper script. Write a tempfile to disk to save state between invocations. jc > -----Original Message----- > From: Mark Leddy [mailto:mark_leddy at hotmail.com] > Sent: Wednesday, February 12, 2003 12:13 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nsclient counters - detect increase / decrease > > > > I have been able to run nsclient and check_nt to return the counters. > Works real nice! > > Does anyone have or could anyone tell me some specifics on > how I could check > the values returned against the previous check to see if the > counter(s) > incremented, and if the counter has not incremented to give a > warning or > critical status, alert, etc.? > > One of the areas this would help is checking smtp mail flow, > with Exchange > and Lotus Notes where a simple too high/ too low threshold > does not apply. > > Thanks, > Mark > > > Nagios output for smtp counter > SMTP Messages Received Total 77583 > > check command I am using: > define command{ > command_name check_nt_smtptotalmsgreceived > command_line $USER1$/check_nt -H $HOSTNAME$ -p > 1248 -v COUNTER -l > "\\SMTP Server(_Total)\\Messages Received Total","SMTP > Messages Received > Total %.f" > } > > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 13 00:04:10 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 12 Feb 2003 18:04:10 -0500 (EST) Subject: 1)GOOD plugin documentation? 2)library issues. In-Reply-To: <005701c2d2e3$e018b540$22cf483f@korth> References: <005701c2d2e3$e018b540$22cf483f@korth> Message-ID: Dev docs http://nagiosplug.sourceforge.net/developer-guidelines.html On solaris make sure your LD_* paths are set properly. -sg On Wed, 12 Feb 2003, Josh wrote: > First off this program rules, I have been searching for usefull documentation on writing plugins for nagios but > havent found much. > So any links/whatever there would be greaetly appreciated. > > Secondly: > > I have been struggling with running nagios on sloaris 2.7 and have ironed everything out except for one issue. > For the status map to work you need to have the gd/jpg/png lib installed. The most recent verisions of all have been > isntalled, on installing the GD lib it checked for and found the png and jpg libs fine and dandy, also that install went > fine. > When one actually clicks on the status map link we get an internal server error and the following line appears in the > apache error logs. > > --begin log snippet-- > > ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or directory > [Wed Feb 12 12:01:59 2003] [error] [client 63.72.207.34] Premature end of script headers: > /usr/local/nagios/sbin//statusmap.cgi > > --end log snippet-- > > The file name 'libgd.so.2' is a symbolic link in /usr/local/lib that points to /usr/local/lib/libgd.so.2.0.0 > the ls -l /usr/local/lib/libgd.so* output shows me this: > > --begin ls output-- > > lrwxrwxrwx 1 root other 14 Feb 10 13:33 libgd.so -> libgd.so.2.0.0 > lrwxrwxrwx 1 root other 14 Feb 10 13:33 libgd.so.2 -> libgd.so.2.0.0 > -rwxr-xr-x 1 bin bin 479764 Feb 10 13:33 libgd.so.2.0.0 > > --end ls output-- > > I have compiled nagios using: > --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/inc > > I for grins, put a symbolic link to the file in a few other dirs i thought it maybe trying to look in, even though it > was compiled with the gd dir specified. > Anyhelp on this matter would make me a pretty happy fellow. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From securityguy at ikano.com Thu Feb 13 00:41:15 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Wed, 12 Feb 2003 16:41:15 -0700 Subject: Dans Guardian - Proxy Flitering Software In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83032D3FFE@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83032D3FFE@mismail.ena.com> Message-ID: <003301c2d2f0$3b876c30$ddd0d0cd@pendleton> Hello all, I've tried all of the suggestions posted and am still getting an "HTTP/1.0 400 Bad Request" back. I have verified that the Squid service is running in forward proxy mode. Unfortunately, I am not as interested in monitoring squid as I am DG. I've run packet captures on the request and things look normal, but I keep getting this same error message back. If anyone has any other ideas I'm happy to try them out. Marc, I think you mentioned something about modifying the plugin to allow error codes such as HTTP/1.0 403 to return an OK. I've tested with the DG service shut down and I get a connection refused, so in this case getting a 400 is a good thing. I'm not sure if you were referring to modifying the plugin yourself or asking Karl to, but it seems like it would be a useful thing. Thanks, Robert S. Galloway Chief Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshua at turquoise.net Thu Feb 13 00:50:28 2003 From: joshua at turquoise.net (Josh) Date: Wed, 12 Feb 2003 13:50:28 -1000 Subject: Fw: 1)GOOD plugin documentation? 2)library issues. Message-ID: <006001c2d2f1$87057bb0$22cf483f@korth> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Telling apache about LD_LIBRARY_PATH worked just fine. Thanks much for the help, it's handy to know that solaris doesn't make that available to everything. For those of us unfamiliar with apache the fix was simple. Open your apache conf file, usually /usr/local/apache/conf/httpd.conf Add in the line SetEnv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/other/lib/dirs You may need to use PassEnv instead of SetEnv for older versions of apache (previous to 1.1 I belive) Thanks again Robert and hopefully I will be able to find some good docs on making custom plug-ins if not I will play with it and write some. - ----- Original Message ----- From: "Roberto Moral" To: "Josh" Sent: Wednesday, February 12, 2003 12:35 PM Subject: Re: [Nagios-users] 1)GOOD plugin documentation? 2)library issues. Hello Josh, There are a couple of ways to deal with your problem. 1 is with LD_LIBRARY_PATH, by default Solaris does not include this path as a path where libraries can be found so using the LD_LIBRARY_PATH will add that gd libraries, there is also a way of telling Apache in its config file about LD_LIBRARY_PATH The second option is to create symbolic links to the libraries in /usr/lib so the symbolic link /usr/lib/libdg.so.2 would point to /usr/local/lib/libgd.so.2.0.0 this is time consuming becase you need to link every library in /usr/local/lib good luck. On Wed, 2003-02-12 at 17:12, Josh wrote: > First off this program rules, I have been searching for usefull documentation on writing plugins for nagios but > havent found much. > So any links/whatever there would be greaetly appreciated. > > Secondly: > > I have been struggling with running nagios on sloaris 2.7 and have ironed everything out except for one issue. > For the status map to work you need to have the gd/jpg/png lib installed. The most recent verisions of all have been > isntalled, on installing the GD lib it checked for and found the png and jpg libs fine and dandy, also that install went > fine. > When one actually clicks on the status map link we get an internal server error and the following line appears in the > apache error logs. > > --begin log snippet-- > > ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or directory > [Wed Feb 12 12:01:59 2003] [error] [client 63.72.207.34] Premature end of script headers: > /usr/local/nagios/sbin//statusmap.cgi > > --end log snippet-- > > The file name 'libgd.so.2' is a symbolic link in /usr/local/lib that points to /usr/local/lib/libgd.so.2.0.0 > the ls -l /usr/local/lib/libgd.so* output shows me this: > > --begin ls output-- > > lrwxrwxrwx 1 root other 14 Feb 10 13:33 libgd.so -> libgd.so.2.0.0 > lrwxrwxrwx 1 root other 14 Feb 10 13:33 libgd.so.2 -> libgd.so.2.0.0 > -rwxr-xr-x 1 bin bin 479764 Feb 10 13:33 libgd.so.2.0.0 > > --end ls output-- > > I have compiled nagios using: > --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/inc > > I for grins, put a symbolic link to the file in a few other dirs i thought it maybe trying to look in, even though it > was compiled with the gd dir specified. > Anyhelp on this matter would make me a pretty happy fellow. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null Roberto Moral SR. UNIX Systems Administrator - ------------------------------------- roberto at quantiva.com Tel: 609-514-8513 | cell: 609-346-5601 Quantiva, inc. 100 Village Blvd. 3rd Floor Princeton, NJ 08540 -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use iQA/AwUBPkrdv5xQX+BoQW4CEQInrACfUfyxsHmj7IrX0baIpTDG2r8UB7oAn2Cc oJkLpydrKjWPCqPcTx3aV4wJ =MIIk -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Feb 13 01:17:30 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 13 Feb 2003 11:17:30 +1100 Subject: nsclient counters - detect increase / decrease In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F255E@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Wed, Feb 12, 2003 at 03:30:23PM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F255E@PKDWB03C.ad.sprint.com> Message-ID: <20030213111708.D29365@IPAustralia.Gov.AU> Dear Gentlemen, I am writing to thank you for your letters and say, On Wed, Feb 12, 2003 at 03:30:23PM -0600, Carroll, Jim P [Contractor] wrote: > Sounds like you'll want to write a wrapper script. Write a tempfile to disk > to save state between invocations. > or save the data in an RRD (so you get a programmatic interface to the store) _perhaps_ with an RRA that stores the differences or a CF that returns them. There are Perl and Ruby bindings to RRDtool so you can call the RRD functions relatively easily (and efficiently). File are more trouble than they are worth . file modes . parsing content . may not be lockable (concurrent users) > jc > Yours sincerely. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Feb 13 01:27:56 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 13 Feb 2003 11:27:56 +1100 Subject: Fw: 1)GOOD plugin documentation? 2)library issues. In-Reply-To: <006001c2d2f1$87057bb0$22cf483f@korth>; from joshua@turquoise.net on Wed, Feb 12, 2003 at 01:50:28PM -1000 References: <006001c2d2f1$87057bb0$22cf483f@korth> Message-ID: <20030213112742.E29365@IPAustralia.Gov.AU> Dear Sir, On Wed, Feb 12, 2003 at 01:50:28PM -1000, Josh wrote: .. snip .. > Thanks again Robert and hopefully I will be able to find some good docs on making custom plug-ins if not I will play > with it and write some. I am not sure I follow you here. The link to the plugin writers guidelines has been posted http://nagiosplug.sourceforge.net/developer-guidelines.html The matter is also discussed in the FAQ on the Nag web site. A search 'writing Nagios plugins' on Google also finds this link. Is this documentation unsuitable ? I have found both it and the style of the standard plugins more than adequate for my needs. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshua at turquoise.net Thu Feb 13 01:48:16 2003 From: joshua at turquoise.net (Josh) Date: Wed, 12 Feb 2003 14:48:16 -1000 Subject: 1)GOOD plugin documentation? 2)library issues. References: <006001c2d2f1$87057bb0$22cf483f@korth> <20030213112742.E29365@IPAustralia.Gov.AU> Message-ID: <007101c2d2f9$9a0e6700$22cf483f@korth> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 that link has never worked for me, but i seem to have problems with about every source forge page, from any computer from any ISP. call it a curse. also I had posted that one before I recieved the others, so we can all mellow out. Anyway, no it's fine for me, the nagios docs tell you what exit status' mean what to nagios. Same deal, I made the post before recieving the other replies. I found it hard to belive it was 'that east' as Jason put it. Figured there had to be more to it as all, another fault of the wonderous human condition.a - ----- Original Message ----- From: "Stanley Hopcroft" To: "Josh" Cc: Sent: Wednesday, February 12, 2003 2:27 PM Subject: Re: Fw: [Nagios-users] 1)GOOD plugin documentation? 2)library issues. > Dear Sir, > > On Wed, Feb 12, 2003 at 01:50:28PM -1000, Josh wrote: > > .. snip .. > > > Thanks again Robert and hopefully I will be able to find some good docs on making custom plug-ins if not I will play > > with it and write some. > > I am not sure I follow you here. > > The link to the plugin writers guidelines has been posted > > http://nagiosplug.sourceforge.net/developer-guidelines.html > > The matter is also discussed in the FAQ on the Nag web site. > > A search 'writing Nagios plugins' on Google also finds this link. > > Is this documentation unsuitable ? > > I have found both it and the style of the standard plugins more than > adequate for my needs. > > Yours sincerely. > > -- > ------------------------------------------------------------------------ > Stanley Hopcroft > ------------------------------------------------------------------------ > > '...No man is an island, entire of itself; every man is a piece of the > continent, a part of the main. If a clod be washed away by the sea, > Europe is the less, as well as if a promontory were, as well as if a > manor of thy friend's or of thine own were. Any man's death diminishes > me, because I am involved in mankind; and therefore never send to know > for whom the bell tolls; it tolls for thee...' > > from Meditation 17, J Donne. > -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use iQA/AwUBPkrrTpxQX+BoQW4CEQIO+QCeIqVjus1b9OcMpcvttRl2Ws/Io1oAoKiQ zhaU+7+ENC+GkCiPAb+R/fcW =iAB7 -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jarett_DeAngelis at fujifilm.com Thu Feb 13 01:55:50 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Wed, 12 Feb 2003 19:55:50 -0500 Subject: check_citrix doesn't return any data? Message-ID: Hi all, I'm at my wits' end over here... been struggling with getting check_citrix to work. I can do ./check_citrix -C -W "service","service" -P "service","service" from the command line and it works just fine. My check definition looks like this: define command{ command_name check_citrix command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -P $ARG2$ } My service definitions look like this: # Service definition define service{ use generic-service ; Name of service template to use host_name host.example.com service_description citrix is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_citrix!"App1","App2"!"App3","App4" } What am I doing wrong? The ping services on these hosts work fine, but citrix keeps coming back critical and the web interface says (No output!) under Status Information. I'm really at a complete loss here. Is it a problem with quotes not being passed properly? Everything was going so beautifully, too :-/ Thanks. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Feb 13 03:03:08 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 13 Feb 2003 13:03:08 +1100 Subject: check_citrix doesn't return any data? In-Reply-To: ; from Jarett_DeAngelis@fujifilm.com on Wed, Feb 12, 2003 at 07:55:50PM -0500 References: Message-ID: <20030213130144.H29365@IPAustralia.Gov.AU> Dear Sir, I wm writing to thank you for your letter and say, On Wed, Feb 12, 2003 at 07:55:50PM -0500, Jarett DeAngelis wrote: > Hi all, > > I'm at my wits' end over here... been struggling with getting check_citrix to work. > > I can do ./check_citrix -C -W "service","service" -P "service","service" from the command line and it works just fine. > 1 The docco on the plugin needs to be corrected since it will accept -W and -P options of "app1,app2,app3,..". To-do. > My check definition looks like this: > > define command{ > command_name check_citrix > command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -P $ARG2$ > } > > My service definitions look like this: > > # Service definition > define service{ > use generic-service ; Name of service template to use > > host_name host.example.com > service_description citrix > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_citrix!"App1","App2"!"App3","App4" > } > > What am I doing wrong? I think the check_command line is wrong in the service definition. I suggest either 1 check_citrix!"App1,App2"!"App3,App4" or because there is a nasty bug (Thanks !) in check_citrix that makes the order of applications important (ie you have to specify the apps in the same order as specified in the browse list eg if browse list returns them A1,A2,A3,A4,A5 then Bad: -P "A1,A5" Good: -P "A1,A2,A3,A4.A5". Are you interested in testing a new version ? 2 2.1 Change the command_line in checkcommands.cfg to command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -W $ARG2$ -P $ARG3 -P $ARG4$. Pretty slack I know. 2.2 Change check_command in services.cfg to check_citrix!"App1"!"App2"!"App3"!"App4" > The ping services on these hosts work fine, but citrix keeps coming > back critical and the web interface says (No output!) under Status > Information. No output means the plugin failed to write any output. This usually means that 1 The plugin failed to compile under the tricky ePN environment 2 The plugin failed to handle the options and wigged out disgracefully. Bad plugin. No Biscuit. > I'm really at a complete loss here. Is it a problem > with > quotes not being passed properly? Everything was going so > beautifully, too :-/ > > Thanks. You'll get there. At least one huge Citrix site is running this plugin Ok. HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atul at mindsw.com Thu Feb 13 08:57:47 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 13 Feb 2003 13:27:47 +0530 Subject: Use of ramdisk Message-ID: <3E4B4FFB.6010206@mindsw.com> Hi Im using Nagios to monitor about 35 hosts and 250 services on my network. The server is P-3 500Mhz and 256 mb memory running Redhat Linux 7.2 and kernel version of 2.4.7-10. The CPU load of the server used for monitoring is increasing day by day. We have allready tried to optimize the services checks delay etc, but still there needs to be some optimization. I have seen the page in the documentation of Nagios about tuning the performance. Im left with an option of going for the ramdisk for storing the logs. Has anybody used Ramdisk before. What are implications of using ramdisk?? Please advice. Thanks Atul. -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 13 09:04:08 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 13 Feb 2003 09:04:08 +0100 Subject: check_citrix doesn't return any data? References: <20030213130144.H29365@IPAustralia.Gov.AU> Message-ID: <3E4B5178.11EEF5FC@gcc.dhl.com> Dear all, In times of economical recession, I'm still willing to provide you my two cents for free. Stanley Hopcroft wrote: > > My check definition looks like this: > > > > define command{ > > command_name check_citrix > > command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -P $ARG2$ > > } Here is mine (and working OK with a Citrix XPe farm): # 'check_citrix_apps' command definition define command{ command_name check_citrix_apps command_line $USER1$/check_cit -W $ARG1$ -P $ARG2$ -L -C server1 -C server2 -C server3 -C server4 -C server5 } > > > > My service definitions look like this: > > > > # Service definition > > define service{ > > use generic-service ; Name of service template to use > > > > host_name host.example.com > > service_description citrix > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 3 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command check_citrix!"App1","App2"!"App3","App4" > > } > > Mine: # Service definition define service{ use generic-service host_name farm service_description Citrix Apps is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 3 retry_check_interval 1 contact_groups citrix-admins notification_interval 600 notification_period 24x7 notification_options w,u,c,r check_command check_citrix_apps!"App1","App2","App3"!"App4","App5","App6" } > > What am I doing wrong? > > I think the check_command line is wrong in the service definition. I > suggest either So, at first glance, it's more or the less the same for the both of us. It's doubtful that the command_line is wrong... Is the plugin running fine under the nagios user account? Did you su - nagios to try that out? > > 1 check_citrix!"App1,App2"!"App3,App4" or > > because there is a nasty bug (Thanks !) in check_citrix that makes the > order of applications important (ie you have to specify the apps in the > same order as specified in the browse list eg if browse list returns > them A1,A2,A3,A4,A5 then Are you sure about this? Look: [root at netsaint etc]# ../libexec/check_cit -C server1 -W "Trainee 1","Trainee 2" Ok. Citrix master browser "10.30.66.16" reported that the published applications "Trainee 1,Trainee 2" are available. [root at netsaint etc]# ../libexec/check_cit -C server1 -W "Trainee 2","Trainee 1" Ok. Citrix master browser "10.30.66.16" reported that the published applications "Trainee 2,Trainee 1" are available. I'm using: [root at netsaint etc]# head -n 3 ../libexec/check_cit | tail -n1 # $Id: check_cit,v 1.7.1.1 2002/10/11 11:03:52 root Exp root $ > Are you interested in testing a new version ? I am :-) Kind regards, Tom ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 13 09:16:14 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 13 Feb 2003 09:16:14 +0100 Subject: Daily notification Message-ID: <3E4B544E.E2C107C1@gcc.dhl.com> Hi all, We want Nagios to send a page to the beeper every day at 4 PM to see it's still alive and the beeps are working. Is there any way to achieve this by using the external command file? I couldn't see it in the list of commands, but maybe it's an undocumented feature (Copyright Microsoft Inc.). An alternative would be to write a small script that pipes a "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a dummy service to make it go into warning/critical. A mail can then be sent out. Afterwards that same script should pipe another "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return the service state back to OK. Pretty lame, but it's the best thing I could come up with. Anyone got a better idea? It would be nice to be able to send out alerts when a service is in an OK state (not recovered, just OK)... Then I could just use check_dummy and have the service checked once per day. Any suggestions? Many thanks in advance, Tom ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steve.freegard at lbsltd.co.uk Thu Feb 13 10:07:01 2003 From: steve.freegard at lbsltd.co.uk (Steve Freegard) Date: Thu, 13 Feb 2003 09:07:01 -0000 Subject: Intermitent Results Message-ID: <67D9E7698329D411936E00508B6590B9027930BD@neelix.lbsltd.co.uk> Dean, Just a wild guess - but make sure that you haven't got more than one Nagios daemon running - do a '/etc/rc.d/init.d/nagios stop' a few times, and then check 'ps ax' output and kill any others if they are still lingering - then start it back up and see how you go. Regards, Steve Freegard Systems Manager Littlehampton Book Services Ltd. UK -----Original Message----- From: Dean Pothorin [mailto:DPothorin at PresiNET.com] Sent: 12 February 2003 18:37 To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Intermitent Results I have installed NAGIOS on a server to monitor a hundred or so remote ping hosts. I am upgrading from the Netsaint version. I go have an interesting issue. About half the time when I check the summaries, of any CGI, I get a dozen or so monitored systems saying "No matching hosts" in the hosts field and "No matching services" in the services field. The next time I reload, I get everything working fine. Does anyone have any Ideas. All I need is to monitor for host uptime, not services. Here is a status check Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 114 Total hosts: 114 Command check interval: -1 sec Check reaper interval: 10 sec Inter-check delay method: SMART Average check interval: 300.000 sec Inter-check delay: 2.632 sec Interleave factor method: SMART Average services per host: 1.000 Service interleave factor: 1 Initial service check scheduling info: -------------------------------------- First scheduled check: 1045074597 -> Wed Feb 12 10:29:57 2003 Last scheduled check: 1045074895 -> Wed Feb 12 10:34:55 2003 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 4 Recommend value: 12 ___________________________________ Dean Pothorin, ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.lbsltd.co.uk ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From Fredrik.Wanglund at datavis.se Thu Feb 13 10:29:32 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 13 Feb 2003 10:29:32 +0100 Subject: Daily notification Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804D0@storevis.datavis.se> Why not set up a service in Nagios an have it call the 'beeper-function'? /FredrikW -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: Thu 13-Feb-03 09:16 To: nagios-users Cc: Subject: [Nagios-users] Daily notification Hi all, We want Nagios to send a page to the beeper every day at 4 PM to see it's still alive and the beeps are working. Is there any way to achieve this by using the external command file? I couldn't see it in the list of commands, but maybe it's an undocumented feature (Copyright Microsoft Inc.). An alternative would be to write a small script that pipes a "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a dummy service to make it go into warning/critical. A mail can then be sent out. Afterwards that same script should pipe another "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return the service state back to OK. Pretty lame, but it's the best thing I could come up with. Anyone got a better idea? It would be nice to be able to send out alerts when a service is in an OK state (not recovered, just OK)... Then I could just use check_dummy and have the service checked once per day. Any suggestions? Many thanks in advance, Tom ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Thu Feb 13 10:22:28 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 13 Feb 2003 10:22:28 +0100 Subject: Use of ramdisk Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804CC@storevis.datavis.se> What type of checks are you doing? My system-load decreased dramatically when I changed the check_snmp plugin to not load the mib-list all the time (change the line '#define DEFAULT_MIBLIST "ALL"' to '#define DEFAULT_MIBLIST "NONE"') Regarding the use of RAM-disk, the biggest drawback is that it uses RAM. I dont know how much space you need - On my server the directory var/archives contains logiles from jan 13 to today and takes up about 28Mb /FredrikW -----Original Message----- From: Atul Gosain [mailto:atul at mindsw.com] Sent: Thu 13-Feb-03 08:57 To: nagios Cc: Subject: [Nagios-users] Use of ramdisk Hi Im using Nagios to monitor about 35 hosts and 250 services on my network. The server is P-3 500Mhz and 256 mb memory running Redhat Linux 7.2 and kernel version of 2.4.7-10. The CPU load of the server used for monitoring is increasing day by day. We have allready tried to optimize the services checks delay etc, but still there needs to be some optimization. I have seen the page in the documentation of Nagios about tuning the performance. Im left with an option of going for the ramdisk for storing the logs. Has anybody used Ramdisk before. What are implications of using ramdisk?? Please advice. Thanks Atul. -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Thu Feb 13 10:27:55 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 13 Feb 2003 10:27:55 +0100 Subject: SMTP Checks Always Critical Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804CF@storevis.datavis.se> You should have this line in check_smtp.c: #define SMTP_QUIT "QUIT\r\n" If you don't - Fix it and recompile... /FredrikW -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Wed 12-Feb-03 16:17 To: Sarkees, Steve; Tom DE BLENDE Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] SMTP Checks Always Critical As a followup to my previous short email, the problem is that Exchange expects to see a \r\n after the QUIT but the previous plugin version only sent a \r (or \n, I can't remember). The net effect was that while the SMTP service would respond OK, the connection wouldn't terminate properly leading to the CRITICAL status because of a timeout. -- Marc > -----Original Message----- > From: Sarkees, Steve [mailto:steves at ipctech.com] > Sent: Wednesday, February 12, 2003 8:40 AM > To: 'Tom DE BLENDE' > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] SMTP Checks Always Critical > > Hope this helps.. I appreciate the help. > > ##Verbose Output in Nagios (actually show critical) > > SMTP > CRITICAL 02-12-2003 09:47:11 8d 10h 41m 53s 6/6 SMTP OK - 0 sec. > response > time, 220 vafb.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 > ready at Wed, 12 Feb 2003 09:43:52 -0500 > > > ##Checkcommands.cfg for check_smtp > > define command { > command_name check_smtp > command_line $USER1$/check_smtp -H $HOSTADDRESS$ -c 120 > -v > } > > > ##Services.cfg Config: > > define service { > use generic-service ; Name of service > template to use > host_name VFBEXCHANGE2 > service_description SMTP > is_volatile 0 > check_period 24x7 > max_check_attempts 6 > normal_check_interval 5 > retry_check_interval 2 > contact_groups engineering > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_smtp > } > > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Wednesday, February 12, 2003 9:41 AM > To: Sarkees, Steve > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SMTP Checks Always Critical > > > > > "Sarkees, Steve" wrote: > > > >It is possible that my syntax is incorrect..?.. > > Well, if you'd paste it here, we could have a look... Together with > the output... > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 13 10:54:42 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 13 Feb 2003 10:54:42 +0100 Subject: Daily notification References: <9EA0F1554816EB499A4B1136B80E8DE27804D0@storevis.datavis.se> Message-ID: <3E4B6B62.B99A4CE8@gcc.dhl.com> Now why didn't I think of that? One thing though: it should only run once per day, and at 16:05 sharp. How would you go about that? define service{ normal_check_interval 1440 retry_check_interval 1440 } and timeperiod define timeperiod{ timeperiod_name beepertest alias Beeper Test sunday 16:00-16:01 monday 16:00-16:01 tuesday 16:00-16:01 wednesday 16:00-16:01 thursday 16:00-16:01 friday 16:00-16:01 saturday 16:00-16:01 } Will this work? Fredrik W?nglund wrote: > > Why not set up a service in Nagios an have it call the 'beeper-function'? > > /FredrikW > > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thu 13-Feb-03 09:16 > To: nagios-users > Cc: > Subject: [Nagios-users] Daily notification > Hi all, > > We want Nagios to send a page to the beeper every day at 4 PM to see > it's still alive and the beeps are working. Is there any way to > achieve this by using the external command file? I couldn't see it in > the list of commands, but maybe it's an undocumented feature > (Copyright Microsoft Inc.). > > An alternative would be to write a small script that pipes a > "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a > dummy service to make it go into warning/critical. A mail can then be > sent out. Afterwards that same script should pipe another > "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return > the service state back to OK. > > Pretty lame, but it's the best thing I could come up with. Anyone got > a better idea? > > It would be nice to be able to send out alerts when a service is in an > OK state (not recovered, just OK)... Then I could just use check_dummy > and have the service checked once per day. > > Any suggestions? > > Many thanks in advance, > Tom > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Thu Feb 13 11:10:48 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 13 Feb 2003 11:10:48 +0100 Subject: Daily notification Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804D1@storevis.datavis.se> An other possibility is to run it more often an check the current time in the check-command. /FredrikW -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: Thu 13-Feb-03 10:54 To: Fredrik W?nglund Cc: nagios-users Subject: Re: [Nagios-users] Daily notification Now why didn't I think of that? One thing though: it should only run once per day, and at 16:05 sharp. How would you go about that? define service{ normal_check_interval 1440 retry_check_interval 1440 } and timeperiod define timeperiod{ timeperiod_name beepertest alias Beeper Test sunday 16:00-16:01 monday 16:00-16:01 tuesday 16:00-16:01 wednesday 16:00-16:01 thursday 16:00-16:01 friday 16:00-16:01 saturday 16:00-16:01 } Will this work? Fredrik W?nglund wrote: > > Why not set up a service in Nagios an have it call the 'beeper-function'? > > /FredrikW > > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thu 13-Feb-03 09:16 > To: nagios-users > Cc: > Subject: [Nagios-users] Daily notification > Hi all, > > We want Nagios to send a page to the beeper every day at 4 PM to see > it's still alive and the beeps are working. Is there any way to > achieve this by using the external command file? I couldn't see it in > the list of commands, but maybe it's an undocumented feature > (Copyright Microsoft Inc.). > > An alternative would be to write a small script that pipes a > "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a > dummy service to make it go into warning/critical. A mail can then be > sent out. Afterwards that same script should pipe another > "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return > the service state back to OK. > > Pretty lame, but it's the best thing I could come up with. Anyone got > a better idea? > > It would be nice to be able to send out alerts when a service is in an > OK state (not recovered, just OK)... Then I could just use check_dummy > and have the service checked once per day. > > Any suggestions? > > Many thanks in advance, > Tom > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From avh at inbodan.dk Thu Feb 13 11:19:35 2003 From: avh at inbodan.dk (Allan Hansen, INBODAN) Date: Thu, 13 Feb 2003 11:19:35 +0100 Subject: SV: Daily notification Message-ID: <03630F4AC119D311B0DF0008C716506F016AC2DC@ARHIN02> Hi I use a cron job. It runs check_nagios and sends the result as an SMS message to my mobile phone. Just my 2 cents ... /Allan -----Oprindelig meddelelse----- Fra: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sendt: 13. februar 2003 10:55 Til: Fredrik W?nglund Cc: nagios-users Emne: Re: [Nagios-users] Daily notification Now why didn't I think of that? One thing though: it should only run once per day, and at 16:05 sharp. How would you go about that? define service{ normal_check_interval 1440 retry_check_interval 1440 } and timeperiod define timeperiod{ timeperiod_name beepertest alias Beeper Test sunday 16:00-16:01 monday 16:00-16:01 tuesday 16:00-16:01 wednesday 16:00-16:01 thursday 16:00-16:01 friday 16:00-16:01 saturday 16:00-16:01 } Will this work? Fredrik W?nglund wrote: > > Why not set up a service in Nagios an have it call the 'beeper-function'? > > /FredrikW > > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thu 13-Feb-03 09:16 > To: nagios-users > Cc: > Subject: [Nagios-users] Daily notification > Hi all, > > We want Nagios to send a page to the beeper every day at 4 PM to see > it's still alive and the beeps are working. Is there any way to > achieve this by using the external command file? I couldn't see it in > the list of commands, but maybe it's an undocumented feature > (Copyright Microsoft Inc.). > > An alternative would be to write a small script that pipes a > "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a > dummy service to make it go into warning/critical. A mail can then be > sent out. Afterwards that same script should pipe another > "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return > the service state back to OK. > > Pretty lame, but it's the best thing I could come up with. Anyone got > a better idea? > > It would be nice to be able to send out alerts when a service is in an > OK state (not recovered, just OK)... Then I could just use check_dummy > and have the service checked once per day. > > Any suggestions? > > Many thanks in advance, > Tom > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atul at mindsw.com Thu Feb 13 11:19:18 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 13 Feb 2003 15:49:18 +0530 Subject: Use of ramdisk] Message-ID: <3E4B7126.5020208@mindsw.com> -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- -------------- next part -------------- An embedded message was scrubbed... From: Atul Gosain Subject: Re: [Nagios-users] Use of ramdisk Date: Thu, 13 Feb 2003 15:39:14 +0530 Size: 2774 URL: From atul at mindsw.com Thu Feb 13 11:27:29 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 13 Feb 2003 15:57:29 +0530 Subject: Use of ramdisk In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE27804D2@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE27804D2@storevis.datavis.se> Message-ID: <3E4B7311.7020801@mindsw.com> I refered to this documentation. http://nagios.sourceforge.net/docs/1_0/tuning.html This para specifies that *Use a ramdisk for holding status data*. If you're using the standard status log and you're /not/ using aggregated status updates, consider putting the directory where the status log is stored on a ramdisk. This will speed things up quite a bit (in both the core program and the CGIs) because it saves a lot of interrupts and disk thrashing. Regards Atul Fredrik W?nglund wrote: >If i got the thing right, Nagios updates the log-file each time a check is done, and if archiving i enabled the file is copied to the archive at regular intervals. >This means that the file that Nagios works with should always be cached, and therefore putting it in an RAM-disk would not give any more performance (probably slightly less). > > >/FredrikW > > >-----Original Message----- >From: Atul Gosain [mailto:atul at mindsw.com] >Sent: Thu 13-Feb-03 11:09 >To: Fredrik W?nglund >Cc: >Subject: Re: [Nagios-users] Use of ramdisk >Hi > >Im not using check_snmp plugin for any service checks, allthough im >using mrtg on this server which uses a lot of snmp checks. >In the nagios plugins, most commonly i see a load increase when >check_dhcp plugin executes. It puts too much load. >Has anybody used check_dhcp before. Allthough its serving my purpose but >taking too much load on cpu. >What do u say. >Again, will the usage of ram disk feasible in short time. >Anybody??? > >Regards >Atul >Fredrik W?nglund wrote: > > > >>What type of checks are you doing? My system-load decreased dramatically when I changed the check_snmp plugin to not load the mib-list all the time (change the line '#define DEFAULT_MIBLIST "ALL"' to '#define DEFAULT_MIBLIST "NONE"') >> >>Regarding the use of RAM-disk, the biggest drawback is that it uses RAM. I dont know how much space you need - On my server the directory var/archives contains logiles from jan 13 to today and takes up about 28Mb >> >> >>/FredrikW >> >>-----Original Message----- >>From: Atul Gosain [mailto:atul at mindsw.com] >>Sent: Thu 13-Feb-03 08:57 >>To: nagios >>Cc: >>Subject: [Nagios-users] Use of ramdisk >>Hi >> >>Im using Nagios to monitor about 35 hosts and 250 services on my network. >>The server is P-3 500Mhz and 256 mb memory running Redhat Linux 7.2 and >>kernel version of 2.4.7-10. >>The CPU load of the server used for monitoring is increasing day by day. >>We have allready tried to optimize the services checks delay etc, but >>still there needs to be some optimization. >> >>I have seen the page in the documentation of Nagios about tuning the >>performance. >>Im left with an option of going for the ramdisk for storing the logs. >>Has anybody used Ramdisk before. >>What are implications of using ramdisk?? >>Please advice. >> >>Thanks >>Atul. >> >> >> >> >> > > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Thu Feb 13 11:35:03 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 13 Feb 2003 11:35:03 +0100 Subject: statusmap.cgi Question - How to make it Pretty Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804D4@storevis.datavis.se> I looked at Tkined, but how do you move an icon???? /FredrikW -----Original Message----- From: Mark Musone [mailto:mmusone at shatterit.com] Sent: Wed 12-Feb-03 17:12 To: Ackim Chisha Cc: Chris Stankaitis; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] statusmap.cgi Question - How to make it Pretty i'd suggest laying it out in tkined, and then it should be a simple script to write that will take the tkined layout and put it in the nagios format. -Mark On Wed, Feb 12, 2003 at 06:05:12PM +0200, Ackim Chisha wrote: > Hi Cris, > > I have a similar problem like yours. I have about 150 hosts to monitor, > and all the layout methods available are a total mess. > Earlier I asked the same question I had no response so I have taken it > may be you only have to do it the manual way by specifying the > coordinates but can you imagine doing that for more that 150 hosts!! > > I now regret why I moved from Netsaint to nagios. Yes netsaint had > something called saintmap that you could use to draw your host layout > and then it would set the coordinates for you. > > Any way I guess am not helping much but just trying to shed more light. > I think we need to write one. > > Thanks, > Ackim > > Chris Stankaitis wrote: > > > > > I personally don't care too much for the Status Map, it's nice to look > > at but ultimately there are much more important screens in Nagios.. > > However the Non-Techie Management types love the little pictures and > > network layout graph and such... so it has become my problem :) > > > > Problem is with 70+ hosts even after defining and seting up parents > > the thng is still a MAJOR mess... it seems the only solution is to > > define manual XYZ coordinates, which seems like a VERY LONG job. > > > > Does anyone have any advice out there on how I can do this in the > > easiest most painless way possible?? I heard rumors that in the day > > of Netsaint there was a GUI which would read in the config let you > > drag n' drop things to where you want them, then would write out the > > configs with the proper XYZ coordinates. > > > > Does this still exist and does it work with the new template configs?? > > if not is there a comparable method out there to acomplish this > > > > Thanks! > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From irger at fh-rosenheim.de Thu Feb 13 13:47:38 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 13 Feb 2003 13:47:38 +0100 Subject: check_snmp : console use works but service not. rtfm and stfw doesn't help Message-ID: <1045140459.7337.35.camel@ntb00817> Hi, using debian 3.0r1, net-snmp 4.2.3, self-compiled version of nagios-1.0. I can use the command on the console. Like this. ./check_snmp -H 141.60.50.9 -C public -o interfaces.ifNumber.0 SNMP OK - 2 ---------------------------------------- The checkcommand definition looks like. define command{ command_name check_snmp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o $ARG2$ } ------------------------ The Service looks like. define service{ use generic-service host_name comm.rz.fh-rosenheim.de service_description Interface_Numbers is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_snmp!public!interface.ifNumber.0 } But nagios said : SERVICE NOTIFICATION: nagios;comm.rz.fh-rosenheim.de;Interface_Numbers;CRITICAL;notify-by-email;Connection refused by host Nagios runs under user nagios group nagios. I run the console use as user nagios. Greetings. -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joknight at blueyonder.co.uk Thu Feb 13 13:56:18 2003 From: joknight at blueyonder.co.uk (joknight at blueyonder.co.uk) Date: Thu, 13 Feb 2003 12:56:18 -0000 Subject: check_nt syntax for USEDDISKSPACE in checkcommand.cfg Message-ID: <169df01c2d35f$4cf08460$748017ac@blueyonder.net> Hi, I have just set Nagios up and am trying to get the check_nt command configured correctly to monitor diskspace. I have installed the nsclient service on a few NT/2000 servers and have copied the check_nt binary into the libexec directory. I can run the check_nt command with the -v USEDDISKSPACE -l manually and it reports the free space on the drive with no problems. When I looked in my checkcommand.cfg there was no entry for check_nt, so I added the following: define command{ command_name check_nt_space_d command_line $USER1$/check_nt -H $HOSTADDRESS -v USEDDISKSPACE -l d } When I add the service to a host it runs but I get 'null' returned. What syntax do I need to use in checkcommand.cfg in order to get this working correctly. I have tried searching for other peoples checkcommand.cfg files on google but have not yet found any. Many thanks for any help, Jo ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From claus at ish.de Thu Feb 13 14:27:52 2003 From: claus at ish.de (claus westerkamp) Date: Thu, 13 Feb 2003 14:27:52 +0100 Subject: nagios mail-notification subject Message-ID: <3E4B9D58.2030506@ish.de> Hello, how/where can I format the subject of the messages nagios is sending? so far its blank and Id like to have the host+service in it. helps to verify urgency of problems when I receive mail on my mobile (and it only displays the subject not the body)... thanks ind advance claus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 13 14:32:02 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 13 Feb 2003 07:32:02 -0600 Subject: Daily notification Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D400D@mismail.ena.com> It seems to me a much simpler solution is to have a very simple shell or perl script call check_nagios the page you with the results. Stick that in cro to run at 5 16 * * * and you're all set. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Tom DE BLENDE To: Fredrik W?nglund CC: nagios-users Sent: Thu Feb 13 03:54:42 2003 Subject: Re: [Nagios-users] Daily notification Now why didn't I think of that? One thing though: it should only run once per day, and at 16:05 sharp. How would you go about that? define service{ normal_check_interval 1440 retry_check_interval 1440 } and timeperiod define timeperiod{ timeperiod_name beepertest alias Beeper Test sunday 16:00-16:01 monday 16:00-16:01 tuesday 16:00-16:01 wednesday 16:00-16:01 thursday 16:00-16:01 friday 16:00-16:01 saturday 16:00-16:01 } Will this work? Fredrik W?nglund wrote: > > Why not set up a service in Nagios an have it call the 'beeper-function'? > > /FredrikW > > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thu 13-Feb-03 09:16 > To: nagios-users > Cc: > Subject: [Nagios-users] Daily notification > Hi all, > > We want Nagios to send a page to the beeper every day at 4 PM to see > it's still alive and the beeps are working. Is there any way to > achieve this by using the external command file? I couldn't see it in > the list of commands, but maybe it's an undocumented feature > (Copyright Microsoft Inc.). > > An alternative would be to write a small script that pipes a > "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a > dummy service to make it go into warning/critical. A mail can then be > sent out. Afterwards that same script should pipe another > "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return > the service state back to OK. > > Pretty lame, but it's the best thing I could come up with. Anyone got > a better idea? > > It would be nice to be able to send out alerts when a service is in an > OK state (not recovered, just OK)... Then I could just use check_dummy > and have the service checked once per day. > > Any suggestions? > > Many thanks in advance, > Tom > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ton.Voon at egg.com Thu Feb 13 14:29:42 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu, 13 Feb 2003 13:29:42 -0000 Subject: check_nt syntax for USEDDISKSPACE in checkcom mand.cfg Message-ID: <53104E20A25CD411B556009027E50636064D52E0@pnnemp02.pn.egg.com> You're missing a $ at the end of $HOSTADDRESS$ > -----Original Message----- > From: joknight at blueyonder.co.uk [SMTP:joknight at blueyonder.co.uk] > Sent: Thursday, February 13, 2003 12:56 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt syntax for USEDDISKSPACE in > checkcommand.cfg > > Hi, > > I have just set Nagios up and am trying to get the check_nt command > configured correctly to monitor diskspace. I have installed the nsclient > service on a few NT/2000 servers and have copied the check_nt binary into > the libexec directory. I can run the check_nt command with the -v > USEDDISKSPACE -l manually and it reports the free space on > the drive with no problems. > > When I looked in my checkcommand.cfg there was no entry for check_nt, so I > added the following: > > define command{ > command_name check_nt_space_d > command_line $USER1$/check_nt -H $HOSTADDRESS -v USEDDISKSPACE > -l d > } > > When I add the service to a host it runs but I get 'null' returned. What > syntax do I need to use in checkcommand.cfg in order to get this working > correctly. I have tried searching for other peoples checkcommand.cfg files > on google but have not yet found any. > > Many thanks for any help, > Jo > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 13 14:36:26 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 13 Feb 2003 07:36:26 -0600 Subject: nagios mail-notification subject Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D400E@mismail.ena.com> Look in commands.cfg. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: claus westerkamp To: nagios-users at lists.sourceforge.net Sent: Thu Feb 13 07:27:52 2003 Subject: [Nagios-users] nagios mail-notification subject Hello, how/where can I format the subject of the messages nagios is sending? so far its blank and Id like to have the host+service in it. helps to verify urgency of problems when I receive mail on my mobile (and it only displays the subject not the body)... thanks ind advance claus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdeblend at gcc.dhl.com Thu Feb 13 14:34:14 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 13 Feb 2003 14:34:14 +0100 Subject: Daily notification References: <5DB017510818EC468B05BD7BD9EACF83032D400D@mismail.ena.com> Message-ID: <3E4B9ED6.8A53AAA8@gcc.dhl.com> Simpler? Yes. But I'd like Nagios to initiate the actual sending of the mail. So, I've written a script that is called as a service check and sends the page. Thanks for your reply! Marc Powell wrote: > > It seems to me a much simpler solution is to have a very simple > shell or perl script call check_nagios the page you with the > results. Stick that in cro to run at 5 16 * * * and you're all set. > > -- > Marc > > Sent from a very tiny wireless device with a very tiny unlit > keyboard. > > -----Original Message----- > From: Tom DE BLENDE > To: Fredrik W?nglund > CC: nagios-users > Sent: Thu Feb 13 03:54:42 2003 > Subject: Re: [Nagios-users] Daily notification > > Now why didn't I think of that? > > One thing though: it should only run once per day, and at 16:05 > sharp. > How would you go about that? > > define service{ > normal_check_interval 1440 > retry_check_interval 1440 > } > > and timeperiod > > define timeperiod{ > timeperiod_name beepertest > alias Beeper Test > sunday 16:00-16:01 > monday 16:00-16:01 > tuesday 16:00-16:01 > wednesday 16:00-16:01 > thursday 16:00-16:01 > friday 16:00-16:01 > saturday 16:00-16:01 > } > > Will this work? > > Fredrik W?nglund wrote: > > > > Why not set up a service in Nagios an have it call the > 'beeper-function'? > > > > /FredrikW > > > > -----Original Message----- > > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > > Sent: Thu 13-Feb-03 09:16 > > To: nagios-users > > Cc: > > Subject: [Nagios-users] Daily notification > > Hi all, > > > > We want Nagios to send a page to the beeper every day at 4 PM to > see > > it's still alive and the beeps are working. Is there any way to > > achieve this by using the external command file? I couldn't see it > in > > the list of commands, but maybe it's an undocumented feature > > (Copyright Microsoft Inc.). > > > > An alternative would be to write a small script that pipes a > > "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a > > dummy service to make it go into warning/critical. A mail can then > be > > sent out. Afterwards that same script should pipe another > > "PROCESS_SERVICE_CHECK_RESULT" to the external command file to > return > > the service state back to OK. > > > > Pretty lame, but it's the best thing I could come up with. Anyone > got > > a better idea? > > > > It would be nice to be able to send out alerts when a service is > in an > > OK state (not recovered, just OK)... Then I could just use > check_dummy > > and have the service checked once per day. > > > > Any suggestions? > > > > Many thanks in advance, > > Tom > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GPotter at MarathonOil.com Thu Feb 13 14:37:28 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 13 Feb 2003 07:37:28 -0600 Subject: Daily notification Message-ID: I set up a service called test-page that only goes out at 10:00 Friday morning. I feel this gives me a warm and fuzzy that it is going to be working over the weekend. You could add other days in the timeperiod if you wanted a page on other days. I also have a service that checks the qpage queue to see if pages are stacking up. This runs once an hour so I have another indication that pages are working as well. Greg define service{ name service-test-page-template service_description send-test-page check_command send-test-page max_check_attempts 1 normal_check_interval 60 retry_check_interval 60 check_period fridaymorning notification_interval 60 notification_period fridaymorning notification_options w,c,r contact_groups unix-admins register 0 } define timeperiod{ timeperiod_name fridaymorning alias Friday at 10:00 friday 10:00-10:30 } > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thursday, February 13, 2003 2:16 AM > To: nagios-users > Subject: [Nagios-users] Daily notification > > > Hi all, > > We want Nagios to send a page to the beeper every day at 4 PM to see > it's still alive and the beeps are working. Is there any way to > achieve this by using the external command file? I couldn't see it in > the list of commands, but maybe it's an undocumented feature > (Copyright Microsoft Inc.). > > An alternative would be to write a small script that pipes a > "PROCESS_SERVICE_CHECK_RESULT" to the external command file for a > dummy service to make it go into warning/critical. A mail can then be > sent out. Afterwards that same script should pipe another > "PROCESS_SERVICE_CHECK_RESULT" to the external command file to return > the service state back to OK. > > Pretty lame, but it's the best thing I could come up with. Anyone got > a better idea? > > It would be nice to be able to send out alerts when a service is in an > OK state (not recovered, just OK)... Then I could just use check_dummy > and have the service checked once per day. > > Any suggestions? > > Many thanks in advance, > Tom > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 13 14:39:49 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 13 Feb 2003 14:39:49 +0100 Subject: nagios mail-notification subject References: <3E4B9D58.2030506@ish.de> Message-ID: <3E4BA025.622467A8@gcc.dhl.com> most likely in your misccommands.cfg... claus westerkamp wrote: > > Hello, > > how/where can I format the subject of the messages nagios is sending? so > far its blank and Id like to have the host+service in it. > > helps to verify urgency of problems when I receive mail on my mobile > (and it only displays the subject not the body)... > > thanks ind advance > claus > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wgong at smu.edu.sg Thu Feb 13 14:57:36 2003 From: wgong at smu.edu.sg (GONG Wei) Date: Thu, 13 Feb 2003 21:57:36 +0800 Subject: check_nt syntax for USEDDISKSPACE in checkcom mand.cfg Message-ID: <108506BDA45F1F45AA6EDE147A27FC01020140AD@mail1.smu.edu.sg> Looks like you've omitted an ending $ after the "HOSTADDRESS". Anyway I am using this in checkcommand.cfg define command{ command_name check-nt-disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } and the below in service.cfg define service{ use generic-net-service hostgroup_name all-acs service_description DiskUsage_C check_command check-nt-disk!c!80!90 } ================================== If in doubt you can also try to run the check_nt command from shell to ensure you get its calling syntax right. -----Original Message----- From: joknight at blueyonder.co.uk [mailto:joknight at blueyonder.co.uk] Sent: Thursday, February 13, 2003 8:56 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt syntax for USEDDISKSPACE in checkcommand.cfg Hi, I have just set Nagios up and am trying to get the check_nt command configured correctly to monitor diskspace. I have installed the nsclient service on a few NT/2000 servers and have copied the check_nt binary into the libexec directory. I can run the check_nt command with the -v USEDDISKSPACE -l manually and it reports the free space on the drive with no problems. When I looked in my checkcommand.cfg there was no entry for check_nt, so I added the following: define command{ command_name check_nt_space_d command_line $USER1$/check_nt -H $HOSTADDRESS -v USEDDISKSPACE -l d } When I add the service to a host it runs but I get 'null' returned. What syntax do I need to use in checkcommand.cfg in order to get this working correctly. I have tried searching for other peoples checkcommand.cfg files on google but have not yet found any. Many thanks for any help, Jo ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at cerbernet.co.uk Thu Feb 13 14:49:44 2003 From: nagios at cerbernet.co.uk (Tony) Date: Thu, 13 Feb 2003 13:49:44 -0000 Subject: check_nt syntax for USEDDISKSPACE in checkcommand.cfg In-Reply-To: <169df01c2d35f$4cf08460$748017ac@blueyonder.net> References: <169df01c2d35f$4cf08460$748017ac@blueyonder.net> Message-ID: <003c01c2d366$c4b77ec0$f81fc3c1@TONYS> I would guess because you have not supplied any "warning" or "critical" values for nagios to act upon. If it does not see any CRITICAL, OK or WARNING values then I am not surprised it has not produced any output. To your checkcommand entry you would be better putting $USER1$/check_nt -H $HOSTADDRESS -v USEDDISKSPACE -l d $ARG1$ -w $ARG2$ -c $ARG3$ $ARG1$ = Partition $ARG2$ = Warning value in % used $ARG3$ = Warning value in % used And your service.cfg entry would be something like define service{ use generic-nt-server host_name nt_server service_description D DISK is_volatile 0 contact_groups nt_contacts check_command check_nt_disk!D!80!90 } Here is specified $ARG1$, $ARG2$ and $ARG3$ each separated by a "!". Obviously change the host_name, contact_groups and the service template to use. By doing it this way you can use the same checkcommand definition for all partitions on you NT boxes. Hope this helps. Tony > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of joknight at blueyonder.co.uk > Sent: 13 February 2003 12:56 > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt syntax for USEDDISKSPACE in > checkcommand.cfg > > Hi, > > I have just set Nagios up and am trying to get the check_nt command configured > correctly to monitor diskspace. I have installed the nsclient service on a few > NT/2000 servers and have copied the check_nt binary into the libexec directory. I > can run the check_nt command with the -v USEDDISKSPACE -l > manually and it reports the free space on the drive with no problems. > > When I looked in my checkcommand.cfg there was no entry for check_nt, so I > added the following: > > define command{ > command_name check_nt_space_d > command_line $USER1$/check_nt -H $HOSTADDRESS -v > USEDDISKSPACE -l d > } > > When I add the service to a host it runs but I get 'null' returned. What syntax do I > need to use in checkcommand.cfg in order to get this working correctly. I have tried > searching for other peoples checkcommand.cfg files on google but have not yet > found any. > > Many thanks for any help, > Jo > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any > issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From claus at ish.de Thu Feb 13 15:59:03 2003 From: claus at ish.de (claus westerkamp) Date: Thu, 13 Feb 2003 15:59:03 +0100 Subject: nagios mail-notification subject References: <3E4B9D58.2030506@ish.de> <3E4BA025.622467A8@gcc.dhl.com> Message-ID: <3E4BB2B7.4090605@ish.de> thx for help everybody. it was the mail syntax under solaris. :) thank you claus Tom DE BLENDE wrote: > most likely in your misccommands.cfg... > > claus westerkamp wrote: > >>Hello, >> >>how/where can I format the subject of the messages nagios is sending? so >>far its blank and Id like to have the host+service in it. >> >>helps to verify urgency of problems when I receive mail on my mobile >>(and it only displays the subject not the body)... >> >>thanks ind advance >>claus >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgj at unb.ca Thu Feb 13 16:13:33 2003 From: mgj at unb.ca (Michael Jewett) Date: Thu, 13 Feb 2003 11:13:33 -0400 Subject: Questions about flexlm Message-ID: <004f01c2d372$792ba0b0$87a9ca83@unb.ca> I apologize if this topic has already been discussed, but I couldn't find the answer I'm looking for in the archives. Our department has a license manger running and would like to know what check_flexlm can give us. I don't know anything about the license manager, except which box it runs on. I have lmstat installed, but can't figure what I need to have for a license_file. Could someone give me a sample file, plus tell me what I can gain by monitoring it. The more details the better. Thanks, Michael ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jarett_DeAngelis at fujifilm.com Thu Feb 13 18:02:34 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Thu, 13 Feb 2003 12:02:34 -0500 Subject: check_citrix doesn't return any data? Message-ID: By the way, I forgot to mention this: I also created another check command just for giggles because it seemed like no matter what I did it would not pass arguments, and this is what I wrote: # 'test_citrix' command definition define command { command_name test_citrix command_line $USER1$/check_citrix -C $HOSTADDRESS$ -P $ARG1$ } and nothing else. test_citrix!"App 1" doesn't work either, with exactly the same error. Help! ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco_terhorst at hotmail.com Thu Feb 13 18:52:34 2003 From: marco_terhorst at hotmail.com (Marco ter Horst) Date: Thu, 13 Feb 2003 18:52:34 +0100 Subject: Statusmap.cgi etc. Message-ID: Ok, I've had it with this nonsense!!! Here is my situation: I have netsaint running without problems (incl statusmap.cgi) I have nagios running without problems ... (except for the statusmap, trends and histogram CGI's) I have recompiled nagios ... I have recompiled my gd libraries ... NOTHING WORKS :'-( Can somebody pretty please just email me their statusmap.cgi, trends.cgi and histogram.cgi? I'm sure it will work just fine, since I have netsaint running like a sweet l'll baby :-D Thanks in advance _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joknight at blueyonder.co.uk Thu Feb 13 19:09:09 2003 From: joknight at blueyonder.co.uk (Jo Knight) Date: Thu, 13 Feb 2003 18:09:09 -0000 Subject: check_nt syntax for USEDDISKSPACE in checkcommand.cfg References: <003c01c2d366$c4b77ec0$f81fc3c1@TONYS> Message-ID: <000b01c2d38b$01753a90$1ae6c150@sensi> Thanks, I got it working with your advice. ----- Original Message ----- From: "Tony" To: ; Sent: Thursday, February 13, 2003 1:49 PM Subject: RE: [Nagios-users] check_nt syntax for USEDDISKSPACE in checkcommand.cfg > I would guess because you have not supplied any "warning" or "critical" > values for nagios to act upon. > If it does not see any CRITICAL, OK or WARNING values then I am not > surprised it has not produced any output. > > To your checkcommand entry you would be better putting > > $USER1$/check_nt -H $HOSTADDRESS -v USEDDISKSPACE -l d $ARG1$ -w $ARG2$ > -c $ARG3$ > > $ARG1$ = Partition > $ARG2$ = Warning value in % used > $ARG3$ = Warning value in % used > > > And your service.cfg entry would be something like > > > define service{ > use generic-nt-server > host_name nt_server > service_description D DISK > is_volatile 0 > contact_groups nt_contacts > check_command check_nt_disk!D!80!90 > } > > Here is specified $ARG1$, $ARG2$ and $ARG3$ each separated by a "!". > > Obviously change the host_name, contact_groups and the service template > to use. > By doing it this way you can use the same checkcommand definition for > all partitions on you NT boxes. > > Hope this helps. > > Tony > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of joknight at blueyonder.co.uk > > Sent: 13 February 2003 12:56 > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_nt syntax for USEDDISKSPACE in > > checkcommand.cfg > > > > Hi, > > > > I have just set Nagios up and am trying to get the check_nt command > configured > > correctly to monitor diskspace. I have installed the nsclient service > on a few > > NT/2000 servers and have copied the check_nt binary into the libexec > directory. I > > can run the check_nt command with the -v USEDDISKSPACE -l > > > manually and it reports the free space on the drive with no problems. > > > > When I looked in my checkcommand.cfg there was no entry for check_nt, > so I > > added the following: > > > > define command{ > > command_name check_nt_space_d > > command_line $USER1$/check_nt -H $HOSTADDRESS -v > > USEDDISKSPACE -l d > > } > > > > When I add the service to a host it runs but I get 'null' returned. > What syntax do I > > need to use in checkcommand.cfg in order to get this working > correctly. I have tried > > searching for other peoples checkcommand.cfg files on google but have > not yet > > found any. > > > > Many thanks for any help, > > Jo > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any > > issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Thu Feb 13 19:12:46 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Thu, 13 Feb 2003 18:12:46 +0000 Subject: Nagios Startup Errors Message-ID: <3E4BE01E.9000109@IGXGlobal.com> Hello, After spending over 8 hours trying find teh source of this problem, I am giving up and asking? I keep getting the following error on startup. I have tried manually configuring the files as well as using nagat. What am I missing? I saw in the ail archives somebody else had this exact issue, however there was no response. Numerous searches of google for this same issue has also been fruitless. Any help would be tremendously appreciated. Thanks, Babak Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL Reading configuration data... Error: Host 'freelinuxcd.org' has already been defined Error: Could not register host (config file '/usr/local/nagios/etc/hosts.cfg', line 8) ***> One or more problems was encountered while processing the config files... ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jarett_DeAngelis at fujifilm.com Thu Feb 13 19:26:39 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Thu, 13 Feb 2003 13:26:39 -0500 Subject: Fwd: more check_citrix nonreturning woes Message-ID: Stanley, Thanks for your prompt reply. I didn't realize the plugin could take quotes that way. Thanks :) Glad I could help with bug-stomping! Does this mean I have to *include* all those apps in the published application list between A1 and A5 (in your example)? Or do I just have to make sure they're in the correct order, i.e. A1, A5 as opposed to A5, A1? I really don't want to make multiple command definitions for checking multiple #s of published apps if I can avoid it.... so the -P A1 -P A2 thing is definitely a last resort. Also, I recently recompiled Nagios WITHOUT ePN support, so that's not it, and yes, I would be interested in testing a new version of check_citrix :) Do let me know at your earliest convenience... Thanks, Jarett DeAngelis >>> Stanley Hopcroft 02/12/03 09:03PM >>> Dear Sir, I wm writing to thank you for your letter and say, On Wed, Feb 12, 2003 at 07:55:50PM -0500, Jarett DeAngelis wrote: > Hi all, > > I'm at my wits' end over here... been struggling with getting check_citrix to work. > > I can do ./check_citrix -C -W "service","service" -P "service","service" from the command line and it works just fine. > 1 The docco on the plugin needs to be corrected since it will accept -W and -P options of "app1,app2,app3,..". To-do. > My check definition looks like this: > > define command{ > command_name check_citrix > command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -P $ARG2$ > } > > My service definitions look like this: > > # Service definition > define service{ > use generic-service ; Name of service template to use > > host_name host.example.com > service_description citrix > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_citrix!"App1","App2"!"App3","App4" > } > > What am I doing wrong? I think the check_command line is wrong in the service definition. I suggest either 1 check_citrix!"App1,App2"!"App3,App4" or because there is a nasty bug (Thanks !) in check_citrix that makes the order of applications important (ie you have to specify the apps in the same order as specified in the browse list eg if browse list returns them A1,A2,A3,A4,A5 then Bad: -P "A1,A5" Good: -P "A1,A2,A3,A4.A5". Are you interested in testing a new version ? 2 2.1 Change the command_line in checkcommands.cfg to command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -W $ARG2$ -P $ARG3 -P $ARG4$. Pretty slack I know. 2.2 Change check_command in services.cfg to check_citrix!"App1"!"App2"!"App3"!"App4" > The ping services on these hosts work fine, but citrix keeps coming > back critical and the web interface says (No output!) under Status > Information. No output means the plugin failed to write any output. This usually means that 1 The plugin failed to compile under the tricky ePN environment 2 The plugin failed to handle the options and wigged out disgracefully. Bad plugin. No Biscuit. > I'm really at a complete loss here. Is it a problem > with > quotes not being passed properly? Everything was going so > beautifully, too :-/ > > Thanks. You'll get there. At least one huge Citrix site is running this plugin Ok. HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 13 19:34:20 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 13 Feb 2003 12:34:20 -0600 Subject: Statusmap.cgi etc. Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D4016@mismail.ena.com> What os and version, architecture, gd version and nagios version. Those are minimum requirements to fullfill the request or youl end up with statusmap.cgi compiled for HP-UX. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Marco ter Horst To: nagios-users at lists.sourceforge.net Sent: Thu Feb 13 11:52:34 2003 Subject: [Nagios-users] Statusmap.cgi etc. Ok, I've had it with this nonsense!!! Here is my situation: I have netsaint running without problems (incl statusmap.cgi) I have nagios running without problems ... (except for the statusmap, trends and histogram CGI's) I have recompiled nagios ... I have recompiled my gd libraries ... NOTHING WORKS :'-( Can somebody pretty please just email me their statusmap.cgi, trends.cgi and histogram.cgi? I'm sure it will work just fine, since I have netsaint running like a sweet l'll baby :-D Thanks in advance _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jarett_DeAngelis at fujifilm.com Thu Feb 13 19:25:37 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Thu, 13 Feb 2003 13:25:37 -0500 Subject: more check_citrix nonreturning woes Message-ID: Stanley, Thanks for your prompt reply. I didn't realize the plugin could take quotes that way. Thanks :) Glad I could help with bug-stomping! Does this mean I have to *include* all those apps in the published application list between A1 and A5 (in your example)? Or do I just have to make sure they're in the correct order, i.e. A1, A5 as opposed to A5, A1? I really don't want to make multiple command definitions for checking multiple #s of published apps if I can avoid it.... so the -P A1 -P A2 thing is definitely a last resort. Also, I recently recompiled Nagios WITHOUT ePN support, so that's not it, and yes, I would be interested in testing a new version of check_citrix :) Do let me know at your earliest convenience... Thanks, Jarett DeAngelis >>> Stanley Hopcroft 02/12/03 09:03PM >>> Dear Sir, I wm writing to thank you for your letter and say, On Wed, Feb 12, 2003 at 07:55:50PM -0500, Jarett DeAngelis wrote: > Hi all, > > I'm at my wits' end over here... been struggling with getting check_citrix to work. > > I can do ./check_citrix -C -W "service","service" -P "service","service" from the command line and it works just fine. > 1 The docco on the plugin needs to be corrected since it will accept -W and -P options of "app1,app2,app3,..". To-do. > My check definition looks like this: > > define command{ > command_name check_citrix > command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -P $ARG2$ > } > > My service definitions look like this: > > # Service definition > define service{ > use generic-service ; Name of service template to use > > host_name host.example.com > service_description citrix > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_citrix!"App1","App2"!"App3","App4" > } > > What am I doing wrong? I think the check_command line is wrong in the service definition. I suggest either 1 check_citrix!"App1,App2"!"App3,App4" or because there is a nasty bug (Thanks !) in check_citrix that makes the order of applications important (ie you have to specify the apps in the same order as specified in the browse list eg if browse list returns them A1,A2,A3,A4,A5 then Bad: -P "A1,A5" Good: -P "A1,A2,A3,A4.A5". Are you interested in testing a new version ? 2 2.1 Change the command_line in checkcommands.cfg to command_line $USER1$/check_citrix -C $HOSTADDRESS$ -W $ARG1$ -W $ARG2$ -P $ARG3 -P $ARG4$. Pretty slack I know. 2.2 Change check_command in services.cfg to check_citrix!"App1"!"App2"!"App3"!"App4" > The ping services on these hosts work fine, but citrix keeps coming > back critical and the web interface says (No output!) under Status > Information. No output means the plugin failed to write any output. This usually means that 1 The plugin failed to compile under the tricky ePN environment 2 The plugin failed to handle the options and wigged out disgracefully. Bad plugin. No Biscuit. > I'm really at a complete loss here. Is it a problem > with > quotes not being passed properly? Everything was going so > beautifully, too :-/ > > Thanks. You'll get there. At least one huge Citrix site is running this plugin Ok. HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sandromergvaz at uol.com.br Thu Feb 13 20:45:35 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Thu, 13 Feb 2003 16:45:35 -0300 Subject: RES: Nagios Startup Errors In-Reply-To: <3E4BE01E.9000109@IGXGlobal.com> References: <3E4BE01E.9000109@IGXGlobal.com> Message-ID: Babak: Could you send your hosts.cfg? It seems you have a duplicate entry for the host "freelinuxcd.org" (as the error reports...) Att, Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Babak Pasdar Enviada em: quinta-feira, 13 de fevereiro de 2003 15:13 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] Nagios Startup Errors Hello, After spending over 8 hours trying find teh source of this problem, I am giving up and asking? I keep getting the following error on startup. I have tried manually configuring the files as well as using nagat. What am I missing? I saw in the ail archives somebody else had this exact issue, however there was no response. Numerous searches of google for this same issue has also been fruitless. Any help would be tremendously appreciated. Thanks, Babak Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL Reading configuration data... Error: Host 'freelinuxcd.org' has already been defined Error: Could not register host (config file '/usr/local/nagios/etc/hosts.cfg', line 8) ***> One or more problems was encountered while processing the config files... ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.454 / Virus Database: 253 - Release Date: 10/2/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.454 / Virus Database: 253 - Release Date: 10/2/2003 ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From russell at quadrix.com Thu Feb 13 20:31:23 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 13 Feb 2003 14:31:23 -0500 Subject: Plugin Output Message-ID: <3E4BF28B.1080903@quadrix.com> There is a line in common/objects.h that says: #define MAX_PLUGINOUTPUT_LENGTH 352 Now, I'm looking to leverage the perfdata section of the plugin response to return a lot of data, much more than the 352 limit. Would there be any major problems in Nagios if I increased the number by a lot. The actual plugin $OUTPUT$ would still be small, I just need a lot of room for $PERFDATA$. Any help would be appreciated. Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lilesb at ijet.com Thu Feb 13 20:50:44 2003 From: lilesb at ijet.com (Bryan Liles) Date: Thu, 13 Feb 2003 14:50:44 -0500 Subject: Nagios and SOAP Message-ID: <200302131450.44203.lilesb@ijet.com> I have released a demo of what I am planning to do with Nagios and SOAP at http://sourceforge.net/projects/osesm. It is called StatusXML. This is going to be part of the framework for the Osesm application. Currently, this demo only works if you are using mysql for your xdata. I will work on implementing postgresql and the default file way in release 0.0.2. Happy Hacking!!! ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From irenes at wolfram.com Thu Feb 13 21:06:30 2003 From: irenes at wolfram.com (Irene Sakellarakis) Date: Thu, 13 Feb 2003 14:06:30 -0600 (CST) Subject: check_nfs.pl Message-ID: I'm upgrading from Netsaint to Nagios. One of the services originally configured, was check_nfs.pl. I can't seem to find a plugin for nfs services. Is there one, and if so, where can I find it? Thanks in advance, Irene ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Thu Feb 13 21:15:55 2003 From: jasonm at kelman.com (Jason Marshall) Date: Thu, 13 Feb 2003 13:15:55 -0700 (MST) Subject: Plugin Output In-Reply-To: <3E4BF28B.1080903@quadrix.com> References: <3E4BF28B.1080903@quadrix.com> Message-ID: > #define MAX_PLUGINOUTPUT_LENGTH 352 Russell, that value, plus 160 bytes of miscellanous stuff, equals 512 bytes (that's not the interesting part). The interesting part is that's the max size for atomic read/write operations on a names pipe in Linux. On my Solaris Nagios box, it's 5120 for the same atomic operation size limitation, so I bumped up all the relevant stuff by 1024 bytes, and it works fine. I'm not sure where the perfdata would be carried in this case. If it goes through the names pipe (probably), it may cause big problems if you're reading and writing to and from the command file in chunks bigger than 512 bytes... Unfortunately, it's going to be hard to verify if there is (or isn't) a real problem, if you make the change. You may end up with command-file commands being mangled, but maybe so infrequently that you could discount them... Maybe... --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 13 20:18:35 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 13 Feb 2003 13:18:35 -0600 Subject: Nagios Startup Errors Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E14AD@PKDWB03C.ad.sprint.com> Looks like you have 'freelinuxcd.org' defined more than once. Do a 'grep -c freelinuxcd.org hosts.cfg'. Tell us what the result of that is. If it's greater than 1, search hosts.cfg for other occurrences. If it's *not* in that file, do a 'grep -l freelinuxcd.org *' in your /usr/local/nagios/etc directory. Make sure you don't have the host definition more than once in *any* file. jc > -----Original Message----- > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > Sent: Thursday, February 13, 2003 12:13 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Startup Errors > > > > Hello, > > After spending over 8 hours trying find teh source of this > problem, I am > giving up and asking? > > I keep getting the following error on startup. I have tried manually > configuring the files as well as using nagat. What am I > missing? I saw > in the ail archives somebody else had this exact issue, however there > was no response. Numerous searches of google for this same issue has > also been fruitless. > > Any help would be tremendously appreciated. > > Thanks, > > Babak > > Nagios 1.0 > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > Last Modified: 11-24-2002 > License: GPL > > Reading configuration data... > > Error: Host 'freelinuxcd.org' has already been defined > > Error: Could not register host (config file > '/usr/local/nagios/etc/hosts.cfg', line 8) > > > ***> One or more problems was encountered while processing the config > files... > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL > security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maartenh at phreaker.net Thu Feb 13 20:17:11 2003 From: maartenh at phreaker.net (Maarten) Date: Thu, 13 Feb 2003 20:17:11 +0100 Subject: Statusmap.cgi etc. References: Message-ID: <001801c2d394$83733020$195019ac@shadowplay> Besides gd, do you also have the libpng development libraries available? I could mail you mine, in fact, if you still want to, I will. The fact is that it will probably not work, since you will then have an apache version that has been compiled with other libpng libraries then the cgi's I can send you will have been compiled with. I guess you don't want to replace this problem by another one... Are you sure you have all development libraries available from: gd libjpeg libpng zlib In case you are using RedHat 8.0 for example, it is not just sufficient to install the binaries of gd, libjpeg, libpng and zlib. You also need the development packages, i.e.: gd-devel-1.8.4-9.i386.rpm libjpeg-devel-6b-21.i386.rpm libpng-devel-1.2.2-6.i386.rpm zlib-devel-1.1.4-4.i386.rpm maarten > Ok, I've had it with this nonsense!!! > Here is my situation: > I have netsaint running without problems (incl statusmap.cgi) > I have nagios running without problems ... (except for the statusmap, trends > and histogram CGI's) > I have recompiled nagios ... > I have recompiled my gd libraries ... > > NOTHING WORKS :'-( ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 14 00:00:59 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 14 Feb 2003 10:00:59 +1100 Subject: Plugin Output In-Reply-To: ; from jasonm@kelman.com on Thu, Feb 13, 2003 at 01:15:55PM -0700 References: <3E4BF28B.1080903@quadrix.com> Message-ID: <20030214100049.A49274@IPAustralia.Gov.AU> Dear Gentlemen, I am writing to thank you for your letters and say, On Thu, Feb 13, 2003 at 01:15:55PM -0700, Jason Marshall wrote: > > The interesting part is that's the max size for atomic read/write > operations on a names pipe in Linux. > that I think you are correct in identifying this as an important issue. IIRC, POSIX only guaranteeds 512 bytes. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Fri Feb 14 00:31:05 2003 From: jasonm at kelman.com (Jason Marshall) Date: Thu, 13 Feb 2003 16:31:05 -0700 (MST) Subject: Plugin Output In-Reply-To: <20030214100049.A49274@IPAustralia.Gov.AU> References: <20030214100049.A49274@IPAustralia.Gov.AU> Message-ID: > > The interesting part is that's the max size for atomic read/write > > operations on a names pipe in Linux. > > > that I think you are correct in identifying this as an important issue. > IIRC, POSIX only guaranteeds 512 bytes. I don't know if it's POSIX that states that, or what. I do know that the Solaris 8's limit is 5k, and it claims to be POSIX compliant, sooooo... --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From russell at quadrix.com Fri Feb 14 00:40:21 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 13 Feb 2003 18:40:21 -0500 Subject: Plugin Output References: Message-ID: <3E4C2CE5.6030801@quadrix.com> I know the size limit when writing to the command pipe, but why does the same rule apply for plugins writing back to the daemon. Why can't nagios be modified to handle a larger response from the plugin? Does the same pipe limitation for external commands exist within the daemon? Russell Scibetti Jason Marshall wrote: >>#define MAX_PLUGINOUTPUT_LENGTH 352 >> > >Russell, that value, plus 160 bytes of miscellanous stuff, equals 512 >bytes (that's not the interesting part). > >The interesting part is that's the max size for atomic read/write >operations on a names pipe in Linux. > >On my Solaris Nagios box, it's 5120 for the same atomic operation size >limitation, so I bumped up all the relevant stuff by 1024 bytes, and it >works fine. > >I'm not sure where the perfdata would be carried in this case. If it goes >through the names pipe (probably), it may cause big problems if you're >reading and writing to and from the command file in chunks bigger than 512 >bytes... > >Unfortunately, it's going to be hard to verify if there is (or isn't) a >real problem, if you make the change. You may end up with command-file >commands being mangled, but maybe so infrequently that you could discount >them... Maybe... > >--- >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > From a Sun Microsystems bug report (#4102680): > "Workaround: don't pound on the mouse like a wild monkey." > > "I have great faith in fools: > Self confidence my friends call it." -Edgar Allan Poe > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: FREE SSL Guide from Thawte >are you planning your Web Server Security? Click here to get a FREE >Thawte SSL guide and find the answers to all your SSL security issues. >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jarett_DeAngelis at fujifilm.com Fri Feb 14 00:39:43 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Thu, 13 Feb 2003 18:39:43 -0500 Subject: more check_citrix confusion Message-ID: Hi again, As an experiment I changed my test_citrix command so that it took NO arguments from services.cfg. Instead I just wrote the whole thing out: command_line $USER1$/check_citrix -C test.host.com -P "App" And it STILL says "No Output!" Tried this exact command on the command line su-ed as nagios and it worked fine. What the heck is going on?? ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From R.Ruecker at st-ag.de Fri Feb 14 00:52:21 2003 From: R.Ruecker at st-ag.de (Ruecker, Rainer) Date: Fri, 14 Feb 2003 00:52:21 +0100 Subject: Division by zero error in Win2K. Message-ID: Patrick Benson (TT) wrote on Tuesday, February 11, 2003 6:37 PM > I have been upgrading several Win2K and NT4 servers from > PNSClient version > 1.0.6.2 to version 1.0.7.1. Out of thirty upgrades, one system is now > generating a "Division by zero" application error every five > minutes, and it > sites NSClient as the source with an Event ID: 2. The > original install was > uneventful, and uninstalling and reinstalling the PNSClient > did not help. > The MS knowledge base was a bust as to what might be causing this. > > Has anyone had a similar experience, or knows of a fix? > Please let me know. > Thanks! First Guess: This specific machine does not have a high load on its CPU? Regards, Rainer ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 14 00:58:01 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 14 Feb 2003 10:58:01 +1100 Subject: Fwd: more check_citrix nonreturning woes In-Reply-To: ; from Jarett_DeAngelis@fujifilm.com on Thu, Feb 13, 2003 at 01:26:39PM -0500 References: Message-ID: <20030214105750.F49274@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say that I think I am more part of the problem than the solution. On Thu, Feb 13, 2003 at 01:26:39PM -0500, Jarett DeAngelis wrote: > Stanley, > > Thanks for your prompt reply. > > I didn't realize the plugin could take quotes that way. Thanks :) > Yep. Thanks to Mr T De Blende. > Glad I could help with bug-stomping! Does this mean I have to *include* all those apps in the published application list > between A1 and A5 (in your example)? Or do I just have to make sure > they're in the correct order, i.e. A1, A5 as opposed to A5, A1? No. My last letter was using a pre-release check_citrix that had that unfortunate characteristic. Here is a more accurate version. pc09011> ./check_citrix -h | head check_citrix (netsaint-plugins 1.2.9-4) 1.1 The netsaint plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 2002 Ed Rolison/Tom De Blende/Karl DeBisschop/S Hopcroft This is the current release version. There are no _known_ problems with this version (despite what I said yesterday). eg pc09011> ./check_citrix -C metaframe -P'a' Failed. "a" not found in list of published applications "blotus,Desktop,NewDesktop,StableTop,TestDesk" from master browser "10.0.100.23". pc09011> ./check_citrix -C metaframe -P StableTop Ok. Citrix master browser "10.0.100.23" reported that the published application "StableTop" is available. pc09011> ./check_citrix -C metaframe -P 'StableTop,blotus' Ok. Citrix master browser "10.0.100.23" reported that the published applications "StableTop,blotus" are available. pc09011> And the order of the published applications _doesn't matter_ (despite what I said yesterday). > > I really don't want to make multiple command definitions for checking multiple #s of published apps if I can > avoid it.... so the -P A1 -P A2 thing is definitely a last resort. > Not necessary. See Mr De Blendes letter also. > Also, I recently recompiled Nagios WITHOUT ePN support, so that's not it, and yes, I would be interested in > testing a new version of check_citrix :) > The plugin works fine with my Nag-1.0/Perl 5.005_03 production ePN system. > Do let me know at your earliest convenience... > > Thanks, > Jarett DeAngelis > So to sum up, I think all you need do is change the args so that your crit and warn published applications are in the same string separated by commas. Do _not_ include spaces in the application lists. Spaces can be part of a published application name so -P'App1 , App2' is interpreted as -P'App1 ' -P'App2 '. HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Fri Feb 14 01:01:54 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Thu, 13 Feb 2003 19:01:54 -0500 Subject: Nagios Startup Errors References: <74D428BDBFD5D04CB54E84499ECA29DB014E14AD@PKDWB03C.ad.sprint.com> Message-ID: <104518091400004a8a@imgxs42> Jim, Thank you for yor response. All I can say is that I have as simple of a config as one could have. I just implemented teh bare minimum to get Nagios going in each of the appropriate files. This is the entire content of my hosts.cfg define host { host_name freelinuxcd.org alias Free Linux CD Project Server address www.freelinuxcd.org name generic-host register 1 use generic-host max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r notifications_enabled 1 check_command check_ping!-w 200,20% -c 300,30% -p 5 -t 1000 checks_enabled 0 event_handler_enabled 1 low_flap_threshold 1 high_flap_threshold 2 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 } Thanks Babak Carroll, Jim P [Contractor] wrote: > Looks like you have 'freelinuxcd.org' defined more than once. > > Do a 'grep -c freelinuxcd.org hosts.cfg'. Tell us what the result of that > is. If it's greater than 1, search hosts.cfg for other occurrences. > > If it's *not* in that file, do a 'grep -l freelinuxcd.org *' in your > /usr/local/nagios/etc directory. Make sure you don't have the host > definition more than once in *any* file. > > jc > > > -----Original Message----- > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > Sent: Thursday, February 13, 2003 12:13 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios Startup Errors > > > > > > > > Hello, > > > > After spending over 8 hours trying find teh source of this > > problem, I am > > giving up and asking? > > > > I keep getting the following error on startup. I have tried manually > > configuring the files as well as using nagat. What am I > > missing? I saw > > in the ail archives somebody else had this exact issue, however there > > was no response. Numerous searches of google for this same issue has > > also been fruitless. > > > > Any help would be tremendously appreciated. > > > > Thanks, > > > > Babak > > > > Nagios 1.0 > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > Last Modified: 11-24-2002 > > License: GPL > > > > Reading configuration data... > > > > Error: Host 'freelinuxcd.org' has already been defined > > > > Error: Could not register host (config file > > '/usr/local/nagios/etc/hosts.cfg', line 8) > > > > > > ***> One or more problems was encountered while processing the config > > files... > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > > are you planning your Web Server Security? Click here to get a FREE > > Thawte SSL guide and find the answers to all your SSL > > security issues. > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Fri Feb 14 00:47:39 2003 From: jasonm at kelman.com (Jason Marshall) Date: Thu, 13 Feb 2003 16:47:39 -0700 (MST) Subject: Plugin Output In-Reply-To: <3E4C2CE5.6030801@quadrix.com> References: <3E4C2CE5.6030801@quadrix.com> Message-ID: >From what I could make of the source, yes. But I could well be wrong. I don't know if the limit applies to just named pipes, or all IPC... > I know the size limit when writing to the command pipe, but why does the > same rule apply for plugins writing back to the daemon. Why can't > nagios be modified to handle a larger response from the plugin? Does > the same pipe limitation for external commands exist within the daemon? > > Russell Scibetti > > Jason Marshall wrote: > > >>#define MAX_PLUGINOUTPUT_LENGTH 352 > >> > > > >Russell, that value, plus 160 bytes of miscellanous stuff, equals 512 > >bytes (that's not the interesting part). > > > >The interesting part is that's the max size for atomic read/write > >operations on a names pipe in Linux. > > > >On my Solaris Nagios box, it's 5120 for the same atomic operation size > >limitation, so I bumped up all the relevant stuff by 1024 bytes, and it > >works fine. > > > >I'm not sure where the perfdata would be carried in this case. If it goes > >through the names pipe (probably), it may cause big problems if you're > >reading and writing to and from the command file in chunks bigger than 512 > >bytes... > > > >Unfortunately, it's going to be hard to verify if there is (or isn't) a > >real problem, if you make the change. You may end up with command-file > >commands being mangled, but maybe so infrequently that you could discount > >them... Maybe... > > > >--- > >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > > > From a Sun Microsystems bug report (#4102680): > > "Workaround: don't pound on the mouse like a wild monkey." > > > > "I have great faith in fools: > > Self confidence my friends call it." -Edgar Allan Poe > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: FREE SSL Guide from Thawte > >are you planning your Web Server Security? Click here to get a FREE > >Thawte SSL guide and find the answers to all your SSL security issues. > >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rplewe at hpce.nec.com Fri Feb 14 02:02:16 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Fri, 14 Feb 2003 02:02:16 +0100 Subject: more check_citrix confusion In-Reply-To: ; from Jarett_DeAngelis@fujifilm.com on Thu, Feb 13, 2003 at 06:39:43PM -0500 References: Message-ID: <20030214020216.A1481@hpce.nec.com> On Thu, Feb 13, 2003 at 06:39:43PM -0500, Jarett DeAngelis wrote: > Hi again, > > As an experiment I changed my test_citrix command so that it took NO arguments from services.cfg. Instead I just wrote the whole thing out: > > command_line $USER1$/check_citrix -C test.host.com -P "App" > > And it STILL says "No Output!" > > Tried this exact command on the command line su-ed as nagios and it worked fine. > > What the heck is going on?? Perhaps you have multiple Nagios instances running wild? Stop Nagios, and then do something like "ps -ef | grep nagios". If you see any processes: kill them. Then start Nagios again. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Fri Feb 14 01:32:09 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 13 Feb 2003 18:32:09 -0600 Subject: Nagios Startup Errors Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2564@PKDWB03C.ad.sprint.com> I think your config is suffering from recursion. On the one hand, you've given freelinuxcd.org the name of generic-host, and 2 lines later, you're telling Nagios to refer to the generic-host definition for the details. Not related to this issue, your check_command is incorrect. You're specifying the command here, when you should be referencing a token in checkcommands.cfg. If I may...? Try this instead: define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define host{ use generic-host host_name freelinuxcd.org alias Free Linux CD Project Server address 131.161.247.80 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } Some notes: 1) You've got low_flap_threshold and high_flap_threshold set... I don't believe these directives exist in any host/service definition (but I'm sure someone will correct me if I'm wrong)... however, there are names similar to these in nagios.cfg, which is where they belong. 2) The address *must* be the IP address, if you're to use it at all. Extrapolating from your example, I would guess that you're relying on DNS to do the hostname resolution. In that case, remove the 'address' line altogether. (It also frees you up in case someone renumbers that hostname. But there are other issues to concern yourself with if you go that route... for now, just try the above trivial case just to get it working. You can fine tune later.) Anyway, try the above on for size. If it works, great. If you're surprised that it works, go back and read over the documentation to find out why. HTH. jc > -----Original Message----- > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > Sent: Thursday, February 13, 2003 6:02 PM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios Startup Errors > > > > Jim, > > Thank you for yor response. All I can say is that I have as > simple of a config as one could have. I just implemented teh > bare minimum to get Nagios going in each of the appropriate files. > > > This is the entire content of my hosts.cfg > > define host { > host_name freelinuxcd.org > alias Free Linux CD Project Server > address www.freelinuxcd.org > name generic-host > register 1 > use generic-host > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > notifications_enabled 1 > check_command check_ping!-w 200,20% -c > 300,30% -p 5 -t 1000 > checks_enabled 0 > event_handler_enabled 1 > low_flap_threshold 1 > high_flap_threshold 2 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > } > > Thanks > > Babak > > Carroll, Jim P [Contractor] wrote: > > Looks like you have 'freelinuxcd.org' defined more than once. > > > > Do a 'grep -c freelinuxcd.org hosts.cfg'. Tell us what the > result of that > > is. If it's greater than 1, search hosts.cfg for other occurrences. > > > > If it's *not* in that file, do a 'grep -l freelinuxcd.org *' in your > > /usr/local/nagios/etc directory. Make sure you don't have the host > > definition more than once in *any* file. > > > > jc > > > > > -----Original Message----- > > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > > Sent: Thursday, February 13, 2003 12:13 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nagios Startup Errors > > > > > > > > > > > > Hello, > > > > > > After spending over 8 hours trying find teh source of this > > > problem, I am > > > giving up and asking? > > > > > > I keep getting the following error on startup. I have > tried manually > > > configuring the files as well as using nagat. What am I > > > missing? I saw > > > in the ail archives somebody else had this exact issue, > however there > > > was no response. Numerous searches of google for this > same issue has > > > also been fruitless. > > > > > > Any help would be tremendously appreciated. > > > > > > Thanks, > > > > > > Babak > > > > > > Nagios 1.0 > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > Last Modified: 11-24-2002 > > > License: GPL > > > > > > Reading configuration data... > > > > > > Error: Host 'freelinuxcd.org' has already been defined > > > > > > Error: Could not register host (config file > > > '/usr/local/nagios/etc/hosts.cfg', line 8) > > > > > > > > > ***> One or more problems was encountered while > processing the config > > > files... > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > > > are you planning your Web Server Security? Click here to > get a FREE > > > Thawte SSL guide and find the answers to all your SSL > > > security issues. > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS > > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > > > > -- > Babak Pasdar > Founder/CTO > IGX Global > 389 Main St. > Hackensack, NJ 07601 > www.igxglobal.com > (201) 498-0555 ext. 2205 > > The electronic message that you have received and any > attachments are solely intended for the use of the > addressee(s) and may contain information that is confidential. > > If you receive this email in error, please advise us by > responding to NOC at igxglobal.com. You are required to delete > the contents and destroy any copies immediately. IGX Global > is not liable for the views expressed in this electronic > message or for the consequences of any computer viruses that > may be unknowingly transmitted within this message. > > This electronic message is also subject to standard > copyright/ownership laws. It is not intended to be > reproduced, or re-transmitted without the consent of the originator. > > www.igxglobal.com > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 14 03:37:43 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 13 Feb 2003 21:37:43 -0500 (EST) Subject: check_nfs.pl In-Reply-To: References: Message-ID: nfs and more in check_rpc -sg On Thu, 13 Feb 2003, Irene Sakellarakis wrote: > I'm upgrading from Netsaint to Nagios. One of the services originally > configured, was check_nfs.pl. I can't seem to find a plugin for nfs > services. Is there one, and if so, where can I find it? > > Thanks in advance, > Irene > > -- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 14 03:57:20 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 14 Feb 2003 13:57:20 +1100 Subject: Plugin Output In-Reply-To: ; from jasonm@kelman.com on Thu, Feb 13, 2003 at 04:31:05PM -0700 References: <20030214100049.A49274@IPAustralia.Gov.AU> Message-ID: <20030214135715.G49274@IPAustralia.Gov.AU> Dear Gentlemen, (hastily spitting out feet). POSIX compliant systems _must_ not interleave messages wriiten to a FIFO that are less than 512 bytes. POSIX compliant systems may have a larger value than this, but 512 is the largest value you can assume for portability. On this FreeBSD 4.7 system, the pipe buffer size is 512 bytes, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 14 04:00:09 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 14 Feb 2003 14:00:09 +1100 Subject: check_nfs.pl In-Reply-To: ; from irenes@wolfram.com on Thu, Feb 13, 2003 at 02:06:30PM -0600 References: Message-ID: <20030214140000.H49274@IPAustralia.Gov.AU> Dear Madam, On Thu, Feb 13, 2003 at 02:06:30PM -0600, Irene Sakellarakis wrote: > I'm upgrading from Netsaint to Nagios. One of the services originally > configured, was check_nfs.pl. I can't seem to find a plugin for nfs > services. Is there one, and if so, where can I find it? > > Thanks in advance, > Irene > You can use check_rpc.pl eg check_rpc -H -C nfs Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 14 04:16:57 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 14 Feb 2003 14:16:57 +1100 Subject: more check_citrix confusion In-Reply-To: ; from Jarett_DeAngelis@fujifilm.com on Thu, Feb 13, 2003 at 06:39:43PM -0500 References: Message-ID: <20030214141653.I49274@IPAustralia.Gov.AU> Dear Sir, On Thu, Feb 13, 2003 at 06:39:43PM -0500, Jarett DeAngelis wrote: > Hi again, > > As an experiment I changed my test_citrix command so that it took NO arguments from services.cfg. Instead I just wrote the whole thing out: > > command_line $USER1$/check_citrix -C test.host.com -P "App" > > And it STILL says "No Output!" > > Tried this exact command on the command line su-ed as nagios and it worked fine. > > What the heck is going on?? > >From http:///docs/xodtemplate.html#service check_command: This is the command that Nagios will run in order to check the status of the service. There are three command formats that can be used: ... snip .. 3. "Raw" Command Line: You may optionally specify an actual command line to be executed. To do so you must enclose the entire command line in double quotes. The outer double quotes will be stripped off before the command is actually executed. No macros are processed inside of raw command lines. ' You command line is wrong. Try, command_line "/check_citrix -C test.host.com -P 'App'" I realise that there may be a problem with the plugin, but doing things wrongly and being suprised by the outcome is not helpful. You must be more accurate about your reports. There is _no_ way that you could have 'Tried this exact command on the command line su-ed as nagios and it worked fine.'. I think you meant, 'I tried /check_citrix -C test.host.com -P "App" su-ed as Nagios and it worked fine.' When you arev more careful about what you say, you may find that the solution to the problem comes to mind. Characterising and Describing a problem is a good way toward solving it. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Fri Feb 14 06:11:01 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Fri, 14 Feb 2003 00:11:01 -0500 Subject: Nagios Startup Errors References: <74D428BDBFD5D04CB54E84499ECA29DB2F2564@PKDWB03C.ad.sprint.com> Message-ID: <104519946100005015@imgxs42> OK, there has to be something wrong beyond configuration and the obvious. I tried your config with exactly the same results. In fact the reason you got the config below was because I used nagat, I thought I was perhaps misformatting the config. I just want to get a basic config up and running. I have gotten netsaint up and running in the past and it was not this hard. Thanks Babak here is all my configs: hosts.cfg define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define host{ use generic-host host_name fw alias Firewall address 192.168.1.1 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } hostgroups.cfg define hostgroup{ hostgroup_name hostgroup alias hostgroup contact_groups contactgroups members fw } services.cfg define service{ host_name fw check_command check-host-alive max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups contactgroups } contacts.cfg define contact{ contact_name jdoe alias John Doe service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email jdoe at localhost.localdomain pager 555-5555 at pagergateway.localhost.localdomain } contactgroups.cfg define contactgroup { contactgroup_name contactgroups alias contactgroups register 1 members oktay } nagios.cfg log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg temp_file=/usr/local/nagios/var/nagios.tmp status_file=/usr/local/nagios/var/status.log aggregate_status_updates=1 status_update_interval=15 nagios_user=nagios nagios_group=nagios enable_notifications=1 execute_service_checks=1 accept_passive_service_checks=1 enable_event_handlers=1 log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives check_external_commands=0 command_check_interval=-1 comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log command_file=/usr/local/nagios/etc/nagios.cmd lock_file=/usr/local/nagios/var/nagios.lock retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 sleep_time=1 max_concurrent_checks=0 service_reaper_frequency=10 interval_length=60 use_agressive_host_checking=1 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 soft_state_dependencies=0 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 obsess_over_services=0 process_performance_data=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 admin_email=nagios admin_pager=pagenagios date_format=us cgi.cfg xdddb_host=127.0.0.1 xdddb_port=3306 xdddb_username=nagios xdddb_password=nagios xdddb_database=nagios xcddb_host=127.0.0.1 xcddb_port=3306 xcddb_username=nagios xcddb_password=nagios xcddb_database=nagios xsddb_host=127.0.0.1 xsddb_port=3306 xsddb_username=nagios xsddb_password=nagios xsddb_database=nagios xeddb_host=127.0.0.1 xeddb_port=3306 xeddb_username=nagios xeddb_password=nagios xeddb_database=nagios main_config_file=/usr/local/nagios/etc/nagios.cfg physical_html_path=/usr/local/nagios/share url_html_path=/nagios/ show_context_help=0 use_authentication=1 default_statusmap_layout=5 default_statuswrl_layout=4 ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$ refresh_rate=90 resources.cfg $USER1$=/usr/local/nagios/libexec xsddb_host=127.0.0.1 xsddb_port=3306 xsddb_database=nagios xsddb_username=nagios xsddb_password=nagios xsddb_optimize_data=1 xsddb_optimize_interval=3600 xcddb_host=127.0.0.1 xcddb_port=3306 xcddb_database=nagios xcddb_username=nagios xcddb_password=nagios xcddb_optimize_data=1 xdddb_host=127.0.0.1 xdddb_port=3306 xdddb_database=nagios xdddb_username=nagios xdddb_password=nagios xdddb_optimize_data=1 xrddb_host=127.0.0.1 xrddb_port=3306 xrddb_database=nagios xrddb_username=nagios xrddb_password=nagios xrddb_optimize_data=1 Carroll, Jim P [Contractor] wrote: > I think your config is suffering from recursion. > > On the one hand, you've given freelinuxcd.org the name of generic-host, and > 2 lines later, you're telling Nagios to refer to the generic-host definition > for the details. > > Not related to this issue, your check_command is incorrect. You're > specifying the command here, when you should be referencing a token in > checkcommands.cfg. > > If I may...? Try this instead: > > define host{ > name generic-host > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > register 0 > } > > define host{ > use generic-host > host_name freelinuxcd.org > alias Free Linux CD Project Server > address 131.161.247.80 > check_command check-host-alive > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > } > > Some notes: > > 1) You've got low_flap_threshold and high_flap_threshold set... I don't > believe these directives exist in any host/service definition (but I'm sure > someone will correct me if I'm wrong)... however, there are names similar to > these in nagios.cfg, which is where they belong. > > 2) The address *must* be the IP address, if you're to use it at all. > Extrapolating from your example, I would guess that you're relying on DNS to > do the hostname resolution. In that case, remove the 'address' line > altogether. (It also frees you up in case someone renumbers that hostname. > But there are other issues to concern yourself with if you go that route... > for now, just try the above trivial case just to get it working. You can > fine tune later.) > > Anyway, try the above on for size. If it works, great. If you're surprised > that it works, go back and read over the documentation to find out why. > > HTH. > > jc > > > -----Original Message----- > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > Sent: Thursday, February 13, 2003 6:02 PM > > To: Carroll, Jim P [Contractor] > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nagios Startup Errors > > > > > > > > Jim, > > > > Thank you for yor response. All I can say is that I have as > > simple of a config as one could have. I just implemented teh > > bare minimum to get Nagios going in each of the appropriate files. > > > > > > This is the entire content of my hosts.cfg > > > > define host { > > host_name freelinuxcd.org > > alias Free Linux CD Project Server > > address www.freelinuxcd.org > > name generic-host > > register 1 > > use generic-host > > max_check_attempts 10 > > notification_interval 120 > > notification_period 24x7 > > notification_options d,u,r > > notifications_enabled 1 > > check_command check_ping!-w 200,20% -c > > 300,30% -p 5 -t 1000 > > checks_enabled 0 > > event_handler_enabled 1 > > low_flap_threshold 1 > > high_flap_threshold 2 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > } > > > > Thanks > > > > Babak > > > > Carroll, Jim P [Contractor] wrote: > > > Looks like you have 'freelinuxcd.org' defined more than once. > > > > > > Do a 'grep -c freelinuxcd.org hosts.cfg'. Tell us what the > > result of that > > > is. If it's greater than 1, search hosts.cfg for other occurrences. > > > > > > If it's *not* in that file, do a 'grep -l freelinuxcd.org *' in your > > > /usr/local/nagios/etc directory. Make sure you don't have the host > > > definition more than once in *any* file. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > > > Sent: Thursday, February 13, 2003 12:13 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] Nagios Startup Errors > > > > > > > > > > > > > > > > Hello, > > > > > > > > After spending over 8 hours trying find teh source of this > > > > problem, I am > > > > giving up and asking? > > > > > > > > I keep getting the following error on startup. I have > > tried manually > > > > configuring the files as well as using nagat. What am I > > > > missing? I saw > > > > in the ail archives somebody else had this exact issue, > > however there > > > > was no response. Numerous searches of google for this > > same issue has > > > > also been fruitless. > > > > > > > > Any help would be tremendously appreciated. > > > > > > > > Thanks, > > > > > > > > Babak > > > > > > > > Nagios 1.0 > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > Last Modified: 11-24-2002 > > > > License: GPL > > > > > > > > Reading configuration data... > > > > > > > > Error: Host 'freelinuxcd.org' has already been defined > > > > > > > > Error: Could not register host (config file > > > > '/usr/local/nagios/etc/hosts.cfg', line 8) > > > > > > > > > > > > ***> One or more problems was encountered while > > processing the config > > > > files... > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > > > > are you planning your Web Server Security? Click here to > > get a FREE > > > > Thawte SSL guide and find the answers to all your SSL > > > > security issues. > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS > > > > when reporting any issue. > > > > ::: Messages without supporting info will risk being sent > > to /dev/null > > > > > > > > > > > -- > > Babak Pasdar > > Founder/CTO > > IGX Global > > 389 Main St. > > Hackensack, NJ 07601 > > www.igxglobal.com > > (201) 498-0555 ext. 2205 > > > > The electronic message that you have received and any > > attachments are solely intended for the use of the > > addressee(s) and may contain information that is confidential. > > > > If you receive this email in error, please advise us by > > responding to NOC at igxglobal.com. You are required to delete > > the contents and destroy any copies immediately. IGX Global > > is not liable for the views expressed in this electronic > > message or for the consequences of any computer viruses that > > may be unknowingly transmitted within this message. > > > > This electronic message is also subject to standard > > copyright/ownership laws. It is not intended to be > > reproduced, or re-transmitted without the consent of the originator. > > > > www.igxglobal.com > > > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 14 07:51:55 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 14 Feb 2003 17:51:55 +1100 Subject: check_citrix doesn't return any data? In-Reply-To: <3E4B5178.11EEF5FC@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Thu, Feb 13, 2003 at 09:04:08AM +0100 References: <20030213130144.H29365@IPAustralia.Gov.AU> <3E4B5178.11EEF5FC@gcc.dhl.com> Message-ID: <20030214175152.M49274@IPAustralia.Gov.AU> Dear All, I am writing to say that there is unfortunately _no_ new version of check_citrix. My remarks about this matter were base don the fact that my production Nag setup was using a pre-release version that lacked the enhancements of the release version (either that in the Nagios plugin CVS [1.1] or the one Mr De Blende was beta testing 1.7.x). On Thu, Feb 13, 2003 at 09:04:08AM +0100, Tom DE BLENDE wrote: > > > Are you interested in testing a new version ? > > I am :-) > Unfortunately there is no new version because at this stage there are no known bugs or requests for enhancements. Mr De Angelis is unquestionably having trouble with the plugin but nothing as convinced me yet that the plugin is not performing as advertised. > Kind regards, > Tom Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tony.irvine at crestco.co.uk Fri Feb 14 08:47:16 2003 From: tony.irvine at crestco.co.uk (Tony Irvine) Date: Fri, 14 Feb 2003 07:47:16 +0000 Subject: Statusmap.cgi etc. Message-ID: Not sure if this is your problem but it may be a LD_LIBRARY_PATH issue. Because the CGIs are called from apache you need to make sure that it passes a nice complete LD_LIBRARY_PATH. SetEnv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/your/gd/lib/path:etc.... in your http.conf may solve your problem. Although as there is no error output included this could be way off base. Tony >>> "Marco ter Horst" 17:52:34 13/02/2003 >>> Ok, I've had it with this nonsense!!! Here is my situation: I have netsaint running without problems (incl statusmap.cgi) I have nagios running without problems ... (except for the statusmap, trends and histogram CGI's) I have recompiled nagios ... I have recompiled my gd libraries ... NOTHING WORKS :'-( Can somebody pretty please just email me their statusmap.cgi, trends.cgi and histogram.cgi? I'm sure it will work just fine, since I have netsaint running like a sweet l'll baby :-D Thanks in advance _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ CRESTCo Ltd The views expressed above are not necessarily those 33 Cannon Street held by CRESTCo Limited. Please be aware that emails London EC4M 5SB (UK) to and from CRESTCo Limited may be monitored. +44 (020) 7849 0000 http://www.crestco.co.uk CRESTCo Ltd is a part of Euroclear ------------------------------------------------------------------------------ ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Volker.Aust at premiere.de Fri Feb 14 10:37:08 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Fri, 14 Feb 2003 10:37:08 +0100 Subject: Nagios Startup Errors Message-ID: I see two problems in your configuration: - your service definition lacks an "service_description" - in your contactgroup "contactgroups" the member "oktay" is not defined in your contacts.cfg -vol > -----Original Message----- > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > Sent: Friday, February 14, 2003 6:11 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios Startup Errors > > > > OK, there has to be something wrong beyond configuration and > the obvious. I tried your config with exactly the same > results. In fact the reason you got the config below was > because I used nagat, I thought I was perhaps misformatting > the config. I just want to get a basic config up and running. > > I have gotten netsaint up and running in the past and it was > not this hard. > > Thanks > > Babak > > > here is all my configs: > > hosts.cfg > > define host{ > name generic-host > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > register 0 > } > > define host{ > use generic-host > host_name fw > alias Firewall > address 192.168.1.1 > check_command check-host-alive > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > } > > > > hostgroups.cfg > > define hostgroup{ > hostgroup_name hostgroup > alias hostgroup > contact_groups contactgroups > members fw > } > > > > services.cfg > > define service{ > host_name fw > check_command check-host-alive > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 3 > check_period 24x7 > notification_interval 30 > notification_period 24x7 > notification_options w,c,r > contact_groups contactgroups > } > > > > contacts.cfg > > define contact{ > contact_name jdoe > alias John Doe > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,u,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email jdoe at localhost.localdomain > pager > 555-5555 at pagergateway.localhost.localdomain > } > > contactgroups.cfg > > define contactgroup { > contactgroup_name contactgroups > alias contactgroups > register 1 > members oktay > } > > > nagios.cfg > > log_file=/usr/local/nagios/var/nagios.log > cfg_file=/usr/local/nagios/etc/hosts.cfg > cfg_file=/usr/local/nagios/etc/misccommands.cfg > cfg_file=/usr/local/nagios/etc/contactgroups.cfg > cfg_file=/usr/local/nagios/etc/contacts.cfg > cfg_file=/usr/local/nagios/etc/dependencies.cfg > cfg_file=/usr/local/nagios/etc/escalations.cfg > cfg_file=/usr/local/nagios/etc/hostgroups.cfg > cfg_file=/usr/local/nagios/etc/hosts.cfg > cfg_file=/usr/local/nagios/etc/services.cfg > cfg_file=/usr/local/nagios/etc/timeperiods.cfg > resource_file=/usr/local/nagios/etc/resource.cfg > temp_file=/usr/local/nagios/var/nagios.tmp > status_file=/usr/local/nagios/var/status.log > aggregate_status_updates=1 > status_update_interval=15 > nagios_user=nagios > nagios_group=nagios > enable_notifications=1 > execute_service_checks=1 > accept_passive_service_checks=1 > enable_event_handlers=1 > log_rotation_method=d > log_archive_path=/usr/local/nagios/var/archives > check_external_commands=0 > command_check_interval=-1 > comment_file=/usr/local/nagios/var/comment.log > downtime_file=/usr/local/nagios/var/downtime.log > command_file=/usr/local/nagios/etc/nagios.cmd > lock_file=/usr/local/nagios/var/nagios.lock > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/status.sav > retention_update_interval=60 > use_retained_program_state=0 > use_syslog=1 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=0 > log_external_commands=1 > log_passive_service_checks=1 > sleep_time=1 > max_concurrent_checks=0 > service_reaper_frequency=10 > interval_length=60 > use_agressive_host_checking=1 > enable_flap_detection=0 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > soft_state_dependencies=0 > service_check_timeout=60 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > ocsp_timeout=5 > perfdata_timeout=5 > obsess_over_services=0 > process_performance_data=0 > check_for_orphaned_services=0 > check_service_freshness=1 > freshness_check_interval=60 > admin_email=nagios > admin_pager=pagenagios > date_format=us > > > cgi.cfg > > xdddb_host=127.0.0.1 > xdddb_port=3306 > xdddb_username=nagios > xdddb_password=nagios > xdddb_database=nagios > > xcddb_host=127.0.0.1 > xcddb_port=3306 > xcddb_username=nagios > xcddb_password=nagios > xcddb_database=nagios > > xsddb_host=127.0.0.1 > xsddb_port=3306 > xsddb_username=nagios > xsddb_password=nagios > xsddb_database=nagios > > xeddb_host=127.0.0.1 > xeddb_port=3306 > xeddb_username=nagios > xeddb_password=nagios > xeddb_database=nagios > > main_config_file=/usr/local/nagios/etc/nagios.cfg > physical_html_path=/usr/local/nagios/share > url_html_path=/nagios/ > show_context_help=0 > use_authentication=1 > default_statusmap_layout=5 > default_statuswrl_layout=4 > ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$ > refresh_rate=90 > > > resources.cfg > > $USER1$=/usr/local/nagios/libexec > > xsddb_host=127.0.0.1 > xsddb_port=3306 > xsddb_database=nagios > xsddb_username=nagios > xsddb_password=nagios > xsddb_optimize_data=1 > xsddb_optimize_interval=3600 > > xcddb_host=127.0.0.1 > xcddb_port=3306 > xcddb_database=nagios > xcddb_username=nagios > xcddb_password=nagios > xcddb_optimize_data=1 > > xdddb_host=127.0.0.1 > xdddb_port=3306 > xdddb_database=nagios > xdddb_username=nagios > xdddb_password=nagios > xdddb_optimize_data=1 > > xrddb_host=127.0.0.1 > xrddb_port=3306 > xrddb_database=nagios > xrddb_username=nagios > xrddb_password=nagios > xrddb_optimize_data=1 > > > > > > Carroll, Jim P [Contractor] wrote: > > I think your config is suffering from recursion. > > > > On the one hand, you've given freelinuxcd.org the name of > generic-host, and > > 2 lines later, you're telling Nagios to refer to the > generic-host definition > > for the details. > > > > Not related to this issue, your check_command is incorrect. You're > > specifying the command here, when you should be referencing > a token in > > checkcommands.cfg. > > > > If I may...? Try this instead: > > > > define host{ > > name generic-host > > notifications_enabled 1 > > event_handler_enabled 1 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > register 0 > > } > > > > define host{ > > use generic-host > > host_name freelinuxcd.org > > alias Free Linux CD Project Server > > address 131.161.247.80 > > check_command check-host-alive > > max_check_attempts 10 > > notification_interval 120 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > Some notes: > > > > 1) You've got low_flap_threshold and high_flap_threshold > set... I don't > > believe these directives exist in any host/service > definition (but I'm sure > > someone will correct me if I'm wrong)... however, there are > names similar to > > these in nagios.cfg, which is where they belong. > > > > 2) The address *must* be the IP address, if you're to use it at all. > > Extrapolating from your example, I would guess that you're > relying on DNS to > > do the hostname resolution. In that case, remove the 'address' line > > altogether. (It also frees you up in case someone > renumbers that hostname. > > But there are other issues to concern yourself with if you > go that route... > > for now, just try the above trivial case just to get it > working. You can > > fine tune later.) > > > > Anyway, try the above on for size. If it works, great. If > you're surprised > > that it works, go back and read over the documentation to > find out why. > > > > HTH. > > > > jc > > > > > -----Original Message----- > > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > > Sent: Thursday, February 13, 2003 6:02 PM > > > To: Carroll, Jim P [Contractor] > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Nagios Startup Errors > > > > > > > > > > > > Jim, > > > > > > Thank you for yor response. All I can say is that I have as > > > simple of a config as one could have. I just implemented teh > > > bare minimum to get Nagios going in each of the appropriate files. > > > > > > > > > This is the entire content of my hosts.cfg > > > > > > define host { > > > host_name freelinuxcd.org > > > alias Free Linux CD Project Server > > > address www.freelinuxcd.org > > > name generic-host > > > register 1 > > > use generic-host > > > max_check_attempts 10 > > > notification_interval 120 > > > notification_period 24x7 > > > notification_options d,u,r > > > notifications_enabled 1 > > > check_command check_ping!-w 200,20% -c > > > 300,30% -p 5 -t 1000 > > > checks_enabled 0 > > > event_handler_enabled 1 > > > low_flap_threshold 1 > > > high_flap_threshold 2 > > > flap_detection_enabled 1 > > > process_perf_data 1 > > > retain_status_information 1 > > > retain_nonstatus_information 1 > > > } > > > > > > Thanks > > > > > > Babak > > > > > > Carroll, Jim P [Contractor] wrote: > > > > Looks like you have 'freelinuxcd.org' defined more than once. > > > > > > > > Do a 'grep -c freelinuxcd.org hosts.cfg'. Tell us what the > > > result of that > > > > is. If it's greater than 1, search hosts.cfg for other > occurrences. > > > > > > > > If it's *not* in that file, do a 'grep -l > freelinuxcd.org *' in your > > > > /usr/local/nagios/etc directory. Make sure you don't > have the host > > > > definition more than once in *any* file. > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > > > > Sent: Thursday, February 13, 2003 12:13 PM > > > > > To: nagios-users at lists.sourceforge.net > > > > > Subject: [Nagios-users] Nagios Startup Errors > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > After spending over 8 hours trying find teh source of this > > > > > problem, I am > > > > > giving up and asking? > > > > > > > > > > I keep getting the following error on startup. I have > > > tried manually > > > > > configuring the files as well as using nagat. What am I > > > > > missing? I saw > > > > > in the ail archives somebody else had this exact issue, > > > however there > > > > > was no response. Numerous searches of google for this > > > same issue has > > > > > also been fruitless. > > > > > > > > > > Any help would be tremendously appreciated. > > > > > > > > > > Thanks, > > > > > > > > > > Babak > > > > > > > > > > Nagios 1.0 > > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > > Last Modified: 11-24-2002 > > > > > License: GPL > > > > > > > > > > Reading configuration data... > > > > > > > > > > Error: Host 'freelinuxcd.org' has already been defined > > > > > > > > > > Error: Could not register host (config file > > > > > '/usr/local/nagios/etc/hosts.cfg', line 8) > > > > > > > > > > > > > > > ***> One or more problems was encountered while > > > processing the config > > > > > files... > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > > > > > are you planning your Web Server Security? Click here to > > > get a FREE > > > > > Thawte SSL guide and find the answers to all your SSL > > > > > security issues. > > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ::: Please include Nagios version, plugin version (-v) and OS > > > > > when reporting any issue. > > > > > ::: Messages without supporting info will risk being sent > > > to /dev/null > > > > > > > > > > > > > > > -- > > > Babak Pasdar > > > Founder/CTO > > > IGX Global > > > 389 Main St. > > > Hackensack, NJ 07601 > > > www.igxglobal.com > > > (201) 498-0555 ext. 2205 > > > > > > The electronic message that you have received and any > > > attachments are solely intended for the use of the > > > addressee(s) and may contain information that is confidential. > > > > > > If you receive this email in error, please advise us by > > > responding to NOC at igxglobal.com. You are required to delete > > > the contents and destroy any copies immediately. IGX Global > > > is not liable for the views expressed in this electronic > > > message or for the consequences of any computer viruses that > > > may be unknowingly transmitted within this message. > > > > > > This electronic message is also subject to standard > > > copyright/ownership laws. It is not intended to be > > > reproduced, or re-transmitted without the consent of the > originator. > > > > > > www.igxglobal.com > > > > > > > -- > Babak Pasdar > Founder/CTO > IGX Global > 389 Main St. > Hackensack, NJ 07601 > www.igxglobal.com > (201) 498-0555 ext. 2205 > > The electronic message that you have received and any > attachments are solely intended for the use of the > addressee(s) and may contain information that is confidential. > > If you receive this email in error, please advise us by > responding to NOC at igxglobal.com. You are required to delete > the contents and destroy any copies immediately. IGX Global > is not liable for the views expressed in this electronic > message or for the consequences of any computer viruses that > may be unknowingly transmitted within this message. > > This electronic message is also subject to standard > copyright/ownership laws. It is not intended to be > reproduced, or re-transmitted without the consent of the originator. > > www.igxglobal.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL > security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco_terhorst at hotmail.com Fri Feb 14 10:49:44 2003 From: marco_terhorst at hotmail.com (Marco ter Horst) Date: Fri, 14 Feb 2003 10:49:44 +0100 Subject: Statusmap.cgi etc. Message-ID: Thanks for your responses! First off I'm working on OpenBSD, second ... I did not specifically install those other libraries BUT judging from the documentation and the FAQ I thought they were incorporated in the GD Library (maybe I am being a complete idiot here :-D) But I'm sure of the fact that my netsaint statusmap.cgi (and trend etc.) is working just fine! This counts for something, no? ta >From: "Maarten" >To: "Marco ter Horst" >, >Subject: Re: [Nagios-users] Statusmap.cgi etc. >Date: Thu, 13 Feb 2003 20:17:11 +0100 > >Besides gd, do you also have the libpng development libraries available? > >I could mail you mine, in fact, if you still want to, I will. The fact is >that it will probably not work, since you will then have an apache version >that has been compiled with other libpng libraries then the cgi's I can >send >you will have been compiled with. I guess you don't want to replace this >problem by another one... > > Are you sure you have all development libraries available from: >gd >libjpeg >libpng >zlib > >In case you are using RedHat 8.0 for example, it is not just sufficient to >install the binaries of gd, libjpeg, libpng and zlib. You also need the >development packages, i.e.: > >gd-devel-1.8.4-9.i386.rpm >libjpeg-devel-6b-21.i386.rpm > >libpng-devel-1.2.2-6.i386.rpm > >zlib-devel-1.1.4-4.i386.rpm > >maarten > > > Ok, I've had it with this nonsense!!! > > Here is my situation: > > I have netsaint running without problems (incl statusmap.cgi) > > I have nagios running without problems ... (except for the statusmap, >trends > > and histogram CGI's) > > I have recompiled nagios ... > > I have recompiled my gd libraries ... > > > > NOTHING WORKS :'-( > > > >------------------------------------------------------- >This SF.NET email is sponsored by: FREE SSL Guide from Thawte >are you planning your Web Server Security? Click here to get a FREE >Thawte SSL guide and find the answers to all your SSL security issues. >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atul at mindsw.com Fri Feb 14 11:10:39 2003 From: atul at mindsw.com (Atul Gosain) Date: Fri, 14 Feb 2003 15:40:39 +0530 Subject: Latency in service checks Message-ID: <3E4CC09F.3090307@mindsw.com> Hi Hi Im facing some problems in nagios in latency of services as they sometimes continously increase and go as high as some 270 seconds due t which the proper results are not shown as shown in the sample of performane report below. Check Execution Time: < 1 sec 21 sec 4.465 sec Check Latency: < 1 sec 140 sec 61.503 se This is happening in the nagios server allthough the cpu load is normal. After that i have done service interleave factor as none so no delay is introduced beween checks.After that the condition is like shown above. Im monitoring 37 hosts and some 250 services. Can there be some other reason for latency in service checks Regards Atul. -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Fri Feb 14 12:54:55 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Fri, 14 Feb 2003 06:54:55 -0500 Subject: Nagios Startup Errors References: <74D428BDBFD5D04CB54E84499ECA29DB2F2564@PKDWB03C.ad.sprint.com> Message-ID: <10452236950000566f@imgxs42> OK Jim, GREAT NEWS. I recompiled nagios and now everything works ;) Well at least I get no errors when running nagios -v. Starnge since I am sure I used the same exact configure specs as teh first time. Thanks for your help Jim. Babak Carroll, Jim P [Contractor] wrote: > I think your config is suffering from recursion. > > On the one hand, you've given freelinuxcd.org the name of generic-host, and > 2 lines later, you're telling Nagios to refer to the generic-host definition > for the details. > > Not related to this issue, your check_command is incorrect. You're > specifying the command here, when you should be referencing a token in > checkcommands.cfg. > > If I may...? Try this instead: > > define host{ > name generic-host > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > register 0 > } > > define host{ > use generic-host > host_name freelinuxcd.org > alias Free Linux CD Project Server > address 131.161.247.80 > check_command check-host-alive > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > } > > Some notes: > > 1) You've got low_flap_threshold and high_flap_threshold set... I don't > believe these directives exist in any host/service definition (but I'm sure > someone will correct me if I'm wrong)... however, there are names similar to > these in nagios.cfg, which is where they belong. > > 2) The address *must* be the IP address, if you're to use it at all. > Extrapolating from your example, I would guess that you're relying on DNS to > do the hostname resolution. In that case, remove the 'address' line > altogether. (It also frees you up in case someone renumbers that hostname. > But there are other issues to concern yourself with if you go that route... > for now, just try the above trivial case just to get it working. You can > fine tune later.) > > Anyway, try the above on for size. If it works, great. If you're surprised > that it works, go back and read over the documentation to find out why. > > HTH. > > jc > > > -----Original Message----- > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > Sent: Thursday, February 13, 2003 6:02 PM > > To: Carroll, Jim P [Contractor] > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nagios Startup Errors > > > > > > > > Jim, > > > > Thank you for yor response. All I can say is that I have as > > simple of a config as one could have. I just implemented teh > > bare minimum to get Nagios going in each of the appropriate files. > > > > > > This is the entire content of my hosts.cfg > > > > define host { > > host_name freelinuxcd.org > > alias Free Linux CD Project Server > > address www.freelinuxcd.org > > name generic-host > > register 1 > > use generic-host > > max_check_attempts 10 > > notification_interval 120 > > notification_period 24x7 > > notification_options d,u,r > > notifications_enabled 1 > > check_command check_ping!-w 200,20% -c > > 300,30% -p 5 -t 1000 > > checks_enabled 0 > > event_handler_enabled 1 > > low_flap_threshold 1 > > high_flap_threshold 2 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > } > > > > Thanks > > > > Babak > > > > Carroll, Jim P [Contractor] wrote: > > > Looks like you have 'freelinuxcd.org' defined more than once. > > > > > > Do a 'grep -c freelinuxcd.org hosts.cfg'. Tell us what the > > result of that > > > is. If it's greater than 1, search hosts.cfg for other occurrences. > > > > > > If it's *not* in that file, do a 'grep -l freelinuxcd.org *' in your > > > /usr/local/nagios/etc directory. Make sure you don't have the host > > > definition more than once in *any* file. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > > > > Sent: Thursday, February 13, 2003 12:13 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] Nagios Startup Errors > > > > > > > > > > > > > > > > Hello, > > > > > > > > After spending over 8 hours trying find teh source of this > > > > problem, I am > > > > giving up and asking? > > > > > > > > I keep getting the following error on startup. I have > > tried manually > > > > configuring the files as well as using nagat. What am I > > > > missing? I saw > > > > in the ail archives somebody else had this exact issue, > > however there > > > > was no response. Numerous searches of google for this > > same issue has > > > > also been fruitless. > > > > > > > > Any help would be tremendously appreciated. > > > > > > > > Thanks, > > > > > > > > Babak > > > > > > > > Nagios 1.0 > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > Last Modified: 11-24-2002 > > > > License: GPL > > > > > > > > Reading configuration data... > > > > > > > > Error: Host 'freelinuxcd.org' has already been defined > > > > > > > > Error: Could not register host (config file > > > > '/usr/local/nagios/etc/hosts.cfg', line 8) > > > > > > > > > > > > ***> One or more problems was encountered while > > processing the config > > > > files... > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > > > > are you planning your Web Server Security? Click here to > > get a FREE > > > > Thawte SSL guide and find the answers to all your SSL > > > > security issues. > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS > > > > when reporting any issue. > > > > ::: Messages without supporting info will risk being sent > > to /dev/null > > > > > > > > > > > -- > > Babak Pasdar > > Founder/CTO > > IGX Global > > 389 Main St. > > Hackensack, NJ 07601 > > www.igxglobal.com > > (201) 498-0555 ext. 2205 > > > > The electronic message that you have received and any > > attachments are solely intended for the use of the > > addressee(s) and may contain information that is confidential. > > > > If you receive this email in error, please advise us by > > responding to NOC at igxglobal.com. You are required to delete > > the contents and destroy any copies immediately. IGX Global > > is not liable for the views expressed in this electronic > > message or for the consequences of any computer viruses that > > may be unknowingly transmitted within this message. > > > > This electronic message is also subject to standard > > copyright/ownership laws. It is not intended to be > > reproduced, or re-transmitted without the consent of the originator. > > > > www.igxglobal.com > > > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasmine.chua at securecirt.com Fri Feb 14 14:22:56 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Fri, 14 Feb 2003 21:22:56 +0800 Subject: Latency in service checks In-Reply-To: <3E4CC09F.3090307@mindsw.com> References: <3E4CC09F.3090307@mindsw.com> Message-ID: <200302142122.59847.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have been facing some really heavy latency issues as well last time. I guess it depends a lot on the problems of the services that you are monitoring. Having too many critical services will lead to high latency. Are you having lots of critical issues? How are you moniotirng these services? Are they active or passive? You can try tweaking max_concurrent_checks and best is set service_reaper_frequency below 5 secs. Inter_check_delay and Service_interleave_factor is advisable to be set to SMART. You may want to look at these : http://nagios.sourceforge.net/docs/1_0/tuning.html http://nagios.sourceforge.net/docs/1_0/checkscheduling.html On Friday 14 February 2003 18:10, Atul Gosain wrote: > Hi > > Hi > Im facing some problems in nagios in latency of services as they > sometimes continously increase and go as high as some 270 seconds due t > which the proper results are not shown as shown in the sample of > performane report below. > > Check Execution Time: < 1 sec 21 sec 4.465 sec > Check Latency: > > < 1 sec 140 sec 61.503 se > > This is happening in the nagios server allthough the cpu load is normal. > After that i have done service interleave factor as none so no delay is > introduced beween checks.After that the condition is like shown above. Im > monitoring 37 hosts and some 250 services. > Can there be some other reason for latency in service checks > > Regards > Atul. - -- Jasmine Chua Security Engineer SecureCiRT Pte Ltd Blk 750C Chai Chee Road #04-01 Technopark at ChaiChee Singapore 469003 Tel: 6243 6800 DID: 6243 6802 Fax: 6441 5119 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+TO2wNgvTa7Hj2AURAmcuAKCkS1ytrvb+1ylKBoBfYg/zOYQ10QCgpIOS 457UYwCBts/y+eioMM02ACY= =tWJL -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atul at mindsw.com Fri Feb 14 15:06:57 2003 From: atul at mindsw.com (Atul Gosain) Date: Fri, 14 Feb 2003 19:36:57 +0530 Subject: Latency in service checks In-Reply-To: <200302142122.59847.jasmine.chua@securecirt.com> References: <3E4CC09F.3090307@mindsw.com> <200302142122.59847.jasmine.chua@securecirt.com> Message-ID: <3E4CF801.1060400@mindsw.com> Hi jasmine I have set service_reaper_frequency to 3 secs. Hope that latency doesnt increase. Yes, when i checked the latency, there were a lot of critical services. But whats the solution. If there are a lot of problems, then if something is resolved in between, then it wont show right results till a long time. Regards Atul Jasmine wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi, I have been facing some really heavy latency issues as well last time. I >guess it depends a lot on the problems of the services that you are >monitoring. Having too many critical services will lead to high latency. Are >you having lots of critical issues? How are you moniotirng these services? >Are they active or passive? You can try tweaking max_concurrent_checks and >best is set service_reaper_frequency below 5 secs. Inter_check_delay and >Service_interleave_factor is advisable to be set to SMART. > >You may want to look at these : >http://nagios.sourceforge.net/docs/1_0/tuning.html >http://nagios.sourceforge.net/docs/1_0/checkscheduling.html > >On Friday 14 February 2003 18:10, Atul Gosain wrote: > > >>Hi >> >>Hi >>Im facing some problems in nagios in latency of services as they >>sometimes continously increase and go as high as some 270 seconds due t >>which the proper results are not shown as shown in the sample of >>performane report below. >> >>Check Execution Time: < 1 sec 21 sec 4.465 sec >>Check Latency: >> >>< 1 sec 140 sec 61.503 se >> >>This is happening in the nagios server allthough the cpu load is normal. >>After that i have done service interleave factor as none so no delay is >>introduced beween checks.After that the condition is like shown above. Im >>monitoring 37 hosts and some 250 services. >>Can there be some other reason for latency in service checks >> >>Regards >>Atul. >> >> > >- -- >Jasmine Chua >Security Engineer > >SecureCiRT Pte Ltd >Blk 750C Chai Chee Road >#04-01 Technopark at ChaiChee >Singapore 469003 >Tel: 6243 6800 DID: 6243 6802 >Fax: 6441 5119 >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.1 (GNU/Linux) > >iD8DBQE+TO2wNgvTa7Hj2AURAmcuAKCkS1ytrvb+1ylKBoBfYg/zOYQ10QCgpIOS >457UYwCBts/y+eioMM02ACY= >=tWJL >-----END PGP SIGNATURE----- > > > >------------------------------------------------------- >This SF.NET email is sponsored by: FREE SSL Guide from Thawte >are you planning your Web Server Security? Click here to get a FREE >Thawte SSL guide and find the answers to all your SSL security issues. >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Fri Feb 14 17:02:01 2003 From: jasonm at kelman.com (Jason Marshall) Date: Fri, 14 Feb 2003 09:02:01 -0700 (MST) Subject: Plugin Output In-Reply-To: <20030214135715.G49274@IPAustralia.Gov.AU> References: <20030214135715.G49274@IPAustralia.Gov.AU> Message-ID: > POSIX compliant systems _must_ not interleave messages wriiten to a FIFO > that are less than 512 bytes. > > POSIX compliant systems may have a larger value than this, but 512 is > the largest value you can assume for portability. > > On this FreeBSD 4.7 system, the pipe buffer size is 512 bytes, Okay, that makes sense. My version of Nagios is no longer POSIX compliant, but that's fine by me *8-) --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasmine.chua at securecirt.com Fri Feb 14 17:48:23 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Sat, 15 Feb 2003 00:48:23 +0800 Subject: timeout issues Message-ID: <200302150048.25491.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HI guys, I am just wondering if anyone could tell me why I am getting occasional CHECK_NRPE: timeout issues and when I check out the box, everything is running fine? - -- Warmest Regards, Jasmine Chua Security Engineer SecureCiRT Pte Ltd Blk 750C Chai Chee Road #04-01 Technopark at ChaiChee Singapore 469003 Tel: 6243 6800 DID: 6243 6802 Fax: 6441 5119 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+TR3YNgvTa7Hj2AURAvxpAKCQAoxV5lyRPwDz34VKXNCc6UM1+QCgnrai XKdw4FToLOEVJwU3kIjaSEo= =okNo -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.G.Martin at mail.sprint.com Fri Feb 14 17:47:08 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Fri, 14 Feb 2003 10:47:08 -0600 Subject: Problem w/dependencies Message-ID: I'm running 'netsaint_statd' on some AIX servers so that I can monitor disk space. There are numerous times that I get alerts about 'No answer from client'. I'm assuming it's having problems connecting to the socket and I'm not surprised since I'm in Kansas City and these servers are in Dallas (and Sprint's internal network sucks!!!) Anyway, at the suggestion of someone on this list, I set up a service that would just check to see if I could connect to the socket that netsaint_statd is running on (sort of a heartbeat) and make all my filesystem services dependent on this. So, if the filesystem service checks fail because of 'No answer from client', isn't it supposed to then check to see if the heartbeat is OK before I get a notification? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lane.Williams at jhuapl.edu Fri Feb 14 17:56:33 2003 From: Lane.Williams at jhuapl.edu (Williams, P. Lane) Date: Fri, 14 Feb 2003 11:56:33 -0500 Subject: Windows Event Log Message-ID: I was wondering if anyone has successfully monitored Windows Event Logs with Nagios..... via SNMP...Perl....or anything else? If so, do you have any examples or recommendations. Thanks for any info or help, Lane ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rich at vel.net Fri Feb 14 17:54:15 2003 From: rich at vel.net (Richard Gross) Date: Fri, 14 Feb 2003 08:54:15 -0800 Subject: check_nagios output request Message-ID: <52183F243CF19E44A1166F250311C34B047774@cheddarcheese.vel.net> We are slowly moving away from an ancient version of SiteScope. But SiteScope does have a nice once a day output of it's version and other things shown below. What is the best way to barf out the number of active hostgroups, active checks, and passive checks in Nagios? Maybe the check_nagios plugin? The current check_nagios plugin reveals this: Nagios ok: located 1 process, status log updated 4 seconds ago But something like the additional info below would be interesting to have: SiteScope daily status 310 monitors active in 72 groups http://207.182.226.32:8888/SiteScope SiteScope 4.5 c1 ----------------------------------------------------- SiteScope from Freshwater Software For info about ordering, upgrades, and support: http://www.freshwater.com chris-support at freshwater.com 303-443-2266 ----------------------------------------------------- Thanks, richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From horst.thivessen at thivessen.de Fri Feb 14 18:26:44 2003 From: horst.thivessen at thivessen.de (Horst =?ISO-8859-1?Q?Thive=DFen?=) Date: Fri, 14 Feb 2003 17:26:44 GMT Subject: Do not see trend.cgi map Message-ID: <20030214.17264483@mis.configured.host> Hello Nagios friends, I have successfully installed Nagios and everythink work very well but the map output of the trend.cgi. Nagios version 1.0 is running on debian 3.0 linux with the newest libraries. The gd version is 2.0.11 and the ldd output of trend.cgi looks good. The statusmap.cgi workes well so I suppose zlib, libpng ang gd are installed correctly. I have seen a description of such a problem in this forum from december 2002 but with no real solution. My question: Is there a solution or have I to wait till a new software is released ?? Thanks for help Horst -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/rtf Size: 4855 bytes Desc: filename="text1.rtf" URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/vnd.stardivision.writer Size: 19968 bytes Desc: filename="text1.sdw" URL: From ejl at man.fwltech.com Fri Feb 14 18:23:35 2003 From: ejl at man.fwltech.com (Ewan Leith) Date: Fri, 14 Feb 2003 17:23:35 -0000 Subject: Windows Event Log Message-ID: <1012BD903945D411915500105A48FF57F06866@nt.man.fwltech.com> Back in december I found a free program which forwarded event logs to a configurable unix system syslogd, worked quite well. i then wrote a little script to parse it and exclude 99% of nt events which are completely misleading and raise "WARNING" or "CRITICAL" on a list of error messages I knew of. download the event log - > system log forwarder here: http://www.kiwisyslog.com/products.htm#syslog the freeware version works fine for me. Ewan > -----Original Message----- > From: Williams, P. Lane [mailto:Lane.Williams at jhuapl.edu] > Sent: 14 February 2003 16:57 > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Windows Event Log > > > I was wondering if anyone has successfully monitored Windows > Event Logs with > Nagios..... > via SNMP...Perl....or anything else? If so, do you have any > examples or > recommendations. > > > Thanks for any info or help, > > Lane > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL > security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsellens at generalconcepts.com Fri Feb 14 17:39:55 2003 From: jsellens at generalconcepts.com (John Sellens) Date: Fri, 14 Feb 2003 11:39:55 -0500 (EST) Subject: Caching SNMP Info Message-ID: <200302141639.h1EGdtk85753@gc0.generalconcepts.com> | From: Subhendu Ghosh | Date: Wed, 29 Jan 2003 17:45:53 -0500 | | snmp proxy was desgined to prevent the lodaing and unloading of MIB files | on every call by having a long running proxy daemon that would load MIB | files just once. | | The plugin passes the parameters to the proxy which does the actual get. | | if you use -m"" you can get similar speedups from check_snmp but have | to use oids and not names. I haven't looked closely at Vladislav's snmppd SNMP proxy (yet), but I expect that there's another interesting aspect to it. It will likely allow you to securely and reliably do SNMP checks to remote locations, through firewalls and across open networks, since it uses TCP and one could (presumably) use stunnel (or equivalent) to encrypt the traffic. It may also help with certain problems passing UDP SNMP traffic through NAT and some firewalls. I think it may be able to solve a number of problems that I've been worried about. Cheers! John jsellens at generalconcepts.com ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thiagolima at webforce.com.br Fri Feb 14 19:48:21 2003 From: thiagolima at webforce.com.br (Thiago Lima ) Date: Fri, 14 Feb 2003 15:48:21 -0300 Subject: 3d status problem. Message-ID: <010301c2d459$a8fe2140$0e00a8c0@medusa> Hi, I'm running nagios and I'm very happy with it. I used to run whatsup gold, but when I meet nagios I switched right on the time. BUT (there's allways a but:)) I can't make the 3d status run. When I click at it I receive a download message from my brownser. If I download the file no program can open it. I know that it is WRL, but I can't open it. Any tips? thanks alot. thiago. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 14 18:16:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 14 Feb 2003 11:16:54 -0600 Subject: check_nagios output request Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E14B9@PKDWB03C.ad.sprint.com> If you're looking for something to send to e-mail, why not a cronjob which runs this command: /usr/local/nagios/bin/nagios -s /usr/local/nagios/etc/nagios.cfg jc -----Original Message----- From: Richard Gross [mailto:rich at vel.net] Sent: Friday, February 14, 2003 10:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nagios output request We are slowly moving away from an ancient version of SiteScope. But SiteScope does have a nice once a day output of it's version and other things shown below. What is the best way to barf out the number of active hostgroups, active checks, and passive checks in Nagios? Maybe the check_nagios plugin? The current check_nagios plugin reveals this: Nagios ok: located 1 process, status log updated 4 seconds ago But something like the additional info below would be interesting to have: SiteScope daily status 310 monitors active in 72 groups http://207.182.226.32:8888/SiteScope SiteScope 4.5 c1 ----------------------------------------------------- SiteScope from Freshwater Software For info about ordering, upgrades, and support: http://www.freshwater.com chris-support at freshwater.com 303-443-2266 ----------------------------------------------------- Thanks, richg ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Fri Feb 14 18:19:49 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 14 Feb 2003 11:19:49 -0600 Subject: timeout issues Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E14BA@PKDWB03C.ad.sprint.com> When that's happened to me in the past, it usually meant that my Nagios host was working too hard. I've ended up tuning max_concurrent_checks. Presently it's set to 300 (down from an earlier 400, which was set after having problems at one point with the default of 0). The other possible problem is network congestion/latency. If that's not your problem, refer to the above comment. jc > -----Original Message----- > From: Jasmine [mailto:jasmine.chua at securecirt.com] > Sent: Friday, February 14, 2003 10:48 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] timeout issues > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > HI guys, > > I am just wondering if anyone could tell me why I am getting > occasional > CHECK_NRPE: timeout issues and when I check out the box, > everything is > running fine? > > - -- Warmest Regards, > > Jasmine Chua > Security Engineer > > SecureCiRT Pte Ltd > Blk 750C Chai Chee Road > #04-01 Technopark at ChaiChee > Singapore 469003 > Tel: 6243 6800 DID: 6243 6802 > Fax: 6441 5119 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE+TR3YNgvTa7Hj2AURAvxpAKCQAoxV5lyRPwDz34VKXNCc6UM1+QCgnrai > XKdw4FToLOEVJwU3kIjaSEo= > =okNo > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL > security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rich at vel.net Fri Feb 14 19:09:20 2003 From: rich at vel.net (Richard Gross) Date: Fri, 14 Feb 2003 10:09:20 -0800 Subject: check_nagios output request Message-ID: <52183F243CF19E44A1166F250311C34B5B2C24@cheddarcheese.vel.net> That will work. I'll just create a 2nd cron job. My 1st was: 5 8 * * * /usr/local/nagios/libexec/check_nagios -F /usr/local/nagios/var/status.log -e 5 -C /usr/local/nagios/bin/nagios | mail test at vel.net So I can add what you have below as a 2nd cron job easily... Thanks. richg -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Friday, February 14, 2003 9:17 AM To: Richard Gross; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] check_nagios output request If you're looking for something to send to e-mail, why not a cronjob which runs this command: /usr/local/nagios/bin/nagios -s /usr/local/nagios/etc/nagios.cfg jc -----Original Message----- From: Richard Gross [mailto:rich at vel.net] Sent: Friday, February 14, 2003 10:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nagios output request We are slowly moving away from an ancient version of SiteScope. But SiteScope does have a nice once a day output of it's version and other things shown below. What is the best way to barf out the number of active hostgroups, active checks, and passive checks in Nagios? Maybe the check_nagios plugin? The current check_nagios plugin reveals this: Nagios ok: located 1 process, status log updated 4 seconds ago But something like the additional info below would be interesting to have: SiteScope daily status 310 monitors active in 72 groups http://207.182.226.32:8888/SiteScope SiteScope 4.5 c1 ----------------------------------------------------- SiteScope from Freshwater Software For info about ordering, upgrades, and support: http://www.freshwater.com chris-support at freshwater.com 303-443-2266 ----------------------------------------------------- Thanks, richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 14 18:24:41 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 14 Feb 2003 11:24:41 -0600 Subject: Problem w/dependencies Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E14BB@PKDWB03C.ad.sprint.com> Yes, that's supposed to be how it works. However, I've discovered that if the check in question (eg, logfile scrubber) has is_volatile set to 1, or max_check_attempts is set to 1, then you'll be notified at the first failure. If that's not the case, possibly it's either the execution_failure_criteria or the notification_failure_criteria...? I've got both of these set to "w,u,c". jc > -----Original Message----- > From: Martin, Stanley G > Sent: Friday, February 14, 2003 10:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problem w/dependencies > > > I'm running 'netsaint_statd' on some AIX servers so that I can monitor > disk space. There are numerous times that I get alerts about > 'No answer > from client'. I'm assuming it's having problems connecting to the > socket and I'm not surprised since I'm in Kansas City and > these servers > are in Dallas (and Sprint's internal network sucks!!!) Anyway, at the > suggestion of someone on this list, I set up a service that would just > check to see if I could connect to the socket that netsaint_statd is > running on (sort of a heartbeat) and make all my filesystem > services dependent on this. So, if the filesystem service checks fail > because of 'No answer from client', isn't it supposed to then check to > see if the heartbeat is OK before I get a notification? > > Stanley G. Martin > Sprint - EIS? Customer Care > Stanley.G.Martin at mail.sprint.com > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL > security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cfedde at viawest.net Fri Feb 14 19:10:33 2003 From: cfedde at viawest.net (Chris Fedde) Date: Fri, 14 Feb 2003 11:10:33 -0700 Subject: Databased configuration Message-ID: <200302141810.h1EIAXfc076605@splat.viawest.net> Please forgive me if this is a FAQ. I have been unable to find an obvious note about this in the FAQ or the archive of the mailing list. I'm about to embark on a project to back end the configuration files with a database. I'm doing this to support a provisioning process for a potentially large number of hosts and services. Has there been any work already done in this area? I'd be interested to hear any info or pointers that you might have to share. Thanks in advance -- Chris Fedde ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From elliot at etv.net Fri Feb 14 19:42:25 2003 From: elliot at etv.net (Elliot Finley) Date: Fri, 14 Feb 2003 11:42:25 -0700 Subject: Q: locating running Nagios process Message-ID: <001e01c2d458$d1d67aa0$695ad70a@elliotdevelop> Nagios 1.0 FreeBSD 5.0-Release Everything works except the Nagios Process Information says: Process Status Information Process Status: CRITICAL Check Command Output: Could not locate a running Nagios process! I've verified the nagios_check_command in the cgi.cfg file. I've cut and pasted it to the CLI and it returns: Nagios ok: located 1 process, status log updated 2 seconds ago I've run it as root, the nagios user and also as the web user... No problems. Everything else works, host checks, service checks, alerts, etc... What is causing this??? ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lilesb at ijet.com Fri Feb 14 19:45:21 2003 From: lilesb at ijet.com (Bryan Liles) Date: Fri, 14 Feb 2003 13:45:21 -0500 Subject: Windows Event Log In-Reply-To: References: Message-ID: <200302141345.21884.lilesb@ijet.com> You could try a Event Log to syslog program to put your event logs on a unix syslog server. I think there is a plug in that will monitor logs on unix. On Friday 14 February 2003 11:56 am, Williams, P. Lane wrote: > I was wondering if anyone has successfully monitored Windows Event Logs > with Nagios..... > via SNMP...Perl....or anything else? If so, do you have any examples or > recommendations. > > > Thanks for any info or help, > > Lane > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Bryan Liles Chief Networking Specialist, iJET Travel Intelligence ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fjordan at hcs.net Fri Feb 14 19:55:53 2003 From: fjordan at hcs.net (Fred Jordan) Date: Fri, 14 Feb 2003 13:55:53 -0500 Subject: Problems with some hosts in host groups not being sent notifications Message-ID: <3E4D3BB9.5000004@hcs.net> Just converted from Netsaint to Nagios version 1.0. Have a host group that contains around 200 members, and some of the names are pretty long. All hosts are monitored and we see when they go down, but Nagios doesn't send notifications for some of the members in the group, while it will send notifications for others. All members members of this group are defined the same . Seems I remember that with Netsaint there was a problem when a hostgroup definition had too many letters that resulted in this problem. Not too many hosts in the host group, but rather a lot of hosts with rather long names making the hostgroup entry be too many letters on what is a single line. Am using the templete based configs. Any help is greatly appreciated. Thanks Much, Fred Jordan ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alden at math.ohio-state.edu Fri Feb 14 19:54:17 2003 From: alden at math.ohio-state.edu (Dave Alden) Date: Fri, 14 Feb 2003 13:54:17 -0500 Subject: Problem with check_ftp not closing connection properly? Message-ID: <20030214185417.GA23043@math.ohio-state.edu> Hi, I'm having an odd problem with check_ftp. For some reason it's leaving the daemon running on the server after it exits. If I telnet to port 21 on the ftp server and type "QUIT", the server exits normally. I have no other problems (that I know of :-) with ftp on that machine. The various versions are: Nagios Server: RedHat 8.0 nagios 1.0 nagios-plugins 1.3.0-beta2 (mostly, some have been updated from CVS) check_tcp version 1.12 (from CVS, 1.3.0-beta2 version also didn't work) FTP Server: RedHat 7.2 ProFTPD 1.2.5rc2 ...thnx, ...dave alden ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Fri Feb 14 19:26:10 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 14 Feb 2003 12:26:10 -0600 Subject: [Nagios-devel] Databased configuration Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E14BE@PKDWB03C.ad.sprint.com> It's currently supported in Nagios 1.0, using compile time options for MySQL or PostGreSQL. However, check: http://www.nagios.org/upcoming.php In particular, these lines: 8. DB support for retention data is being dropped 9. DB support for extended information is being dropped Also note that at least one individual has begun work on an XML approach, ie, manage the configuration via XML, then generate the Nagios config files from the XML file(s). HTH. jc > -----Original Message----- > From: Chris Fedde [mailto:cfedde at viawest.net] > Sent: Friday, February 14, 2003 12:11 PM > To: nagios-users at lists.sourceforge.net; > nagios-devel at lists.sourceforge.net > Subject: [Nagios-devel] Databased configuration > > > Please forgive me if this is a FAQ. I have been unable to > find an obvious > note about this in the FAQ or the archive of the mailing list. > > I'm about to embark on a project to back end the > configuration files with a > database. I'm doing this to support a provisioning process for a > potentially large number of hosts and services. Has there > been any work > already done in this area? I'd be interested to hear any > info or pointers > that you might have to share. > > Thanks in advance > -- > Chris Fedde > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL > security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-devel mailing list > Nagios-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-devel > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sandromergvaz at uol.com.br Fri Feb 14 21:18:37 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Fri, 14 Feb 2003 17:18:37 -0300 Subject: RES: 3d status problem. In-Reply-To: <010301c2d459$a8fe2140$0e00a8c0@medusa> References: <010301c2d459$a8fe2140$0e00a8c0@medusa> Message-ID: HYPERLINK "http://www.nagios.org/faqs/viewfaq.php?faq_id=52"http://www.nagios.org/faqs /viewfaq.php?faq_id=52 -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Thiago Lima Enviada em: sexta-feira, 14 de fevereiro de 2003 15:48 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] 3d status problem. Hi, I'm running nagios and I'm very happy with it. I used to run whatsup gold, but when I meet nagios I switched right on the time. BUT (there's allways a but:)) I can't make the 3d status run. When I click at it I receive a download message from my brownser. If I download the file no program can open it. I know that it is WRL, but I can't open it. Any tips? thanks alot. thiago. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.455 / Virus Database: 255 - Release Date: 13/2/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.455 / Virus Database: 255 - Release Date: 13/2/2003 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lane.Williams at jhuapl.edu Fri Feb 14 20:56:16 2003 From: Lane.Williams at jhuapl.edu (Williams, P. Lane) Date: Fri, 14 Feb 2003 14:56:16 -0500 Subject: Windows Event Log Message-ID: Thanks for the help. The remote syslog idea sounds like a good one. Then I can use the check_log plugins to do the trick. Thanks again, Lane -----Original Message----- From: Bryan Liles [mailto:lilesb at ijet.com] Sent: Friday, February 14, 2003 1:45 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Windows Event Log You could try a Event Log to syslog program to put your event logs on a unix syslog server. I think there is a plug in that will monitor logs on unix. On Friday 14 February 2003 11:56 am, Williams, P. Lane wrote: > I was wondering if anyone has successfully monitored Windows Event Logs > with Nagios..... > via SNMP...Perl....or anything else? If so, do you have any examples or > recommendations. > > > Thanks for any info or help, > > Lane > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Bryan Liles Chief Networking Specialist, iJET Travel Intelligence ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Fri Feb 14 21:12:11 2003 From: syed at nec-labs.com (Syed Ali) Date: Fri, 14 Feb 2003 15:12:11 -0500 Subject: 3d status problem. Message-ID: <951A499AA688EF47A898B45F25BD8EE822CEBE@mailer.nec-labs.com> You need VRML client for your browser , I use the one at http://www.parallelgraphics.com/products/cortona/. You can get a link for more VRML clients at http://www.nagios.org/faqs/viewfaq.php?faq_id=52. -----Original Message----- From: Thiago Lima [mailto:thiagolima at webforce.com.br] Sent: Friday, February 14, 2003 1:48 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] 3d status problem. Hi, I'm running nagios and I'm very happy with it. I used to run whatsup gold, but when I meet nagios I switched right on the time. BUT (there's allways a but:)) I can't make the 3d status run. When I click at it I receive a download message from my brownser. If I download the file no program can open it. I know that it is WRL, but I can't open it. Any tips? thanks alot. thiago. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Fri Feb 14 22:28:15 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Sat, 15 Feb 2003 05:28:15 +0800 Subject: Fwd: Q: locating running Nagios process In-Reply-To: <001e01c2d458$d1d67aa0$695ad70a@elliotdevelop> References: <001e01c2d458$d1d67aa0$695ad70a@elliotdevelop> Message-ID: <200302150528.18471.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am having this issue as well and nagios is ok when i checked it. To resolve it temporarily I restarted nagios. Just that my O/S is a linux box. Would like to hear from anyone. Thanks! On Saturday 15 February 2003 02:42, Elliot Finley wrote: > Nagios 1.0 > FreeBSD 5.0-Release > > Everything works except the Nagios Process Information says: > > Process Status Information > Process Status: CRITICAL > Check Command Output: Could not locate a running Nagios process! > > I've verified the nagios_check_command in the cgi.cfg file. I've cut and > pasted it to the CLI and it returns: > > Nagios ok: located 1 process, status log updated 2 seconds ago > > I've run it as root, the nagios user and also as the web user... No > problems. > > Everything else works, host checks, service checks, alerts, etc... > > What is causing this??? > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null - -- Jasmine Chua Security Engineer SecureCiRT Pte Ltd Blk 750C Chai Chee Road #04-01 Technopark at ChaiChee Singapore 469003 Tel: 6243 6800 DID: 6243 6802 Fax: 6441 5119 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+TV9wNgvTa7Hj2AURAjmYAKC3u8VT+JZfeXJ5yHRQO6BRyrmTWwCfWW/m AuktsmM89jNZ/vIJmPoToRU= =nzxv -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Sat Feb 15 00:46:17 2003 From: syed at nec-labs.com (Syed Ali) Date: Fri, 14 Feb 2003 18:46:17 -0500 Subject: Free Windows Based MIB Browser Message-ID: <951A499AA688EF47A898B45F25BD8EE822CEE8@mailer.nec-labs.com> Hello, Does anyone know of a free Windows 2000 based MIB browser? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From syed at nec-labs.com Sat Feb 15 00:45:36 2003 From: syed at nec-labs.com (Syed Ali) Date: Fri, 14 Feb 2003 18:45:36 -0500 Subject: Walking a MIB structure Message-ID: <951A499AA688EF47A898B45F25BD8EE822CEE7@mailer.nec-labs.com> Hello, I have installed the Microsoft Exchange MIB from http://www.somix.com/software/mibs/ on my Exchange server and restarted the Windows SNMP service. I am trying to use snmpwalk to walk the Exchange MIB, but I am unable to. Any clues on how to walk the Exchange MIB using snmpwalk? Snmpwalk host community Microsoft-Exchange is what I tried. Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Sat Feb 15 01:28:49 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 14 Feb 2003 18:28:49 -0600 Subject: Free Windows Based MIB Browser Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E14CC@PKDWB03C.ad.sprint.com> These folks used to have a Lite version: http://www.mg-soft.si/ jc -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Friday, February 14, 2003 5:46 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Free Windows Based MIB Browser Hello, Does anyone know of a free Windows 2000 based MIB browser? Thank you... ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Sat Feb 15 02:11:01 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Fri, 14 Feb 2003 20:11:01 -0500 Subject: status map images not working References: <74D428BDBFD5D04CB54E84499ECA29DB014E14CC@PKDWB03C.ad.sprint.com> Message-ID: <104527146100007a0f@imgxs42> Hello Group: Like many on this list, I have been trying to get statusmap images working. Statusmap actually works, but I see the boring "?" question marks. Any help is appreciated. Thanks Babak Enclosed is the entry I have in my cgi.cfg xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg default_statusmap_layout=5 also please find the hostextinfo.cfg define hostextinfo{ host_name novell1 icon_image novell40.png icon_image_alt IntranetWare 4.11 vrml_image novell40.png statusmap_image novell40.png 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } define hostextinfo{ host_name novell2 icon_image novell40.png icon_image_alt IntranetWare 4.11 vrml_image novell40.png statusmap_image novell40.png 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } define hostextinfo{ host_name nt1 icon_image win40.png icon_image_alt Windows vrml_image win40.png statusmap_image win40.png 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wgong at smu.edu.sg Sat Feb 15 10:26:37 2003 From: wgong at smu.edu.sg (GONG Wei) Date: Sat, 15 Feb 2003 17:26:37 +0800 Subject: Free Windows Based MIB Browser Message-ID: <108506BDA45F1F45AA6EDE147A27FC010201410D@mail1.smu.edu.sg> Getif (http://www.wtcs.org/snmp4tpc/getif.htm), a free windows tool works quite fine for me. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Saturday, February 15, 2003 8:29 AM To: 'Syed Ali'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Free Windows Based MIB Browser These folks used to have a Lite version: http://www.mg-soft.si/ jc -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Friday, February 14, 2003 5:46 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Free Windows Based MIB Browser Hello, Does anyone know of a free Windows 2000 based MIB browser? Thank you... ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Sat Feb 15 11:13:52 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Sat, 15 Feb 2003 04:13:52 -0600 Subject: Monitoring Free space on a Windows NT4/2000 box Message-ID: <115F85A8196CD411BBAB0008C7590661820416@FS01> All, I am looking to monitor the free space on my machines that I have running. It is about twenty (20) or so servers, all running either NT4 or Windows 2000. Is there a plug-in for this? If not, what other solutions do I have? Thanks, Daniel Jimenez Systems Administrator Avatar Computer Solutions, Inc. Network Support, Voice / Data Cabling, and Internet Services 340 N. Sam Houston Parkway E. Suite #265 Voice: 281.999.1300 / 888.503.0503 Fax: 281.999.7070 Web: www.avatar-cs.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From joknight at blueyonder.co.uk Sat Feb 15 12:14:23 2003 From: joknight at blueyonder.co.uk (Jo Knight) Date: Sat, 15 Feb 2003 11:14:23 -0000 Subject: Monitoring Free space on a Windows NT4/2000 box References: <115F85A8196CD411BBAB0008C7590661820416@FS01> Message-ID: <007a01c2d4e3$653f57f0$1ae6c150@sensi> Daniel, You will need to download and install the NSClient service from http://nsclient.ready2run.nl/ This has services for both win2k and NT4 clients and also has the check_nt binary for linux which you need to copy into your libexec directory. Put the following into your checkcommands.cfg: # 'check_disk_use' command definition define command { command_name check_disk_use command_line $USER1$/check_nt -H $HOSTADDRESS$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } You can add services to your services.cfg file as follows: define service { use generic-service host_name service_description DrvSpace E is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups svr-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_disk_use!E!90!95 } Hope that helps, Jo ----- Original Message ----- From: "Daniel Jimenez" To: Sent: Saturday, February 15, 2003 10:13 AM Subject: [Nagios-users] Monitoring Free space on a Windows NT4/2000 box > All, > > I am looking to monitor the free space on my machines that I have running. > It is about twenty (20) or so servers, all running either NT4 or Windows > 2000. Is there a plug-in for this? If not, what other solutions do I have? > > Thanks, > > Daniel Jimenez > Systems Administrator > Avatar Computer Solutions, Inc. > Network Support, Voice / Data Cabling, and Internet Services > 340 N. Sam Houston Parkway E. Suite #265 > Voice: 281.999.1300 / 888.503.0503 > Fax: 281.999.7070 > Web: www.avatar-cs.net > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sat Feb 15 13:56:41 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 15 Feb 2003 07:56:41 -0500 Subject: Problem with check_ftp not closing connection properly? In-Reply-To: <20030214185417.GA23043@math.ohio-state.edu> References: <20030214185417.GA23043@math.ohio-state.edu> Message-ID: <1045313800.14846.2.camel@miles.debisschop.net> On Fri, 2003-02-14 at 13:54, Dave Alden wrote: > Hi, > I'm having an odd problem with check_ftp. For some reason it's leaving > the daemon running on the server after it exits. If I telnet to port 21 > on the ftp server and type "QUIT", the server exits normally. I have no > other problems (that I know of :-) with ftp on that machine. The various > versions are: > > Nagios Server: > RedHat 8.0 > nagios 1.0 > nagios-plugins 1.3.0-beta2 (mostly, some have been updated from CVS) > check_tcp version 1.12 (from CVS, 1.3.0-beta2 version also didn't work) > > FTP Server: > RedHat 7.2 > ProFTPD 1.2.5rc2 > > ...thnx, > ...dave alden by default, check_tcp just maust the connection and drops it. Try specifying a string to send check_tcp -s QUIT -H Please let us know if that works, there are sketchy reports of bugs in check_tcp that we'd really like to iron out before we release the 3rd beta early next week. -- Karl ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sat Feb 15 13:59:30 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 15 Feb 2003 07:59:30 -0500 Subject: Problem with check_ftp not closing connection properly? In-Reply-To: <20030214185417.GA23043@math.ohio-state.edu> References: <20030214185417.GA23043@math.ohio-state.edu> Message-ID: <1045313970.14846.4.camel@miles.debisschop.net> On Fri, 2003-02-14 at 13:54, Dave Alden wrote: > Hi, > I'm having an odd problem with check_ftp. For some reason it's leaving > the daemon running on the server after it exits. If I telnet to port 21 > on the ftp server and type "QUIT", the server exits normally. I have no > other problems (that I know of :-) with ftp on that machine. The various > versions are: > > Nagios Server: > RedHat 8.0 > nagios 1.0 > nagios-plugins 1.3.0-beta2 (mostly, some have been updated from CVS) > check_tcp version 1.12 (from CVS, 1.3.0-beta2 version also didn't work) > > FTP Server: > RedHat 7.2 > ProFTPD 1.2.5rc2 > > ...thnx, > ...dave alden In my other email, I meant '-q' not '-s' check_tcp -q QUIT -H -- Karl ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rich at vel.net Sat Feb 15 17:12:17 2003 From: rich at vel.net (Richard Gross) Date: Sat, 15 Feb 2003 08:12:17 -0800 Subject: Hostgroup / host config for multiple data centers Message-ID: <52183F243CF19E44A1166F250311C34B047775@cheddarcheese.vel.net> I need some advice on using a single Nagios server monitoring different cities and relay racks in those cities. Example: Torrance Pasadena Van Nuys | | | RR10.01,RR10.02 RR20.01,RR20.02 RR30.01, RR30.02 etc | | | Customers in each RR Customers in each RR Customers in each RR Is there a way to setup a master hostgroup for each city, that has A master hostgroup containing the Relay Racks in that city. Then Below that are the customers per Relay Rack. Right now, I just define hostgroups which right now are simply the Relay racks. But I want to be able to "click down" a hierarchy of City, then Relay Racks per city, then get the client detail. Like if you click "Service Overview for all host groups" can you get Simply "Torrance" and have it pull up the Relay Racks in Torrance. Then you can click on a specific Relay Rack to get customer detail? Would appreciate learning how larger facilities are doing the above... Thank you. richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From DanielJ at avatar-cs.net Sat Feb 15 17:05:38 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Sat, 15 Feb 2003 10:05:38 -0600 Subject: Monitoring Free space on a Windows NT4/2000 bo x Message-ID: <115F85A8196CD411BBAB0008C7590661820417@FS01> Is there any form of security on this? I do not want just anyone who can install Nagios being able to view free space or other data. Thanks, Daniel -----Original Message----- From: Jo Knight [mailto:joknight at blueyonder.co.uk] Sent: Saturday, February 15, 2003 5:14 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Free space on a Windows NT4/2000 box Daniel, You will need to download and install the NSClient service from http://nsclient.ready2run.nl/ This has services for both win2k and NT4 clients and also has the check_nt binary for linux which you need to copy into your libexec directory. Put the following into your checkcommands.cfg: # 'check_disk_use' command definition define command { command_name check_disk_use command_line $USER1$/check_nt -H $HOSTADDRESS$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } You can add services to your services.cfg file as follows: define service { use generic-service host_name service_description DrvSpace E is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups svr-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_disk_use!E!90!95 } Hope that helps, Jo ----- Original Message ----- From: "Daniel Jimenez" To: Sent: Saturday, February 15, 2003 10:13 AM Subject: [Nagios-users] Monitoring Free space on a Windows NT4/2000 box > All, > > I am looking to monitor the free space on my machines that I have running. > It is about twenty (20) or so servers, all running either NT4 or Windows > 2000. Is there a plug-in for this? If not, what other solutions do I have? > > Thanks, > > Daniel Jimenez > Systems Administrator > Avatar Computer Solutions, Inc. > Network Support, Voice / Data Cabling, and Internet Services > 340 N. Sam Houston Parkway E. Suite #265 > Voice: 281.999.1300 / 888.503.0503 > Fax: 281.999.7070 > Web: www.avatar-cs.net > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From joknight at blueyonder.co.uk Sat Feb 15 17:32:33 2003 From: joknight at blueyonder.co.uk (Jo Knight) Date: Sat, 15 Feb 2003 16:32:33 -0000 Subject: Monitoring Free space on a Windows NT4/2000 box References: <115F85A8196CD411BBAB0008C7590661820417@FS01> Message-ID: <000a01c2d50f$d78c7f50$1ae6c150@sensi> Yes, you have the ability to change the password and port through the windows registry. You would then need to edit the command in your checkcommand.cfg to reflect the correct syntax. See check_nt --help for all the options for the command. Jo ----- Original Message ----- From: "Daniel Jimenez" To: "'Jo Knight'" ; Sent: Saturday, February 15, 2003 4:05 PM Subject: RE: [Nagios-users] Monitoring Free space on a Windows NT4/2000 box > Is there any form of security on this? I do not want just anyone who can > install Nagios being able to view free space or other data. > > Thanks, > > Daniel > > -----Original Message----- > From: Jo Knight [mailto:joknight at blueyonder.co.uk] > Sent: Saturday, February 15, 2003 5:14 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitoring Free space on a Windows NT4/2000 box > > Daniel, > > You will need to download and install the NSClient service from > http://nsclient.ready2run.nl/ > > This has services for both win2k and NT4 clients and also has the check_nt > binary for linux which you need to copy into your libexec directory. > > Put the following into your checkcommands.cfg: > > # 'check_disk_use' command definition > define command { > command_name check_disk_use > command_line $USER1$/check_nt -H $HOSTADDRESS$ -v > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > } > > You can add services to your services.cfg file as follows: > define service { > use generic-service > host_name > service_description DrvSpace E > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups svr-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_disk_use!E!90!95 > } > > Hope that helps, > Jo > > ----- Original Message ----- > From: "Daniel Jimenez" > To: > Sent: Saturday, February 15, 2003 10:13 AM > Subject: [Nagios-users] Monitoring Free space on a Windows NT4/2000 box > > > > All, > > > > I am looking to monitor the free space on my machines that I have running. > > It is about twenty (20) or so servers, all running either NT4 or Windows > > 2000. Is there a plug-in for this? If not, what other solutions do I have? > > > > Thanks, > > > > Daniel Jimenez > > Systems Administrator > > Avatar Computer Solutions, Inc. > > Network Support, Voice / Data Cabling, and Internet Services > > 340 N. Sam Houston Parkway E. Suite #265 > > Voice: 281.999.1300 / 888.503.0503 > > Fax: 281.999.7070 > > Web: www.avatar-cs.net > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at pointpub.net Sat Feb 15 17:54:32 2003 From: nagios at pointpub.net (Sebastien Roy) Date: Sat, 15 Feb 2003 11:54:32 -0500 Subject: check_nt under AIX Message-ID: <003801c2d512$e9a5a5b0$fa7b12d8@SEBASTIEN> Hi folks, Someone else here use Nagios under AIX ? I?m not able to compile the check_nt under AIX. Can someone else use it under AIX ? Thanks SR -------------- next part -------------- An HTML attachment was scrubbed... URL: From joknight at blueyonder.co.uk Sat Feb 15 19:10:52 2003 From: joknight at blueyonder.co.uk (Jo Knight) Date: Sat, 15 Feb 2003 18:10:52 -0000 Subject: statusmap.cgi Message-ID: <002c01c2d51d$93b1b4e0$1ae6c150@sensi> Hi, I am working my way through setting up the different choices from the side bar, I am still trying to get the stausmap displayed. I have downloaded and installed the gd library with png and jpg support, this was recognised by the configure script for nagios. When I try to access the statusmap I get an apache internal server error, a quick check of the apache error.log gives: [Sat Feb 15 17:43:09 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic [Sat Feb 15 17:43:10 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic [Sat Feb 15 17:43:10 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 configured -- resuming normal operations [Sat Feb 15 17:43:10 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) [Sat Feb 15 17:43:10 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) statusmap.cgi: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory [Sat Feb 15 17:50:52 2003] [error] [client 172.25.1.1] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi Is the libgd being registered or do I need to do something to get nagios (or apache) to see it. Can someone please point me to what I should be doing to getting this working? I am using nagios 1.0 Thanks, Jo ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Sat Feb 15 20:04:09 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Sat, 15 Feb 2003 13:04:09 -0600 Subject: pngtogd2 issue Message-ID: <115F85A8196CD411BBAB0008C759066182041A@FS01> All, I have Nagios almost 100% configured correctly. The only issue I'm having is converting a png to a gd2 file. I downloaded and installed gd 2.x from the website as instructed by the Nagios FAQ. When I run pngtogd2 file.png file.gd2 0 0 it creates a file w/o error, I have Nagios pointing to this file for the status map... yet it still displays a question mark. The jpg, and gif format work great on the pop-up and other menus. I know I have the path correct as well... Any suggestions? Could it be an issue w/the png file itself? Daniel Jimenez Systems Administrator Avatar Computer Solutions, Inc. Network Support, Voice / Data Cabling, and Internet Services 340 N. Sam Houston Parkway E. Suite #265 Voice: 281.999.1300 / 888.503.0503 Fax: 281.999.7070 Web: www.avatar-cs.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From rich at vel.net Sat Feb 15 23:28:53 2003 From: rich at vel.net (Richard Gross) Date: Sat, 15 Feb 2003 14:28:53 -0800 Subject: statusmap.cgi Message-ID: <52183F243CF19E44A1166F250311C34B5B2C29@cheddarcheese.vel.net> > [Sat Feb 15 17:43:10 2003] [notice] Accept mutex: sysvsem > statusmap.cgi: error while loading shared libraries: libgd.so.2: cannot > open shared object file: No such file or directory [Sat Feb 15 17:50:52 I tried the SetEnv directive in httpd.conf that someone else metioned; that did not work for me. I did a ln -s /usr/local/lib/libgd.so.2 /usr/lib Which fixed the problem for me. richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryan at bryann.ath.cx Sun Feb 16 08:05:26 2003 From: bryan at bryann.ath.cx (Bryan Nolen) Date: Sun, 16 Feb 2003 18:05:26 +1100 Subject: help: notifications not being sent! Message-ID: plz help .... my contacts.cfg file has an entry for my admin user with a valid email address my contactgroups.cfg file has the admin user as a member of the admins group. my service template in services.cfg has admins on the contact_groups line. the hostgroup for the hosts in question has admins on contact_groups line. notifications are enabled globally. I am using the 24x7 time period for all notification_period lines. but I am not getting any notifications! help needed asap! Regards, Bryan. -- ================================================== Bryan Nolen bryan at bryann dot ath dot cx http://bryann.ath.cx/ ================================================== ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bryan at bryann.ath.cx Sun Feb 16 10:31:30 2003 From: bryan at bryann.ath.cx (Bryan Nolen) Date: Sun, 16 Feb 2003 20:31:30 +1100 Subject: help: notifications not being sent! In-Reply-To: <000001c2d59d$0d3787c0$0101a8c0@main> References: <000001c2d59d$0d3787c0$0101a8c0@main> Message-ID: maillog shows no sending attempts, the notifications log is empty. attached is my contacts and contactgroups files. also a sample from from hosts and services files... -Bryan On Sun, 16 Feb 2003 20:23, you wrote: > Have you checked the maillog to see if any attempt is being made to send > out the emails? > What does the nagios log file say? Does it say it is sending out an > alert? > > You may need to post a sample of config from all the files to really be > able to see where the problem is. > > Tony > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Bryan Nolen > > Sent: 16 February 2003 07:05 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] help: notifications not being sent! > > > > plz help .... > > > > my contacts.cfg file has an entry for my admin user with a valid email > > address > > > my contactgroups.cfg file has the admin user as a member of the admins > > group. > > > my service template in services.cfg has admins on the contact_groups > > line. > > > the hostgroup for the hosts in question has admins on contact_groups > > line. > > > notifications are enabled globally. I am using the 24x7 time period > > for all > > > notification_period lines. > > > > but I am not getting any notifications! > > > > help needed asap! > > > > Regards, > > Bryan. > > > > -- > > ================================================== > > Bryan Nolen bryan at bryann dot ath dot cx > > http://bryann.ath.cx/ > > ================================================== > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any > > > issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null -- ================================================== Bryan Nolen bryan at bryann dot ath dot cx http://bryann.ath.cx/ ================================================== -------------- next part -------------- # Contact configuration - converted from netsaint: 20030113 define contact { contact_name root alias Root service_notification_period 24x7 host_notification_period 24x7 service_notification_commands service-notify-by-email host_notification_commands host-notify-by-email email bryan at arc.net.au } -------------- next part -------------- # Contact group configuration - converted from netsaint: 20030113 define contactgroup { contactgroup_name admins alias Administrators members root } -------------- next part -------------- define service { name my-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 1 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 01 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 5 contact_groups admins notification_interval 6 notification_period 24x7 register 0 } define service { use my-service host_name servername service_description server-http check_command check_http } # ----- # define host { name myhost notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 check_command check-host-alive max_check_attempts 5 notification_interval 5 notification_period 24x7 notification_options d,u,r register 0 } define host { use myhost host_name servername alias serverfqdn address serverfqdn } # --- # define hostgroup { hostgroup_name myhosts alias my hosts contact_groups admins members myhost } From wangee at linuxbe.org Sun Feb 16 12:03:17 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: 16 Feb 2003 12:03:17 +0100 Subject: help: notifications not being sent! In-Reply-To: References: Message-ID: <1045393398.1077.230.camel@winnie> Le dim 16/02/2003 ? 08:05, Bryan Nolen a ?crit : > plz help .... > > my contacts.cfg file has an entry for my admin user with a valid email address > my contactgroups.cfg file has the admin user as a member of the admins group. > > my service template in services.cfg has admins on the contact_groups line. > > the hostgroup for the hosts in question has admins on contact_groups line. > > notifications are enabled globally. I am using the 24x7 time period for all > notification_period lines. > > but I am not getting any notifications! Could you find events about notification in your Nagios event log ? Chris ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wangee at linuxbe.org Sun Feb 16 12:12:01 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: 16 Feb 2003 12:12:01 +0100 Subject: help: notifications not being sent! In-Reply-To: References: <000001c2d59d$0d3787c0$0101a8c0@main> Message-ID: <1045393921.1077.235.camel@winnie> > # Contact configuration - converted from netsaint: 20030113 > > define contact { > contact_name root > alias Root > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_commands service-notify-by-email > host_notification_commands host-notify-by-email > email bryan at arc.net.au > } > Your contact configuration is correct, except the fact that you did not tell nagios on which event it must notify. Here is an example of my config... Look at "service_notification_options" and "host_notification_options" # 'nagios' contact definition define contact{ contact_name nagios alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands submit-by-email host_notification_commands host-notify-by-email email nagios at some.domain.com } ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bryan at bryann.ath.cx Sun Feb 16 11:41:05 2003 From: bryan at bryann.ath.cx (Bryan Nolen) Date: Sun, 16 Feb 2003 21:41:05 +1100 Subject: help: notifications not being sent! Message-ID: many thanks for the replies guys worked like a charm! just a warning for anyone migrating from netsaint: netsaint2nagios does not add the notification options :) -Bryan -- ================================================== Bryan Nolen bryan at bryann dot ath dot cx http://bryann.ath.cx/ ================================================== ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Sun Feb 16 19:51:13 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 16 Feb 2003 13:51:13 -0500 (EST) Subject: Questions about flexlm In-Reply-To: <004f01c2d372$792ba0b0$87a9ca83@unb.ca> References: <004f01c2d372$792ba0b0$87a9ca83@unb.ca> Message-ID: On Thu, 13 Feb 2003, Michael Jewett wrote: > I apologize if this topic has already been discussed, but I couldn't find > the answer I'm looking for in the archives. > > Our department has a license manger running and would like to know what > check_flexlm can give us. I don't know anything about the license manager, > except which box it runs on. I have lmstat installed, but can't figure what > I need to have for a license_file. Could someone give me a sample file, > plus tell me what I can gain by monitoring it. The more details the better. > > Thanks, > Michael > the license_file is the license.dat used by the license manager for all its configuration (port, single/redundant server, software licensed) Use the file that is used for your license server. They are specific to each installation. lmstat uses the info in the file to figure out which host(s) the server(s) are running on. check_flexlm currently only verifies that the flexlm license manager is running - it does not verify the state of any secondary vendor daemons. -- -sg ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Mon Feb 17 07:43:39 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Mon, 17 Feb 2003 00:43:39 -0600 Subject: pngtogd2 issue Message-ID: <115F85A8196CD411BBAB0008C759066182041B@FS01> Can anyone provide any details on this? -----Original Message----- From: Daniel Jimenez Sent: Saturday, February 15, 2003 1:04 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] pngtogd2 issue All, I have Nagios almost 100% configured correctly. The only issue I'm having is converting a png to a gd2 file. I downloaded and installed gd 2.x from the website as instructed by the Nagios FAQ. When I run pngtogd2 file.png file.gd2 0 0 it creates a file w/o error, I have Nagios pointing to this file for the status map... yet it still displays a question mark. The jpg, and gif format work great on the pop-up and other menus. I know I have the path correct as well... Any suggestions? Could it be an issue w/the png file itself? Daniel Jimenez Systems Administrator Avatar Computer Solutions, Inc. Network Support, Voice / Data Cabling, and Internet Services 340 N. Sam Houston Parkway E. Suite #265 Voice: 281.999.1300 / 888.503.0503 Fax: 281.999.7070 Web: www.avatar-cs.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From gbiondi at tech2.it Mon Feb 17 08:29:02 2003 From: gbiondi at tech2.it (Giorgio Biondi) Date: Mon, 17 Feb 2003 08:29:02 +0100 Subject: Where put images? Message-ID: Hi, I have put the .gif image like a documentation, but my nagios put on my screen a question mark: sure I go in error, but where??? Giorgio Biondi Tech2 S.r.l. gbiondi at tech2.it http://www.tech2.it ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bliwanag at yahoo.com Mon Feb 17 09:23:55 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Mon, 17 Feb 2003 00:23:55 -0800 (PST) Subject: txt format for nagios check_nrpe report Message-ID: <20030217082355.16587.qmail@web40605.mail.yahoo.com> Anyone can help me on how to get a txt format (space or comma delimited) in nagios for the check_nrpe disk status report,such that it would be readable in excel? Thanks! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bliwanag at yahoo.com Mon Feb 17 10:38:04 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Mon, 17 Feb 2003 01:38:04 -0800 (PST) Subject: network traffic Message-ID: <20030217093804.45505.qmail@web40612.mail.yahoo.com> Hi Everyone! Can nagios monitor directry the network traffic of a certain server? Thanks! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ejl at man.fwltech.com Mon Feb 17 10:53:56 2003 From: ejl at man.fwltech.com (Ewan Leith) Date: Mon, 17 Feb 2003 09:53:56 -0000 Subject: check_nt under AIX Message-ID: <1012BD903945D411915500105A48FF57F06872@nt.man.fwltech.com> worked fine for me, what error do you get when compiling? -----Original Message----- From: Sebastien Roy [mailto:nagios at pointpub.net] Sent: 15 February 2003 16:55 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt under AIX Hi folks, Someone else here use Nagios under AIX ? I'm not able to compile the check_nt under AIX. Can someone else use it under AIX ? Thanks SR ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Donal.Hunt at dcu.ie Mon Feb 17 11:05:56 2003 From: Donal.Hunt at dcu.ie (Donal Hunt) Date: Mon, 17 Feb 2003 10:05:56 +0000 Subject: pngtogd2 issue References: <115F85A8196CD411BBAB0008C759066182041B@FS01> Message-ID: <3E50B404.FEC20C63@dcu.ie> try using "pngtogd2 image.png image.gd2 0 1" to generate the image. I've had problems with the images generated by pngtogd2 in the past and my experience has been to just use the pre-built images available from the nagios site. YMMV Regards Donal DCU ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Mon Feb 17 12:35:12 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Mon, 17 Feb 2003 12:35:12 +0100 Subject: Caching SNMP Info Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804DC@storevis.datavis.se> It does not compile with Ucd-snmp version 5. /FredrikW -----Original Message----- From: John Sellens [mailto:jsellens at generalconcepts.com] Sent: Fri 14-Feb-03 17:39 To: nagios-users at lists.sourceforge.net; r1p6os402 at sneakemail.com; sghosh at sghosh.org Cc: Subject: RE: [Nagios-users] Caching SNMP Info | From: Subhendu Ghosh | Date: Wed, 29 Jan 2003 17:45:53 -0500 | | snmp proxy was desgined to prevent the lodaing and unloading of MIB files | on every call by having a long running proxy daemon that would load MIB | files just once. | | The plugin passes the parameters to the proxy which does the actual get. | | if you use -m"" you can get similar speedups from check_snmp but have | to use oids and not names. I haven't looked closely at Vladislav's snmppd SNMP proxy (yet), but I expect that there's another interesting aspect to it. It will likely allow you to securely and reliably do SNMP checks to remote locations, through firewalls and across open networks, since it uses TCP and one could (presumably) use stunnel (or equivalent) to encrypt the traffic. It may also help with certain problems passing UDP SNMP traffic through NAT and some firewalls. I think it may be able to solve a number of problems that I've been worried about. Cheers! John jsellens at generalconcepts.com ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Mon Feb 17 12:49:39 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Mon, 17 Feb 2003 12:49:39 +0100 Subject: network traffic Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804DE@storevis.datavis.se> Yes, if you use Apan (apan.sourceforge.net) /FredrikW -----Original Message----- From: bernie liwanag [mailto:bliwanag at yahoo.com] Sent: Mon 17-Feb-03 10:38 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] network traffic Hi Everyone! Can nagios monitor directry the network traffic of a certain server? Thanks! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Raj.Mudhar at nottingham.ac.uk Mon Feb 17 14:21:22 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Mon, 17 Feb 2003 13:21:22 +0000 Subject: Plugin Dependencies whereabouts Message-ID: Hi, I installed the plugins.. did the ./configure bit.. but on some stuff it didnt compile and said i need the folllowing. It gave me some sites and they dont work and now im stuck as to where to get the dependencies from. i need the following radius plugin lmstat qstat fping snmp port module Anyhelp please .. i would appreciate. Raj Mudhar IT Support Assistant Cripps Computing Centre South Information Services Email: Raj.Mudhar at nottingham.ac.uk ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Mon Feb 17 14:34:08 2003 From: philc at foundation-it.com (Phil Costelloe) Date: Mon, 17 Feb 2003 13:34:08 -0000 Subject: Out of bounds return codes using current CVS Nagios Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE909EC71@netfinity-1.foundation-it.local> I'm currently testing Nagios for use in a production environment. I've just built the 200202132308 CVS version of Nagios and Nagios plugins to see if it resolves a few issues in 1.0 stable, primarily not being able to get the statusmap CGI to build at all. For the most part it does (statusmap.cgi now compiles and runs although, in common with a number of others, I can't get it to use the graphics I want) but there is one weird problem. When a plugin returns a WARNING or CRITICAL state, the service detail display always shows a CRITICAL error and a message such as "(Return code of 512 is out of bounds)". If I run the plugin manually (as the nagios user) with identical parameters, it behaves as expected when there's a warning/critical situation - displaying a text message and returning an error code of 1 or 2 or 3. When called by Nagios, this error code is apparently being multiplied by 256 giving a return code of 256 or 512 or 768 which is interpreted as being out of bounds. This seems to be happening on all plugins (I've seen it on check_ftp, check_http, check_nt, check_ntp and check_fping) so I'd say it was to do with the core code and not the plugin code. Has anybody experienced anything similar or know how to fix the problem? Failing that, where's a good place to start looking? :) I'm going to give 200202171109 a try - I'll obviously post again if that solves the problem. Phil ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SGHays at PatioEnclosuresInc.com Mon Feb 17 15:57:16 2003 From: SGHays at PatioEnclosuresInc.com (Hays, Sam) Date: Mon, 17 Feb 2003 09:57:16 -0500 Subject: check_disk_smb weirdness. Message-ID: So, I've got Nagios 1.0, perl 5.6.1, samba Version 2.2.6pre2 on FreeBSD 4.7 -RELASE With nagios-plugins-1.3.0-beta2 I was wondering if anybody had problems with check_disk_smb ? Here's what I get: Chopin# ./check_disk_smb -H Server -s SHARE -u administrator -p password Can't exec "//Orion/E_SHARE": No such file or directory at ./check_disk_smb line 128. Use of uninitialized value in split at ./check_disk_smb line 134. Use of uninitialized value in pattern match (m//) at ./check_disk_smb line 142. Result from smbclient not suitable Chopin# Has anybody run into this before? Please help -------------- next part -------------- An HTML attachment was scrubbed... URL: From rich at vel.net Mon Feb 17 16:13:57 2003 From: rich at vel.net (Richard Gross) Date: Mon, 17 Feb 2003 07:13:57 -0800 Subject: Is there a plugin that monitors NT disk space used per subdirectory? Message-ID: <52183F243CF19E44A1166F250311C34B5B2C2E@cheddarcheese.vel.net> Wondering if there is such a thing that is an NT plugin for Nagios that Will tell you the disk space used per subdirectory. This would be very Useful. Thanks. richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnmc at johnmc.org Mon Feb 17 17:04:39 2003 From: johnmc at johnmc.org (John McDonnell) Date: Mon, 17 Feb 2003 08:04:39 -0800 (PST) Subject: pngtogd2 issue In-Reply-To: <3E50B404.FEC20C63@dcu.ie> References: <115F85A8196CD411BBAB0008C759066182041B@FS01> <3E50B404.FEC20C63@dcu.ie> Message-ID: On the 17th day of February, Donal Hunt said to me: > I've had problems with the images generated by pngtogd2 in the past and likewise... The documentation's not exactly clear on the special magick involved to get transparency and gd2's working right. > my experience has been to just use the pre-built images available from > the nagios site. But what if them pre-built images don't describe your setup accurately. e.g. I have some Cobalt/MIPS and Cobalt/x86 boxes I wish to differentiate. Anyone got any suggestions? johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Mon Feb 17 17:05:31 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Mon, 17 Feb 2003 10:05:31 -0600 Subject: pngtogd2 issue Message-ID: <115F85A8196CD411BBAB0008C759066182041D@FS01> I've tried this as well. I've all but lost hope on using my own custom images. The images are 40x40 is that the correct size? -----Original Message----- From: Donal Hunt [mailto:Donal.Hunt at dcu.ie] Sent: Monday, February 17, 2003 4:06 AM To: Daniel Jimenez Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] pngtogd2 issue try using "pngtogd2 image.png image.gd2 0 1" to generate the image. I've had problems with the images generated by pngtogd2 in the past and my experience has been to just use the pre-built images available from the nagios site. YMMV Regards Donal DCU -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean.mcavoy at megawheels.com Mon Feb 17 17:36:09 2003 From: sean.mcavoy at megawheels.com (Sean McAvoy) Date: 17 Feb 2003 11:36:09 -0500 Subject: Central server attempting host check Message-ID: <1045499769.24202.6.camel@tech03.toronto.drive-megawheels.net> Hello, I have 2 distributed servers, and one central server. The central server has active checks disabled. When a distributed server reports a problem, the central server attempts to do a host check (as seen below). Is this the correct procedure? The central server itself does not have connectivity to any of the hosts it's attempting to check. Is there away to have the distributed servers do the hosts checks, through nagios. Or must nrpe or the like be used to do host checks? [1045499348] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;webhost;Webhost SMTP service - backup notifier;2;Socket timeout after 10 seconds [1045499351] Warning: Attempting to execute the command "/usr/lib/nagios/plugins/check_ping -H 216.220.63.238 -w 3000.0,80% -c 5000.0,100% -p 1" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Mon Feb 17 18:41:59 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 17 Feb 2003 12:41:59 -0500 Subject: Out of bounds return codes using current CVS Nagios In-Reply-To: <4E71CFD68DCB4E49B04AD93E84827EE909EC71@netfinity-1.foundation-it.local> References: <4E71CFD68DCB4E49B04AD93E84827EE909EC71@netfinity-1.foundation-it.local> Message-ID: <1045503718.1092.8.camel@miles.debisschop.net> On Mon, 2003-02-17 at 08:34, Phil Costelloe wrote: > I'm currently testing Nagios for use in a production environment. I've > just built the 200202132308 CVS version of Nagios and Nagios plugins to > see if it resolves a few issues in 1.0 stable, primarily not being able > to get the statusmap CGI to build at all. For the most part it does > (statusmap.cgi now compiles and runs although, in common with a number > of others, I can't get it to use the graphics I want) but there is one > weird problem. Please bear in mind that nagios itself is not currently suited for deployment from the CVS tree. Ethan has stated (and reiterated) that he is in the middle of sweeping changes that preclude this. If 1.0 stable does not work, and you can find the bug, perhaps the sources can be patched. In fact, I have appiled one patch to the RPM for an open file descriptor issue (not posted yet). But it seems more likely that you need to look to be sure gd libd and freetype are being properly recognized - historically that has been a big problem. Have you already double checked that? (Feel free to run the plugins off the CVS tree - because of their modularity, the CVS is much easier to keep consistent. In fact, since we're nearing beta 3, I'd consider CVS your best source at the moment). -- Karl ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Mon Feb 17 18:50:44 2003 From: philc at foundation-it.com (Phil Costelloe) Date: Mon, 17 Feb 2003 17:50:44 -0000 Subject: Out of bounds return codes using current CVS Nagios Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE909E7A2@netfinity-1.foundation-it.local> > From: Phil Costelloe > > When a plugin returns a WARNING or CRITICAL state, the > service detail display always shows a CRITICAL error and a > message such as "(Return code of 512 is out of bounds)". If I > run the plugin manually (as the nagios user) with identical > parameters, it behaves as expected when there's a > warning/critical situation - displaying a text message and > returning an error code of 1 or 2 or 3. When called by > Nagios, this error code is apparently being multiplied by 256 > giving a return code of 256 or 512 or 768 which is > interpreted as being out of bounds. > [...] > > I'm going to give 200202171109 a try - I'll obviously post > again if that solves the problem. It did solve the problem. Curious. Phil ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Mon Feb 17 19:30:01 2003 From: philc at foundation-it.com (Phil Costelloe) Date: Mon, 17 Feb 2003 18:30:01 -0000 Subject: Out of bounds return codes using current CVSNagios Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE909EC72@netfinity-1.foundation-it.local> > From: Karl DeBisschop [mailto:karl at debisschop.net] > > Please bear in mind that nagios itself is not currently > suited for deployment from the CVS tree. Ethan has stated > (and reiterated) that he is in the middle of sweeping changes > that preclude this. I'm new to using Nagios but I'll bear that in mind from now on. :) Although, apart from some config file tweaks, the CVS version still seems to work pretty much as advertised. > But it seems more likely that you need to look to be sure gd > libd and freetype are being properly recognized - > historically that has been a big problem. Have you already > double checked that? I'm pretty certain that all the required pieces are there and in obvious places. Here's an ldd of the statusmap.cgi from the CVS version, bearing on mind this is the same (Mandrake 9) box where statusmap.cgi won't build using 1.0 stable. statusmap.cgi: libgd.so.1 => /usr/lib/libgd.so.1 (0x4001e000) libz.so.1 => /lib/libz.so.1 (0x40052000) libm.so.6 => /lib/i686/libm.so.6 (0x40061000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40084000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x400aa000) libc.so.6 => /lib/i686/libc.so.6 (0x400cb000) libpng.so.3 => /usr/lib/libpng.so.3 (0x401eb000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x401ed000) libttf.so.2 => /usr/lib/libttf.so.2 (0x40230000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40254000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40263000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libintl.so.2 => /lib/libintl.so.2 (0x4032e000) libdl.so.2 => /lib/libdl.so.2 (0x40336000) Phil ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alden at math.ohio-state.edu Mon Feb 17 20:34:43 2003 From: alden at math.ohio-state.edu (Dave Alden) Date: Mon, 17 Feb 2003 14:34:43 -0500 Subject: Problem with check_ftp not closing connection properly? In-Reply-To: <1045313800.14846.2.camel@miles.debisschop.net> References: <20030214185417.GA23043@math.ohio-state.edu> <1045313800.14846.2.camel@miles.debisschop.net> Message-ID: <20030217193443.GA7079@math.ohio-state.edu> Hi, On Sat, Feb 15, 2003 at 07:56:41AM -0500, Karl DeBisschop wrote: > by default, check_tcp just maust the connection and drops it. > > Try specifying a string to send > > check_tcp -s QUIT -H > > Please let us know if that works, there are sketchy reports of bugs in > check_tcp that we'd really like to iron out before we release the 3rd > beta early next week. I assume you meant "check_ftp -s QUIT -H ". :-) I tried that and it does the same thing. If I telnet to port 21 and type QUIT, it doesn't leave a process laying around. However, at this point I don't think it's the plugin's fault -- I tried installing the proftpd server on another one of my boxes and it doesn't exhibit this symptom. I'm scheduled to replace the current ftp server early next week -- hopefully the problem will not follow to the new server. :-) ...dave ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From irenes at wolfram.com Mon Feb 17 22:25:34 2003 From: irenes at wolfram.com (Irene Sakellarakis) Date: Mon, 17 Feb 2003 15:25:34 -0600 (CST) Subject: check_nfs.pl In-Reply-To: References: Message-ID: Thanks to all who replied, the solution worked just fine. Where can I get more in-depth information about what each plugin does and how to set different options? Thanks again, Irene On Thu, 13 Feb 2003, Subhendu Ghosh wrote: > nfs and more in check_rpc > -sg > > On Thu, 13 Feb 2003, Irene Sakellarakis wrote: > > > I'm upgrading from Netsaint to Nagios. One of the services originally > > configured, was check_nfs.pl. I can't seem to find a plugin for nfs > > services. Is there one, and if so, where can I find it? > > > > Thanks in advance, > > Irene > > > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rplewe at hpce.nec.com Mon Feb 17 23:08:34 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 17 Feb 2003 23:08:34 +0100 Subject: check_nfs.pl In-Reply-To: ; from irenes@wolfram.com on Mon, Feb 17, 2003 at 03:25:34PM -0600 References: Message-ID: <20030217230834.B1540@hpce.nec.com> On Mon, Feb 17, 2003 at 03:25:34PM -0600, Irene Sakellarakis wrote: > Thanks to all who replied, the solution worked just fine. Where can I get > more in-depth information about what each plugin does and how to set > different options? ./plugin_binary -h If you need more information: read the source. Rasmus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From r1p6os402 at sneakemail.com Mon Feb 17 23:06:22 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Mon, 17 Feb 2003 14:06:22 -0800 (PST) Subject: pngtogd2 issue In-Reply-To: References: Message-ID: <29305-05603@sneakemail.com> On Mon, 17 Feb 2003, John McDonnell johnmc-at-johnmc.org |Nagios| wrote: > likewise... The documentation's not exactly clear on the special magick > involved to get transparency and gd2's working right. This magic worked for me: Config: RedHat 7.3 gd-1.8.4-4 RPM SRPMS source package for same GIMP 1.2.3 The first step was building "pngtogd2" via "rpm -ba " and using the /usr/src/redhat/BUILD/gd-1.8.4/pngtogd2 that it built. The spec file I use does not include this handy utility by default. I tried using the gd 2.x source with the installed gd 1.8 RPM and the resulting pngtogd2 binary built mangled gd2 files. This was only discovered when I used the gd2topng to convert them back and had it coredump. In order to get transparency working, I used Gimp to convert each image to 8-bit indexed color with background color. GD 1.x does not support a PNG alpha channel at all, but does support a single transparent color. I carefully erased the portions of each image I wanted to be transparent and saved them as 8-bit indexed color PNG files. These converted nicely to GD2 files using: /usr/src/redhat/BUILD/gd-1.8.4/pngtogd2 image.png image.gd2 0 1 The images were installed in /usr/share/nagios/images/logos (another RedHat-ism) and once referenced via /etc/nagios/hostextinfo.cfg they worked fine. Note that many of these paths are different because the RedHat paths differ from the Nagios defaults. Good luck! -- Steve Bonds ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Mon Feb 17 23:34:53 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 17 Feb 2003 17:34:53 -0500 Subject: check_nfs.pl In-Reply-To: <20030217230834.B1540@hpce.nec.com> References: <20030217230834.B1540@hpce.nec.com> Message-ID: <1045521293.1090.49.camel@miles.debisschop.net> On Mon, 2003-02-17 at 17:08, Rasmus Plewe wrote: > On Mon, Feb 17, 2003 at 03:25:34PM -0600, Irene Sakellarakis wrote: > > Thanks to all who replied, the solution worked just fine. Where can I get > > more in-depth information about what each plugin does and how to set > > different options? > > ./plugin_binary -h > > If you need more information: read the source. While Rasmus is perfectly correct, I will also add that in the 1.3.0 release, there should be a list of one-line descriptions of each. If I'm ambitious, maybe even tonight. But for the vast majority, their names are quite descriptive of their basic functions. -- Karl ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Mon Feb 17 20:10:20 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 17 Feb 2003 14:10:20 -0500 (EST) Subject: Plugin Dependencies whereabouts In-Reply-To: References: Message-ID: On Mon, 17 Feb 2003, Raj Mudhar wrote: > Hi, > > I installed the plugins.. did the ./configure bit.. but on some stuff it didnt compile and said i need the folllowing. > It gave me some sites and they dont work and now im stuck as to where to get the dependencies from. > > i need the following > > radius plugin > lmstat > qstat > fping > snmp port module > > Anyhelp please .. i would appreciate. > > Raj Mudhar > IT Support Assistant > Cripps Computing Centre South > Information Services > Email: Raj.Mudhar at nottingham.ac.uk > > Check the REQUIREMENTS doc. radius - http://www.cityline.net/~lf/radius/ lmstat - from your license server installation qstat - www.qstat.org fping - www.fping.com snmp perl module - perl.com/CPAN/modules/by-authors/id/D/DT/DTOWN/ -- -sg ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Tue Feb 18 05:39:18 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Mon, 17 Feb 2003 23:39:18 -0500 Subject: check_snmp output References: <3E4BE01E.9000109@IGXGlobal.com> Message-ID: <1045543158000075d0@imgxs42> OK I am having a problem with check_snmp. When I try it with just plain snmpget I get the desired result, however with check_snmp I keep getting an SNMP WARNING with the results. Here is my exact syntac: check_snmp -H 192.168.1.1 -o ifInErrors.1 -C XXX -w 0:20 -c :40 results in: SNMP WARNING - 0 It keep stelling me everything is at a warning level, even though the result is the desired result. Any help would be appreciated. Thanks Babak ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Tue Feb 18 05:31:10 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Mon, 17 Feb 2003 22:31:10 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820421@FS01> All, I have followed the instructions @ http://nagios.sourceforge.net/docs/1_0/extcommands.html. My problem is that whenever I go to add host/service comments I'm returned w/ Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! Anyone have any insight? Daniel Jimenez Systems Administrator Avatar Computer Solutions, Inc. Network Support, Voice / Data Cabling, and Internet Services 340 N. Sam Houston Parkway E. Suite #265 Voice: 281.999.1300 / 888.503.0503 Fax:?281.999.7070 Web:? www.avatar-cs.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 18 06:36:35 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 00:36:35 -0500 (EST) Subject: Issue w/External Commands In-Reply-To: <115F85A8196CD411BBAB0008C7590661820421@FS01> References: <115F85A8196CD411BBAB0008C7590661820421@FS01> Message-ID: http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true On Mon, 17 Feb 2003, Daniel Jimenez wrote: > All, > > I have followed the instructions @ > http://nagios.sourceforge.net/docs/1_0/extcommands.html. > > My problem is that whenever I go to add host/service comments I'm returned > w/ > > Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! > > Anyone have any insight? > > Daniel Jimenez > Systems Administrator > Avatar Computer Solutions, Inc. > Network Support, Voice / Data Cabling, and Internet Services > 340 N. Sam Houston Parkway E. Suite #265 > Voice: 281.999.1300 / 888.503.0503 > Fax:?281.999.7070 > Web:? www.avatar-cs.net > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 18 06:34:30 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 00:34:30 -0500 (EST) Subject: check_snmp output In-Reply-To: <1045543158000075d0@imgxs42> References: <1045543158000075d0@imgxs42> Message-ID: On Mon, 17 Feb 2003, Babak Pasdar wrote: > > > OK I am having a problem with check_snmp. When I try it with just plain > snmpget I get the desired result, however with check_snmp I keep getting > an SNMP WARNING with the results. > > Here is my exact syntac: > > check_snmp -H 192.168.1.1 -o ifInErrors.1 -C XXX -w 0:20 -c :40 > > results in: > > SNMP WARNING - 0 > > It keep stelling me everything is at a warning level, even though the > result is the desired result. > > Any help would be appreciated. > > Thanks > > Babak > When you run on snmpget on the command line you probably get a bunch of MIB formatting errors. Either fix those or use -m \" \" Also posting the actual output of the command line would be useful. Finally: please wrap your message lines to less than 80 characters. -- -sg ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at nagios.org Tue Feb 18 06:47:24 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 17 Feb 2003 23:47:24 -0600 Subject: Out of bounds return codes using current CVSNagios In-Reply-To: <4E71CFD68DCB4E49B04AD93E84827EE909EC72@netfinity-1.foundation-it.local> References: <4E71CFD68DCB4E49B04AD93E84827EE909EC72@netfinity-1.foundation-it.local> Message-ID: <3E51748C.2036.1594F99@localhost> The plugin return code problem was due to a bug in the new service check code. It was fixed in last night's CVS posting. However, that update had bugs in it that I fixed tonight. And tonight's update still includes plenty bugs (which are probably downright nasty, because I'm changing core host check logic). Anyway, I would recommend staying away from CVS at the moment. Things may appear to work, but I only check to make sure things compile before I do updates. I leave testing for later. On 17 Feb 2003 at 18:30, Phil Costelloe wrote: > > From: Karl DeBisschop [mailto:karl at debisschop.net] > > > > Please bear in mind that nagios itself is not currently > > suited for deployment from the CVS tree. Ethan has stated > > (and reiterated) that he is in the middle of sweeping changes > > that preclude this. > > I'm new to using Nagios but I'll bear that in mind from now on. :) > Although, apart from some config file tweaks, the CVS version still > seems to work pretty much as advertised. > > > But it seems more likely that you need to look to be sure gd > > libd and freetype are being properly recognized - > > historically that has been a big problem. Have you already > > double checked that? > > I'm pretty certain that all the required pieces are there and in obvious > places. Here's an ldd of the statusmap.cgi from the CVS version, bearing > on mind this is the same (Mandrake 9) box where statusmap.cgi won't > build using 1.0 stable. > > statusmap.cgi: > libgd.so.1 => /usr/lib/libgd.so.1 (0x4001e000) > libz.so.1 => /lib/libz.so.1 (0x40052000) > libm.so.6 => /lib/i686/libm.so.6 (0x40061000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40084000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x400aa000) > libc.so.6 => /lib/i686/libc.so.6 (0x400cb000) > libpng.so.3 => /usr/lib/libpng.so.3 (0x401eb000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x401ed000) > libttf.so.2 => /usr/lib/libttf.so.2 (0x40230000) > libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40254000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40263000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > libintl.so.2 => /lib/libintl.so.2 (0x4032e000) > libdl.so.2 => /lib/libdl.so.2 (0x40336000) > > Phil > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecarlseen at praecelsus.com Tue Feb 18 07:21:39 2003 From: ecarlseen at praecelsus.com (Erik Carlseen) Date: Mon, 17 Feb 2003 22:21:39 -0800 Subject: Incorrect results returned by check_ping Message-ID: I'm getting *occasional* bizzare results returned by check_ping for devices that are on the same 10/100 switch as the box running Nagios. Typically the results are off by 1-3 orders of magnitude (reporting 25-285 ms where the actual delay is 200-400ns). This problem comes and goes, but it's particularly annoying as it generates about 20-30 false alarms per day. I've run a separate ping command through ssh to verify that the results are, in fact, erroneous. Has anyone else experienced this? Regards, Erik Carlseen Praecelsus Consulting, Inc. http://www.praecelsus.com PGP/GPG Public Encryption Key available at: http://www.praecelsus.com/~ecarlseen/public_key.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From DanielJ at avatar-cs.net Tue Feb 18 07:04:36 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 18 Feb 2003 00:04:36 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820422@FS01> Subhendu, These are actually the steps I followed to set this up. I've gone over the steps at least twenty times and find no mistakes. Daniel -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, February 17, 2003 11:37 PM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Issue w/External Commands http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true On Mon, 17 Feb 2003, Daniel Jimenez wrote: > All, > > I have followed the instructions @ > http://nagios.sourceforge.net/docs/1_0/extcommands.html. > > My problem is that whenever I go to add host/service comments I'm returned > w/ > > Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! > > Anyone have any insight? > > Daniel Jimenez > Systems Administrator > Avatar Computer Solutions, Inc. > Network Support, Voice / Data Cabling, and Internet Services > 340 N. Sam Houston Parkway E. Suite #265 > Voice: 281.999.1300 / 888.503.0503 > Fax:?281.999.7070 > Web:? www.avatar-cs.net > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From Fredrik.Wanglund at datavis.se Tue Feb 18 07:38:49 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 18 Feb 2003 07:38:49 +0100 Subject: Problem with check_ftp not closing connection properly? Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804E4@storevis.datavis.se> >On Sat, Feb 15, 2003 at 07:56:41AM -0500, Karl DeBisschop wrote: >> by default, check_tcp just maust the connection and drops it. >> >> Try specifying a string to send >> >> check_tcp -s QUIT -H >> >> Please let us know if that works, there are sketchy reports of bugs in >> check_tcp that we'd really like to iron out before we release the 3rd >> beta early next week. > >I assume you meant "check_ftp -s QUIT -H ". :-) I tried that and >it does the same thing. If I telnet to port 21 and type QUIT, it doesn't Maybe because of this; [nagios at pistol nagios]# cd libexec/ [nagios at pistol libexec]# file check_ftp check_ftp: symbolic link to check_tcp [nagios at pistol libexec]# /FredrikW ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thaphantom at netzero.net Tue Feb 18 07:37:53 2003 From: thaphantom at netzero.net (Billy Vierra) Date: Mon, 17 Feb 2003 22:37:53 -0800 Subject: Logged in as ? Message-ID: <008b01c2d718$4698c840$0301a8c0@thaphantom> Well whenever I login I always get Logged in as ? So when I goto do anything I get the error that I do not have permission to. Any idea why this is happening? -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Tue Feb 18 08:28:44 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 18 Feb 2003 12:58:44 +0530 Subject: nagat not working properly Message-ID: <011801c2d71f$5edff9d0$5f7b0297@atul> Hello All, Can anyone tell me how can i configure NAGAT. I have configured as given in the installation document and also tried some different alternative but nothing works. The first window is opening but when I click on some of the link then it shows error. In the import link, it shows that the nagios.cfg not found. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rplewe at hpce.nec.com Tue Feb 18 10:00:13 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 18 Feb 2003 10:00:13 +0100 Subject: Issue w/External Commands In-Reply-To: <115F85A8196CD411BBAB0008C7590661820422@FS01>; from DanielJ@avatar-cs.net on Tue, Feb 18, 2003 at 12:04:36AM -0600 References: <115F85A8196CD411BBAB0008C7590661820422@FS01> Message-ID: <20030218100013.A1436@hpce.nec.com> On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: > On Mon, 17 Feb 2003, Daniel Jimenez wrote: > > > > My problem is that whenever I go to add host/service comments I'm > > returned w/ > > > > Error: Could not stat() command file > '/usr/local/nagios/var/rw/nagios.cmd'! > > > > Anyone have any insight? > > > > Daniel Jimenez > -----Original Message----- > From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] > Sent: Monday, February 17, 2003 11:37 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Issue w/External Commands > > http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > > Subhendu, > > These are actually the steps I followed to set this up. I've gone over > the steps at least twenty times and find no mistakes. > > Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From KumpfA at Alte-Leipziger.de Tue Feb 18 10:48:24 2003 From: KumpfA at Alte-Leipziger.de (KumpfA at Alte-Leipziger.de) Date: Tue, 18 Feb 2003 10:48:24 +0100 Subject: wrong title in 'Status summary' submenue Message-ID: Hi, when clicking on 'Host group' entry the title alias is displayed on the next screen, but I think there must be the real title. Reason: the second link in 'Status summary' is displayed as alias of the host group, but leads to the maintenance menue for the specific host group. How can I fix this? Mit freundlichen Gr??en Andreas Kumpf Alte Leipziger Lebensversicherungsgesellschaft a.G. IT-Betrieb / Zentrale Systeme Tel. +49 (6171) 66-4806, Fax +49 (6171) 66-7500-4806 mailto:KumpfA at alte-leipziger.de www.alte-leipziger.de ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jacques at prism.co.za Tue Feb 18 10:53:07 2003 From: jacques at prism.co.za (Jacques van der Merwe) Date: Tue, 18 Feb 2003 11:53:07 +0200 Subject: check intervals Message-ID: greetings all i'm interested to know what check intervals you guys use in your environments. i'm currently checking around 250 services off 60 hosts, of which around 15 are routers. as soon as my box "snmpget"s the utilisation flies through the roof. has anyone experimented with various intervals and come up with a good mix without killing your nagios box every 2 minutes? best regards, jacques -------------- next part -------------- An HTML attachment was scrubbed... URL: From barst at goethe.de Tue Feb 18 11:35:10 2003 From: barst at goethe.de (Barst Michael) Date: Tue, 18 Feb 2003 11:35:10 +0100 Subject: check_snmp and W2K Server Message-ID: <7675333BBCD5D511BC2A00005A42A8BB09BD23@MUC-ZVS-MAIL1> HI, I'm new to nagios and try to setup monitoring using the snmp-service of W2K Server. But I can't find out how to get information on diskusage via smtp. Since snmp is alredy running on the server, i don't want to additional install the pNSClient.exe for the task. Could someone please point me towards some dokumentation on how to get diskusage monitored using the check_snmp plugin? thanks, Michael ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Tue Feb 18 12:07:03 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 18 Feb 2003 12:07:03 +0100 Subject: check intervals Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804EE@storevis.datavis.se> Have you tried to change the check_snmp-plugin to not load all mib's on every call? Change the line #define DEFAULT_MIBLIST "ALL" to #define DEFAULT_MIBLIST "NONE" and recompile -----Original Message----- From: Jacques van der Merwe [mailto:jacques at prism.co.za] Sent: Tue 18-Feb-03 10:53 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] check intervals greetings all i'm interested to know what check intervals you guys use in your environments. i'm currently checking around 250 services off 60 hosts, of which around 15 are routers. as soon as my box "snmpget"s the utilisation flies through the roof. has anyone experimented with various intervals and come up with a good mix without killing your nagios box every 2 minutes? best regards, jacques ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at gargantuan.com Tue Feb 18 13:20:55 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Tue, 18 Feb 2003 07:20:55 -0500 Subject: Logged in as ? In-Reply-To: <008b01c2d718$4698c840$0301a8c0@thaphantom> References: <008b01c2d718$4698c840$0301a8c0@thaphantom> Message-ID: <200302180721.05790.michael@gargantuan.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, February 18, 2003 01:37, Billy Vierra wrote: > Well whenever I login I always get Logged in as ? > So when I goto do anything I get the error that I do not have permission > to. > Any idea why this is happening? I had this problem, too. What I found was that I had the .htaccess file in /usr/local/nagios/share, which covered the initial login, but when I went to any of the cgi pages, it would report 'logged in as ?'. The fix was to copy the .htaccess file from /usr/local/nagios/share to /usr/local/nagios/sbin. The reason that it is happening is that you are authenticated to the HTML files' directory, but not to the CGI files' directory. - -- - -------------------------------+---------------------------------------- Michael W. Oliver, CCNP | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass +---------------------------------------- gpg key - http://michael.gargantuan.com/gnupg/pubkey.asc - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+UiUxsWv7q8X6o8kRAjuqAKCY3vJ3z6nx6stjEpJs7StRM09+TACfT60d w5XQJ9Uqow+rC5mNbxsjDj0= =db9e -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Tue Feb 18 13:25:29 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 18 Feb 2003 06:25:29 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820423@FS01> drwxrwS--- 2 nagios nagiocmd 4096 Feb 18 00:30 /usr/local/nagios/var/rw root 834 1 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 883 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 884 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 885 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 886 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 887 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 888 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 889 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 890 834 0 00:30 ? 00:00:00 /usr/sbin/httpd [root at johnny5 var]# groups apache apache : apache nagiocmd [root at johnny5 var]# groups nagios nagios : nagios nagiocmd Pretty standard RH8 install. Httpd installed during OS build. -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: Tuesday, February 18, 2003 3:00 AM To: Nagios users list Subject: Re: [Nagios-users] Issue w/External Commands On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: > On Mon, 17 Feb 2003, Daniel Jimenez wrote: > > > > My problem is that whenever I go to add host/service comments I'm > > returned w/ > > > > Error: Could not stat() command file > '/usr/local/nagios/var/rw/nagios.cmd'! > > > > Anyone have any insight? > > > > Daniel Jimenez > -----Original Message----- > From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] > Sent: Monday, February 17, 2003 11:37 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Issue w/External Commands > > http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > > Subhendu, > > These are actually the steps I followed to set this up. I've gone over > the steps at least twenty times and find no mistakes. > > Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From timwest at warwickshire.gov.uk Tue Feb 18 13:50:00 2003 From: timwest at warwickshire.gov.uk (timwest at warwickshire.gov.uk) Date: Tue, 18 Feb 2003 12:50:00 +0000 Subject: question about service dependencies and templates Message-ID: ***** This e-mail is communicated in confidence. It is intended for the recipient only and may not be disclosed further without the express consent of the sender. ***** I'm using nrpe to monitor the status of various filesystems on several machines on our network. I have created the following service definition define service { hostgroup_name host_group_a service_description root_filesystem ... ... } and define service { hostgroup_name host_group_a service_description nrpe_active ... ... } Now I want to create a service dependency for root_filesystem on nrpe_active without creating a separate entry for each filesystem on each machine. >From reading the documentation I can make root_filesystem dependent on nrpe_active for all of the machines in host_group_a, but I only want it dependent on nrpe on the machine with the filesystem. The ability to add the same test to several hosts, just by changing the contents of the host group is great, but if I have to add a separate entry for the service dependency then takes that usefulness away. Has anyone any ideas. -- Tim West, CAMS ICT Services Warwickshire County Council Email: timwest at warwickshire.gov.uk ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From haensel at prostep.de Tue Feb 18 13:59:08 2003 From: haensel at prostep.de (=?ISO-8859-1?Q?Martin_H=E4nsel?=) Date: Tue, 18 Feb 2003 13:59:08 +0100 Subject: (no subject) Message-ID: <3E522E1C.1090306@prostep.de> Hi, my Nagios frequently "Plugin timed out after 45 seconds". Nagios send no Notifications out but it writes the alert message in the logfile. The strange is, that the server where the plugin have to ping on, is alive. Where does the problem come from??? thanks martin h?nsel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brendon at iwg.info Tue Feb 18 14:24:41 2003 From: brendon at iwg.info (Brendon Caligari) Date: Tue, 18 Feb 2003 14:24:41 +0100 Subject: Logged in as ? Message-ID: Check the nagios documentation, in particular http://nagios.sourceforge.net/docs/1_0/installweb.html http://nagios.sourceforge.net/docs/1_0/configcgi.html A quick and easy way to know whcih user you are logged in as tail the apache log file. -----Original Message----- From: Billy Vierra [mailto:thaphantom at netzero.net] Sent: 18 February 2003 07:38 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Logged in as ? Well whenever I login I always get Logged in as ? So when I goto do anything I get the error that I do not have permission to. Any idea why this is happening? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Tue Feb 18 14:50:33 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 18 Feb 2003 07:50:33 -0600 Subject: Issue w/External Commands Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED438@mismail.ena.com> You've got it backwards. You should have a group called nagioscmd with nagios and apache being members: nagioscmd:x::nagios,apache Make that modification, restart apache and you should be good to go. marc -----Original Message----- From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] Sent: Tuesday, February 18, 2003 6:25 AM To: 'Rasmus Plewe'; Nagios users list Subject: RE: [Nagios-users] Issue w/External Commands drwxrwS--- 2 nagios nagiocmd 4096 Feb 18 00:30 /usr/local/nagios/var/rw root 834 1 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 883 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 884 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 885 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 886 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 887 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 888 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 889 834 0 00:30 ? 00:00:00 /usr/sbin/httpd apache 890 834 0 00:30 ? 00:00:00 /usr/sbin/httpd [root at johnny5 var]# groups apache apache : apache nagiocmd [root at johnny5 var]# groups nagios nagios : nagios nagiocmd Pretty standard RH8 install. Httpd installed during OS build. -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: Tuesday, February 18, 2003 3:00 AM To: Nagios users list Subject: Re: [Nagios-users] Issue w/External Commands On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: > On Mon, 17 Feb 2003, Daniel Jimenez wrote: > > > > My problem is that whenever I go to add host/service comments I'm > > returned w/ > > > > Error: Could not stat() command file > '/usr/local/nagios/var/rw/nagios.cmd'! > > > > Anyone have any insight? > > > > Daniel Jimenez > -----Original Message----- > From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] > Sent: Monday, February 17, 2003 11:37 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Issue w/External Commands > > http://www.nagios.org/faqs/viewfaq.php?faq_id=58 &expand=false&showdesc=true > > Subhendu, > > These are actually the steps I followed to set this up. I've gone over > the steps at least twenty times and find no mistakes. > > Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Tue Feb 18 14:52:06 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 18 Feb 2003 07:52:06 -0600 Subject: Issue w/External Commands Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED439@mismail.ena.com> Sorry for the HTML previously. I seldom send from this client... You've got it backwards. You should have a group called nagioscmd with nagios and apache being members: nagioscmd:x::nagios,apache Make that modification, restart apache and you should be good to go. -- Marc -----Original Message----- From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] Sent: Tuesday, February 18, 2003 6:25 AM To: 'Rasmus Plewe'; Nagios users list Subject: RE: [Nagios-users] Issue w/External Commands drwxrwS---??? 2 nagios?? nagiocmd???? 4096 Feb 18 00:30 /usr/local/nagios/var/rw root?????? 834???? 1? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 883?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 884?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 885?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 886?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 887?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 888?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 889?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 890?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd [root at johnny5 var]# groups apache apache : apache nagiocmd [root at johnny5 var]# groups nagios nagios : nagios nagiocmd Pretty standard RH8 install. Httpd installed during OS build. -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: Tuesday, February 18, 2003 3:00 AM To: Nagios users list Subject: Re: [Nagios-users] Issue w/External Commands On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: >??? On Mon, 17 Feb 2003, Daniel Jimenez wrote: >??? > >??? > My problem is that whenever I go to add host/service comments I'm >??? > returned w/ >??? > >??? > Error: Could not stat() command file >??? '/usr/local/nagios/var/rw/nagios.cmd'! >??? > >??? > Anyone have any insight? >??? > >??? > Daniel Jimenez >??? -----Original Message----- >??? From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] >??? Sent: Monday, February 17, 2003 11:37 PM >??? To: 'nagios-users at lists.sourceforge.net' >??? Subject: Re: [Nagios-users] Issue w/External Commands > >??? http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > >??? Subhendu, > >??? These are actually the steps I followed to set this up. I've gone over >??? the steps at least twenty times and find no mistakes. > >??? Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw? ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Tue Feb 18 15:10:26 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Tue, 18 Feb 2003 09:10:26 -0500 Subject: check_snmp output References: Message-ID: <1045577426000005cf@imgxs42> Subhendu, Thank you for your response. I actually did list the output of the command line # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: SNMP WARNING - *0* Here it is in verbose mode # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: -v /usr/local/bin/snmpget -m ALL -v 1 -c bphome 192.168.1.1:161 .1.3.6.1.2.1.2.2.1.13.1 RFC1213-MIB::ifInDiscards.1 = Counter32: 0 SNMP WARNING - *0* Here is snmpget output: # snmpget 192.168.1.1:161 -c bphome -m ALL -v 1 ifInDiscards.1 RFC1213-MIB::ifInDiscards.1 = Counter32: 0 Granted I am not an SNMP expert, however I just want to be able to track interface error and discard output. Babak Subhendu Ghosh wrote: > On Mon, 17 Feb 2003, Babak Pasdar wrote: > > > > > > > OK I am having a problem with check_snmp. When I try it with just plain > > snmpget I get the desired result, however with check_snmp I keep getting > > an SNMP WARNING with the results. > > > > Here is my exact syntac: > > > > check_snmp -H 192.168.1.1 -o ifInErrors.1 -C XXX -w 0:20 -c :40 > > > > results in: > > > > SNMP WARNING - 0 > > > > It keep stelling me everything is at a warning level, even though the > > result is the desired result. > > > > Any help would be appreciated. > > > > Thanks > > > > Babak > > > > When you run on snmpget on the command line you probably get a bunch of > MIB formatting errors. Either fix those or use -m \" \" > > Also posting the actual output of the command line would be useful. > > Finally: please wrap your message lines to less than 80 characters. > > -- > > -sg > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Feb 18 15:29:29 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 18 Feb 2003 09:29:29 -0500 Subject: Problem with check_ftp not closing connection properly? In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE27804E4@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE27804E4@storevis.datavis.se> Message-ID: <1045578568.15269.3.camel@miles.debisschop.net> On Tue, 2003-02-18 at 01:38, Fredrik W?nglund wrote: > > > >On Sat, Feb 15, 2003 at 07:56:41AM -0500, Karl DeBisschop wrote: > >> by default, check_tcp just maust the connection and drops it. > >> > >> Try specifying a string to send > >> > >> check_tcp -s QUIT -H > >> > >> Please let us know if that works, there are sketchy reports of bugs in > >> check_tcp that we'd really like to iron out before we release the 3rd > >> beta early next week. > > > >I assume you meant "check_ftp -s QUIT -H ". :-) I tried that and > >it does the same thing. If I telnet to port 21 and type QUIT, it doesn't > > Maybe because of this; > > [nagios at pistol nagios]# cd libexec/ > [nagios at pistol libexec]# file check_ftp > check_ftp: symbolic link to check_tcp > [nagios at pistol libexec]# That is correct - the send/expect/quit strings are the only things that differ between check_pop, check_imap, check_simap, check_tcp, check_imap, check_spop, check_smtp. So to reduce the chance of typo-induced bugs, they are combined into one piece of code that morphs based on invocation name. -- Karl ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 18 15:51:26 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 09:51:26 -0500 (EST) Subject: Issue w/External Commands In-Reply-To: <115F85A8196CD411BBAB0008C7590661820422@FS01> References: <115F85A8196CD411BBAB0008C7590661820422@FS01> Message-ID: What are the current configured groups and perms. Has the webservers and nagios been restarted sinsce the application of any permissions. -sg On Tue, 18 Feb 2003, Daniel Jimenez wrote: > Subhendu, > > These are actually the steps I followed to set this up. I've gone over the > steps at least twenty times and find no mistakes. > > Daniel > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, February 17, 2003 11:37 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Issue w/External Commands > > > http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > > > On Mon, 17 Feb 2003, Daniel Jimenez wrote: > > > All, > > > > I have followed the instructions @ > > http://nagios.sourceforge.net/docs/1_0/extcommands.html. > > > > My problem is that whenever I go to add host/service comments I'm returned > > w/ > > > > Error: Could not stat() command file > '/usr/local/nagios/var/rw/nagios.cmd'! > > > > Anyone have any insight? > > > > Daniel Jimenez > > Systems Administrator > > Avatar Computer Solutions, Inc. > > Network Support, Voice / Data Cabling, and Internet Services > > 340 N. Sam Houston Parkway E. Suite #265 > > Voice: 281.999.1300 / 888.503.0503 > > Fax:?281.999.7070 > > Web:? www.avatar-cs.net > > > > > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 18 16:08:23 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 10:08:23 -0500 (EST) Subject: check_snmp and W2K Server In-Reply-To: <7675333BBCD5D511BC2A00005A42A8BB09BD23@MUC-ZVS-MAIL1> References: <7675333BBCD5D511BC2A00005A42A8BB09BD23@MUC-ZVS-MAIL1> Message-ID: Take a look at the command.cfg shipped with the plugins. There are a bunch of check_snmp based commands using the Host-RESOURCES-MIB for proc/users/mem/swap/disk -sg On Tue, 18 Feb 2003, Barst Michael wrote: > HI, > > I'm new to nagios and try to setup monitoring using the snmp-service of W2K > Server. > But I can't find out how to get information on diskusage via smtp. > Since snmp is alredy running on the server, i don't want to additional > install the pNSClient.exe for the task. > > Could someone please point me towards some dokumentation on how to get > diskusage monitored > using the check_snmp plugin? > > thanks, > > Michael > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 18 16:10:10 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 10:10:10 -0500 (EST) Subject: check intervals In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE27804EE@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE27804EE@storevis.datavis.se> Message-ID: Or use the -m\"\" option to achieve the same thing. On Tue, 18 Feb 2003, Fredrik W?nglund wrote: > Have you tried to change the check_snmp-plugin to not load all mib's on every call? > Change the line > #define DEFAULT_MIBLIST "ALL" > to > #define DEFAULT_MIBLIST "NONE" > and recompile > > -----Original Message----- > From: Jacques van der Merwe [mailto:jacques at prism.co.za] > Sent: Tue 18-Feb-03 10:53 > To: nagios-users at lists.sourceforge.net > Cc: > Subject: [Nagios-users] check intervals > greetings all > > i'm interested to know what check intervals you guys use in your > environments. i'm currently checking around 250 services off 60 hosts, of > which around 15 are routers. as soon as my box "snmpget"s the utilisation > flies through the roof. > > has anyone experimented with various intervals and come up with a good mix > without killing your nagios box every 2 minutes? > > best regards, > jacques > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Feb 18 16:21:46 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 10:21:46 -0500 (EST) Subject: check_snmp output In-Reply-To: <1045577426000005cf@imgxs42> References: <1045577426000005cf@imgxs42> Message-ID: Hi Babak Sorry about that. Have you tried the current CVS version? $ snmpwalk wave community ifInDiscards IF-MIB::ifInDiscards.1 = Counter32: 0 IF-MIB::ifInDiscards.2 = Counter32: 0 $ ./check_snmp -H wave -C community -o ifInDiscards.1 -w 0:20 -c :40 SNMP OK - 0 -sg On Tue, 18 Feb 2003, Babak Pasdar wrote: > > Subhendu, > > Thank you for your response. I actually did list the output of the command line > > # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: > SNMP WARNING - *0* > > Here it is in verbose mode > > # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: -v > /usr/local/bin/snmpget -m ALL -v 1 -c bphome 192.168.1.1:161 .1.3.6.1.2.1.2.2.1.13.1 > RFC1213-MIB::ifInDiscards.1 = Counter32: 0 > > SNMP WARNING - *0* > > Here is snmpget output: > > # snmpget 192.168.1.1:161 -c bphome -m ALL -v 1 ifInDiscards.1 > RFC1213-MIB::ifInDiscards.1 = Counter32: 0 > > > Granted I am not an SNMP expert, however I just want to be able to track interface error and discard output. > > Babak > > Subhendu Ghosh wrote: > > On Mon, 17 Feb 2003, Babak Pasdar wrote: > > > > > > > > > > > OK I am having a problem with check_snmp. When I try it with just plain > > > snmpget I get the desired result, however with check_snmp I keep getting > > > an SNMP WARNING with the results. > > > > > > Here is my exact syntac: > > > > > > check_snmp -H 192.168.1.1 -o ifInErrors.1 -C XXX -w 0:20 -c :40 > > > > > > results in: > > > > > > SNMP WARNING - 0 > > > > > > It keep stelling me everything is at a warning level, even though the > > > result is the desired result. > > > > > > Any help would be appreciated. > > > > > > Thanks > > > > > > Babak > > > > > > > When you run on snmpget on the command line you probably get a bunch of > > MIB formatting errors. Either fix those or use -m \" \" > > > > Also posting the actual output of the command line would be useful. > > > > Finally: please wrap your message lines to less than 80 characters. > > > > -- > > > > -sg > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Babak Pasdar > Founder/CTO > IGX Global > 389 Main St. > Hackensack, NJ 07601 > www.igxglobal.com > (201) 498-0555 ext. 2205 > > The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. > > If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. > > This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. > > www.igxglobal.com > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jerryhui at hkiworld.com Tue Feb 18 16:43:03 2003 From: jerryhui at hkiworld.com (Jerry) Date: Tue, 18 Feb 2003 23:43:03 +0800 Subject: Check disk usuage on client Message-ID: <000001c2d764$6cbc5ae0$0100a8c0@garu> Hi All, Actually, I am new on nagios and I am looking to monitor the disk usuage and services/daemon on my clients. It's about ten, or more, which it's running on solaris & linux... Without the snmp or agents methods, it's there any other way I can monitor the disk usuage and services on the clients? How about the check_disk & check_by_ssh plugin? Can I archive those results by using these plugins, or anyone have tried these yet? If so, please make me some example or suggestion on any other methods Thousand thanks ! Regards' Jerry Hui ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mat at avedya.com Tue Feb 18 17:04:38 2003 From: mat at avedya.com (Matthieu Parisot) Date: Tue, 18 Feb 2003 17:04:38 +0100 Subject: Small bug in Nagios documentation In-Reply-To: References: Message-ID: <3E525996.1010807@avedya.com> Hi list, I've just noticed that http://nagios.sourceforge.net/docs/1_0/distributed.html proposes a script which uses UNKNOWN service status with a return code of -1 instead of 3. Mat ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Tue Feb 18 16:59:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 09:59:39 -0600 Subject: check intervals Message-ID: You might want to change your SNMP checks to use one of the following strategies: 1) Use the numeric OID; 2) Install the SNMP proxy daemon HTH. jc -----Original Message----- From: Jacques van der Merwe [mailto:jacques at prism.co.za] Sent: Tuesday, February 18, 2003 3:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check intervals greetings all i'm interested to know what check intervals you guys use in your environments. i'm currently checking around 250 services off 60 hosts, of which around 15 are routers. as soon as my box "snmpget"s the utilisation flies through the roof. has anyone experimented with various intervals and come up with a good mix without killing your nagios box every 2 minutes? best regards, jacques -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Feb 18 17:08:51 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 10:08:51 -0600 Subject: question about service dependencies and templa tes Message-ID: This is something I recently decided I needed to test out myself. I've got pretty much the same setup as you. (It wouldn't surprise me if you had 10-20 service checks dependent on nrpe_active, as I do.) I can only suggest you check this out: http://nagios.sourceforge.net/docs/1_0/templatetricks.html#servicedependency I recently bounced a question very similar to yours off the list, without any helpful responses. All I can suggest is that you set up a trivial case on a non-critical machine and test it out. This is what I intend to do, when I have time. Let's make a deal: Whichever one of us tests this first, summarise to the list...? :) jc > -----Original Message----- > From: timwest at warwickshire.gov.uk [mailto:timwest at warwickshire.gov.uk] > Sent: Tuesday, February 18, 2003 6:50 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] question about service dependencies and > templates > > > ***** This e-mail is communicated in confidence. It is > intended for the > recipient only and may not be disclosed further without the > express consent > of the sender. ***** > > I'm using nrpe to monitor the status of various filesystems on several > machines on our network. > > I have created the following service definition > > define service { > hostgroup_name host_group_a > service_description root_filesystem > ... > ... > } > > and > > define service { > hostgroup_name host_group_a > service_description nrpe_active > ... > ... > } > > Now I want to create a service dependency for root_filesystem on > nrpe_active without creating a separate entry for each > filesystem on each > machine. > > From reading the documentation I can make root_filesystem dependent on > nrpe_active for all of the machines in host_group_a, but I > only want it > dependent on nrpe on the machine with the filesystem. > > The ability to add the same test to several hosts, just by > changing the > contents of the host group is great, but if I have to add a > separate entry > for the service dependency then takes that usefulness away. > > Has anyone any ideas. > > > -- > Tim West, CAMS ICT Services > Warwickshire County Council > Email: timwest at warwickshire.gov.uk > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From russell at quadrix.com Tue Feb 18 17:17:39 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 18 Feb 2003 11:17:39 -0500 Subject: Downtime for all services on a host Message-ID: <3E525CA3.9000202@quadrix.com> I know that you can scheduled a downtime for all services in a hostgroup, but can you schedule a downtime for all services on a host. I know the theory that if you put a host in downtime, then the services on that host won't send alerts as long as the host is down. But in my case, the host will still be up but all the services for that host will be down. If there is no way of doing this, can I make a feature request for this? Russell -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Tue Feb 18 17:19:02 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 10:19:02 -0600 Subject: Check disk usuage on client Message-ID: Take a look at NRPE on www.nagios.org which is pretty popular among folks on this list. jc > -----Original Message----- > From: Jerry [mailto:jerryhui at hkiworld.com] > Sent: Tuesday, February 18, 2003 9:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check disk usuage on client > > > Hi All, > > Actually, I am new on nagios and I am looking to monitor the > disk usuage and > services/daemon on my clients. It's about ten, or more, which > it's running > on solaris & linux... > > Without the snmp or agents methods, it's there any other way > I can monitor > the disk usuage and services on the clients? How about the > check_disk & > check_by_ssh plugin? Can I archive those results by using > these plugins, or > anyone have tried these yet? > If so, please make me some example or suggestion on any other methods > > Thousand thanks ! > > Regards' > Jerry Hui > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Tue Feb 18 17:34:17 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 10:34:17 -0600 Subject: Issue w/External Commands Message-ID: Marc, have another coffee and take another look at Daniel's output. :) He used the 'groups' command which identifies which groups a given username belongs to. Looks like both apache and nagios belong to the nagiocmd group (aside from their own groups). Daniel, all I can suggest at this point is to start checking logfiles: for Apache, /var/log/messages, the Nagios logfiles. You might also want to try doing an strace. This might be overkill, but it seems Daniel has done The Right Things otherwise. Although... Daniel, could you indulge us, and competely shutdown both nagios and apache, do a ps to confirm that both are down (and "pkill -9" them if they aren't), then restart them and see if that doesn't help...? Food for thought. jc > -----Original Message----- > From: Marc Powell [mailto:mpowell at ena.com] > Sent: Tuesday, February 18, 2003 7:52 AM > To: Daniel Jimenez; Nagios users list > Subject: RE: [Nagios-users] Issue w/External Commands > > > Sorry for the HTML previously. I seldom send from this client... > > You've got it backwards. You should have a group called > nagioscmd with nagios and apache being members: > > nagioscmd:x::nagios,apache > > Make that modification, restart apache and you should be good to go. > > -- > Marc > > > > -----Original Message----- > From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] > Sent: Tuesday, February 18, 2003 6:25 AM > To: 'Rasmus Plewe'; Nagios users list > Subject: RE: [Nagios-users] Issue w/External Commands > > drwxrwS---??? 2 nagios?? nagiocmd???? 4096 Feb 18 00:30 > /usr/local/nagios/var/rw > root?????? 834???? 1? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 883?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 884?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 885?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 886?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 887?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 888?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 889?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 890?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > [root at johnny5 var]# groups apache > apache : apache nagiocmd > [root at johnny5 var]# groups nagios > nagios : nagios nagiocmd > Pretty standard RH8 install. Httpd installed during OS build. > -----Original Message----- > From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] > Sent: Tuesday, February 18, 2003 3:00 AM > To: Nagios users list > Subject: Re: [Nagios-users] Issue w/External Commands > > On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: > >??? On Mon, 17 Feb 2003, Daniel Jimenez wrote: > >??? > > >??? > My problem is that whenever I go to add host/service > comments I'm > >??? > returned w/ > >??? > > >??? > Error: Could not stat() command file > >??? '/usr/local/nagios/var/rw/nagios.cmd'! > >??? > > >??? > Anyone have any insight? > >??? > > >??? > Daniel Jimenez > >??? -----Original Message----- > >??? From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] > >??? Sent: Monday, February 17, 2003 11:37 PM > >??? To: 'nagios-users at lists.sourceforge.net' > >??? Subject: Re: [Nagios-users] Issue w/External Commands > > > >??? http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > >??? Subhendu, > >??? These are actually the steps I followed to set this up. I've gone over >??? the steps at least twenty times and find no mistakes. > >??? Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw? ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stevox2000 at yahoo.com Tue Feb 18 17:49:02 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Tue, 18 Feb 2003 17:49:02 +0100 (CET) Subject: Strange result with check_snmp Message-ID: <20030218164902.16662.qmail@web10907.mail.yahoo.com> Hi I try 2 identical commands with these args (-v 1 -C public...) except that i do not load all the mibs in the 2nd command using the --miblist="NONE" arg The 1st command return is normal : SNMP OK .... But the 2nd command returns a SNMP WARNING ... I don't understand this behaviour of the check_snmp plugin. I have only changed the loaded mibs and the state result is different... Has anybody an explanation ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Tue Feb 18 17:51:18 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 18 Feb 2003 10:51:18 -0600 Subject: Issue w/External Commands Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED447@mismail.ena.com> I did ;) I realized what I did after I got into the office . I'm an old-school linux user who's not quite up to speed on all these new-fangled commands when 'grep /etc/group' has been my mainstay =) I still think the advice to restart apache is valid though. Assuming that ~nagios is at least 644 and not 600, that should do it. Marc > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Tuesday, February 18, 2003 10:34 AM > To: Marc Powell; Daniel Jimenez; Nagios users list > Subject: RE: [Nagios-users] Issue w/External Commands > > Marc, have another coffee and take another look at Daniel's output. :) > > He used the 'groups' command which identifies which groups a given > username > belongs to. Looks like both apache and nagios belong to the nagiocmd > group > (aside from their own groups). > > Daniel, all I can suggest at this point is to start checking logfiles: > for > Apache, /var/log/messages, the Nagios logfiles. You might also want to > try > doing an strace. > > This might be overkill, but it seems Daniel has done The Right Things > otherwise. > > Although... Daniel, could you indulge us, and competely shutdown both > nagios > and apache, do a ps to confirm that both are down (and "pkill -9" them if > they aren't), then restart them and see if that doesn't help...? > > Food for thought. > > jc > > > -----Original Message----- > > From: Marc Powell [mailto:mpowell at ena.com] > > Sent: Tuesday, February 18, 2003 7:52 AM > > To: Daniel Jimenez; Nagios users list > > Subject: RE: [Nagios-users] Issue w/External Commands > > > > > > Sorry for the HTML previously. I seldom send from this client... > > > > You've got it backwards. You should have a group called > > nagioscmd with nagios and apache being members: > > > > nagioscmd:x::nagios,apache > > > > Make that modification, restart apache and you should be good to go. > > > > -- > > Marc > > > > > > > > -----Original Message----- > > From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] > > Sent: Tuesday, February 18, 2003 6:25 AM > > To: 'Rasmus Plewe'; Nagios users list > > Subject: RE: [Nagios-users] Issue w/External Commands > > > > drwxrwS---??? 2 nagios?? nagiocmd???? 4096 Feb 18 00:30 > > /usr/local/nagios/var/rw > > root?????? 834???? 1? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 883?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 884?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 885?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 886?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 887?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 888?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 889?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > apache???? 890?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > > [root at johnny5 var]# groups apache > > apache : apache nagiocmd > > [root at johnny5 var]# groups nagios > > nagios : nagios nagiocmd > > Pretty standard RH8 install. Httpd installed during OS build. > > -----Original Message----- > > From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] > > Sent: Tuesday, February 18, 2003 3:00 AM > > To: Nagios users list > > Subject: Re: [Nagios-users] Issue w/External Commands > > > > On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: > > >??? On Mon, 17 Feb 2003, Daniel Jimenez wrote: > > >??? > > > >??? > My problem is that whenever I go to add host/service > > comments I'm > > >??? > returned w/ > > >??? > > > >??? > Error: Could not stat() command file > > >??? '/usr/local/nagios/var/rw/nagios.cmd'! > > >??? > > > >??? > Anyone have any insight? > > >??? > > > >??? > Daniel Jimenez > > >??? -----Original Message----- > > >??? From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] > > >??? Sent: Monday, February 17, 2003 11:37 PM > > >??? To: 'nagios-users at lists.sourceforge.net' > > >??? Subject: Re: [Nagios-users] Issue w/External Commands > > > > > > > http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=tru > e > > > >??? Subhendu, > > > >??? These are actually the steps I followed to set this up. I've gone > over > >??? the steps at least twenty times and find no mistakes. > > > >??? Daniel > > Excuse my disbelief, but with unixoide operating systems I still think > that if you do something right, it will work. > Could you please post the output of: > ls -ld /usr/local/nagios/var/rw > ps -ef | grep httpd > grep /etc/group > > Please try to avoid mailing in HTML. At least on this list. > > Rasmus > -- > In the beginning was The Word and The Word was > Content-type: text/plain > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jayson at sonictrading.com Tue Feb 18 18:03:58 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 18 Feb 2003 12:03:58 -0500 Subject: statusmap Message-ID: <1045587839.10608.165.camel@krull> Hello All, I see a few more people other than myself are having issues with the statusmap, I have compiled Nagios on 3 different machines (2 RH8 machines and 1 RH 7.3 machine) ALL of them will not draw any images on the statusmap, all I get is the Nagios process box outline and my one test linux box outline with no icon,all of the other icons display where they are supposed to, if I was able to get the question marks I would be somewhat more happy because I would know its trying to draw something.. Apache error_log shows no errors...the gdlibs and devel libs are installed (jpeg,png as well), SetENV addition does not work.. tried converting png images using pngtogd2..still no go... I am lost at this point..is possible someone could give me another area to look into to try to determine why the images wont display... ? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Tue Feb 18 17:56:14 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 18 Feb 2003 10:56:14 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820425@FS01> Yes. Please see other email, I have groups configured correctly and have actually restarted the WHOLE server just for grins. -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Tuesday, February 18, 2003 8:51 AM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Issue w/External Commands What are the current configured groups and perms. Has the webservers and nagios been restarted sinsce the application of any permissions. -sg On Tue, 18 Feb 2003, Daniel Jimenez wrote: > Subhendu, > > These are actually the steps I followed to set this up. I've gone over the > steps at least twenty times and find no mistakes. > > Daniel > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, February 17, 2003 11:37 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Issue w/External Commands > > > http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > > > On Mon, 17 Feb 2003, Daniel Jimenez wrote: > > > All, > > > > I have followed the instructions @ > > http://nagios.sourceforge.net/docs/1_0/extcommands.html. > > > > My problem is that whenever I go to add host/service comments I'm returned > > w/ > > > > Error: Could not stat() command file > '/usr/local/nagios/var/rw/nagios.cmd'! > > > > Anyone have any insight? > > > > Daniel Jimenez > > Systems Administrator > > Avatar Computer Solutions, Inc. > > Network Support, Voice / Data Cabling, and Internet Services > > 340 N. Sam Houston Parkway E. Suite #265 > > Voice: 281.999.1300 / 888.503.0503 > > Fax:?281.999.7070 > > Web:? www.avatar-cs.net > > > > > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From DanielJ at avatar-cs.net Tue Feb 18 17:54:50 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 18 Feb 2003 10:54:50 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820424@FS01> If you re-check what I pasted below that's how it's configured. Nagios and Apache are in a group called nagiocmd -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Tuesday, February 18, 2003 7:52 AM To: Daniel Jimenez; Nagios users list Subject: RE: [Nagios-users] Issue w/External Commands Sorry for the HTML previously. I seldom send from this client... You've got it backwards. You should have a group called nagioscmd with nagios and apache being members: nagioscmd:x::nagios,apache Make that modification, restart apache and you should be good to go. -- Marc -----Original Message----- From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] Sent: Tuesday, February 18, 2003 6:25 AM To: 'Rasmus Plewe'; Nagios users list Subject: RE: [Nagios-users] Issue w/External Commands drwxrwS---??? 2 nagios?? nagiocmd???? 4096 Feb 18 00:30 /usr/local/nagios/var/rw root?????? 834???? 1? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 883?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 884?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 885?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 886?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 887?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 888?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 889?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd apache???? 890?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd [root at johnny5 var]# groups apache apache : apache nagiocmd [root at johnny5 var]# groups nagios nagios : nagios nagiocmd Pretty standard RH8 install. Httpd installed during OS build. -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: Tuesday, February 18, 2003 3:00 AM To: Nagios users list Subject: Re: [Nagios-users] Issue w/External Commands On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: >??? On Mon, 17 Feb 2003, Daniel Jimenez wrote: >??? > >??? > My problem is that whenever I go to add host/service comments I'm >??? > returned w/ >??? > >??? > Error: Could not stat() command file >??? '/usr/local/nagios/var/rw/nagios.cmd'! >??? > >??? > Anyone have any insight? >??? > >??? > Daniel Jimenez >??? -----Original Message----- >??? From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] >??? Sent: Monday, February 17, 2003 11:37 PM >??? To: 'nagios-users at lists.sourceforge.net' >??? Subject: Re: [Nagios-users] Issue w/External Commands > >??? http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > >??? Subhendu, > >??? These are actually the steps I followed to set this up. I've gone over >??? the steps at least twenty times and find no mistakes. > >??? Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw? ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From DanielJ at avatar-cs.net Tue Feb 18 18:03:40 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 18 Feb 2003 11:03:40 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820426@FS01> Jim, I've actually restarted the whole server. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, February 18, 2003 10:34 AM To: 'Marc Powell'; Daniel Jimenez; Nagios users list Subject: RE: [Nagios-users] Issue w/External Commands Marc, have another coffee and take another look at Daniel's output. :) He used the 'groups' command which identifies which groups a given username belongs to. Looks like both apache and nagios belong to the nagiocmd group (aside from their own groups). Daniel, all I can suggest at this point is to start checking logfiles: for Apache, /var/log/messages, the Nagios logfiles. You might also want to try doing an strace. This might be overkill, but it seems Daniel has done The Right Things otherwise. Although... Daniel, could you indulge us, and competely shutdown both nagios and apache, do a ps to confirm that both are down (and "pkill -9" them if they aren't), then restart them and see if that doesn't help...? Food for thought. jc > -----Original Message----- > From: Marc Powell [mailto:mpowell at ena.com] > Sent: Tuesday, February 18, 2003 7:52 AM > To: Daniel Jimenez; Nagios users list > Subject: RE: [Nagios-users] Issue w/External Commands > > > Sorry for the HTML previously. I seldom send from this client... > > You've got it backwards. You should have a group called > nagioscmd with nagios and apache being members: > > nagioscmd:x::nagios,apache > > Make that modification, restart apache and you should be good to go. > > -- > Marc > > > > -----Original Message----- > From: Daniel Jimenez [mailto:DanielJ at avatar-cs.net] > Sent: Tuesday, February 18, 2003 6:25 AM > To: 'Rasmus Plewe'; Nagios users list > Subject: RE: [Nagios-users] Issue w/External Commands > > drwxrwS---??? 2 nagios?? nagiocmd???? 4096 Feb 18 00:30 > /usr/local/nagios/var/rw > root?????? 834???? 1? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 883?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 884?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 885?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 886?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 887?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 888?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 889?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > apache???? 890?? 834? 0 00:30 ???????? 00:00:00 /usr/sbin/httpd > [root at johnny5 var]# groups apache > apache : apache nagiocmd > [root at johnny5 var]# groups nagios > nagios : nagios nagiocmd > Pretty standard RH8 install. Httpd installed during OS build. > -----Original Message----- > From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] > Sent: Tuesday, February 18, 2003 3:00 AM > To: Nagios users list > Subject: Re: [Nagios-users] Issue w/External Commands > > On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel Jimenez wrote: > >??? On Mon, 17 Feb 2003, Daniel Jimenez wrote: > >??? > > >??? > My problem is that whenever I go to add host/service > comments I'm > >??? > returned w/ > >??? > > >??? > Error: Could not stat() command file > >??? '/usr/local/nagios/var/rw/nagios.cmd'! > >??? > > >??? > Anyone have any insight? > >??? > > >??? > Daniel Jimenez > >??? -----Original Message----- > >??? From: Subhendu Ghosh [[1]mailto:sghosh at sghosh.org] > >??? Sent: Monday, February 17, 2003 11:37 PM > >??? To: 'nagios-users at lists.sourceforge.net' > >??? Subject: Re: [Nagios-users] Issue w/External Commands > > > >??? http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true > >??? Subhendu, > >??? These are actually the steps I followed to set this up. I've gone over >??? the steps at least twenty times and find no mistakes. > >??? Daniel Excuse my disbelief, but with unixoide operating systems I still think that if you do something right, it will work. Could you please post the output of: ls -ld /usr/local/nagios/var/rw? ps -ef | grep httpd grep /etc/group Please try to avoid mailing in HTML. At least on this list. Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpasdar at IGXGlobal.com Tue Feb 18 18:12:55 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Tue, 18 Feb 2003 12:12:55 -0500 Subject: check_snmp output ***Resolved*** References: Message-ID: <10455883750000134c@imgxs42> GREAT JOB - IT WORKS! I downloaded the latest CVS (my first experience with cvs), compiled and it works properly now. check_snmp for both the following is busted. - nagios-plugins-200211131100 - nagios-plugins-1.3.0-beta2 I did run into an issue compiling the CVS plugins. It kept telling me it could not find getloadavg.c. However getloadavg.c was in the plugins directory. I dont know if this is right or not, probably not since I am not a developer, but I opened configure and set the following from: ac_config_libobj_dir=. to: ac_config_libobj_dir=./plugins and it works now. Thanks for all your help. Babak Subhendu Ghosh wrote: > Hi Babak > > Sorry about that. Have you tried the current CVS version? > > $ snmpwalk wave community ifInDiscards > IF-MIB::ifInDiscards.1 = Counter32: 0 > IF-MIB::ifInDiscards.2 = Counter32: 0 > $ ./check_snmp -H wave -C community -o ifInDiscards.1 -w 0:20 -c :40 > SNMP OK - 0 > > -sg > > On Tue, 18 Feb 2003, Babak Pasdar wrote: > > > > > Subhendu, > > > > Thank you for your response. I actually did list the output of the command line > > > > # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: > > SNMP WARNING - *0* > > > > Here it is in verbose mode > > > > # check_snmp -H 192.168.1.1 -w 0:20 -c :40 -o .1.3.6.1.2.1.2.2.1.13.1 -C bphome -d 32: -v > > /usr/local/bin/snmpget -m ALL -v 1 -c bphome 192.168.1.1:161 .1.3.6.1.2.1.2.2.1.13.1 > > RFC1213-MIB::ifInDiscards.1 = Counter32: 0 > > > > SNMP WARNING - *0* > > > > Here is snmpget output: > > > > # snmpget 192.168.1.1:161 -c bphome -m ALL -v 1 ifInDiscards.1 > > RFC1213-MIB::ifInDiscards.1 = Counter32: 0 > > > > > > Granted I am not an SNMP expert, however I just want to be able to track interface error and discard output. > > > > Babak > > > > Subhendu Ghosh wrote: > > > On Mon, 17 Feb 2003, Babak Pasdar wrote: > > > > > > > > > > > > > > > OK I am having a problem with check_snmp. When I try it with just plain > > > > snmpget I get the desired result, however with check_snmp I keep getting > > > > an SNMP WARNING with the results. > > > > > > > > Here is my exact syntac: > > > > > > > > check_snmp -H 192.168.1.1 -o ifInErrors.1 -C XXX -w 0:20 -c :40 > > > > > > > > results in: > > > > > > > > SNMP WARNING - 0 > > > > > > > > It keep stelling me everything is at a warning level, even though the > > > > result is the desired result. > > > > > > > > Any help would be appreciated. > > > > > > > > Thanks > > > > > > > > Babak > > > > > > > > > > When you run on snmpget on the command line you probably get a bunch of > > > MIB formatting errors. Either fix those or use -m \" \" > > > > > > Also posting the actual output of the command line would be useful. > > > > > > Finally: please wrap your message lines to less than 80 characters. > > > > > > -- > > > > > > -sg > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > > Babak Pasdar > > Founder/CTO > > IGX Global > > 389 Main St. > > Hackensack, NJ 07601 > > www.igxglobal.com > > (201) 498-0555 ext. 2205 > > > > The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. > > > > If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. > > > > This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. > > > > www.igxglobal.com > > > > -- > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Tue Feb 18 18:38:09 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Tue, 18 Feb 2003 12:38:09 -0500 Subject: Strange result with check_snmp References: <20030218164902.16662.qmail@web10907.mail.yahoo.com> Message-ID: <1045589889000015c2@imgxs42> Steve, I just addressed this same problem 5 minutes ago. Please read the enclosed: I downloaded the latest CVS (my first experience with cvs), compiled and it works properly now. check_snmp for both the following is busted. - nagios-plugins-200211131100 - nagios-plugins-1.3.0-beta2 I did run into an issue compiling the CVS plugins. It kept telling me it could not find getloadavg.c. However getloadavg.c was in the plugins directory. I dont know if this is right or not, probably not since I am not a developer, but I opened configure and set the following from: ac_config_libobj_dir=. to: ac_config_libobj_dir=./plugins and it works now. Thanks for all your help. Babak Steve Dussaux wrote: > Hi > > I try 2 identical commands with these args (-v 1 -C public...) except that i do not load all the > mibs in the 2nd command using the --miblist="NONE" arg > The 1st command return is normal : SNMP OK .... > But the 2nd command returns a SNMP WARNING ... > > I don't understand this behaviour of the check_snmp plugin. I have only changed the loaded mibs > and the state result is different... > > Has anybody an explanation ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Tue Feb 18 18:26:44 2003 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 18 Feb 2003 11:26:44 -0600 Subject: Issue w/External Commands Message-ID: <115F85A8196CD411BBAB0008C7590661820427@FS01> Interestingly enough I discovered this almost at the exact same second this email came through. I appreciate everyone's help. Yes, the docs did not specify I needed "g+x" for us newbies. :) Thanks again all. -----Original Message----- From: Michael W. Oliver [mailto:michael at gargantuan.com] Sent: Tuesday, February 18, 2003 11:36 AM To: Daniel Jimenez; 'Rasmus Plewe'; Nagios users list Subject: Re: [Nagios-users] Issue w/External Commands -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, February 18, 2003 07:25, Daniel Jimenez wrote: > drwxrwS--- 2 nagios nagiocmd 4096 Feb 18 00:30 > /usr/local/nagios/var/rw That is one problem right there. You should chmod that directory to 2770 (what you see now is 2760). The documentation assumes that the directory's initial mode is 0755, and if that was the case, the following the directions would work. However, in my case, the directory's initial mode was 0700, and the instructions left me with drwxrwS--- (or 2760) instead of the needed drwxrws--- (or 2770, note the lowercase 's'). Thanks to Jim Carroll for his help on that one (2003/02/10). - -- - -------------------------------+---------------------------------------- Michael W. Oliver, CCNP | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass +---------------------------------------- gpg key - http://michael.gargantuan.com/gnupg/pubkey.asc - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Um71sWv7q8X6o8kRAnb8AJ9q5idk5vfr4rlkGr98SMGKpBS/pQCeMsdH 1KjUSGFLFHc0CDQvDNUKch4= =nCCY -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at gargantuan.com Tue Feb 18 18:35:39 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Tue, 18 Feb 2003 12:35:39 -0500 Subject: Issue w/External Commands In-Reply-To: <115F85A8196CD411BBAB0008C7590661820423@FS01> References: <115F85A8196CD411BBAB0008C7590661820423@FS01> Message-ID: <200302181235.49377.michael@gargantuan.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, February 18, 2003 07:25, Daniel Jimenez wrote: > drwxrwS--- 2 nagios nagiocmd 4096 Feb 18 00:30 > /usr/local/nagios/var/rw That is one problem right there. You should chmod that directory to 2770 (what you see now is 2760). The documentation assumes that the directory's initial mode is 0755, and if that was the case, the following the directions would work. However, in my case, the directory's initial mode was 0700, and the instructions left me with drwxrwS--- (or 2760) instead of the needed drwxrws--- (or 2770, note the lowercase 's'). Thanks to Jim Carroll for his help on that one (2003/02/10). - -- - -------------------------------+---------------------------------------- Michael W. Oliver, CCNP | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass +---------------------------------------- gpg key - http://michael.gargantuan.com/gnupg/pubkey.asc - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Um71sWv7q8X6o8kRAnb8AJ9q5idk5vfr4rlkGr98SMGKpBS/pQCeMsdH 1KjUSGFLFHc0CDQvDNUKch4= =nCCY -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steves at ipctech.com Tue Feb 18 18:45:12 2003 From: steves at ipctech.com (Sarkees, Steve) Date: Tue, 18 Feb 2003 12:45:12 -0500 Subject: Tieing Multiple Nagios Boxes Together Message-ID: <8FBAD66B77E1D31183A200805F5755420149B8D9@mail.ipctech.com> Hello, Just curious if anyone has tried to tie two or more Nagios boxes together so that all the hosts on each box appear to be on the same map. Example: I have a Nagios box that monitors two networks and a separate box that monitors 10 networks - I would like to get my status maps on either or both boxes to show all the networks. (the obvious solution is to consolidate to one box, but I cant - long story) Perhaps have two "Nagios Processes" connected together with the corresponding networks (on my map).?. Thanks, Steve S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at debisschop.net Tue Feb 18 18:47:19 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 18 Feb 2003 12:47:19 -0500 Subject: check_snmp output ***Resolved*** In-Reply-To: <10455883750000134c@imgxs42> References: <10455883750000134c@imgxs42> Message-ID: <1045590439.15269.61.camel@miles.debisschop.net> On Tue, 2003-02-18 at 12:12, Babak Pasdar wrote: > GREAT JOB - IT WORKS! > > I downloaded the latest CVS (my first experience with cvs), compiled and it works properly now. check_snmp for both the following is busted. > > - nagios-plugins-200211131100 > - nagios-plugins-1.3.0-beta2 > > > I did run into an issue compiling the CVS plugins. It kept telling me it could not find getloadavg.c. However getloadavg.c was in the plugins directory. > > I dont know if this is right or not, probably not since I am not a developer, but I opened configure and set the following from: > > ac_config_libobj_dir=. > > to: > > ac_config_libobj_dir=./plugins Maybe we should be moving that into the new lib directory? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sean.mcavoy at megawheels.com Tue Feb 18 19:22:00 2003 From: sean.mcavoy at megawheels.com (Sean McAvoy) Date: 18 Feb 2003 13:22:00 -0500 Subject: notify-by-email not displaying complete info Message-ID: <1045592520.12231.16.camel@tech03.toronto.drive-megawheels.net> Hello, I'm having a problem with the default 'notify-by-email' command. The system registers the problem correctly (i.e. warning/critical, output is there, etc.), but when it sends the notification information is missing. I added a couple of things to output to a file, then pipe the output of the file to mail to see what I could see (which was the exact same thing). It seems like not all of the information is being substituted (i.e. $SERVICESTATE$ is blank). I've included the email notification I receive as well as the command that is being run for the notification. Any suggestions would be appreciated Command: # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" > /tmp/notify.log && cat /tmp/notify.log | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } email received (hostname,alias remove to protect the innocent): ***** Nagios 1.0 ***** Notification Type: PROBLEM Service: Host: [HOST_ALIAS] Address: [FQDN] State: Date/Time: Tue Feb 18 11:58:06 EST 2003 Additional Info: (No output!) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From henrique.leandro at varig.com Tue Feb 18 19:29:40 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 18 Feb 2003 15:29:40 -0300 Subject: check_procs reverse Message-ID: <1045592980.3373.3.camel@operacao.varig.com> hi, i need make a check for a process that have always 20 instances active, no more, no less. how do i using check_procs ? thanks all. -- Henrique leandro Varig S.A ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsm at inpro.net Tue Feb 18 19:45:48 2003 From: jsm at inpro.net (Jeff McKeon) Date: 18 Feb 2003 13:45:48 -0500 Subject: nsclient issues Message-ID: <1045593949.26941.21.camel@rh80-jsm.telaurus.net> Anyone else experiencing problems using nslcient to monitor windows boxes after the latest windows security updates? I'm currently using nsclient 1.0.7.1 thanks, Jeff ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Feb 18 20:43:18 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 18 Feb 2003 14:43:18 -0500 Subject: check_procs reverse In-Reply-To: <1045592980.3373.3.camel@operacao.varig.com> References: <1045592980.3373.3.camel@operacao.varig.com> Message-ID: <1045597398.15269.67.camel@miles.debisschop.net> On Tue, 2003-02-18 at 13:29, Henrique leandro wrote: > hi, > > i need make a check for a process that have always 20 instances active, > no more, no less. > how do i using check_procs ? check_procs --help check_procs -c 20:20 -w 20:20 -- Karl ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wilcoxc at troycorp.com Tue Feb 18 20:29:19 2003 From: wilcoxc at troycorp.com (Wilcox, Chris) Date: Tue, 18 Feb 2003 14:29:19 -0500 Subject: Latest Linux release Message-ID: <5F735AF7A501D411910600104B76901E02B82BD4@POSTAL> Has anyone noticed any reasons NOT to load Nagios on latest Linux release (ver 9.x) I did notice some changes in the latest Apache release etc, but has that stopped anyone from configuring it on 9? Thanks. Chris Wilcox Manager Network Services Troy Corporation 973-443-4200 x2545 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Feb 18 19:48:43 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 12:48:43 -0600 Subject: Tieing Multiple Nagios Boxes Together Message-ID: Consider implementing NSCA and 'passive' definitions. One Nagios server would be 'passive' for all the service definitions on the other Nagios server, and vice-versa. jc -----Original Message----- From: Sarkees, Steve [mailto:steves at ipctech.com] Sent: Tuesday, February 18, 2003 11:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Tieing Multiple Nagios Boxes Together Hello, Just curious if anyone has tried to tie two or more Nagios boxes together so that all the hosts on each box appear to be on the same map. Example: I have a Nagios box that monitors two networks and a separate box that monitors 10 networks - I would like to get my status maps on either or both boxes to show all the networks. (the obvious solution is to consolidate to one box, but I cant - long story) Perhaps have two "Nagios Processes" connected together with the corresponding networks (on my map).?. Thanks, Steve S. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Tue Feb 18 20:06:53 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 13:06:53 -0600 Subject: Downtime for all services on a host Message-ID: If none of the services are available, what's the point of having your host checked for uptime? It's like having a rock... sure, it looks great, but... it doesn't do a whole lot of anything for anyone. AFAIK, what you're looking for doesn't exist. But you still have these options: - disable notifications for all services on a given host (but leave the host notifications enabled) - put host into downtime The latter isn't so bad, really. What use is a host if you can't even login to it? If you *can* login to the host, you might want to add that service to the various services you do check. Food for thought. jc > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Tuesday, February 18, 2003 10:18 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Downtime for all services on a host > > > I know that you can scheduled a downtime for all services in a > hostgroup, but can you schedule a downtime for all services > on a host. > I know the theory that if you put a host in downtime, then > the services > on that host won't send alerts as long as the host is down. > But in my > case, the host will still be up but all the services for that > host will > be down. > > If there is no way of doing this, can I make a feature > request for this? > > Russell > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Tue Feb 18 19:56:13 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 12:56:13 -0600 Subject: check_procs reverse Message-ID: ./check_procs -w 20:20 -c 20:20 -a process_name > -----Original Message----- > From: Henrique leandro [mailto:henrique.leandro at varig.com] > Sent: Tuesday, February 18, 2003 12:30 PM > To: NAGIOS > Subject: [Nagios-users] check_procs reverse > > > hi, > > i need make a check for a process that have always 20 > instances active, > no more, no less. > how do i using check_procs ? > > > thanks all. > > > > > -- > Henrique leandro > Varig S.A > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim at mintoskatingclub.com Tue Feb 18 21:09:43 2003 From: tim at mintoskatingclub.com (Tim Shouldice) Date: Tue, 18 Feb 2003 15:09:43 -0500 (EST) Subject: nsclient issues Message-ID: <200302182009.h1IK9hmm016046@webmail2.magma.ca> What problems are you specifically haveing? /Tim Shouldice On Feb 18, Jeff McKeon wrote: > > Anyone else experiencing problems using nslcient to monitor windows > boxes after the latest windows security updates? I'm currently using > nsclient 1.0.7.1 > > thanks, > > Jeff > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsm at inpro.net Tue Feb 18 22:24:59 2003 From: jsm at inpro.net (Jeff McKeon) Date: 18 Feb 2003 16:24:59 -0500 Subject: nsclient issues In-Reply-To: <200302182009.h1IK9hmm016046@webmail2.magma.ca> References: <200302182009.h1IK9hmm016046@webmail2.magma.ca> Message-ID: <1045603499.26941.54.camel@rh80-jsm.telaurus.net> Just flat out failed service checks with "client refused connection" I un-installed the nsclient.exe, rebooted the windows box and re-installed the nsclient and it seems to be working again. Must have been a dll that update patch overwrote.. In any event, it's working again.. thanks, Jeff On Tue, 2003-02-18 at 15:09, Tim Shouldice wrote: > What problems are you specifically haveing? > > /Tim Shouldice > > On Feb 18, Jeff McKeon wrote: > > > > Anyone else experiencing problems using nslcient to monitor windows > > boxes after the latest windows security updates? I'm currently using > > nsclient 1.0.7.1 > > > > thanks, > > > > Jeff > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Tue Feb 18 22:43:19 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 18 Feb 2003 15:43:19 -0600 Subject: nsclient issues Message-ID: I've spoken with our NT admin, and yes, we're running the latest security updates on our Win2k servers (with NSClient 1.0.7.1). No problems observed. jc > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Tuesday, February 18, 2003 12:46 PM > To: Nagios List > Subject: [Nagios-users] nsclient issues > > > Anyone else experiencing problems using nslcient to monitor windows > boxes after the latest windows security updates? I'm currently using > nsclient 1.0.7.1 > > thanks, > > Jeff > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Tue Feb 18 23:35:41 2003 From: jasonm at kelman.com (Jason Marshall) Date: Tue, 18 Feb 2003 15:35:41 -0700 (MST) Subject: Obsessive Compulsive Problem Message-ID: Hi all, I decided to finally set up a distributed Nagios server to monitor our other office and report back, rather than all the checks going over the WAN (which could be down for a moment, as is often the case). Anyway, I can't get the darned thing to sumit check results to the main nagios server in this office. I used to submit_check_result script from the web page, and it DOES work _for_sure_ when I run it on the command-line. I've determined that it's simply never getting called by nagios itself... I set obsess_over_services=1 I set ocsp_command=submit_check_result The commands.cfg file knows about submit_check_result, and if I alter the ocsp_command= line in any way, nagios will no longer start, which would be correct behavior. I use templates for all my service checks, and in the active and passive service templates both, I set obsess_over_service to "1"... What am I missing? The distributed-server's status.log indicates that it IS doing the checks -- the timestamps are current, and the statuses are all what I'd expect them to be. Should the status.log even have stuff in it in this case? Not sure... Thanks in advance for any help you can offer! --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roberto at quantiva.com Tue Feb 18 23:51:36 2003 From: roberto at quantiva.com (Roberto Moral) Date: 18 Feb 2003 17:51:36 -0500 Subject: Latest Linux release In-Reply-To: <5F735AF7A501D411910600104B76901E02B82BD4@POSTAL> References: <5F735AF7A501D411910600104B76901E02B82BD4@POSTAL> Message-ID: <1045608695.1225.1.camel@localhost.localdomain> what do you mean with "latest Linux release (ver 9.x)"? Are you refering to a distribution? On Tue, 2003-02-18 at 14:29, Wilcox, Chris wrote: > Has anyone noticed any reasons NOT to load Nagios on latest Linux > release (ver 9.x) > > > > I did notice some changes in the latest Apache release etc, but has > that stopped anyone from configuring it on 9? > > > > Thanks. > > > > Chris Wilcox > > Manager Network Services > > Troy Corporation > > 973-443-4200 x2545 > > Roberto Moral SR. UNIX Systems Administrator ------------------------------------- roberto at quantiva.com Tel: 609-514-8513 | cell: 609-346-5601 Quantiva, inc. 100 Village Blvd. 3rd Floor Princeton, NJ 08540 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From russell at quadrix.com Wed Feb 19 00:16:11 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 18 Feb 2003 18:16:11 -0500 Subject: Obsessive Compulsive Problem References: Message-ID: <3E52BEBB.2030409@quadrix.com> First thing to check...file permissions for the submit_check_result script. I had a problem with that once. Make sure that whatever used Nagios runs as can execute that script. Then double check the command you have defined in your misccommands.cfg file to make sure the syntax is good (suggestion: email it to the list). Rememver to put quotes around any $MACRO$ variable that could have spaces in them. Let us know if that helps at all. Russell Scibetti Jason Marshall wrote: >Hi all, I decided to finally set up a distributed Nagios server to monitor >our other office and report back, rather than all the checks going over >the WAN (which could be down for a moment, as is often the case). > >Anyway, I can't get the darned thing to sumit check results to the main >nagios server in this office. I used to submit_check_result script from >the web page, and it DOES work _for_sure_ when I run it on the >command-line. > >I've determined that it's simply never getting called by nagios itself... > >I set obsess_over_services=1 >I set ocsp_command=submit_check_result > >The commands.cfg file knows about submit_check_result, and if I alter the >ocsp_command= line in any way, nagios will no longer start, which would be >correct behavior. > >I use templates for all my service checks, and in the active and passive >service templates both, I set obsess_over_service to "1"... > >What am I missing? The distributed-server's status.log indicates that it >IS doing the checks -- the timestamps are current, and the statuses are >all what I'd expect them to be. > >Should the status.log even have stuff in it in this case? Not sure... > >Thanks in advance for any help you can offer! > >--- >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > From a Sun Microsystems bug report (#4102680): > "Workaround: don't pound on the mouse like a wild monkey." > > "I have great faith in fools: > Self confidence my friends call it." -Edgar Allan Poe > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tong at keen.com Wed Feb 19 00:27:39 2003 From: Tong at keen.com (Tong Young) Date: Tue, 18 Feb 2003 15:27:39 -0800 Subject: Check old data from logs Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2D970AEF@keenx02.keencorp.keen.com> Is there a way for me to see what the previous check values were for a service check? So I have a service check of my memory usage every 15 minutes. Say I want to look back at the last 24 hours and see the value of all the checks every 15 minutes. If I look at "Availability Report" it will say like 2HRS OK then 4HRS OK and give me the initial value but not the values during those 2 hours or 4 hours. If I look at notification alerts, it will only give me the values that were emailed to me on change of status. I do not want to add more emails to myself and have nagios email me every 15 minutes if the service is OK. Is there another way to do what I want? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Wed Feb 19 00:49:34 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 18 Feb 2003 17:49:34 -0600 Subject: Check old data from logs Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D4055@mismail.ena.com> Nagios does not store each check natively. There are several options however: 1) Apan might work for you. 2) write an OCSP command that store the data how you want it. 3) use a postgres backend and have a trigger copy the data to a service-history type of table on insert or update from nagios. I'm sure there are other options. We use the third and its been very effective. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Tong Young To: nagios-users at lists.sourceforge.net Sent: Tue Feb 18 17:27:39 2003 Subject: [Nagios-users] Check old data from logs Is there a way for me to see what the previous check values were for a service check? So I have a service check of my memory usage every 15 minutes. Say I want to look back at the last 24 hours and see the value of all the checks every 15 minutes. If I look at "Availability Report" it will say like 2HRS OK then 4HRS OK and give me the initial value but not the values during those 2 hours or 4 hours. If I look at notification alerts, it will only give me the values that were emailed to me on change of status. I do not want to add more emails to myself and have nagios email me every 15 minutes if the service is OK. Is there another way to do what I want? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Feb 19 01:16:54 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 18 Feb 2003 19:16:54 -0500 (EST) Subject: check_snmp output ***Resolved*** In-Reply-To: <1045590439.15269.61.camel@miles.debisschop.net> References: <1045590439.15269.61.camel@miles.debisschop.net> Message-ID: On 18 Feb 2003, Karl DeBisschop wrote: > On Tue, 2003-02-18 at 12:12, Babak Pasdar wrote: > > GREAT JOB - IT WORKS! > > > > I downloaded the latest CVS (my first experience with cvs), compiled and it works properly now. check_snmp for both the following is busted. > > > > - nagios-plugins-200211131100 > > - nagios-plugins-1.3.0-beta2 > > > > > > I did run into an issue compiling the CVS plugins. It kept telling me > > it could not find getloadavg.c. However getloadavg.c was in the > > plugins directory. > > > > I dont know if this is right or not, probably not since I am not a > > developer, but I opened configure and set the following from: > > > > ac_config_libobj_dir=. > > > > to: > > > > ac_config_libobj_dir=./plugins > > Maybe we should be moving that into the new lib directory? > Would be the place ... -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 01:17:07 2003 From: jasonm at kelman.com (Jason Marshall) Date: Tue, 18 Feb 2003 17:17:07 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <3E52BEBB.2030409@quadrix.com> References: <3E52BEBB.2030409@quadrix.com> Message-ID: > First thing to check...file permissions for the submit_check_result > script. I had a problem with that once. Make sure that whatever used > Nagios runs as can execute that script. Then double check the command > you have defined in your misccommands.cfg file to make sure the syntax > is good (suggestion: email it to the list). Rememver to put quotes > around any $MACRO$ variable that could have spaces in them. > > Let us know if that helps at all. It's still not running the script. No errors anywhere that I can see, either, which is the most annoying part... > > Russell Scibetti > > Jason Marshall wrote: > > >Hi all, I decided to finally set up a distributed Nagios server to monitor > >our other office and report back, rather than all the checks going over > >the WAN (which could be down for a moment, as is often the case). > > > >Anyway, I can't get the darned thing to sumit check results to the main > >nagios server in this office. I used to submit_check_result script from > >the web page, and it DOES work _for_sure_ when I run it on the > >command-line. > > > >I've determined that it's simply never getting called by nagios itself... > > > >I set obsess_over_services=1 > >I set ocsp_command=submit_check_result > > > >The commands.cfg file knows about submit_check_result, and if I alter the > >ocsp_command= line in any way, nagios will no longer start, which would be > >correct behavior. > > > >I use templates for all my service checks, and in the active and passive > >service templates both, I set obsess_over_service to "1"... > > > >What am I missing? The distributed-server's status.log indicates that it > >IS doing the checks -- the timestamps are current, and the statuses are > >all what I'd expect them to be. > > > >Should the status.log even have stuff in it in this case? Not sure... > > > >Thanks in advance for any help you can offer! > > > >--- > >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > > > From a Sun Microsystems bug report (#4102680): > > "Workaround: don't pound on the mouse like a wild monkey." > > > > "I have great faith in fools: > > Self confidence my friends call it." -Edgar Allan Poe > > > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 01:09:36 2003 From: jasonm at kelman.com (Jason Marshall) Date: Tue, 18 Feb 2003 17:09:36 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <3E52BEBB.2030409@quadrix.com> References: <3E52BEBB.2030409@quadrix.com> Message-ID: > First thing to check...file permissions for the submit_check_result > script. I had a problem with that once. Make sure that whatever used I just checked, and it was the wrong owner, but mode 755, so it was runnable by whomever. > Nagios runs as can execute that script. Then double check the command > you have defined in your misccommands.cfg file to make sure the syntax > is good (suggestion: email it to the list). Rememver to put quotes > around any $MACRO$ variable that could have spaces in them. I had quotes around everything, and then removed them, and the results have been the same: define command { command_name submit_check_result command_line /opt/nagios/libexec/submit_check_result $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ '$OUTPUT$' } The command_line is all one one line, sorry for the wrappage. --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Wed Feb 19 03:16:16 2003 From: syed at nec-labs.com (Syed Ali) Date: Tue, 18 Feb 2003 21:16:16 -0500 Subject: Trend Analysis and Performance History Message-ID: <951A499AA688EF47A898B45F25BD8EE81573EB@mailer.nec-labs.com> Hello, Nagios is doing a very good job in our environment of remote host and service monitoring. However, it lacks trend analysis and performance history. Although the Nagios documentation does talk about spitting output from plugins to a file and using RRDTOOL to chart your own data, it would be convenient if this feature was built-in. I am therefore thinking of using OpenNMS for trend analysis and performance history. Does anyone have any comments on using OpenNMS for trend analysis and performance history? Or are there other tools that plugin with Nagios to do trend analysis and performance history, so that I can avoid the grunt work with rrdtool? Some of things I am interested in charting include CPU load, disk space utilization, network interface utilization over a long period of time, (days, weeks, months) all of which I monitor currently using check_snmp plugin with Nagios. Although I do have Cricket and MRTG setup for trend analysis, maintaining 3 tools is a hassle and I would rather stick with Nagios if I can. (Or perhaps Nagios and OpenNMS?) The histograms that come with Nagios, if they can be extended to chart such features such as the ones mentioned above, it would be very nice. Thank you... ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Wed Feb 19 04:48:26 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Tue, 18 Feb 2003 22:48:26 -0500 Subject: check_ntp from cvs 02/18/2003 broken Message-ID: <104562650600003277@imgxs42> OK Iam playing musical plugins here. I was having problems getting: check_snmp check_mysql check_ifstatus check_ifoperstatus from both the plugins: nagios-plugins-200211131100 nagios-plugins-1.3.0-beta2 I downloaded the cvs from today's (02/18/2003) tree. All of the above works except the few hours I spent troubleshooting check_ntp. Now check_ntp works from the command line but for the life of me it would not work in Nagios. I copied the old check_ntp from the nagios-plugins-200211131100 and BANG it started working immediately. Output from CVS 02/18/2003 plugin: #./check_ntp -H 192.168.1.11 NTP OK: Offset 0.002215 secs, jitter 16.822 msec, peer is stratum 1 Output from nagios log: Feb 19 02:12:30 localhost nagios: SERVICE ALERT: Sheeko;NET-ntp;CRITICAL;SOFT;1;(No output!) Feb 19 02:13:30 localhost nagios: SERVICE ALERT: Sheeko;NET-ntp;CRITICAL;SOFT;2;(No output!) Feb 19 02:14:30 localhost nagios: SERVICE ALERT: Sheeko;NET-ntp;CRITICAL;HARD;3;(No output!) hope this helps. Babak ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Wed Feb 19 08:30:11 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 19 Feb 2003 08:30:11 +0100 Subject: Check disk usuage on client References: Message-ID: <3E533283.14B9569E@gcc.dhl.com> http://www.nagios.org/faqs/viewfaq.php?faq_id=59 "Carroll, Jim P [Contractor]" wrote: > > Take a look at NRPE on www.nagios.org which is pretty popular among folks on > this list. > > jc > > > -----Original Message----- > > From: Jerry [mailto:jerryhui at hkiworld.com] > > Sent: Tuesday, February 18, 2003 9:43 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Check disk usuage on client > > > > > > Hi All, > > > > Actually, I am new on nagios and I am looking to monitor the > > disk usuage and > > services/daemon on my clients. It's about ten, or more, which > > it's running > > on solaris & linux... > > > > Without the snmp or agents methods, it's there any other way > > I can monitor > > the disk usuage and services on the clients? How about the > > check_disk & > > check_by_ssh plugin? Can I archive those results by using > > these plugins, or > > anyone have tried these yet? > > If so, please make me some example or suggestion on any other methods > > > > Thousand thanks ! > > > > Regards' > > Jerry Hui > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Tom De Blende Senior NT Infrastructure Analyst (Frango) DHL Global Coordination Center - IT Department Tel +32 2 713 42 62 Fax +32 2 713 52 00 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hrishys at yahoo.co.uk Wed Feb 19 09:19:39 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 19 Feb 2003 08:19:39 +0000 (GMT) Subject: check cpu useage In-Reply-To: <3E533283.14B9569E@gcc.dhl.com> References: <3E533283.14B9569E@gcc.dhl.com> Message-ID: <20030219081939.96640.qmail@web12606.mail.yahoo.com> Hi Can somebody tell me how de get cpu stats from nagios..for unix servers regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Wed Feb 19 09:46:18 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 19 Feb 2003 09:46:18 +0100 Subject: check cpu useage References: <20030219081939.96640.qmail@web12606.mail.yahoo.com> Message-ID: <3E53445A.D4E98B95@gcc.dhl.com> Run check_load remotely (http://www.nagios.org/faqs/viewfaq.php?faq_id=59), or use nagios_statd. hrishy wrote: > > Hi > > Can somebody tell me how de get cpu stats from > nagios..for unix servers > > regards > Hrishy > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Wed Feb 19 13:04:46 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 19 Feb 2003 13:04:46 +0100 Subject: check_snmp and W2K Server Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804FA@storevis.datavis.se> I have written a plugin, disk_by_snmp that will do it. Look at http://apan.sourceforge.net under 'Plugins'. /FredrikW -----Original Message----- From: Barst Michael [mailto:barst at goethe.de] Sent: Tue 18-Feb-03 11:35 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] check_snmp and W2K Server HI, I'm new to nagios and try to setup monitoring using the snmp-service of W2K Server. But I can't find out how to get information on diskusage via smtp. Since snmp is alredy running on the server, i don't want to additional install the pNSClient.exe for the task. Could someone please point me towards some dokumentation on how to get diskusage monitored using the check_snmp plugin? thanks, Michael ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Wed Feb 19 13:06:06 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 19 Feb 2003 13:06:06 +0100 Subject: Check disk usuage on client Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804FB@storevis.datavis.se> Take a look at Nagios-stat. You will find it on Nagios download-page. /FredrikW -----Original Message----- From: Jerry [mailto:jerryhui at hkiworld.com] Sent: Tue 18-Feb-03 16:43 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Check disk usuage on client Hi All, Actually, I am new on nagios and I am looking to monitor the disk usuage and services/daemon on my clients. It's about ten, or more, which it's running on solaris & linux... Without the snmp or agents methods, it's there any other way I can monitor the disk usuage and services on the clients? How about the check_disk & check_by_ssh plugin? Can I archive those results by using these plugins, or anyone have tried these yet? If so, please make me some example or suggestion on any other methods Thousand thanks ! Regards' Jerry Hui ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Wed Feb 19 13:11:10 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 19 Feb 2003 13:11:10 +0100 Subject: Latest Linux release Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804FC@storevis.datavis.se> As far as I know is the latest version of Linux 2.4.20... -----Original Message----- From: Wilcox, Chris [mailto:wilcoxc at troycorp.com] Sent: Tue 18-Feb-03 20:29 To: 'nagios-users at lists.sourceforge.net' Cc: Subject: [Nagios-users] Latest Linux release Has anyone noticed any reasons NOT to load Nagios on latest Linux release (ver 9.x) I did notice some changes in the latest Apache release etc, but has that stopped anyone from configuring it on 9? Thanks. Chris Wilcox Manager Network Services Troy Corporation 973-443-4200 x2545 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From francesco.albrizio at init.it Wed Feb 19 13:17:47 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Wed, 19 Feb 2003 13:17:47 +0100 Subject: Problem executing custom notification perl script Message-ID: <004101c2d810$ea20f520$3302a8c0@init.it> Hi all, I've written a perl script that, when called by nagios like a normal notification command, access to a remote mssql server updating a database. In the miscommands.cfg I have the following lines for command definition: # 'master_host' define command{ command_name master_host command_line /usr/lib/nagios/plugins/master_notify_host.pl $HOSTNAME$ $HOSTSTATE$ $HOSTADDRESS$ $CONTACTEMAIL$ $NOTIFICATIONTYPE$ "$OUTPUT$" "$DATETIME$" } Everything works fine if I call the master_notify_host.pl script by hand, even from user "nagios" in a scheduled cronjob. In nagios.log, it appears that the script has been executed, but it seems not true :) Plus: I'm not using the nagios embedded perl interpreter, just normal perl. Some ideas? This thing is making me become old very quickly :) Thanks guys, Francesco Albrizio E-mail: francesco.albrizio at init.it Network & Security Manager UNITEAM INIT InterNetworking & Information Technology via Imperia, 2 20142 MILANO Tel. 02-89546000 Fax. 02-8467832 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Fredrik.Wanglund at datavis.se Wed Feb 19 13:15:30 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 19 Feb 2003 13:15:30 +0100 Subject: Trend Analysis and Performance History Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804FD@storevis.datavis.se> It looks like Apan should do the work for you. Look at http://apan.sourceforge.net /FredrikW -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Wed 19-Feb-03 03:16 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Trend Analysis and Performance History Hello, Nagios is doing a very good job in our environment of remote host and service monitoring. However, it lacks trend analysis and performance history. Although the Nagios documentation does talk about spitting output from plugins to a file and using RRDTOOL to chart your own data, it would be convenient if this feature was built-in. I am therefore thinking of using OpenNMS for trend analysis and performance history. Does anyone have any comments on using OpenNMS for trend analysis and performance history? Or are there other tools that plugin with Nagios to do trend analysis and performance history, so that I can avoid the grunt work with rrdtool? Some of things I am interested in charting include CPU load, disk space utilization, network interface utilization over a long period of time, (days, weeks, months) all of which I monitor currently using check_snmp plugin with Nagios. Although I do have Cricket and MRTG setup for trend analysis, maintaining 3 tools is a hassle and I would rather stick with Nagios if I can. (Or perhaps Nagios and OpenNMS?) The histograms that come with Nagios, if they can be extended to chart such features such as the ones mentioned above, it would be very nice. Thank you... ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thiagolima at webforce.com.br Wed Feb 19 13:38:46 2003 From: thiagolima at webforce.com.br (Thiago Lima ) Date: Wed, 19 Feb 2003 09:38:46 -0300 Subject: Remote Disk Usage In-Reply-To: <3E53445A.D4E98B95@gcc.dhl.com> References: <3E53445A.D4E98B95@gcc.dhl.com> Message-ID: <028201c2d813$db9887e0$5d41fea9@medusa> Hi, I needed to check the disk usage in several machines, and I cound't find anything that would do it in a simple way, so I changed the check_ifoperstatus.pl plugin to fetch all partitions from the machine and report they all in one service. Here is the output : OK - / 16.29% Used - /home 9.59% Used - /usr 76.98% Used - /var 28.55% Used Currently I'm using CMU-SNMP in all my machines and configured it to report disk utilization for each partition. -snmpd.conf disk / disk /usr disk /home disk /var -- check_disk_snmp.pl first fetchs all partitions configured, and then lookup each one to see if they are free enough. You can configure WARN and CRITICAL percentages. Today it does the work very well for me, but if there's any other people needing it, I can make it a little better and more configurable. If anyone has interest in it, please let me know. thiago. (sorry about the bad english) ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SGHays at PatioEnclosuresInc.com Wed Feb 19 13:46:36 2003 From: SGHays at PatioEnclosuresInc.com (Hays, Sam) Date: Wed, 19 Feb 2003 07:46:36 -0500 Subject: Help with checks_enabled Message-ID: I have an entry in hosts.cfg that looks like this: define host{ use generic-host host_name AcctLsrJet5k alias Accounting's LaserJet 5000 address 10.0.10.3 check_command check-host-alive checks_enabled 1 max_check_attempts 5 notification_interval 120 notification_period workhours } However - and maybe I'm unclear on the matter - I'm not getting host checks with this thing - it simply always reads as "Pending". If I need to add a PING entry into services.cfg I have no (ok, only a slight) problem with that.... It seems though that with check_enabled it should ping the host periodically and allow me to keep services more 'clean'. Sam ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Wed Feb 19 13:57:29 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 19 Feb 2003 13:57:29 +0100 Subject: Help with checks_enabled References: Message-ID: <3E537F39.D39B4CF@gcc.dhl.com> You need at least one service per host. "Hays, Sam" wrote: > > I have an entry in hosts.cfg that looks like this: > > define host{ > use generic-host > host_name AcctLsrJet5k > alias Accounting's LaserJet 5000 > address 10.0.10.3 > check_command check-host-alive > checks_enabled 1 > max_check_attempts 5 > notification_interval 120 > notification_period workhours > } > > However - and maybe I'm unclear on the matter - I'm not getting host checks > with this thing - it simply always reads as "Pending". If I need to add a > PING entry into services.cfg I have no (ok, only a slight) problem with > that.... It seems though that with check_enabled it should ping the host > periodically and allow me to keep services more 'clean'. > > Sam > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atulsh at hclinsys.com Wed Feb 19 13:41:25 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 19 Feb 2003 18:11:25 +0530 Subject: Bandwidth Utilization using check_snmp References: Message-ID: <005a01c2d814$377a4260$5f7b0297@atul> Actually I can remove this 32 from the query by using the -d option in the check_snmp but the problem is that the value for InOctets is a counter that is increasing. So i have to calculate the difference between two time intervals and then supply it to the nagios. Is there any ready-made option for that. My requirement is that I want that whenever my bandwidth utilization is more than 90 % , nagios generate an alert. Is it possible and if yes then pls tell me how. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ----- Original Message ----- From: Shayne Lebrun To: Atul Shrivastava ; nagios-users at lists.sourceforge.net Sent: Wednesday, February 12, 2003 7:05 PM Subject: RE: [Nagios-users] Bandwidth Utilization using check_snmp Do an snmpwalk, and you'll see that it's a SNMP COUNTER32 datatype; the plugin is picking up the 32 and returning that. This has, I was told a few weeks ago, been fixed in CVS, but not yet released, to my knowledge. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Atul Shrivastava Sent: Tuesday, February 11, 2003 11:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Bandwidth Utilization using check_snmp Importance: High Hello All, I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I require the diffenence the between the two counter values at some time interval so that i can make a table for this for further use. Has anyone done some work on that, pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmunoz at comcel.com.co Wed Feb 19 16:06:12 2003 From: jmunoz at comcel.com.co (=?iso-8859-1?Q?Jose_Orlando_Mu=F1oz_Bravo_=28HP=29?=) Date: Wed, 19 Feb 2003 10:06:12 -0500 Subject: How to get CPU and Memory use from a Remote Nagios Server Message-ID: <8F3E96AF7095024E922116DCA0587C9DF723FA@ESPERANTO.comcel.com.co> Hi , I have a good configurati?n of Nagios for test disk,uptime,ping over Unix Tru64 machines. The uptime say me how load is the machine but i need to have stadistics about the memory and cpu use. I?d like to get a plugin for test the memory and cpu use, the data I need is just the output of "vmstat" command There are a plugin o somthing like that for it? Thanks in advance, Jose. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Wed Feb 19 15:56:50 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 19 Feb 2003 15:56:50 +0100 Subject: Bandwidth Utilization using check_snmp Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804FF@storevis.datavis.se> Why dont you use Apan? Then you also will get nice graphs to look at... /FredrikW -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Wed 19-Feb-03 13:41 To: Shayne Lebrun; nagios-users at lists.sourceforge.net Cc: Subject: Re: [Nagios-users] Bandwidth Utilization using check_snmp Actually I can remove this 32 from the query by using the -d option in the check_snmp but the problem is that the value for InOctets is a counter that is increasing. So i have to calculate the difference between two time intervals and then supply it to the nagios. Is there any ready-made option for that. My requirement is that I want that whenever my bandwidth utilization is more than 90 % , nagios generate an alert. Is it possible and if yes then pls tell me how. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ----- Original Message ----- From: Shayne Lebrun To: Atul Shrivastava ; nagios-users at lists.sourceforge.net Sent: Wednesday, February 12, 2003 7:05 PM Subject: RE: [Nagios-users] Bandwidth Utilization using check_snmp Do an snmpwalk, and you'll see that it's a SNMP COUNTER32 datatype; the plugin is picking up the 32 and returning that. This has, I was told a few weeks ago, been fixed in CVS, but not yet released, to my knowledge. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Atul Shrivastava Sent: Tuesday, February 11, 2003 11:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Bandwidth Utilization using check_snmp Importance: High Hello All, I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually I require the diffenence the between the two counter values at some time interval so that i can make a table for this for further use. Has anyone done some work on that, pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kimmo.jaskari at eget.fi Wed Feb 19 16:05:21 2003 From: kimmo.jaskari at eget.fi (Kimmo Jaskari) Date: Wed, 19 Feb 2003 17:05:21 +0200 Subject: question about service dependencies and templa tes Message-ID: <0151E06C0E1FD71184F700508B44D55203353C@DALER> I'm also wrestling with this issue at the moment. From what I can see, there is no way to do something like this: define servicedependency{ dependent_host_name host_name dependent_service_description service_description1,service_description2, .. service_descriptionN host_name host_name service_description service_description execution_failure_criteria [o,w,u,c,n] notification_failure_criteria [o,w,u,c,n]??? } Of course, you can create one set of definitions specifying every single service_description on one machine and then do a huge copy/paste of that entire block, then search-and-replace the dependent_service description, but... at this point my dependencies file is three times larger than the entire hosts and services definition file and growing and already a gigantic pain in the posterior to manage. What I need is a way to do "on every host, separately make services 1, 2, 3 dependent on service X on the same host". Perfect for NRPE, to pick one example, I want all the NRPE-based service checks dependent on NRPE itself being up on that same machine. Making service V on machine X dependent on service Y on machine Z is probably useful for somebody but I can't understand why you cannot specify multiple dependent services, as you can specify multiple machines? > -----Original Message----- > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > Sent: den 18 februari 2003 18:09 > To: 'timwest at warwickshire.gov.uk'; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] question about service > dependencies and templa tes > > > This is something I recently decided I needed to test out > myself. I've got > pretty much the same setup as you. (It wouldn't surprise me > if you had > 10-20 service checks dependent on nrpe_active, as I do.) > > I can only suggest you check this out: > > http://nagios.sourceforge.net/docs/1_0/templatetricks.html#ser > vicedependency > > I recently bounced a question very similar to yours off the > list, without > any helpful responses. All I can suggest is that you set up > a trivial case > on a non-critical machine and test it out. This is what I > intend to do, > when I have time. > > Let's make a deal: Whichever one of us tests this first, > summarise to the > list...? :) > > jc > > > -----Original Message----- > > From: timwest at warwickshire.gov.uk > [mailto:timwest at warwickshire.gov.uk] > > Sent: Tuesday, February 18, 2003 6:50 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] question about service dependencies and > > templates > > > > > > ***** This e-mail is communicated in confidence. It is > > intended for the > > recipient only and may not be disclosed further without the > > express consent > > of the sender. ***** > > > > I'm using nrpe to monitor the status of various filesystems > on several > > machines on our network. > > > > I have created the following service definition > > > > define service { > > hostgroup_name host_group_a > > service_description root_filesystem > > ... > > ... > > } > > > > and > > > > define service { > > hostgroup_name host_group_a > > service_description nrpe_active > > ... > > ... > > } > > > > Now I want to create a service dependency for root_filesystem on > > nrpe_active without creating a separate entry for each > > filesystem on each > > machine. > > > > From reading the documentation I can make root_filesystem > dependent on > > nrpe_active for all of the machines in host_group_a, but I > > only want it > > dependent on nrpe on the machine with the filesystem. > > > > The ability to add the same test to several hosts, just by > > changing the > > contents of the host group is great, but if I have to add a > > separate entry > > for the service dependency then takes that usefulness away. > > > > Has anyone any ideas. > > > > > > -- > > Tim West, CAMS ICT Services > > Warwickshire County Council > > Email: timwest at warwickshire.gov.uk > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From russell at quadrix.com Wed Feb 19 16:22:39 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 19 Feb 2003 10:22:39 -0500 Subject: Obsessive Compulsive Problem References: Message-ID: <3E53A13F.20403@quadrix.com> Please also send us the content of the actual submit_check_result script. Thanks. Russell Jason Marshall wrote: >>First thing to check...file permissions for the submit_check_result >>script. I had a problem with that once. Make sure that whatever used >> > >I just checked, and it was the wrong owner, but mode 755, so it was >runnable by whomever. > >>Nagios runs as can execute that script. Then double check the command >>you have defined in your misccommands.cfg file to make sure the syntax >>is good (suggestion: email it to the list). Rememver to put quotes >>around any $MACRO$ variable that could have spaces in them. >> > >I had quotes around everything, and then removed them, and the results >have been the same: > >define command { > command_name submit_check_result > command_line /opt/nagios/libexec/submit_check_result >$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ '$OUTPUT$' >} > >The command_line is all one one line, sorry for the wrappage. > >--- >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > From a Sun Microsystems bug report (#4102680): > "Workaround: don't pound on the mouse like a wild monkey." > > "I have great faith in fools: > Self confidence my friends call it." -Edgar Allan Poe > > > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Wed Feb 19 16:31:02 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 09:31:02 -0600 Subject: Check old data from logs Message-ID: You might want to try an implement APAN for RRDtool-style trending. jc > -----Original Message----- > From: Tong Young [mailto:Tong at keen.com] > Sent: Tuesday, February 18, 2003 5:28 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check old data from logs > > > Is there a way for me to see what the previous check values were for a > service check? > > So I have a service check of my memory usage every 15 minutes. Say I > want to look back at the last 24 hours and see the value of all the > checks every 15 minutes. > > If I look at "Availability Report" it will say like 2HRS OK > then 4HRS OK > and give me the initial value but not the values during those > 2 hours or > 4 hours. > > If I look at notification alerts, it will only give me the values that > were emailed to me on change of status. I do not want to add more > emails to myself and have nagios email me every 15 minutes if the > service is OK. > > Is there another way to do what I want? > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From simon.beale at mforma.com Wed Feb 19 16:44:44 2003 From: simon.beale at mforma.com (Simon Beale) Date: Wed, 19 Feb 2003 15:44:44 -0000 Subject: Obsessive Compulsive Problem Message-ID: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> I think the problem you're having (which sounds identical to the one I've just wrestled with for the past day and finally fixed) is that you added in obsessive checks to an already running Nagios? The obsessive nature of service checks is held between restarts. Go to 'Process Info' and issue the Process Command "Start Obsessing Over Services" in there. It worked for me. Simon ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Wed Feb 19 16:38:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 09:38:24 -0600 Subject: Check old data from logs Message-ID: Good point, I'd neglected to suggest the following (which I've yet to dabble in myself): - configure nagios to use serviceperf.log: - in nagios.cfg, add this: xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log - rebuild nagios binaries, thus: ./configure --with-file-perfdata make - install MySQL - write a Perl script (and implement it with cron) to slurp serviceperf.log, parse the rows you're interested in, and stuff them into a MySQL table - install PHP if you haven't already - install JpGraph - write some PHP code to: - slurp relevant rows from MySQL - dynamically create graphs using JpGraph Food for thought. jc -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Tuesday, February 18, 2003 5:50 PM To: Tong at keen.com; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Check old data from logs Nagios does not store each check natively. There are several options however: 1) Apan might work for you. 2) write an OCSP command that store the data how you want it. 3) use a postgres backend and have a trigger copy the data to a service-history type of table on insert or update from nagios. I'm sure there are other options. We use the third and its been very effective. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Tong Young To: nagios-users at lists.sourceforge.net Sent: Tue Feb 18 17:27:39 2003 Subject: [Nagios-users] Check old data from logs Is there a way for me to see what the previous check values were for a service check? So I have a service check of my memory usage every 15 minutes. Say I want to look back at the last 24 hours and see the value of all the checks every 15 minutes. If I look at "Availability Report" it will say like 2HRS OK then 4HRS OK and give me the initial value but not the values during those 2 hours or 4 hours. If I look at notification alerts, it will only give me the values that were emailed to me on change of status. I do not want to add more emails to myself and have nagios email me every 15 minutes if the service is OK. Is there another way to do what I want? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stevox2000 at yahoo.com Wed Feb 19 16:48:14 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Wed, 19 Feb 2003 16:48:14 +0100 (CET) Subject: Bandwidth Utilization using check_snmp In-Reply-To: <005a01c2d814$377a4260$5f7b0297@atul> References: <005a01c2d814$377a4260$5f7b0297@atul> Message-ID: <20030219154814.59155.qmail@web10907.mail.yahoo.com> Yes you can use Apan but the -w and -c args, used by check_snmp to set CRITICAL and WARNING thresolds, are not implemented in Apan...So you cannot generate alert. Steve --- Atul Shrivastava a ?crit?: > Actually I can remove this 32 from the query by using the -d option in the check_snmp but the > problem is that the value for InOctets is a counter that is increasing. So i have to calculate > the difference between two time intervals and then supply it to the nagios. Is there any > ready-made option for that. > My requirement is that I want that whenever my bandwidth utilization is more than 90 % , nagios > generate an alert. Is it possible and if yes then pls tell me how. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > > ----- Original Message ----- > From: Shayne Lebrun > To: Atul Shrivastava ; nagios-users at lists.sourceforge.net > Sent: Wednesday, February 12, 2003 7:05 PM > Subject: RE: [Nagios-users] Bandwidth Utilization using check_snmp > > > Do an snmpwalk, and you'll see that it's a SNMP COUNTER32 datatype; the plugin is picking up the > 32 and returning that. This has, I was told a few weeks ago, been fixed in CVS, but not yet > released, to my knowledge. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Atul Shrivastava > Sent: Tuesday, February 11, 2003 11:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Bandwidth Utilization using check_snmp > Importance: High > > > Hello All, > > I am trying to monitor the Bandwidth Utilization for all the interfaces for rotuers. I am able > to get the counters for the InOctets and OutOctets (./check_snmp -H IP -C community -o > .1.3.6.1.2.1.2.2.1.10.1 -w 25:1000 -c 15:1000) But when I give the -w and -c option then the > interface is showing SNMP OK - 32 continuously and doesn't showing the bandwidth used. Actually > I require the diffenence the between the two counter values at some time interval so that i can > make a table for this for further use. > Has anyone done some work on that, pls tell me. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Wed Feb 19 16:45:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 09:45:46 -0600 Subject: Trend Analysis and Performance History Message-ID: Yes, trending is something we're all keen to see. However, except for APAN and roll-your-own solutions (refer to my post of a few mins ago regarding using JpGraph and MySQL), it's not there. I'm sure Ethan would consider clever and eloquent code submissions in this regard. As for OpenNMS, I do recall a post discussing this about 2-3 months ago. If you want to give it a go, best of luck, as the general consensus was that OpenNMS devours system resources. You will need some *serious* iron. jc > -----Original Message----- > From: Syed Ali [mailto:syed at nec-labs.com] > Sent: Tuesday, February 18, 2003 8:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Trend Analysis and Performance History > > > Hello, > > Nagios is doing a very good job in our environment of remote > host and service monitoring. > However, it lacks trend analysis and performance history. > Although the Nagios documentation does talk about spitting > output from plugins to a file and using RRDTOOL to chart your > own data, it would be convenient if this feature was > built-in. I am therefore thinking of using OpenNMS for trend > analysis and performance history. > > Does anyone have any comments on using OpenNMS for trend > analysis and performance history? > Or are there other tools that plugin with Nagios to do trend > analysis and performance history, so that I can avoid the > grunt work with rrdtool? > > Some of things I am interested in charting include CPU load, > disk space utilization, network interface utilization over a > long period of time, (days, weeks, months) all of which I > monitor currently using check_snmp plugin with Nagios. > Although I do have Cricket and MRTG setup for trend analysis, > maintaining 3 tools is a hassle and I would rather stick with > Nagios if I can. (Or perhaps Nagios and OpenNMS?) The > histograms that come with Nagios, if they can be extended to > chart such features such as the ones mentioned above, it > would be very nice. > > Thank you... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 16:56:33 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 19 Feb 2003 08:56:33 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <3E53A13F.20403@quadrix.com> References: <3E53A13F.20403@quadrix.com> Message-ID: > Please also send us the content of the actual submit_check_result script. Whoops, sorry, I meant to do that, and forgot to hit "paste"! #!/bin/sh # Arguments: # $1 = host_name (Short name of host that the service is # associated with) # $2 = svc_description (Description of the service) # $3 = state_string (A string representing the status of # the given service - "OK", "WARNING", "CRITICAL" # or "UNKNOWN") # $4 = plugin_output (A text string that should be used # as the plugin output for the service checks) # touch /tmp/blah # Convert the state string to the corresponding return code return_code=-1 case "$3" in OK) return_code=0 ;; WARNING) return_code=1 ;; CRITICAL) return_code=2 ;; UNKNOWN) return_code=-1 ;; esac # pipe the service check info into the send_nsca program, which # in turn transmits the data to the nsca daemon on the central # monitoring server /bin/echo "$1\t$2\t$return_code\t$4\n" >/tmp/blah /bin/echo "$1\t$2\t$return_code\t$4\n" | /opt/nagios/bin/send_nsca \ 172.29.3.254 -c /opt/nagios/etc/send_nsca.cfg If I run it on the command line, it works A-OK. It doesn't get run AT ALL by nagios -- that's why i put the touch at the top, so I'd see if it was actually being run. > > Thanks. > > Russell > > Jason Marshall wrote: > > >>First thing to check...file permissions for the submit_check_result > >>script. I had a problem with that once. Make sure that whatever used > >> > > > >I just checked, and it was the wrong owner, but mode 755, so it was > >runnable by whomever. > > > >>Nagios runs as can execute that script. Then double check the command > >>you have defined in your misccommands.cfg file to make sure the syntax > >>is good (suggestion: email it to the list). Rememver to put quotes > >>around any $MACRO$ variable that could have spaces in them. > >> > > > >I had quotes around everything, and then removed them, and the results > >have been the same: > > > >define command { > > command_name submit_check_result > > command_line /opt/nagios/libexec/submit_check_result > >$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ '$OUTPUT$' > >} > > > >The command_line is all one one line, sorry for the wrappage. > > > >--- > >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > > > From a Sun Microsystems bug report (#4102680): > > "Workaround: don't pound on the mouse like a wild monkey." > > > > "I have great faith in fools: > > Self confidence my friends call it." -Edgar Allan Poe > > > > > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 16:57:47 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 19 Feb 2003 08:57:47 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> References: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> Message-ID: > I think the problem you're having (which sounds identical to the one I've > just wrestled with for the past day and finally fixed) is that you added in > obsessive checks to an already running Nagios? The obsessive nature of > service checks is held between restarts. Go to 'Process Info' and issue the > Process Command "Start Obsessing Over Services" in there. It worked for me. Well, now I don't remember if I turned on Obsessive mode after it was already running for a while, but I'll bet you a Canadian nickel that's the problem. I'll be right back with news! --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 16:59:37 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 19 Feb 2003 08:59:37 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> References: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> Message-ID: > I think the problem you're having (which sounds identical to the one I've > just wrestled with for the past day and finally fixed) is that you added in > obsessive checks to an already running Nagios? The obsessive nature of > service checks is held between restarts. Go to 'Process Info' and issue the > Process Command "Start Obsessing Over Services" in there. It worked for me. Oh, would that be on the nagios running on the 'main' server, or the one running on the 'distributed' server? If the latter, is there a command I can cat onto the nagios.cmd fifo to enable it, d'ya know? --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From simon.beale at mforma.com Wed Feb 19 17:10:59 2003 From: simon.beale at mforma.com (Simon Beale) Date: Wed, 19 Feb 2003 16:10:59 -0000 Subject: Obsessive Compulsive Problem In-Reply-To: References: Message-ID: <005001c2d831$86624720$c80a0a0a@ngame.com> > > I think the problem you're having (which sounds identical > to the one I've > > just wrestled with for the past day and finally fixed) is > that you added in > > obsessive checks to an already running Nagios? The > obsessive nature of > > service checks is held between restarts. Go to 'Process > Info' and issue the > > Process Command "Start Obsessing Over Services" in there. > It worked for me. > > Oh, would that be on the nagios running on the 'main' server, > or the one > running on the 'distributed' server? If the latter, is there > a command I > can cat onto the nagios.cmd fifo to enable it, d'ya know? You need to run it on the distributed server, i.e. the one that uses send_nsca. The command I used was: echo "[`date "+%s"`] START_OBSESSING_OVER_SVC_CHECKS" >> nagios.cmd Hope that helps. Simon ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Wed Feb 19 17:16:41 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Wed, 19 Feb 2003 11:16:41 -0500 Subject: status.log and nagios.log/status.sav References: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> Message-ID: <1045671401000049d2@imgxs42> Question? in the process check with the check_nagios function enabled in cgi.cfg, it defaults to /usr/local/nagios/var/status.log. However I have no such thing. I touched a file, but nagios deletes it upon exit. I have two choices. a status.sav file and nagios.log. Am I missing something? Babak ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From russell at quadrix.com Wed Feb 19 17:10:14 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 19 Feb 2003 11:10:14 -0500 Subject: Obsessive Compulsive Problem References: Message-ID: <3E53AC66.5030708@quadrix.com> Try this: First, "su - nagios", then run: /opt/nagios/libexec/submit_check_result NAME_OF_HOST "SERVICE DESC" "CRITICAL" "PLUGIN OUTPUT" Also, in the script, change all mentions of -1 to 3. Unknowns are now 3 for Nagios (someone might want to change this is the Nagios contrib directory if it hasn't been already). Finally, do you have retain_nonstatus_information=1 for services? My only other guess is that if you first has ocsp turned off, and then you've tried reloading Nagios, when retain_nonstatus is on, it will use the settings it already had rather than any changes to the cfg's. So another thing to try would be to set that to 0, stop and start Nagios and see what it does. I'm just trying to brainstorm what the problem could be. It's got to either be that "nagios" can't run it for some reason, or that nagios can't tell that it's supposed to run it. Another test could be to change the submit_check_result command in the commands.cfg to something you know works (an email notification command or something). That would hopefully tell you what area the problem is in. Russell Scibetti Jason Marshall wrote: >>Please also send us the content of the actual submit_check_result script. >> > >Whoops, sorry, I meant to do that, and forgot to hit "paste"! > >#!/bin/sh > ># Arguments: ># $1 = host_name (Short name of host that the service is ># associated with) ># $2 = svc_description (Description of the service) ># $3 = state_string (A string representing the status of ># the given service - "OK", "WARNING", "CRITICAL" ># or "UNKNOWN") ># $4 = plugin_output (A text string that should be used ># as the plugin output for the service checks) ># > >touch /tmp/blah > ># Convert the state string to the corresponding return code >return_code=-1 > >case "$3" in > OK) > return_code=0 > ;; > WARNING) > return_code=1 > ;; > CRITICAL) > return_code=2 > ;; > UNKNOWN) > return_code=-1 > ;; >esac > ># pipe the service check info into the send_nsca program, which ># in turn transmits the data to the nsca daemon on the central ># monitoring server > >/bin/echo "$1\t$2\t$return_code\t$4\n" >/tmp/blah > >/bin/echo "$1\t$2\t$return_code\t$4\n" | /opt/nagios/bin/send_nsca \ >172.29.3.254 -c /opt/nagios/etc/send_nsca.cfg > >If I run it on the command line, it works A-OK. It doesn't get run AT ALL >by nagios -- that's why i put the touch at the top, so I'd see if it was >actually being run. > > > >>Thanks. >> >>Russell >> >>Jason Marshall wrote: >> >>>>First thing to check...file permissions for the submit_check_result >>>>script. I had a problem with that once. Make sure that whatever used >>>> >>>I just checked, and it was the wrong owner, but mode 755, so it was >>>runnable by whomever. >>> >>>>Nagios runs as can execute that script. Then double check the command >>>>you have defined in your misccommands.cfg file to make sure the syntax >>>>is good (suggestion: email it to the list). Rememver to put quotes >>>>around any $MACRO$ variable that could have spaces in them. >>>> >>>I had quotes around everything, and then removed them, and the results >>>have been the same: >>> >>>define command { >>> command_name submit_check_result >>> command_line /opt/nagios/libexec/submit_check_result >>>$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ '$OUTPUT$' >>>} >>> >>>The command_line is all one one line, sorry for the wrappage. >>> >>>--- >>>Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. >>> >>> From a Sun Microsystems bug report (#4102680): >>> "Workaround: don't pound on the mouse like a wild monkey." >>> >>> "I have great faith in fools: >>> Self confidence my friends call it." -Edgar Allan Poe >>> >>> >>> >>> >>-- >>Russell Scibetti >>Quadrix Solutions, Inc. >>http://www.quadrix.com >>(732) 235-2335, ext. 7038 >> >> >> > >--- >Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. > > From a Sun Microsystems bug report (#4102680): > "Workaround: don't pound on the mouse like a wild monkey." > > "I have great faith in fools: > Self confidence my friends call it." -Edgar Allan Poe > > > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Feb 19 18:35:19 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 19 Feb 2003 12:35:19 -0500 (EST) Subject: status.log and nagios.log/status.sav In-Reply-To: <1045671401000049d2@imgxs42> References: <1045671401000049d2@imgxs42> Message-ID: On Wed, 19 Feb 2003, Babak Pasdar wrote: > > Question? > > in the process check with the check_nagios function enabled in cgi.cfg, > it defaults to /usr/local/nagios/var/status.log. However I have no such > thing. I touched a file, but nagios deletes it upon exit. I have two > choices. a status.sav file and nagios.log. Am I missing something? > > Babak > status.log file only exists while nagios is running. Nagios creates it on startup and deletes it on exit. -- -sg ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vonessj at intelihealth.com Wed Feb 19 18:46:08 2003 From: vonessj at intelihealth.com (VonEssen, John) Date: Wed, 19 Feb 2003 12:46:08 -0500 Subject: Problems during compile on Solaris Message-ID: <1150D7750302044CBA06C923B5D60596219ED1@EXCHVS1.corp.intelihealth.com> I added the gd-1.86 package from sunfreeware.com and then started the build of nagios. During 'make all' I reach the following: ... gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statuswrl.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lm edata.o ../xdata/xedtemplate.c -o statuswrl.cgi gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o ../xdata/xedtemplate.c -o statusmap.cgi Undefined first referenced symbol in file gdImageCreateFromJpeg /var/tmp/cc8Gezwi.o ld: fatal: Symbol referencing errors. No output written to statusmap.cgi collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/pinky/nagios-1.0/cgi' make: *** [all] Error 2 Any ideas? Thanks.... John -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Wed Feb 19 18:41:01 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 19 Feb 2003 12:41:01 -0500 Subject: status.log and nagios.log/status.sav References: <004f01c2d82d$d3762b20$c80a0a0a@ngame.com> <1045671401000049d2@imgxs42> Message-ID: <3E53C1AD.1090707@quadrix.com> If there is no status.log file, then Nagios is not actually running. It is created on startup and deleted on shutdown of Nagios, leaving behind nagios.log (trails of state changes) and status.sav (for state retention). Russell Scibetti Babak Pasdar wrote: >Question? > >in the process check with the check_nagios function enabled in cgi.cfg, it defaults to /usr/local/nagios/var/status.log. However I have no such thing. I touched a file, but nagios deletes it upon exit. I have two choices. a status.sav file and nagios.log. Am I missing something? > >Babak > > >------------------------------------------------------- >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. >The most comprehensive and flexible code editor you can use. >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. >www.slickedit.com/sourceforge >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Wed Feb 19 19:06:38 2003 From: syed at nec-labs.com (Syed Ali) Date: Wed, 19 Feb 2003 13:06:38 -0500 Subject: Trend Analysis and Performance History Message-ID: <951A499AA688EF47A898B45F25BD8EE822CF8E@mailer.nec-labs.com> Thanks for your input. I have a dual processor Intel PIV Xeon 2.4Ghz with 4GB of RAM running RH 7.2, so I will give OpenNMS a try. Thank you... -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, February 19, 2003 10:46 AM To: Syed Ali; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Trend Analysis and Performance History Yes, trending is something we're all keen to see. However, except for APAN and roll-your-own solutions (refer to my post of a few mins ago regarding using JpGraph and MySQL), it's not there. I'm sure Ethan would consider clever and eloquent code submissions in this regard. As for OpenNMS, I do recall a post discussing this about 2-3 months ago. If you want to give it a go, best of luck, as the general consensus was that OpenNMS devours system resources. You will need some *serious* iron. jc > -----Original Message----- > From: Syed Ali [mailto:syed at nec-labs.com] > Sent: Tuesday, February 18, 2003 8:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Trend Analysis and Performance History > > > Hello, > > Nagios is doing a very good job in our environment of remote > host and service monitoring. > However, it lacks trend analysis and performance history. > Although the Nagios documentation does talk about spitting > output from plugins to a file and using RRDTOOL to chart your > own data, it would be convenient if this feature was > built-in. I am therefore thinking of using OpenNMS for trend > analysis and performance history. > > Does anyone have any comments on using OpenNMS for trend > analysis and performance history? > Or are there other tools that plugin with Nagios to do trend > analysis and performance history, so that I can avoid the > grunt work with rrdtool? > > Some of things I am interested in charting include CPU load, > disk space utilization, network interface utilization over a > long period of time, (days, weeks, months) all of which I > monitor currently using check_snmp plugin with Nagios. > Although I do have Cricket and MRTG setup for trend analysis, > maintaining 3 tools is a hassle and I would rather stick with > Nagios if I can. (Or perhaps Nagios and OpenNMS?) The > histograms that come with Nagios, if they can be extended to > chart such features such as the ones mentioned above, it > would be very nice. > > Thank you... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 19:26:27 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 19 Feb 2003 11:26:27 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <3E53AC66.5030708@quadrix.com> References: <3E53AC66.5030708@quadrix.com> Message-ID: > First, "su - nagios", then run: > > /opt/nagios/libexec/submit_check_result NAME_OF_HOST "SERVICE DESC" > "CRITICAL" "PLUGIN OUTPUT" $ /opt/nagios/libexec/submit_check_result aardvark "local-telnet" "OK" "Testing..." 1 data packet(s) sent to host successfully. > Also, in the script, change all mentions of -1 to 3. Unknowns are now 3 Roger that, Red Leader. > Finally, do you have retain_nonstatus_information=1 for services? My I don't, actually. Is that something I want? Or something I want to make sure isn't set? Actually, I don't have it in my config file at all, I added it, and Nagios choked on it -- I tried nonstatus and nonstate, and neither was valid... I do have use_retained_program_state=0 in my config, though. > another thing to try would be to set that to 0, stop and start Nagios > and see what it does. I've stopped and started many times now... > I'm just trying to brainstorm what the problem could be. It's got to > either be that "nagios" can't run it for some reason, or that nagios > can't tell that it's supposed to run it. Another test could be to I think it's the latter -- that it's not aware that it's supposed to run it. Which is weird, but not utterly unbelievable. I'll try setting it to something that should work, though this box does NOTHING other than monitor and (theoretically) tell the master server what's going on, so there are no working notification scripts on it (yet). --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 19:28:25 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 19 Feb 2003 11:28:25 -0700 (MST) Subject: Obsessive Compulsive Problem In-Reply-To: <005001c2d831$86624720$c80a0a0a@ngame.com> References: <005001c2d831$86624720$c80a0a0a@ngame.com> Message-ID: > The command I used was: > echo "[`date "+%s"`] START_OBSESSING_OVER_SVC_CHECKS" >> nagios.cmd I tried that, and gave it a while (stopped and started a few times, too), and nothing. This is starting to get weird. I'm going to put together a new script that does nothing other than touch a file and exit, call it something else, and add that to the ocsp_command= line in the config. I'll get to the bottom of this yet! Thanks for your help, everyone. --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alden at math.ohio-state.edu Wed Feb 19 19:40:08 2003 From: alden at math.ohio-state.edu (Dave Alden) Date: Wed, 19 Feb 2003 13:40:08 -0500 Subject: Odd problem with check_snmp Message-ID: <20030219184008.GA1864@math.ohio-state.edu> Hi, I'm having problems with a check_snmp command. I'm trying to setup a service which will warn me if the load goes over 2. The problem is that it seams to consider anything over 1 as a WARNING state. If I run the command by hand, it does the "proper" thing (only sets WARNING if the load is over 2). To make sure that I'm running the same command, I setup a second service and command that echo the command to a dummy file -- it is exactly what I would expect. If I then source the dummy file, I get back the proper answer (if the load is below 2, the state is "OK"). Any suggestions or pointers? ...thnx, ...dave ps The service and command entries are: define service{ use template-service-snmp-load host_name mathserv check_command check-snmp-load!somepass!:200!:300 } define service{ use template-service-snmp-load service-description snmp load fubar host_name mathserv check_command check-snmp-load2!somepass!:200!:300 } define command{ command_name check-snmp-load command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.2021.10.1.5.1 -w $ARG2$ -c $ARG3$ -l load } define command{ command_name check-snmp-load2 command_line echo $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.2021.10.1.5.1 -w $ARG2$ -c $ARG3$ -l load > /tmp/fubar } ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From networks at wi.rr.com Wed Feb 19 20:04:49 2003 From: networks at wi.rr.com (Networks) Date: 19 Feb 2003 13:04:49 -0600 Subject: Notification Interval Problem In-Reply-To: <20030219184008.GA1864@math.ohio-state.edu> References: <20030219184008.GA1864@math.ohio-state.edu> Message-ID: <1045681490.3521.7.camel@elijah> Hi, I'm having problems with getting nagios to send out more then one notification on an event. My notification_interval is set to 10, service check interval is 5, and my interval (in seconds) is set to 60 (default). I do receive the first notification, but afterwards no other pages or emails are sent out. I want nagios to keep paging until someone responds. Is there something I didn't check? I can't seem to get this to work. Any help would be appreciated. TIA, josh PS. Here are some clips from host config files: define host{ name template notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 check_command check-host-alive notification_interval 10 notification_period 24x7 notification_options d,u,r max_check_attempts 4 register 0 } define host{ use template host_name 1st-floor-1 alias 1st Floor Stack 1 parents passport address 172.16.4.240 } ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonm at kelman.com Wed Feb 19 20:17:59 2003 From: jasonm at kelman.com (Jason Marshall) Date: Wed, 19 Feb 2003 12:17:59 -0700 (MST) Subject: Obsessing over Obsessing... Message-ID: I just created a new ocsp_command: define command { command_name submit_check_result_jm command_line /usr/bin/touch /tmp/blah } and put this in my nagios.cfg file: obsess_over_services=1 ocsp_command=submit_check_result_jm I also have: obsess_over_service 1 on each of my services on the distributed machine... Still nothing -- it's pretty clear that Nagios isn't attempting to run the ocsp_command I've defined. There are NO errors spewing out to the log_file, so it mustn't think it's doing anything inappropriate. If anyone else has any ideas, I'm all ears! If I'm obsessing over services on the distributed machine, should the status.log be filled with recent check results? Or should they only be sent to the master server? Or should it be going to both? Should I be running state retention on the distributed machine? --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SMorilla at tipoiti.com Wed Feb 19 20:47:29 2003 From: SMorilla at tipoiti.com (Sergio Morilla) Date: Wed, 19 Feb 2003 16:47:29 -0300 Subject: nagios and snmptrapd - How to?? Message-ID: <7B73CD345A317D4D965ED9F3D1B5070705B5CA@bue-mail.tipoiti.com> Hi, I?m currently using Nagios 1.0 with nagios-plugins-1.3.0-beta2. So far I have managed to get Nagios running and it performs OK!! I have two Vanguard 6425 routers linking our central office and our manufacturing plant. I?ve get the routers to send the traps to the nagios server, and they are being logged. What I get on my log file is: Feb 17 02:57:32 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87016) Uptime: 5 days, 18:18:10.05, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK DOWN" Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87015) Uptime: 5 days, 18:19:09.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK UP" Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87012) Uptime: 5 days, 18:19:10.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - FRAME SEGMENTER LINK UP" Feb 17 02:58:39 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (43007) Uptime: 5 days, 18:19:17.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - LINK UP" This seems OK, but...along with that I get this also Feb 19 16:33:03 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:50:06.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:01:02:67:4A:08" Feb 19 16:35:56 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:52:59.20, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E" Feb 19 16:35:58 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:53:00.75, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E" Q1) How do I identify this traps on the event-handler?? snmptrapd[573] and snmptrapd[560] seem to be different types of traps. How is this sent to the handler?? My snmptrapd.conf file looks like this traphandle SNMPv2-SMI::enterprises.449.2.1.1.1.7.0 /usr/local/nagios/libexec/eventhandlers/vanguard-handler and my /usr/local/nagios/libexec/eventhandlers/vanguard-handler #!/bin/sh /bin/echo -e "$1\n" > test.run exit 0 As long as I understand the documentation this should get my vanguard-handler run on every trap the nagios server receives. q2) Is there anything else to be set up?? I will run # Submit passive check result to monitoring host /usr/local/nagios/libexec/eventhandlers/submit_check_result When I get this "simple???" setup running!!! Any thoughts??!! Thanks Sergio D. Morilla ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpasdar at IGXGlobal.com Wed Feb 19 20:45:39 2003 From: bpasdar at IGXGlobal.com (Babak Pasdar) Date: Wed, 19 Feb 2003 14:45:39 -0500 Subject: status.log and nagios.log/status.sav References: <3E53C1AD.1090707@quadrix.com> Message-ID: <104568393900005964@imgxs42> I must have nagios by immaculate conception then, because everything works fine. All my service and host checks are running web itnerface is accessible and working. When I do a ps -ax I get: 1530 ? S 0:01 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg However I dont have status.log running on my system, # ls -al total 72 drwxrwxr-x 4 nagios nagios 4096 Feb 19 19:36 . drwxrwxr-x 16 nagios nagios 4096 Feb 18 16:54 .. drwxrwxr-x 2 nagios nagios 4096 Feb 19 00:00 archives prw-rw---- 1 nagios nagios 0 Feb 19 19:36 nagios.cmd -rw-r--r-- 1 root root 5 Feb 19 19:36 nagios.lock -rw-rw-r-- 1 nagios nagios 20799 Feb 19 19:36 nagios.log drwxrwsr-x 2 nagios nagios 4096 Feb 15 04:18 rw -rw-rw-r-- 1 nagios nagios 0 Feb 19 19:36 status.sav nagios.cfg config: status_file=/usr/local/nagios/var/status.log cgi.cfg config: nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' Nagios Startup process: #/etc/init.d/nagios restart Running configuration check...done Stopping network monitor: nagios Starting network monitor: nagios PID TTY TIME CMD 6984 ? 00:00:00 nagios [root at localhost etc]# find / -name status.log [root at localhost etc]# as you can see above no status.log generated when nagios starts. I would appreciate any help. Babak Russell Scibetti wrote: > If there is no status.log file, then Nagios is not actually running. It > is created on startup and deleted on shutdown of Nagios, leaving behind > nagios.log (trails of state changes) and status.sav (for state retention). > > Russell Scibetti > > Babak Pasdar wrote: > > >Question? > > > >in the process check with the check_nagios function enabled in cgi.cfg, it defaults to /usr/local/nagios/var/status.log. However I have no such thing. I touched a file, but nagios deletes it upon exit. I have two choices. a status.sav file and nagios.log. Am I missing something? > > > >Babak > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > >The most comprehensive and flexible code editor you can use. > >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > >www.slickedit.com/sourceforge > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scott.cechovic at adtran.com Wed Feb 19 20:59:17 2003 From: scott.cechovic at adtran.com (SCOTT CECHOVIC) Date: Wed, 19 Feb 2003 13:59:17 -0600 Subject: Host dependencies and notifications Message-ID: <39B01E2189D99F4B8C9612462DB3922A0659741F@srv-exchange.adtran.com> I am monitoring a network of several hosts, switches and routers. I have configured host dependencies such that I do not receive pages on downstream hosts when a dependent upstream host is down or unreachable. The problem I am encountering is when the upstream node (closest to the Nagios server) goes down, I do not receive notifications for any hosts dependent on that upstream device (as expected) ... but when the upstream host becomes reachable/up, I receive UP notifications for all hosts dependent on the upstream that went into a HARD down/unreachable state. According to the "notification logic" documentation, an UP notification should never be sent on a device that did not trigger a DOWN/UNREACHABLE notification. Can anyone explain this behavior and possibly instruct me on what needs to be done to suppress the UP notifications for all of the dependent devices? Thanks, Scott Cechovic ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SGHays at PatioEnclosuresInc.com Wed Feb 19 21:16:12 2003 From: SGHays at PatioEnclosuresInc.com (Hays, Sam) Date: Wed, 19 Feb 2003 15:16:12 -0500 Subject: CGIMap issue Message-ID: The default status map layouts are painful, and I'm trying to specify my own coords with: define hostextinfo{ host_name Beethoven 2d_coords 500,324 } then in Nagios.cfg I have: xedtemplate_config_file=/usr/local/nagios/etc/test.cfg but when I tell it to generate, I get "You have not supplied any host drawing coordinates" -- do you have to define coords for *all* hosts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From SMorilla at tipoiti.com Wed Feb 19 21:06:16 2003 From: SMorilla at tipoiti.com (Sergio Morilla) Date: Wed, 19 Feb 2003 17:06:16 -0300 Subject: nagios and snmptrapd - How to?? Message-ID: <7B73CD345A317D4D965ED9F3D1B507072B063F@bue-mail.tipoiti.com> > Hi, > > I?m currently using Nagios 1.0 with nagios-plugins-1.3.0-beta2. > So far I have managed to get Nagios running and it performs OK!! > > I have two Vanguard 6425 routers linking our central office and our > manufacturing plant. > > I?ve get the routers to send the traps to the nagios server, and they > are being logged. > > What I get on my log file is: > Feb 17 02:57:32 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87016) Uptime: 5 days, 18:18:10.05, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK DOWN" > Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87015) Uptime: 5 days, 18:19:09.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK UP" > Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87012) Uptime: 5 days, 18:19:10.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - FRAME SEGMENTER LINK UP" > Feb 17 02:58:39 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (43007) Uptime: 5 days, 18:19:17.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - LINK UP" > > This seems OK, but...along with that I get this also > Feb 19 16:33:03 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:50:06.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:01:02:67:4A:08" > Feb 19 16:35:56 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:52:59.20, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E" > Feb 19 16:35:58 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:53:00.75, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E" > > Q1) How do I identify this traps on the event-handler?? snmptrapd[573] and snmptrapd[560] seem to be different types > of traps. How is this sent to the handler?? > > My snmptrapd.conf file looks like this > traphandle SNMPv2-SMI::enterprises.449.2.1.1.1.7.0 /usr/local/nagios/libexec/eventhandlers/vanguard-handler > > and my /usr/local/nagios/libexec/eventhandlers/vanguard-handler > > #!/bin/sh > > /bin/echo -e "$1\n" > test.run > > exit 0 > > As long as I understand the documentation this should get my vanguard-handler run on every trap the > nagios server receives. > > q2) Is there anything else to be set up?? > I will run > # Submit passive check result to monitoring host > /usr/local/nagios/libexec/eventhandlers/submit_check_result > When I get this "simple???" setup running!!! > Any thoughts??!! > > Thanks > > Sergio D. Morilla > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Feb 19 21:38:34 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 19 Feb 2003 15:38:34 -0500 (EST) Subject: nagios and snmptrapd - How to?? In-Reply-To: <7B73CD345A317D4D965ED9F3D1B507072B063F@bue-mail.tipoiti.com> References: <7B73CD345A317D4D965ED9F3D1B507072B063F@bue-mail.tipoiti.com> Message-ID: 3 messages in the last hour is a bit much. This is a volunteer list. On Wed, 19 Feb 2003, Sergio Morilla wrote: > > Hi, > > > > I?m currently using Nagios 1.0 with nagios-plugins-1.3.0-beta2. > > So far I have managed to get Nagios running and it performs OK!! > > > > I have two Vanguard 6425 routers linking our central office and our > > manufacturing plant. > > > > I?ve get the routers to send the traps to the nagios server, and they > > are being logged. > > > > What I get on my log file is: > > Feb 17 02:57:32 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87016) Uptime: 5 days, 18:18:10.05, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK DOWN" > > Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87015) Uptime: 5 days, 18:19:09.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK UP" > > Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87012) Uptime: 5 days, 18:19:10.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - FRAME SEGMENTER LINK UP" > > Feb 17 02:58:39 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (43007) Uptime: 5 days, 18:19:17.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - LINK UP" > > > > This seems OK, but...along with that I get this also > > Feb 19 16:33:03 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:50:06.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:01:02:67:4A:08" > > Feb 19 16:35:56 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:52:59.20, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E" > > Feb 19 16:35:58 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:53:00.75, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E" > > > > Q1) How do I identify this traps on the event-handler?? snmptrapd[573] and snmptrapd[560] seem to be different types > > of traps. How is this sent to the handler?? > > > > My snmptrapd.conf file looks like this > > traphandle SNMPv2-SMI::enterprises.449.2.1.1.1.7.0 /usr/local/nagios/libexec/eventhandlers/vanguard-handler > > > > and my /usr/local/nagios/libexec/eventhandlers/vanguard-handler > > > > #!/bin/sh > > > > /bin/echo -e "$1\n" > test.run > > > > exit 0 > > > > As long as I understand the documentation this should get my vanguard-handler run on every trap the > > nagios server receives. > > > > q2) Is there anything else to be set up?? > > I will run > > # Submit passive check result to monitoring host > > /usr/local/nagios/libexec/eventhandlers/submit_check_result > > When I get this "simple???" setup running!!! > > Any thoughts??!! > > > > Thanks > > > > Sergio D. Morilla > > > > -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie at bclnz.net Wed Feb 19 22:42:28 2003 From: jamie at bclnz.net (Jamie) Date: Thu, 20 Feb 2003 10:42:28 +1300 Subject: nmap2nagios & Debian References: Message-ID: <04e401c2d85f$cd472600$b58031ca@bcl977307> Hi, I'm trying to use nmap2nagios on my debian box but it spits back at me: Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at ./nmap2nagios.pl line 22. BEGIN failed--compilation aborted at ./nmap2nagios.pl line 22. ...after issuing ./nmap2nagios.pl -v -r nmap.xml -o test.cfg This is probably a simple problem with a simple solution. But my brain is not working, and I must ask the list. Has anyone else come across this? Jamie ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From crash4o4 at yahoo.com Wed Feb 19 22:59:46 2003 From: crash4o4 at yahoo.com (frank) Date: Wed, 19 Feb 2003 13:59:46 -0800 (PST) Subject: Status Map images howto Message-ID: <20030219215946.18057.qmail@web41404.mail.yahoo.com> I was wondering if some could help me setup status map to show nice images.. I opened up cgi.cfg and added this but never seemed to work. is there something I might be missing ? hostextinfo[linux1]=/serverinfo/linux1.html;redhat.gif;redhat.jpg;redhat.gd2;Linux Servers 4.11;100,50;3.5,0.0,-1.5; --------------------------------- Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean.knox at sbcglobal.net Wed Feb 19 23:10:02 2003 From: sean.knox at sbcglobal.net (Sean Knox) Date: Wed, 19 Feb 2003 14:10:02 -0800 Subject: nmap2nagios & Debian In-Reply-To: <04e401c2d85f$cd472600$b58031ca@bcl977307> References: <04e401c2d85f$cd472600$b58031ca@bcl977307> Message-ID: <3E5400BA.60405@sbcglobal.net> http://packages.debian.org is a great tool. You can search the contents of Debian packages for a particular file. A cursory search brought up this list: http://packages.debian.org/cgi-bin/search_contents.pl?word=simple.pm&searchmode=searchfiles&case=insensitive&version=stable&arch=i386 It looks like you want the "libtemplate-perl" package. Another option when confronted with missing perl dependencies is to search CPAN, although I usually find what I'm looking for faster through packages.debian.org. Sean Jamie wrote: >Hi, > >I'm trying to use nmap2nagios on my debian box but it spits back at me: > >Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 >/usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 >/usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at >./nmap2nagios.pl line 22. >BEGIN failed--compilation aborted at ./nmap2nagios.pl line 22. > >...after issuing ./nmap2nagios.pl -v -r nmap.xml -o test.cfg > >This is probably a simple problem with a simple solution. > >But my brain is not working, and I must ask the list. > >Has anyone else come across this? > > >Jamie > > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Wed Feb 19 23:13:25 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 16:13:25 -0600 Subject: Status not working :( Message-ID: <1045692805.3e54018510b15@rapidgrid.com> ok I have got most everything working (FINALLY :)) but everything comes back as down from the check_ping. I get the following as the Status Information: /bin/ping -n -U -c 5 207.44.152.100 But I get the OK if I run it from the command line... any ideas? ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie at bclnz.net Wed Feb 19 23:23:08 2003 From: jamie at bclnz.net (Jamie) Date: Thu, 20 Feb 2003 11:23:08 +1300 Subject: nmap2nagios & Debian References: <04e401c2d85f$cd472600$b58031ca@bcl977307> <3E5400BA.60405@sbcglobal.net> Message-ID: <04f701c2d865$7bd86170$b58031ca@bcl977307> Fantastic! Thanks Sean. Just a note: It ended up being libxml-simple-perl All fixed now. I love Debian. -jamie ----- Original Message ----- From: "Sean Knox" To: "Jamie" Cc: Sent: Thursday, February 20, 2003 11:10 AM Subject: Re: [Nagios-users] nmap2nagios & Debian > http://packages.debian.org is a great tool. You can search the contents > of Debian packages for a particular file. A cursory search brought up > this list: > > http://packages.debian.org/cgi-bin/search_contents.pl?word=simple.pm&searchm ode=searchfiles&case=insensitive&version=stable&arch=i386 > > It looks like you want the "libtemplate-perl" package. Another option > when confronted with missing perl dependencies is to search CPAN, > although I usually find what I'm looking for faster through > packages.debian.org. > > Sean > > Jamie wrote: > > >Hi, > > > >I'm trying to use nmap2nagios on my debian box but it spits back at me: > > > >Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 > >/usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 > >/usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at > >./nmap2nagios.pl line 22. > >BEGIN failed--compilation aborted at ./nmap2nagios.pl line 22. > > > >...after issuing ./nmap2nagios.pl -v -r nmap.xml -o test.cfg > > > >This is probably a simple problem with a simple solution. > > > >But my brain is not working, and I must ask the list. > > > >Has anyone else come across this? > > > > > >Jamie > > > > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at atlantic-isp.co.uk Wed Feb 19 23:40:19 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Wed, 19 Feb 2003 22:40:19 -0000 Subject: CGIMap issue In-Reply-To: References: Message-ID: <000a01c2d867$e4ba9760$0101a8c0@main> No Nagios will only display the hosts you have specified co-ordinates for. That's if you have specified default_statusmap_layout=0 in the cgi.cfg file. What you have should be enough to display this one host in the status map. One possible reason why you get this error is when you compiled Nagios you did not specify --with-template-extinfo which would enable you to specify hostextinfo in template format as you have done here. Try changing it to the default layout to the default old method and see if it helps. However I don't know the minimum information you have to supply and what fields are optional. http:// /docs/xeddefault.html#hostextinfo Tony -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Hays, Sam Sent: 19 February 2003 20:16 To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] CGIMap issue The default status map layouts are painful, and I'm trying to specify my own coords with: define hostextinfo{ host_name Beethoven 2d_coords 500,324 } then in Nagios.cfg I have: xedtemplate_config_file=/usr/local/nagios/etc/test.cfg but when I tell it to generate, I get "You have not supplied any host drawing coordinates" -- do you have to define coords for *all* hosts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From networks at wi.rr.com Wed Feb 19 23:31:40 2003 From: networks at wi.rr.com (Networks) Date: 19 Feb 2003 16:31:40 -0600 Subject: Notification Interval Problem In-Reply-To: <000201c2d865$08694b50$0101a8c0@main> References: <000201c2d865$08694b50$0101a8c0@main> Message-ID: <1045693903.3499.20.camel@elijah> Sorry for not including more info. Flap-detection is not enabled. All hosts have service checks. And the service check is working. Notifications are enabled, and I get notifications when then host state changes. But I only receive one notification. The log file shows the host going down and a notification going out. Once the host is down nagios checks ti see if it is up at regular intervals. There are no errors. I included the service.cfg and nagios.cfg files, I can include the hosts.cfg file but would need to remove some things from it before making it public. Hope this helps, Josh On Wed, 2003-02-19 at 16:19, Nagios wrote: > You have flap_detection enabled what is low_host_flap_threshold and > high_host_flap_threshold set at in the nagios.cfg file? > > Do you have any service checks for this host, as the host will only be > checked if a service check fails on the host? > > Does the tactical overview on the web front end show anything about the > notifications/checks on the host being disabled because of flap > detection? > > What does the nagios.log show for checks/notifications on this host? > > Sorry for not be able to help more but without more info it's not easy. > > Tony > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Networks > > Sent: 19 February 2003 19:05 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Notification Interval Problem > > > > Hi, > > > > I'm having problems with getting nagios to send out more then one > > notification on an event. My notification_interval is set to 10, > service > > check interval is 5, and my interval (in seconds) is set to 60 > > (default). I do receive the first notification, but afterwards no > other > > pages or emails are sent out. I want nagios to keep paging until > someone > > responds. Is there something I didn't check? I can't seem to get this > to > > work. Any help would be appreciated. > > > > TIA, > > > > josh > > > > PS. Here are some clips from host config files: > > > > define host{ > > name template > > notifications_enabled 1 > > event_handler_enabled 1 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > check_command check-host-alive > > notification_interval 10 > > notification_period 24x7 > > notification_options d,u,r > > max_check_attempts 4 > > register 0 > > } > > > > > > define host{ > > use template > > host_name 1st-floor-1 > > alias 1st Floor Stack 1 > > parents passport > > address 172.16.4.240 > > } > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any > > issue. > > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- ################################################################################ # Sample object config file for Nagios 1.0 # # Read the documentation for more information on this configuration file. I've # provided some comments here, but things may not be so clear without further # explanation, so make sure to read the HTML documentation! # # Last Modified: 09-17-2002 # ################################################################################ ################################################################################ # SERVICE DEFINITIONS # # SYNTAX: # ################################################################################ # Generic service definition template define service{ name template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Activ obsess_over_service 1 ; We should obsess over this serf necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information acrostarts is_volatile 0 check_period 24x7 retry_check_interval 1 notification_period 24x7 register 0 ; DONT REGISTER THIS DEFINITION max_check_attempts 3 normal_check_interval 5 check_command check_ping!200.0,60%!500.0,80% notification_options c,r } define service{ use template ; Name of service template to use service_description DNS check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_dns hostgroup_name dns-group } define service{ use template ; Name of service template to use service_description SSH check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ssh hostgroup_name ssh-group } define service{ use template ; Name of service template to use service_description WWW check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_http hostgroup_name www-group } define service{ use template ; Name of service template to use service_description HP Jet Direct check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups printer-contact notification_interval 120 notification_period 24x7 notification_options n check_command check_hpjd hostgroup_name hp-printers } define service{ use template ; Name of service template to use service_description SMTP check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_smtp hostgroup_name smtp-group } define service{ use template ; Name of service template to use service_description FTP check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ftp hostgroup_name ftp-group } # Service definition define service{ use template ; Name of service template to use service_description PING Page is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options r,c check_command check_ping!300.0,80%!500.0,100% hostgroup_name ping-group } define service{ use template ; Name of service template to use service_description PING NoPage is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups printer-contact notification_interval 5 notification_period 24x7 notification_options r,c check_command check_ping!300.0,80%!500.0,100% hostgroup_name all-printers } # Service definition define service{ use template ; Name of service template to use service_description WINDOWS SMB is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options r,c check_command check_smbstatus hostgroup_name smb-group } -------------- next part -------------- ############################################################################## # # NAGIOS.CFG - Sample Main Config File for Nagios 1.0 # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not be so # clear without further explanation. # # Last Modified: 07-04-2002 # ############################################################################## # LOG FILE # This is the main log file where service and host events are logged # for historical purposes. This should be the first option specified # in the config file!!! log_file=/usr/local/nagios/var/nagios.log # OBJECT CONFIGURATION FILE(S) # This is the configuration file in which you define hosts, host # groups, contacts, contact groups, services, etc. I guess it would # be better called an object definition file, but for historical # reasons it isn't. You can split object definitions into several # different config files by using multiple cfg_file statements here. # Nagios will read and process all the config files you define. # This can be very useful if you want to keep command definitions # separate from host and contact definitions... # Plugin commands (service and host check commands) # Arguments are likely to change between different releases of the # plugins, so you should use the same config file provided with the # plugin release rather than the one provided with Nagios. cfg_file=/usr/local/nagios/etc/checkcommands.cfg # Misc commands (notification and event handler commands, etc) cfg_file=/usr/local/nagios/etc/misccommands.cfg # You can split other types of object definitions across several # config files if you wish (as done here), or keep them all in a # single config file. cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg # RESOURCE FILE # This is an optional resource file that contains $USERx$ macro # definitions. Multiple resource files can be specified by using # multiple resource_file definitions. The CGIs will not attempt to # read the contents of resource files, so information that is # considered to be sensitive (usernames, passwords, etc) can be # defined as macros in this file and restrictive permissions (600) # can be placed on this file. resource_file=/usr/local/nagios/etc/resource.cfg # STATUS FILE # This is where the current status of all monitored services and # hosts is stored. Its contents are read and processed by the CGIs. # The contentsof the status file are deleted every time Nagios # restarts. status_file=/usr/local/nagios/var/status.log # NAGIOS USER # This determines the effective user that Nagios should run as. # You can either supply a username or a UID. nagios_user=nagios # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios # EXTERNAL COMMAND OPTION # This option allows you to specify whether or not Nagios should check # for external commands (in the command file defined below). By default # Nagios will *not* check for external commands, just to be on the # cautious side. If you want to be able to use the CGI command interface # you will have to enable this. Setting this value to 0 disables command # checking (the default), other values enable it. check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL # This is the interval at which Nagios should check for external commands. # This value works of the interval_length you specify later. If you leave # that at its default value of 60 (seconds), a value of 1 here will cause # Nagios to check for external commands every minute. If you specify a # number followed by an "s" (i.e. 15s), this will be interpreted to mean # actual seconds rather than a multiple of the interval_length variable. # Note: In addition to reading the external command file at regularly # scheduled intervals, Nagios will also check for external commands after # event handlers are executed. # NOTE: Setting this value to -1 causes Nagios to check the external # command file as often as possible. #command_check_interval=1 #command_check_interval=15s command_check_interval=-1 # EXTERNAL COMMAND FILE # This is the file that Nagios checks for external command requests. # It is also where the command CGI will write commands that are submitted # by users, so it must be writeable by the user that the web server # is running as (usually 'nobody'). Permissions should be set at the # directory level instead of on the file, as the file is deleted every # time its contents are processed. command_file=/usr/local/nagios/var/rw/nagios.cmd # COMMENT FILE # This is the file that Nagios will use for storing host and service # comments. comment_file=/usr/local/nagios/var/comment.log # DOWNTIME FILE # This is the file that Nagios will use for storing host and service # downtime data. downtime_file=/usr/local/nagios/var/downtime.log # LOCK FILE # This is the lockfile that Nagios will use to store its PID number # in when it is running in daemon mode. lock_file=/usr/local/nagios/var/nagios.lock # TEMP FILE # This is a temporary file that is used as scratch space when Nagios # updates the status log, cleans the comment file, etc. This file # is created, used, and deleted throughout the time that Nagios is # running. temp_file=/usr/local/nagios/var/nagios.tmp # LOG ROTATION METHOD # This is the log rotation method that Nagios should use to rotate # the main log file. Values are as follows.. # n = None - don't rotate the log # h = Hourly rotation (top of the hour) # d = Daily rotation (midnight every day) # w = Weekly rotation (midnight on Saturday evening) # m = Monthly rotation (midnight last day of month) log_rotation_method=d # LOG ARCHIVE PATH # This is the directory where archived (rotated) log files should be # placed (assuming you've chosen to do log rotation). log_archive_path=/usr/local/nagios/var/archives # LOGGING OPTIONS # If you want messages logged to the syslog facility, as well as the # NetAlarm log file set this option to 1. If not, set it to 0. use_syslog=1 # NOTIFICATION LOGGING OPTION # If you don't want notifications to be logged, set this value to 0. # If notifications should be logged, set the value to 1. log_notifications=1 # SERVICE RETRY LOGGING OPTION # If you don't want service check retries to be logged, set this value # to 0. If retries should be logged, set the value to 1. log_service_retries=1 # HOST RETRY LOGGING OPTION # If you don't want host check retries to be logged, set this value to # 0. If retries should be logged, set the value to 1. log_host_retries=1 # EVENT HANDLER LOGGING OPTION # If you don't want host and service event handlers to be logged, set # this value to 0. If event handlers should be logged, set the value # to 1. log_event_handlers=1 # INITIAL STATES LOGGING OPTION # If you want Nagios to log all initial host and service states to # the main log file (the first time the service or host is checked) # you can enable this option by setting this value to 1. If you # are not using an external application that does long term state # statistics reporting, you do not need to enable this option. In # this case, set the value to 0. log_initial_states=0 # EXTERNAL COMMANDS LOGGING OPTION # If you don't want Nagios to log external commands, set this value # to 0. If external commands should be logged, set this value to 1. # Note: This option does not include logging of passive service # checks - see the option below for controlling whether or not # passive checks are logged. log_external_commands=1 # PASSIVE SERVICE CHECKS LOGGING OPTION # If you don't want Nagios to log passive service checks, set this # value to 0. If passive service checks should be logged, set this # value to 1. log_passive_service_checks=1 # GLOBAL HOST AND SERVICE EVENT HANDLERS # These options allow you to specify a host and service event handler # command that is to be run for every host or service state change. # The global event handler is executed immediately prior to the event # handler that you have optionally specified in each host or # service definition. The command argument is the short name of a # command definition that you define in your host configuration file. # Read the HTML docs for more information. #global_host_event_handler=somecommand #global_service_event_handler=somecommand # INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" service checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all service checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! This is not a # good thing for production, but is useful when testing the # parallelization functionality. # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds inter_check_delay_method=s # SERVICE CHECK INTERLEAVE FACTOR # This variable determines how service checks are interleaved. # Interleaving the service checks allows for a more even # distribution of service checks and reduced load on remote # hosts. Setting this value to 1 is equivalent to how versions # of Nagios previous to 0.0.5 did service checks. Set this # value to s (smart) for automatic calculation of the interleave # factor unless you have a specific reason to change it. # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. service_interleave_factor=s # MAXIMUM CONCURRENT SERVICE CHECKS # This option allows you to specify the maximum number of # service checks that can be run in parallel at any given time. # Specifying a value of 1 for this variable essentially prevents # any service checks from being parallelized. A value of 0 # will not restrict the number of concurrent checks that are # being executed. max_concurrent_checks=0 # SERVICE CHECK REAPER FREQUENCY # This is the frequency (in seconds!) that Nagios will process # the results of services that have been checked. service_reaper_frequency=5 # SLEEP TIME # This is the number of seconds to sleep between checking for system # events and service checks that need to be run. I would recommend # *not* changing this from its default value of 1 second. sleep_time=1 # TIMEOUT VALUES # These options control how much time Nagios will allow various # types of commands to execute before killing them off. Options # are available for controlling maximum time allotted for # service checks, host checks, event handlers, notifications, the # ocsp command, and performance data commands. All values are in # seconds. service_check_timeout=30 host_check_timeout=15 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 # RETAIN STATE INFORMATION # This setting determines whether or not Nagios will save state # information for services and hosts before it shuts down. Upon # startup Nagios will reload all saved service and host state # information before starting to monitor. This is useful for # maintaining long-term data on state statistics, etc, but will # slow Nagios down a bit when it (re)starts. Since its only # a one-time penalty, I think its well worth the additional # startup delay. retain_state_information=1 # STATE RETENTION FILE # This is the file that Nagios should use to store host and # service state information before it shuts down. The state # information in this file is also read immediately prior to # starting to monitor the network when Nagios is restarted. # This file is used only if the preserve_state_information # variable is set to 1. state_retention_file=/usr/local/nagios/var/status.sav # RETENTION DATA UPDATE INTERVAL # This setting determines how often (in minutes) that Nagios # will automatically save retention data during normal operation. # If you set this value to 0, Nagios will not save retention # data at regular interval, but it will still save retention # data before shutting down or restarting. If you have disabled # state retention, this option has no effect. retention_update_interval=60 # USE RETAINED PROGRAM STATE # This setting determines whether or not Nagios will set # program status variables based on the values saved in the # retention file. If you want to use retained program status # information, set this value to 1. If not, set this value # to 0. use_retained_program_state=0 # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files. Setting this to 60 means # that each interval is one minute long (60 seconds). Other settings # have not been tested much, so your mileage is likely to vary... interval_length=60 # AGRESSIVE HOST CHECKING OPTION # If you don't want to turn on agressive host checking features, set # this value to 0 (the default). Otherwise set this value to 1 to # enable the agressive check option. Read the docs for more info # on what agressive host check is or check out the source code in # base/checks.c use_agressive_host_checking=1 # SERVICE CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # service checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of service checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_service_checks=1 # PASSIVE CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # service checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_service_checks=1 # NOTIFICATIONS OPTION # This determines whether or not Nagios will sent out any host or # service notifications when it is initially (re)started. # Values: 1 = enable notifications, 0 = disable notifications enable_notifications=1 # EVENT HANDLER USE OPTION # This determines whether or not Nagios will run any host or # service event handlers when it is initially (re)started. Unless # you're implementing redundant hosts, leave this option enabled. # Values: 1 = enable event handlers, 0 = disable event handlers enable_event_handlers=1 # PROCESS PERFORMANCE DATA OPTION # This determines whether or not Nagios will process performance # data returned from service and host checks. If this option is # enabled, host performance data will be processed using the # host_perfdata_command (defined below) and service performance # data will be processed using the service_perfdata_command (also # defined below). Read the HTML docs for more information on # performance data. # Values: 1 = process performance data, 0 = do not process performance data process_performance_data=0 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata # OBSESS OVER SERVICE CHECKS OPTION # This determines whether or not Nagios will obsess over service # checks and run the ocsp_command defined below. Unless you're # planning on implementing distributed monitoring, do not enable # this option. Read the HTML docs for more information on # implementing distributed monitoring. # Values: 1 = obsess over services, 0 = do not obsess (default) obsess_over_services=0 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND # This is the command that is run for every service check that is # processed by Nagios. This command is executed only if the # obsess_over_service option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on implementing distributed monitoring. #ocsp_command=somecommand # ORPHANED SERVICE CHECK OPTION # This determines whether or not Nagios will periodically # check for orphaned services. Since service checks are not # rescheduled until the results of their previous execution # instance are processed, there exists a possibility that some # checks may never get rescheduled. This seems to be a rare # problem and should not happen under normal circumstances. # If you have problems with service checks never getting # rescheduled, you might want to try enabling this option. # Values: 1 = enable checks, 0 = disable checks check_for_orphaned_services=0 # SERVICE FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of service results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_service_freshness=1 # FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of service check results. If you have # disabled service freshness checking, this option has no effect. freshness_check_interval=60 # AGGREGATED STATUS UPDATES # This option determines whether or not Nagios will # aggregate updates of host, service, and program status # data. Normally, status data is updated immediately when # a change occurs. This can result in high CPU loads if # you are monitoring a lot of services. If you want Nagios # to only refresh status data every few seconds, disable # this option. # Values: 1 = enable aggregate updates, 0 = disable aggregate updates aggregate_status_updates=1 # AGGREGATED STATUS UPDATE INTERVAL # Combined with the aggregate_status_updates option, # this option determines the frequency (in seconds!) that # Nagios will periodically dump program, host, and # service status data. If you are not using aggregated # status data updates, this option has no effect. status_update_interval=15 # FLAP DETECTION OPTION # This option determines whether or not Nagios will try # and detect hosts and services that are "flapping". # Flapping occurs when a host or service changes between # states too frequently. When Nagios detects that a # host or service is flapping, it will temporarily supress # notifications for that host/service until it stops # flapping. Flap detection is very experimental, so read # the HTML documentation before enabling this feature! # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES # Read the HTML documentation on flap detection for # an explanation of what this option does. This option # has no effect if flap detection is disabled. low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # DATE FORMAT OPTION # This option determines how short dates are displayed. Valid options # include: # us (MM-DD-YYYY HH:MM:SS) # euro (DD-MM-YYYY HH:MM:SS) # iso8601 (YYYY-MM-DD HH:MM:SS) # strict-iso8601 (YYYY-MM-DDTHH:MM:SS) # date_format=us # ILLEGAL OBJECT NAME CHARACTERS # This options allows you to specify illegal characters that cannot # be used in host names, service descriptions, or names of other # object types. illegal_object_name_chars=`~!$%^&*|'"<>?,()= # ILLEGAL MACRO OUTPUT CHARACTERS # This options allows you to specify illegal characters that are # stripped from macros before being used in notifications, event # handlers, etc. This DOES NOT affect macros used in service or # host check commands. # The following macros are stripped of the characters you specify: # $OUTPUT$, $PERFDATA$ illegal_macro_output_chars=`~$&|'"<> # ADMINISTRATOR EMAIL ADDRESS # The email address of the administrator of *this* machine (the one # doing the monitoring). Nagios never uses this value itself, but # you can access this value by using the $ADMINEMAIL$ macro in your # notification commands. admin_email=nagios # ADMINISTRATOR PAGER NUMBER/ADDRESS # The pager number/address for the administrator of *this* machine. # Nagios never uses this value itself, but you can access this # value by using the $ADMINPAGER$ macro in your notification # commands. admin_pager=jrobinett at starkinvestments.com # EOF (End of file) From networks at wi.rr.com Wed Feb 19 23:42:06 2003 From: networks at wi.rr.com (Networks) Date: 19 Feb 2003 16:42:06 -0600 Subject: Notification Interval Problem In-Reply-To: References: Message-ID: <1045694532.3522.22.camel@elijah> No escalation is off. On Wed, 2003-02-19 at 16:36, Carroll, Jim P [Contractor] wrote: > Are you using escalations? If so, that takes precedence. > > jc > > > -----Original Message----- > > From: Networks [mailto:networks at wi.rr.com] > > Sent: Wednesday, February 19, 2003 1:05 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Notification Interval Problem > > > > > > Hi, > > > > I'm having problems with getting nagios to send out more then one > > notification on an event. My notification_interval is set to > > 10, service > > check interval is 5, and my interval (in seconds) is set to 60 > > (default). I do receive the first notification, but > > afterwards no other > > pages or emails are sent out. I want nagios to keep paging > > until someone > > responds. Is there something I didn't check? I can't seem to > > get this to > > work. Any help would be appreciated. > > > > TIA, > > > > josh > > > > PS. Here are some clips from host config files: > > > > define host{ > > name template > > notifications_enabled 1 > > event_handler_enabled 1 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > check_command check-host-alive > > notification_interval 10 > > notification_period 24x7 > > notification_options d,u,r > > max_check_attempts 4 > > register 0 > > } > > > > > > define host{ > > use template > > host_name 1st-floor-1 > > alias 1st Floor Stack 1 > > parents passport > > address 172.16.4.240 > > } > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Wed Feb 19 23:36:44 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 16:36:44 -0600 Subject: Notification Interval Problem Message-ID: Are you using escalations? If so, that takes precedence. jc > -----Original Message----- > From: Networks [mailto:networks at wi.rr.com] > Sent: Wednesday, February 19, 2003 1:05 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Notification Interval Problem > > > Hi, > > I'm having problems with getting nagios to send out more then one > notification on an event. My notification_interval is set to > 10, service > check interval is 5, and my interval (in seconds) is set to 60 > (default). I do receive the first notification, but > afterwards no other > pages or emails are sent out. I want nagios to keep paging > until someone > responds. Is there something I didn't check? I can't seem to > get this to > work. Any help would be appreciated. > > TIA, > > josh > > PS. Here are some clips from host config files: > > define host{ > name template > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > check_command check-host-alive > notification_interval 10 > notification_period 24x7 > notification_options d,u,r > max_check_attempts 4 > register 0 > } > > > define host{ > use template > host_name 1st-floor-1 > alias 1st Floor Stack 1 > parents passport > address 172.16.4.240 > } > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at atlantic-isp.co.uk Wed Feb 19 23:52:07 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Wed, 19 Feb 2003 22:52:07 -0000 Subject: Notification Interval Problem In-Reply-To: <1045693903.3499.20.camel@elijah> References: <1045693903.3499.20.camel@elijah> Message-ID: <001401c2d869$8a971cc0$0101a8c0@main> I could be wrong here so hopefully someone will confirm my thoughts or otherwise, since I have not come across this or looked into it. But if a service check fails the host is then checked, this much I know, if it is then found that the host is also down which is why the service check failed would Nagios only then notify on the service failures? I've never noticed this as since using Nagios we have not had a host go down only service failures. Sorry I can't be of more help. One thing I did notice that you have duplicated information in your service definitions that have already been specified in you template. I don't think this has anything to do with your problem, however I was wondering if this was wise. Perhaps the service definition entries override the template entries. Tony > -----Original Message----- > From: Networks [mailto:networks at wi.rr.com] > Sent: 19 February 2003 22:32 > To: Nagios > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Notification Interval Problem > > Sorry for not including more info. > > Flap-detection is not enabled. > All hosts have service checks. And the service check is working. > Notifications are enabled, and I get notifications when then host state > changes. But I only receive one notification. > > The log file shows the host going down and a notification going out. > Once the host is down nagios checks ti see if it is up at regular > intervals. > There are no errors. > > I included the service.cfg and nagios.cfg files, I can include the > hosts.cfg file but would need to remove some things from it before > making it public. > > Hope this helps, > > Josh > > > > On Wed, 2003-02-19 at 16:19, Nagios wrote: > > You have flap_detection enabled what is low_host_flap_threshold and > > high_host_flap_threshold set at in the nagios.cfg file? > > > > Do you have any service checks for this host, as the host will only be > > checked if a service check fails on the host? > > > > Does the tactical overview on the web front end show anything about the > > notifications/checks on the host being disabled because of flap > > detection? > > > > What does the nagios.log show for checks/notifications on this host? > > > > Sorry for not be able to help more but without more info it's not easy. > > > > Tony > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Networks > > > Sent: 19 February 2003 19:05 > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Notification Interval Problem > > > > > > Hi, > > > > > > I'm having problems with getting nagios to send out more then one > > > notification on an event. My notification_interval is set to 10, > > service > > > check interval is 5, and my interval (in seconds) is set to 60 > > > (default). I do receive the first notification, but afterwards no > > other > > > pages or emails are sent out. I want nagios to keep paging until > > someone > > > responds. Is there something I didn't check? I can't seem to get this > > to > > > work. Any help would be appreciated. > > > > > > TIA, > > > > > > josh > > > > > > PS. Here are some clips from host config files: > > > > > > define host{ > > > name template > > > notifications_enabled 1 > > > event_handler_enabled 1 > > > flap_detection_enabled 1 > > > process_perf_data 1 > > > retain_status_information 1 > > > retain_nonstatus_information 1 > > > check_command check-host-alive > > > notification_interval 10 > > > notification_period 24x7 > > > notification_options d,u,r > > > max_check_attempts 4 > > > register 0 > > > } > > > > > > > > > define host{ > > > use template > > > host_name 1st-floor-1 > > > alias 1st Floor Stack 1 > > > parents passport > > > address 172.16.4.240 > > > } > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > > The most comprehensive and flexible code editor you can use. > > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > > www.slickedit.com/sourceforge > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any > > > issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Wed Feb 19 23:45:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 16:45:30 -0600 Subject: Status Map images howto Message-ID: For starters, change your configuration from the old method to the template method, as per: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html#hostextinfo Make the necessary changes, restart Nagios, and see if that helps. If you still have problems, please be more descriptive than "never seemed to work"; my crystal ball is in for repair this week. jc -----Original Message----- From: frank [mailto:crash4o4 at yahoo.com] Sent: Wednesday, February 19, 2003 4:00 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Status Map images howto I was wondering if some could help me setup status map to show nice images.. I opened up cgi.cfg and added this but never seemed to work. is there something I might be missing ? hostextinfo[linux1]=/serverinfo/linux1.html;redhat.gif;redhat.jpg;redhat.gd2 ;Linux Servers 4.11;100,50;3.5,0.0,-1.5; Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rburnson at cps.k12.il.us Wed Feb 19 23:48:09 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Wed, 19 Feb 2003 16:48:09 -0600 Subject: Obsessing over Obsessing... Message-ID: Jason, I had the same issue on a RedHat server, but no one on the list was able to help. I was able to get it to work though, once I moved the distributed system to another server that I did not use the high security setting during the OS install. Did you happen to configure your server with any special security settings? Richard -----Original Message----- From: Jason Marshall [mailto:jasonm at kelman.com] Sent: Wednesday, February 19, 2003 1:18 PM To: nagios-users Subject: [Nagios-users] Obsessing over Obsessing... I just created a new ocsp_command: define command { command_name submit_check_result_jm command_line /usr/bin/touch /tmp/blah } and put this in my nagios.cfg file: obsess_over_services=1 ocsp_command=submit_check_result_jm I also have: obsess_over_service 1 on each of my services on the distributed machine... Still nothing -- it's pretty clear that Nagios isn't attempting to run the ocsp_command I've defined. There are NO errors spewing out to the log_file, so it mustn't think it's doing anything inappropriate. If anyone else has any ideas, I'm all ears! If I'm obsessing over services on the distributed machine, should the status.log be filled with recent check results? Or should they only be sent to the master server? Or should it be going to both? Should I be running state retention on the distributed machine? --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Charles.Goodsell at awm.gov.au Wed Feb 19 23:53:06 2003 From: Charles.Goodsell at awm.gov.au (Charles Goodsell) Date: Thu, 20 Feb 2003 09:53:06 +1100 Subject: Different alerts for same contact and same service Message-ID: Is there a simple way to configure a contact to get an email alert during work hours and a pager alert during off work hours? I thought of the obvious, define the service twice and define the contact twice that seems a little annoying for a number of reasons. Primarily you would not be able to generate a trend or availability report for that one service as it now encompasses two definitions over two different time ranges. Is there a way to do this in a more compact manner? TIA ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at atlantic-isp.co.uk Wed Feb 19 23:54:18 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Wed, 19 Feb 2003 22:54:18 -0000 Subject: Status Map images howto In-Reply-To: <20030219215946.18057.qmail@web41404.mail.yahoo.com> References: <20030219215946.18057.qmail@web41404.mail.yahoo.com> Message-ID: <001501c2d869$d8990d70$0101a8c0@main> Do you have default_statusmap_layout set to 0 to tell Nagios you want to specify the co-ordinates? Did Nagios get compiled to have extinfo use the default old method that you have here, if you did not specify anything for extinfo then it will use this format. Tony -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of frank Sent: 19 February 2003 22:00 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Status Map images howto I was wondering if some could help me setup status map to show nice images.. I opened up cgi.cfg and added this but never seemed to work. is there something I might be missing ? hostextinfo[linux1]=/serverinfo/linux1.html;redhat.gif;redhat.jpg;redhat .gd2;Linux Servers 4.11;100,50;3.5,0.0,-1.5; _____ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Feb 20 00:16:31 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 19 Feb 2003 15:16:31 -0800 (PST) Subject: Different alerts for same contact and same service In-Reply-To: References: Message-ID: <20030219231631.53076.qmail@web21510.mail.yahoo.com> Sure, Just create 2 contacts, one called day with e-mail alerts, and notifications set for day time hours, and a second contact call night with pager alerts and notifications set to night time hours. Create 2 new contact groups, production and after-hours, add each user to the correct group. In the services.cfg for contact_groups put production,after-hours. You'll need to define timeperiods.. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contactgroup http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#timeperiod Charles Goodsell wrote:Is there a simple way to configure a contact to get an email alert during work hours and a pager alert during off work hours? I thought of the obvious, define the service twice and define the contact twice that seems a little annoying for a number of reasons. Primarily you would not be able to generate a trend or availability report for that one service as it now encompasses two definitions over two different time ranges. Is there a way to do this in a more compact manner? TIA ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Feb 20 00:18:11 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 17:18:11 -0600 Subject: Host dependencies and notifications Message-ID: You did it the hard way. Rather than attempt to solve your problem directly, I urge you to solve this the easy way, with the 'parents' directive: http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host HTH. jc > -----Original Message----- > From: SCOTT CECHOVIC [mailto:scott.cechovic at adtran.com] > Sent: Wednesday, February 19, 2003 1:59 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Host dependencies and notifications > > > I am monitoring a network of several hosts, switches and > routers. I have configured host dependencies such that I do > not receive pages on downstream hosts when a dependent > upstream host is down or unreachable. The problem I am > encountering is when the upstream node (closest to the Nagios server) > goes down, I do not receive notifications for any hosts > dependent on that upstream device (as expected) ... but when > the upstream host becomes reachable/up, I receive UP > notifications for all hosts dependent on the upstream that > went into a HARD down/unreachable state. According to the > "notification logic" documentation, an UP notification should > never be sent on a device that did not trigger a > DOWN/UNREACHABLE notification. > > Can anyone explain this behavior and possibly instruct me on > what needs to be done to suppress the UP notifications for > all of the dependent devices? > > Thanks, > Scott Cechovic > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 00:37:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 17:37:03 -0600 Subject: Different alerts for same contact and same ser vice Message-ID: You won't need to define the service twice. But you *will* need to define 2 contacts, one which receives e-mail during 'workhours', the other which receives pages during 'nonworkhours'. Both contacts can be added to the same contactgroup, and that contactgroup can be associated with the host/hostgroup. jc > -----Original Message----- > From: Charles Goodsell [mailto:Charles.Goodsell at awm.gov.au] > Sent: Wednesday, February 19, 2003 4:53 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Different alerts for same contact and same > service > > > Is there a simple way to configure a contact to get an email alert > during work hours and a pager alert during off work hours? > > I thought of the obvious, define the service twice and define the > contact twice that seems a little annoying for a number of reasons. > Primarily you would not be able to generate a trend or availability > report for that one service as it now encompasses two definitions over > two different time ranges. > > Is there a way to do this in a more compact manner? > > TIA > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stanley at szczygiel.net Wed Feb 19 00:42:47 2003 From: stanley at szczygiel.net (Stanis³aw Szczygie³) Date: Wed, 19 Feb 2003 00:42:47 +0100 Subject: how to make ..other.. dependency? Message-ID: <000801c2d7a7$7120f210$0200010a@master> Hello, Please help me with finding solution. I have serrvice which is sum of few processes. If all of them exist - service is ok. I have defined services for checking presents of each single process. How to define service, which is ok if all of these processes are ok, and is critical if any of these processes is unknown or critical? Dependency work in oposite way, second day i cant find out the idea how to resolve this problem... Can anyone help me? Regards, Stanley ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From securityguy at ikano.com Thu Feb 20 01:07:23 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Wed, 19 Feb 2003 17:07:23 -0700 Subject: Obsessing over Obsessing... In-Reply-To: References: Message-ID: <003c01c2d874$0b0220d0$ddd0d0cd@pendleton> What version of RedHat are you using? I am currently trying to get a distributed setup going myself with RedHat 8.0 boxes and am having the same issue. It appears that Nagios is not attempting to run the ocsp command at all. Also, I noted a discrepancy in the documentation on the ocsp command. In the distributed server documentation, it says the ocsp command is run after every service check. However, the nagios.cfg documentation says that it is only run after event handlers or notifications... Thanks, Robert S. Galloway Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Burnson, Richard Sent: Wednesday, February 19, 2003 3:48 PM To: nagios-users Subject: RE: [Nagios-users] Obsessing over Obsessing... Jason, I had the same issue on a RedHat server, but no one on the list was able to help. I was able to get it to work though, once I moved the distributed system to another server that I did not use the high security setting during the OS install. Did you happen to configure your server with any special security settings? Richard -----Original Message----- From: Jason Marshall [mailto:jasonm at kelman.com] Sent: Wednesday, February 19, 2003 1:18 PM To: nagios-users Subject: [Nagios-users] Obsessing over Obsessing... I just created a new ocsp_command: define command { command_name submit_check_result_jm command_line /usr/bin/touch /tmp/blah } and put this in my nagios.cfg file: obsess_over_services=1 ocsp_command=submit_check_result_jm I also have: obsess_over_service 1 on each of my services on the distributed machine... Still nothing -- it's pretty clear that Nagios isn't attempting to run the ocsp_command I've defined. There are NO errors spewing out to the log_file, so it mustn't think it's doing anything inappropriate. If anyone else has any ideas, I'm all ears! If I'm obsessing over services on the distributed machine, should the status.log be filled with recent check results? Or should they only be sent to the master server? Or should it be going to both? Should I be running state retention on the distributed machine? --- Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada. From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." "I have great faith in fools: Self confidence my friends call it." -Edgar Allan Poe ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 01:29:36 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 18:29:36 -0600 Subject: /bin/mail: Permission Denied Message-ID: <1045700976.3e542170717db@www.rapidgrid.com> ok seems simple enough, just add nagios to the mail group... well I did that and still no go. I can send email from the command line, just Nagios doesnt send an email... Any ideas? ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 02:01:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 19 Feb 2003 19:01:46 -0600 Subject: /bin/mail: Permission Denied Message-ID: What happens when you do this: su - nagios echo 'hello' | mail nagios Do you get any error? jc > -----Original Message----- > From: bvierra at rapidgrid.com [mailto:bvierra at rapidgrid.com] > Sent: Wednesday, February 19, 2003 6:30 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] /bin/mail: Permission Denied > > > ok seems simple enough, just add nagios to the mail group... > well I did that > and still no go. I can send email from the command line, just > Nagios doesnt > send an email... > Any ideas? > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 02:56:48 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 19:56:48 -0600 Subject: /bin/mail: Permission Denied Message-ID: <1045706208.3e5435e025ac6@rapidgrid.com> No errors and it is sent fine... ----- What happens when you do this: su - nagios echo 'hello' | mail nagios Do you get any error? jc ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From PercyP at versa-valves.com Thu Feb 20 03:01:25 2003 From: PercyP at versa-valves.com (Perez, Percy) Date: Wed, 19 Feb 2003 21:01:25 -0500 Subject: Monitoring Windows systems... Message-ID: Hello Everyone, I just installed Nagios under a Debian/hppa system. In the past I used Netsaint with the plugins supplied which allowed me to monitor nt systems. Are there any new plugins for nagios? Sorry for posting this basic question, but the Mailing-List Search-engine in http://sourceforge.net/mailarchive/forum.php?forum_id=1873 is down. I get "Forum not found" Thank you in advance. Percy Proprietary and Confidential: The information transmitted is intended only for the person or entity to which 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 in error, please contact the sender and delete the material from any computer. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 04:22:13 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 21:22:13 -0600 Subject: /bin/mail: Permission Denied In-Reply-To: <1045706208.3e5435e025ac6@rapidgrid.com> References: <1045706208.3e5435e025ac6@rapidgrid.com> Message-ID: <1045711333.3e5449e5d970e@www.rapidgrid.com> weird I restarted nagios and it fixed it :) Quoting bvierra at rapidgrid.com: > No errors and it is sent fine... > ----- > What happens when you do this: > > su - nagios > echo 'hello' | mail nagios > > Do you get any error? > > jc > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 04:26:28 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 21:26:28 -0600 Subject: check_ping... not working In-Reply-To: <1045706208.3e5435e025ac6@rapidgrid.com> References: <1045706208.3e5435e025ac6@rapidgrid.com> Message-ID: <1045711588.3e544ae4a5f14@www.rapidgrid.com> not sure if this is the correct place and if it isnt please no flames just point me to the right place :) I am using the check_ping from command is fine, but for some reason when I do it through service I get this response "/bin/ping -n -U -c 1 207.44.152.1" and it shows up as down, but it is responding to ping. Here is what I have in services.cfg: define service{ use cpanel-generic host_name rs-router1 service_description PING check_command check_ping!100.0,20%!500.0,60% } When I run it from the command prompt I get this: root at server1 [/usr/local/nagios/libexec]# ./check_ping -H XXX.XXX.XXX.XXX -w 100.0,20% -c 500.0,60% PING OK - Packet loss = 0%, RTA = 0.36 ms so I am at a loss. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Thu Feb 20 05:33:21 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 19 Feb 2003 23:33:21 -0500 Subject: check_ping... not working In-Reply-To: <1045711588.3e544ae4a5f14@www.rapidgrid.com> References: <1045706208.3e5435e025ac6@rapidgrid.com> <1045711588.3e544ae4a5f14@www.rapidgrid.com> Message-ID: <1045715601.1111.3.camel@miles.debisschop.net> On Wed, 2003-02-19 at 22:26, bvierra at rapidgrid.com wrote: > not sure if this is the correct place and if it isnt please no flames just > point me to the right place :) > > I am using the check_ping from command is fine, but for some reason when I do > it through service I get this response "/bin/ping -n -U -c 1 207.44.152.1" and > it shows up as down, but it is responding to ping. > Here is what I have in services.cfg: > define service{ > use cpanel-generic > host_name rs-router1 > service_description PING > check_command check_ping!100.0,20%!500.0,60% > } > > When I run it from the command prompt I get this: > root at server1 [/usr/local/nagios/libexec]# ./check_ping -H XXX.XXX.XXX.XXX -w > 100.0,20% -c 500.0,60% > PING OK - Packet loss = 0%, RTA = 0.36 ms since check_ping can have troubles finding correct syntax for ping, depending on OS, the fallback output is the syntax of the command issued so you can troubleshoot. That's the message you are seeing. Since it runs on the command line, I suspect either your OS is hardened and the unprivleged nagios user cannot run ping. -- Karl ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 20 06:02:43 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 00:02:43 -0500 (EST) Subject: check_ping... not working In-Reply-To: <1045711588.3e544ae4a5f14@www.rapidgrid.com> References: <1045711588.3e544ae4a5f14@www.rapidgrid.com> Message-ID: On Wed, 19 Feb 2003 bvierra at rapidgrid.com wrote: > not sure if this is the correct place and if it isnt please no flames just > point me to the right place :) > > I am using the check_ping from command is fine, but for some reason when I do > it through service I get this response "/bin/ping -n -U -c 1 207.44.152.1" and > it shows up as down, but it is responding to ping. > Here is what I have in services.cfg: > define service{ > use cpanel-generic > host_name rs-router1 > service_description PING > check_command check_ping!100.0,20%!500.0,60% > } > > When I run it from the command prompt I get this: > root at server1 [/usr/local/nagios/libexec]# ./check_ping -H XXX.XXX.XXX.XXX -w > 100.0,20% -c 500.0,60% > PING OK - Packet loss = 0%, RTA = 0.36 ms > > > so I am at a loss. > > Can you post any relevant command configuration... check_ping be default uses 5 packets not 1 -- -sg ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sean.mcavoy at megawheels.com Thu Feb 20 06:02:03 2003 From: sean.mcavoy at megawheels.com (Sean McAvoy) Date: 20 Feb 2003 00:02:03 -0500 Subject: /bin/mail: Permission Denied In-Reply-To: <1045711333.3e5449e5d970e@www.rapidgrid.com> References: <1045706208.3e5435e025ac6@rapidgrid.com> <1045711333.3e5449e5d970e@www.rapidgrid.com> Message-ID: <1045717323.4304.4.camel@hal> After adding a user to a group, it's required that the user logout/login. I believe the same would go for a process. I can't remember the specifics, but something about user/group info is set at run time. If someone else could maybe make some more sense out of it? On Wed, 2003-02-19 at 22:22, bvierra at rapidgrid.com wrote: > weird I restarted nagios and it fixed it :) > Quoting bvierra at rapidgrid.com: > > > No errors and it is sent fine... > > ----- > > What happens when you do this: > > > > su - nagios > > echo 'hello' | mail nagios > > > > Do you get any error? > > > > jc > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atulsh at hclinsys.com Thu Feb 20 06:18:05 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 20 Feb 2003 10:48:05 +0530 Subject: Can I generate alert for bandwidth utilization ......? Message-ID: <007c01c2d89f$72991570$5f7b0297@atul> Hello All, I want to generate alerts for Bandwidth Utilization if it goes beyond 90 % for router interface. Can anyone has done it before, Pls tell me. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bvierra at rapidgrid.com Thu Feb 20 06:25:58 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 23:25:58 -0600 Subject: check_ping... not working In-Reply-To: References: Message-ID: <1045718758.3e5466e656c99@www.rapidgrid.com> Thanks for all the info, sure enough the user didnt have permission to run ping... who woulda thought :) Quoting Subhendu Ghosh : > On Wed, 19 Feb 2003 bvierra at rapidgrid.com wrote: > > > not sure if this is the correct place and if it isnt please no flames just > > > point me to the right place :) > > > > I am using the check_ping from command is fine, but for some reason when I > do > > it through service I get this response "/bin/ping -n -U -c 1 207.44.152.1" > and > > it shows up as down, but it is responding to ping. > > Here is what I have in services.cfg: > > define service{ > > use cpanel-generic > > host_name rs-router1 > > service_description PING > > check_command check_ping!100.0,20%!500.0,60% > > } > > > > When I run it from the command prompt I get this: > > root at server1 [/usr/local/nagios/libexec]# ./check_ping -H XXX.XXX.XXX.XXX > -w > > 100.0,20% -c 500.0,60% > > PING OK - Packet loss = 0%, RTA = 0.36 ms > > > > > > so I am at a loss. > > > > > > Can you post any relevant command configuration... > > check_ping be default uses 5 packets not 1 > > > -- > -sg > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 06:32:01 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Wed, 19 Feb 2003 23:32:01 -0600 Subject: /bin/mail: Permission Denied In-Reply-To: <1045717323.4304.4.camel@hal> References: <1045706208.3e5435e025ac6@rapidgrid.com> <1045711333.3e5449e5d970e@www.rapidgrid.com> <1045717323.4304.4.camel@hal> Message-ID: <1045719121.3e5468515096e@www.rapidgrid.com> It started working, I dont ask questions, I just like :) I got it all up and running finally, hehe Quoting Sean McAvoy : > After adding a user to a group, it's required that the user > logout/login. I believe the same would go for a process. I can't > remember the specifics, but something about user/group info is set at > run time. If someone else could maybe make some more sense out of it? > > On Wed, 2003-02-19 at 22:22, bvierra at rapidgrid.com wrote: > > weird I restarted nagios and it fixed it :) > > Quoting bvierra at rapidgrid.com: > > > > > No errors and it is sent fine... > > > ----- > > > What happens when you do this: > > > > > > su - nagios > > > echo 'hello' | mail nagios > > > > > > Do you get any error? > > > > > > jc > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > > The most comprehensive and flexible code editor you can use. > > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > > www.slickedit.com/sourceforge > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > > any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmcclure at pneservices.com Thu Feb 20 06:36:50 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Wed, 19 Feb 2003 23:36:50 -0600 (CST) Subject: Can I generate alert for bandwidth utilization ......? In-Reply-To: <007c01c2d89f$72991570$5f7b0297@atul> References: <007c01c2d89f$72991570$5f7b0297@atul> Message-ID: <3461.192.168.1.9.1045719410.squirrel@xyzzy.homeip.net> Atul, Cricket has the functionality you describe. See http://cricket.sourceforge.net/support/doc/monitor-thresholds.html - Mike > Hello All, > > I want to generate alerts for Bandwidth Utilization if it goes beyond 90 % for > router interface. > Can anyone has done it before, Pls tell me. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atulsh at hclinsys.com Thu Feb 20 06:50:39 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 20 Feb 2003 11:20:39 +0530 Subject: Can I generate alert for bandwidth utilization ......? References: <007c01c2d89f$72991570$5f7b0297@atul> <3461.192.168.1.9.1045719410.squirrel@xyzzy.homeip.net> Message-ID: <00a401c2d8a3$ffcab9e0$5f7b0297@atul> Hello Mike, Can't it be possible with Nagios ...... I can do it with Nagios for SNMP OID Gauge Values but I can't do it for SNMP OID Counter values ........ because the counter is the increment from the previous instance and for that I have to substract from the previous value ..... any help .... Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ----- Original Message ----- From: "Mike McClure" To: Sent: Thursday, February 20, 2003 11:06 AM Subject: Re: [Nagios-users] Can I generate alert for bandwidth utilization ......? > Atul, > > Cricket has the functionality you describe. See > http://cricket.sourceforge.net/support/doc/monitor-thresholds.html > > - Mike > > > Hello All, > > > > I want to generate alerts for Bandwidth Utilization if it goes beyond 90 % for > > router interface. > > Can anyone has done it before, Pls tell me. > > Thanks in advance. > > > > Regards and have a nice day, > > Atul Shrivastava > > Info Structure Services > > HCL INFOSYSTEMS LTD. > > E - 4,5,6 Sector XI, > > Noida - 201301 > > Tel: 91-120-2526910,2443013 > > > > > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From securityguy at ikano.com Thu Feb 20 06:46:47 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Wed, 19 Feb 2003 22:46:47 -0700 Subject: Obsessing over Obsessing... -- ocsp_command is running -- send_nsca is broken In-Reply-To: <003c01c2d874$0b0220d0$ddd0d0cd@pendleton> References: <003c01c2d874$0b0220d0$ddd0d0cd@pendleton> Message-ID: <004f01c2d8a3$755dddf0$ddd0d0cd@pendleton> Hello everyone, I have some new information to add to this. I've setup my submit_check_result script to append the output to a file rather than pipe it to send_nsca. Example: >> /usr/local/nagios/var/ocsp-test.log instead of: | /usr/local/nagios/bin/send_nsca etc... After doing this, I can confirm that Nagios is obsessing over the service checks as documented in the distributed monitoring docs. So, it appears that the issue is specifically with send_nsca. I'm going to keep digging in on it. One thing that I can tell you is if I run my submit_check_result script (copied from the docs) from the command line, everything goes perfectly. But if nagios runs it, it seems to be broken. Thanks, Robert S. Galloway Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmcclure at pneservices.com Thu Feb 20 07:22:20 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Thu, 20 Feb 2003 00:22:20 -0600 (CST) Subject: Can I generate alert for bandwidth utilization ......? In-Reply-To: <00a401c2d8a3$ffcab9e0$5f7b0297@atul> References: <007c01c2d89f$72991570$5f7b0297@atul> <3461.192.168.1.9.1045719410.squirrel@xyzzy.homeip.net> <00a401c2d8a3$ffcab9e0$5f7b0297@atul> Message-ID: <3630.192.168.1.9.1045722140.squirrel@xyzzy.homeip.net> Atul, > Hello Mike, > > Can't it be possible with Nagios ...... Possible, yes. Nagios is very flexible. Would it be easy to do with Nagios alone? Absolutely not. > > I can do it with Nagios for SNMP OID Gauge Values but I can't do it for SNMP OID > Counter values ........ because the counter is the increment from the previous > instance and for that I have to substract from the previous value ..... any help > .... Thanks in advance. Nagios is not a very good collector/archiver/analyzer for time-series data. That is why most sane people use another tool, like RRD, which is excellent for time-series data. Cricket is one of the front-ends for RRD, which happens to have the monitor thresholds functionality built-in. Why try to re-invent the wheel? Not to mention the fact that you'd have to deal with the criteria of when the threshold is met. Do you really want to generate an alert when an interface hits 90% for only one 5-minute interval, then goes back down to 10% for the next one? Data is very bursty by nature, so you'd generate a lot of alerts. You need to read the link that I sent; there are about a billion and a half options for threshold criteria that have already been thought out. It would take many many many lines of code to reproduce that which has already been designed into Cricket. It would not be horribly difficult for a competent systems integrator to configure Cricket to send external commands to Nagios based on the monitor thresholds. Nagios is much better at dealing with notification logic than Cricket, of course, so that would be the way to go. -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mloftis at wgops.com Thu Feb 20 07:28:32 2003 From: mloftis at wgops.com (Michael Loftis) Date: Wed, 19 Feb 2003 22:28:32 -0800 Subject: Can I generate alert for bandwidth utilization ......? In-Reply-To: <007c01c2d89f$72991570$5f7b0297@atul> References: <007c01c2d89f$72991570$5f7b0297@atul> Message-ID: <77051394.1045693712@[10.1.2.77]> The easiest way to do this with Nagios/NetSaint is to use the check_mrtg plugin. run mrtg to gather (and graph) the b/w, then use the Nagios to alert on it. You can also use cricket to do that, but if you've never setup cricket before it can look very daunting. --On Thursday, February 20, 2003 10:48 AM +0530 Atul Shrivastava wrote: > > Hello All, > > I want to generate alerts for Bandwidth Utilization if it goes beyond 90 > % for router interface. Can anyone has done it before, Pls tell me. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hrishys at yahoo.co.uk Thu Feb 20 07:52:18 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Thu, 20 Feb 2003 06:52:18 +0000 (GMT) Subject: cpu utilisation and vmstat like output In-Reply-To: <3630.192.168.1.9.1045722140.squirrel@xyzzy.homeip.net> References: <3630.192.168.1.9.1045722140.squirrel@xyzzy.homeip.net> Message-ID: <20030220065218.19983.qmail@web12607.mail.yahoo.com> Hi All Is it possible to get cpu utilisation and vmstat liek out with nagios nagios plugins and nrpe..or this plugin is yet to be made avilable.. regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Shane_Seidel at gwf.com.au Thu Feb 20 09:12:18 2003 From: Shane_Seidel at gwf.com.au (Shane_Seidel at gwf.com.au) Date: Thu, 20 Feb 2003 18:12:18 +1000 Subject: SMS notifications from Nagios Message-ID: <4A256CD3.002E2534.00@gisw900.gwf.com.au> Hello All, I am trying to enable SMS messaging from Nagios 1.0 on RH7.3 using the howto written by Giulius. Note that I am still using the the default file config but with seperated files. After configuring as descibed below and running /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I was prenented with one error..Host notification command 'notify-by-sms' specified for contact 'gwfisSMS' is not defined anywhere! ( I have substituted the contact as gwfisSMS). This led me to believe that a command was required in misscommands.cfg. (For testing I am using 1 service) Therefore I used... command[notify-by-sms]=/usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ This removed the error but no SMS hosts.cfg host[nms-GWFIS-Monitoring-System]=giswnms-GWFIS-Monitoring-System;10.1.172.57;;check-host-alive;3;60;24x7;1;1;1; services.cfg service[nms-GWFIS-Monitoring-System]=PING Backup LAN;0;24x7;3;2;1;gwfis-sms;240;24x7;1;1;0;;check_baklan_NMS contactgroups.cfg contactgroup[gwfis-sms]=GWFIS Administrators;gwfisSMS checkcommands.cfg command[sms]=/usr/bin/printf "MESSAGE+VARIABLE" | /usr/bin/gnokii --sendsms +61XXXXXXXXX -C0 2>/dev/null misscomands.cfg command[notify-by-sms]=/usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ I suspect the ********************************************************************************************************************************************** This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please delete the email and its attachments and inform administrators at gwf.com.au Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods Ltd. Security: Internet email is not a completely secure medium, please note this when considering the content of your message. Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise scanning all email and attachments ********************************************************************************************************************************************* -------------- next part -------------- ?$CONTACTPAGER$ variable and/or the phone number format (Giulius's howto hs the number enclosed with [ ] ) but I am unsure how to proceed. If anyone can clarrify/assist I would be most thankfull Shane FROM: GiuliusDATE: 08/30/2002 03:25:22SUBJECT: ?[netsaint] HOW TO USE SMS NOTIFICATION + GNOKII This is a little HOWTO that help who try to run gnokii with netsaint on unix systems for sms notification: TO use gnokii with netasint you "must" know 3 things: 1)Netsaint cannot understand any replay output/error given by gnokii; 2)Netsaint user (process owner) must have the ability to read/write on the serial (or any other device like irda) connected to the gsm sender 3)Netsaint user (process owner) must read/write on lock directory 1) add this command to netsaint host.cfg command[sms]=/path/to/printf "MESSAGE+VARIABLE" | /path/to/gnokii --sendsms [gsm number] -C0 2>/dev/null add olso the contact information about sms like this: contact[netsaint]=Netsaint User;24x7;24x7;1;1;1;1;1;1;notify-by-email,notify-by-epager,notify-by-sms;host-notify-by-email,host-notify-by-epager,host-notify-by-sms;netsaint;netsaint Remember: if you forget to add ? "2>/dev/null" ?on the end of the command line, the result was a broken pipe and netsaint cannot go over, freezing all the netsaint process. 2)Remember to set permission RW on serial (or any other device like irda) device to user netsaint (or process owner). This to permit Read Write on device attached to gsm cel. There are differently method to do this based on type of unix you own. You must find this on yourself. 3)Now you must configure gnokii in order to use lock files (to avoid conflict with other devices that use serial/usb). On gnokii/etc directory un can find a file called gnokiirc. Make sure that contain this: port = /dev/ (device attached to gsm) model = (the model number of your nokia gsm like 6210) connection = serial (or you connection to gsm cel. like irda, ecc.) use_locking = yes Now you are ready to receive sms about notification of netsaint. Bye. Giulius. From Fredrik.Wanglund at datavis.se Thu Feb 20 08:27:42 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 20 Feb 2003 08:27:42 +0100 Subject: CGIMap issue Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2013C9BC0@storevis.datavis.se> > > >define hostextinfo{ > host_name Beethoven > 2d_coords 500,324 > } > >then in Nagios.cfg I have: >xedtemplate_config_file=/usr/local/nagios/etc/test.cfg move the line above to cgi.cfg! /FredrikW ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxxik at mail.ru Thu Feb 20 08:31:35 2003 From: maxxik at mail.ru (maxxik) Date: Thu, 20 Feb 2003 09:31:35 +0200 Subject: (Host assumed to be up) Message-ID: <161841617211.20030220093135@mail.ru> Hi ppl ! I installed NAgios 1.0 and had one strange behavior ... in Host Status Details For Host Group i saw (for example http://noc.aarnet.net.au/nagios-cgi/status.cgi?hostgroup=AARNet-Servers&style=hostdetail): counter-act UP 10-02-2003 01:06:22 188d 9h 38m 42s (Host assumed to be up) and next line is : counter-nsw UP 10-02-2003 23:31:14 21d 17h 14m 2s PING OK - Packet loss = 0%, RTA = 11.06 ms why there was (Host assumed to be up) in first line instead PING OK .... as in second line ? and how i can get PING OK - Packet loss = 0%, RTA = 11.06 ms in first line instead (Host assumed to be up) ??? wbr, maxx ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Thu Feb 20 08:33:12 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 20 Feb 2003 08:33:12 +0100 Subject: Monitoring Windows systems... Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2013C9BC2@storevis.datavis.se> You can use NSCLient or SNMP /FredrikW -----Original Message----- From: Perez, Percy [mailto:PercyP at versa-valves.com] Sent: Thu 20-Feb-03 03:01 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Monitoring Windows systems... Hello Everyone, I just installed Nagios under a Debian/hppa system. In the past I used Netsaint with the plugins supplied which allowed me to monitor nt systems. Are there any new plugins for nagios? Sorry for posting this basic question, but the Mailing-List Search-engine in http://sourceforge.net/mailarchive/forum.php?forum_id=1873 is down. I get "Forum not found" Thank you in advance. Percy Proprietary and Confidential: The information transmitted is intended only for the person or entity to which 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 in error, please contact the sender and delete the material from any computer. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 20 08:47:18 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 20 Feb 2003 08:47:18 +0100 Subject: Monitoring Windows systems... References: Message-ID: <3E548806.9D4FF3D9@gcc.dhl.com> I'm using the plugins I used with Netsaint. Just copy them over and it should work. "Perez, Percy" wrote: > > Hello Everyone, > > I just installed Nagios under a Debian/hppa system. > In the past I used Netsaint with the plugins supplied which allowed me to > monitor nt systems. > Are there any new plugins for nagios? > Sorry for posting this basic question, but the Mailing-List Search-engine in > http://sourceforge.net/mailarchive/forum.php?forum_id=1873 is down. > I get "Forum not found" > > Thank you in advance. > > Percy > Proprietary and Confidential: The information transmitted is intended only > for the person or entity to which 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 in error, please contact the sender and > delete the material from any computer. > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 20 08:48:29 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 20 Feb 2003 08:48:29 +0100 Subject: (Host assumed to be up) References: <161841617211.20030220093135@mail.ru> Message-ID: <3E54884D.82580DE5@gcc.dhl.com> http://www.nagios.org/faqs/viewfaq.php?faq_id=86 maxxik wrote: > > Hi ppl ! > > I installed NAgios 1.0 and had one strange behavior ... > > in Host Status Details For Host Group i saw > > (for example http://noc.aarnet.net.au/nagios-cgi/status.cgi?hostgroup=AARNet-Servers&style=hostdetail): > > counter-act UP 10-02-2003 01:06:22 188d 9h 38m 42s (Host assumed to be up) > > and next line is : > > counter-nsw UP 10-02-2003 23:31:14 21d 17h 14m 2s PING OK - Packet loss = 0%, RTA = 11.06 ms > > why there was (Host assumed to be up) in first line instead PING OK .... > as in second line ? and how i can get PING OK - Packet loss = 0%, > RTA = 11.06 ms in first line instead (Host assumed to be up) ??? > > wbr, maxx > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From r.hochuli at gpstechnik.ch Thu Feb 20 09:26:46 2003 From: r.hochuli at gpstechnik.ch (Roman Hochuli) Date: Thu, 20 Feb 2003 09:26:46 +0100 Subject: statusmap icons Message-ID: <3E549146.2060203@gpstechnik.ch> hello list am i just stupid or did i missed something...? according the documentation i configured nagios to give one of my sun server a pretty little icon. but it just does not show up... :( i addedd the following line to cgi.cfg: xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg the file itself contains following statements: --snip /usr/local/nagios/etc/hostextinfo.cfg define hostextinfo{ host_name tmplHexinfoSunserver register 0 icon_image sun40.png icon_alt Server with Sun Solaris vrml_image sun40.png statusmap_image sun40.gd2 } define hostextinfo{ host_name smline.swissmail.ch use tmplHexinfoSunserver icon_alt Sun Netra T1 150 } --snap does somebody sees my error...? thank you for my help. -- Kind regards, Roman Hochuli CCNP, CQS Cable GPS-Technik AG Z?rcherstrasse 139 8952 Schlieren Switzerland Tel +41-1-7329977 Fax +41-1-7311840 X-NCC-RegID: ch.gps While talking a little bit annoyed about taxes: "...at least it does not make addicted." -- 2002, Andre Wieler ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 20 09:17:14 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 20 Feb 2003 09:17:14 +0100 Subject: (Host assumed to be up) References: <161841617211.20030220093135@mail.ru> <3E54884D.82580DE5@gcc.dhl.com> <115844018384.20030220101136@mail.ru> Message-ID: <3E548F0A.8299E930@gcc.dhl.com> You can't, unless you want to rewrite some parts of the Nagios code. It will write assumed to be up, when the host was not checked because all services were OK. maxxik wrote: > > TDB> http://www.nagios.org/faqs/viewfaq.php?faq_id=86 > > that's nice ) i read faq ... but > > question remain ) how i can force nagios outputing > PING OK - Packet loss = 0%, RTA = 11.06 ms instead > (Host assumed to be up) ??? > > or explain me - how nagios writes (Host assumed to be up) instead > result of last check ? (PING OK - Packet loss = 0%, RTA = 11.06 > m) ??? ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Thu Feb 20 09:53:23 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 20 Feb 2003 09:53:23 +0100 Subject: (Host assumed to be up) References: <161841617211.20030220093135@mail.ru> <3E54884D.82580DE5@gcc.dhl.com> <115844018384.20030220101136@mail.ru> <3E548F0A.8299E930@gcc.dhl.com> <161846448098.20030220105206@mail.ru> Message-ID: <3E549783.F360237A@gcc.dhl.com> You will only see "Host assumed to be up" when a host has not been actively checked. A host is only checked when a service fails. So, hosts that have no failed services since Nagios started, are assumed to be up, as all services are running fine. The other hosts have had at least one service failure, causing Nagios to check that host. maxxik wrote: > > TDB> You can't, unless you want to rewrite some parts of the Nagios code. > TDB> It will write assumed to be up, when the host was not checked because > TDB> all services were OK. > > hmmm ... why i see in > > http://noc.aarnet.net.au/nagios-cgi/status.cgi?hostgroup=AARNet-Servers&style=hostdetail > > first host - (Host assumed to be up) > 2 - PING OK - Packet loss = 0%, RTA = 11.06 ms > 3 - PING OK - Packet loss = 0%, RTA = 56.97 ms > 4 - (Host assumed to be up) ??? > > in your words i must see (Host assumed to be up) in all hosts > status ? or not ? ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From twelsh at square-box.com Thu Feb 20 10:06:07 2003 From: twelsh at square-box.com (Tom Welsh) Date: Thu, 20 Feb 2003 09:06:07 -0000 Subject: Gimme your web server config's if its not Apache please :) Message-ID: <004101c2d8bf$4e01f720$0400a8c0@squarebox.com> Hi List, In my continuing effort to capture different Nagios and web server config's I was wondering if anyone would mail me the pertinent parts of their web server config file that are required to get nagios running sweet on their boxes. I will take this information and post it on http://demo.square-box.com under a new tab called web servers. Obviously I have done the Apache 1.3.26 config I'm running under but I think the community would benefit from other web server config's being available. Either mail them directly to me at my email below or post them to the list and I'll get them that way. If your really feeling kind you could also flesh out some notes on your particular web servers authentication mechanisms. Now that would save me some reading :) Cheers Tom Welsh twelsh at square-box.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From magnus.pettersson at eds.com Thu Feb 20 10:11:26 2003 From: magnus.pettersson at eds.com (Pettersson, Magnus) Date: Thu, 20 Feb 2003 09:11:26 -0000 Subject: Problem executing custom notification perl scr ipt Message-ID: <5917FD47436E784D8B08F132F0AC506101020F80@sessm201> Just a thought. If your $OUTPUT$ contains any " they may terminate that argument. Try and switch to ' /magnus Hi all, I've written a perl script that, when called by nagios like a normal notification command, access to a remote mssql server updating a database. In the miscommands.cfg I have the following lines for command definition: # 'master_host' define command{ command_name master_host command_line /usr/lib/nagios/plugins/master_notify_host.pl $HOSTNAME$ $HOSTSTATE$ $HOSTADDRESS$ $CONTACTEMAIL$ $NOTIFICATIONTYPE$ "$OUTPUT$" "$DATETIME$" } Everything works fine if I call the master_notify_host.pl script by hand, even from user "nagios" in a scheduled cronjob. In nagios.log, it appears that the script has been executed, but it seems not true :) Plus: I'm not using the nagios embedded perl interpreter, just normal perl. Some ideas? This thing is making me become old very quickly :) Thanks guys, Francesco Albrizio E-mail: francesco.albrizio at init.it Network & Security Manager UNITEAM INIT InterNetworking & Information Technology via Imperia, 2 20142 MILANO Tel. 02-89546000 Fax. 02-8467832 -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Thu Feb 20 10:11:34 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 20 Feb 2003 14:41:34 +0530 Subject: Nagat not working properly Message-ID: <004a01c2d8c0$10db1970$5f7b0297@atul> Hello All, Can anyone tell me how can I configure NAGAT properly. I have configured as given in the installation document and also tried some different alternative but nothing works. The first window is opening but when I click on some of the link then it shows error. In the import link, it shows that the nagios.cfg not found. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.albrizio at init.it Thu Feb 20 10:22:38 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Thu, 20 Feb 2003 10:22:38 +0100 Subject: Problem executing custom notification perl script References: <5917FD47436E784D8B08F132F0AC506101020F80@sessm201> Message-ID: <001d01c2d8c1$9cea8c60$3302a8c0@init.it> Thanks for your hint, but the script is not really executed because, even with wrong args, on first lines it logs its activation in a file. Now I will try using different shells for launching it. Thanks again, Francesco ----- Original Message ----- From: Pettersson, Magnus To: 'Francesco Albrizio' ; nagios-users at lists.sourceforge.net Sent: Thursday, February 20, 2003 10:11 AM Subject: RE: [Nagios-users] Problem executing custom notification perl script Just a thought. If your $OUTPUT$ contains any " they may terminate that argument. Try and switch to ' /magnus Hi all, I've written a perl script that, when called by nagios like a normal notification command, access to a remote mssql server updating a database. In the miscommands.cfg I have the following lines for command definition: # 'master_host' define command{ command_name master_host command_line /usr/lib/nagios/plugins/master_notify_host.pl $HOSTNAME$ $HOSTSTATE$ $HOSTADDRESS$ $CONTACTEMAIL$ $NOTIFICATIONTYPE$ "$OUTPUT$" "$DATETIME$" } Everything works fine if I call the master_notify_host.pl script by hand, even from user "nagios" in a scheduled cronjob. In nagios.log, it appears that the script has been executed, but it seems not true :) Plus: I'm not using the nagios embedded perl interpreter, just normal perl. Some ideas? This thing is making me become old very quickly :) Thanks guys, Francesco Albrizio E-mail: francesco.albrizio at init.it Network & Security Manager UNITEAM INIT InterNetworking & Information Technology via Imperia, 2 20142 MILANO Tel. 02-89546000 Fax. 02-8467832 -------------- next part -------------- An HTML attachment was scrubbed... URL: From haensel at prostep.de Thu Feb 20 10:59:46 2003 From: haensel at prostep.de (=?ISO-8859-1?Q?Martin_H=E4nsel?=) Date: Thu, 20 Feb 2003 10:59:46 +0100 Subject: false information Message-ID: <3E54A712.9040604@prostep.de> Hello, my Web frontend of Nagios shows my false information about about the host-checks, The frontend tells my that all of my server are down but i would remark when all of my servers where down. The frontend tells also any other flase information......anywhere in the webinterface must be a bug. A short extract of my alert history: [02-20-2003 08:06:19] SERVICE ALERT: arcobub;PING;OK;SOFT;2;PING OK - Packet loss = 0%, RTA = 29.82 ms [02-20-2003 08:06:19] SERVICE ALERT: netrashar;PING;OK;SOFT;2;PING OK - Packet loss = 0%, RTA = 33.11 ms [02-20-2003 08:05:51] SERVICE ALERT: xchg;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:49] SERVICE ALERT: arcorodsee;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:47] SERVICE ALERT: srv-dog;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:45] SERVICE ALERT: openshare;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:43] SERVICE ALERT: switch-lului;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:41] SERVICE ALERT: dxmserver;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:39] SERVICE ALERT: arcoarh;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:37] SERVICE ALERT: teamcamp;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:35] SERVICE ALERT: arcorwix;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:33] SERVICE ALERT: mail-server;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:31] SERVICE ALERT: brickdmz;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:29] SERVICE ALERT: srv-test;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds [02-20-2003 08:05:27] SERVICE ALERT: pc1;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 45 seconds Where is the problem?????? Thanks bye Martin ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chris.Losch at newham.gov.uk Thu Feb 20 11:00:13 2003 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Thu, 20 Feb 2003 10:00:13 -0000 Subject: Can I generate alert for bandwidth utilization ......? Message-ID: There is also the Check_Traffic plugin which has the ability to scan the network device using SNMP generate the config files automatically and graph using the RRD tool. Go and look at http://adi.blink.pl/nagios, and if it appeals be sure to read the Nagios-users list, since there are a few bugs. And on that note, Adrian, how close are you to getting the next release out? -----Original Message----- From: Michael Loftis [mailto:mloftis at wgops.com] Sent: 20 February 2003 06:29 To: Atul Shrivastava; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Can I generate alert for bandwidth utilization ......? The easiest way to do this with Nagios/NetSaint is to use the check_mrtg plugin. run mrtg to gather (and graph) the b/w, then use the Nagios to alert on it. You can also use cricket to do that, but if you've never setup cricket before it can look very daunting. --On Thursday, February 20, 2003 10:48 AM +0530 Atul Shrivastava wrote: > > Hello All, > > I want to generate alerts for Bandwidth Utilization if it goes beyond 90 > % for router interface. Can anyone has done it before, Pls tell me. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevox2000 at yahoo.com Thu Feb 20 12:04:35 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Thu, 20 Feb 2003 12:04:35 +0100 (CET) Subject: Checking Ms spooler Message-ID: <20030220110435.11730.qmail@web10903.mail.yahoo.com> I have a print server and i want to check the spooler. I'm using a classic spooler trough Windows sharing. I try the check_ms_spooler plugin but it only works with Samba print spooler. Is there a plugin out there that would work for me ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Thu Feb 20 12:38:36 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 20 Feb 2003 06:38:36 -0500 Subject: Monitoring Windows systems... In-Reply-To: <3E548806.9D4FF3D9@gcc.dhl.com> References: <3E548806.9D4FF3D9@gcc.dhl.com> Message-ID: <1045741116.12176.1.camel@miles.debisschop.net> On Thu, 2003-02-20 at 02:47, Tom DE BLENDE wrote: > I'm using the plugins I used with Netsaint. Just copy them over and it > should work. But the current nagios plugins beta has many, many bug fixes not in the last netsaint plugins. Not to mention features. http://nagiosplug.sf.net/ -- Karl > "Perez, Percy" wrote: > > > > Hello Everyone, > > > > I just installed Nagios under a Debian/hppa system. > > In the past I used Netsaint with the plugins supplied which allowed me to > > monitor nt systems. > > Are there any new plugins for nagios? > > Sorry for posting this basic question, but the Mailing-List Search-engine in > > http://sourceforge.net/mailarchive/forum.php?forum_id=1873 is down. > > I get "Forum not found" > > > > Thank you in advance. > > > > Percy > > Proprietary and Confidential: The information transmitted is intended only > > for the person or entity to which 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 in error, please contact the sender and > > delete the material from any computer. > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Nilsen at roxar.com Thu Feb 20 15:19:28 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Thu, 20 Feb 2003 15:19:28 +0100 Subject: Gimme your web server config's if its not Apache please :) Message-ID: Tom, Excellent work. What about having a list of contributed "home made" plugins as well. The add-on plugins list on www.nagios.org is short compared to all the different plugins that must exist. Regards, Thomas >-----Original Message----- >From: Tom Welsh [mailto:twelsh at square-box.com] >Sent: Thursday, February 20, 2003 10:06 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Gimme your web server config's if its >not Apache >please :) > > >Hi List, > >In my continuing effort to capture different Nagios and web server >config's I was wondering if anyone would mail me the pertinent parts of >their web server config file that are required to get nagios running >sweet on their boxes. > >I will take this information and post it on http://demo.square-box.com >under a new tab called web servers. Obviously I have done the Apache >1.3.26 config I'm running under but I think the community would benefit >from other web server config's being available. > >Either mail them directly to me at my email below or post them to the >list and I'll get them that way. > >If your really feeling kind you could also flesh out some notes on your >particular web servers authentication mechanisms. Now that >would save me >some reading :) > >Cheers >Tom Welsh >twelsh at square-box.com > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. >The most comprehensive and flexible code editor you can use. >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. >www.slickedit.com/sourceforge >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS >when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From T-VANZEE at govst.edu Thu Feb 20 15:20:37 2003 From: T-VANZEE at govst.edu (Van Zee, Timothy) Date: Thu, 20 Feb 2003 08:20:37 -0600 Subject: check http syntax Message-ID: <7F76AA41FC7DD5119B1E00508BAF0444A80055@gsmail.govst.edu> 1st, I haven't been able to search the sourceforge.net mail archive, so apologies for asking a question that I'm sure has been covered many times in the past. Is there anywhere else to that archives nagios questions that I can search? 2nd, in my services.cfg file I using check_http on many different hosts. On some of the hosts I need to specify a different default path. At command line I can use /usr/local/nagios/libexec/check_http -H 192.168.1.1 -u /otherpath/ and I receive an HTTP ok: HTTP/1.1 200 OK - 0.000 second response time. How do I append the check_command? I have tried the following, but the obviously are not correct as they don't work: check_command check_http!-u!/otherpath/ And check_command check_http!-u /otherpath/ I can successfully put in the command line surrounded by double quotes, but I wanted to know the proper way to append to the check_http on the check_command line. Thanx. Tim Van Zee ITS Network Specialist Governors State University -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdeblend at gcc.dhl.com Thu Feb 20 15:40:35 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 20 Feb 2003 15:40:35 +0100 Subject: check http syntax References: <7F76AA41FC7DD5119B1E00508BAF0444A80055@gsmail.govst.edu> Message-ID: <3E54E8E3.55CC66C6@gcc.dhl.com> Create a new command definition in checkcommands.cfg (or where ever you store yours). > "Van Zee, Timothy" wrote: > > 1st, I haven't been able to search the sourceforge.net mail archive, > so apologies for asking a question that I'm sure has been covered > many times in the past. Is there anywhere else to that archives > nagios questions that I can search? > > 2nd, in my services.cfg file I using check_http on many different > hosts. On some of the hosts I need to specify a different default > path. At command line I can use > /usr/local/nagios/libexec/check_http -H 192.168.1.1 -u /otherpath/ > and I receive an HTTP ok: HTTP/1.1 200 OK - 0.000 second response > time. How do I append the check_command? I have tried the > following, but the obviously are not correct as they don't work: > > check_command check_http!-u!/otherpath/ > And > check_command check_http!-u /otherpath/ > I can successfully put in the command line surrounded by double > quotes, but I wanted to know the proper way to append to the > check_http on the check_command line. > > Thanx. > > Tim Van Zee > ITS Network Specialist > Governors State University ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stevox2000 at yahoo.com Thu Feb 20 17:00:44 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Thu, 20 Feb 2003 17:00:44 +0100 (CET) Subject: check DHCP Message-ID: <20030220160044.15488.qmail@web10908.mail.yahoo.com> Hello, I want to check if the DHCP service is Up. Is there a plugin available ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 17:01:08 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 20 Feb 2003 10:01:08 -0600 Subject: cpu utilisation and vmstat like output Message-ID: If one of the existing plugins doesn't do what you'd like to see, of course you could easily make a wrapper script for vmstat, eg, take "vmstat 2 2 | tail -1" and take the column(s) you're interested in examining for an OK/Warning/Critical status. Just remember that you're limited in how much data your plugin is allowed to return. If memory serves, that limit is 384 bytes. This is actually something (very low on my list of things to do) that I'll probably do for my Solaris systems. It would be nice to set a high water mark for the scan rate. jc > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Thursday, February 20, 2003 12:52 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] cpu utilisation and vmstat like output > > > Hi All > > Is it possible to get cpu utilisation and vmstat liek > out with nagios nagios plugins and nrpe..or this > plugin is yet to be made avilable.. > > regards > Hrishy > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 17:04:56 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 20 Feb 2003 10:04:56 -0600 Subject: (Host assumed to be up) Message-ID: Heh, this question seems to hit the list at least once a week. Is it possible to modify the list subscription confirmation to emphasize to newbies to read the FAQ, give them the URL, perhaps list a few of the most popular FAQs...? jc > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thursday, February 20, 2003 1:48 AM > To: maxxik > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] (Host assumed to be up) > > > http://www.nagios.org/faqs/viewfaq.php?faq_id=86 > > maxxik wrote: > > > > Hi ppl ! > > > > I installed NAgios 1.0 and had one strange behavior ... > > > > in Host Status Details For Host Group i saw > > > > (for example > http://noc.aarnet.net.au/nagios-cgi/status.cgi?hostgroup=AARNe > t-Servers&style=hostdetail): > > > > counter-act UP 10-02-2003 01:06:22 188d 9h 38m 42s (Host > assumed to be up) > > > > and next line is : > > > > counter-nsw UP 10-02-2003 23:31:14 21d 17h 14m 2s PING OK > - Packet loss = 0%, RTA = 11.06 ms > > > > why there was (Host assumed to be up) in first line instead > PING OK .... > > as in second line ? and how i can get PING OK - Packet loss = 0%, > > RTA = 11.06 ms in first line instead (Host assumed to be up) ??? > > > > wbr, maxx > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE > 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 17:17:09 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 20 Feb 2003 10:17:09 -0600 Subject: Gimme your web server config's if its not Apac he please :) Message-ID: As soon as I get the Windows domain-style authentication squared away, I'll provide a writeup for the list (which you could copy, unless you'd like some changes to it) and for the FAQ. jc > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Thursday, February 20, 2003 3:06 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Gimme your web server config's if its > not Apache > please :) > > > Hi List, > > In my continuing effort to capture different Nagios and web server > config's I was wondering if anyone would mail me the > pertinent parts of > their web server config file that are required to get nagios running > sweet on their boxes. > > I will take this information and post it on http://demo.square-box.com > under a new tab called web servers. Obviously I have done the Apache > 1.3.26 config I'm running under but I think the community > would benefit > from other web server config's being available. > > Either mail them directly to me at my email below or post them to the > list and I'll get them that way. > > If your really feeling kind you could also flesh out some > notes on your > particular web servers authentication mechanisms. Now that > would save me > some reading :) > > Cheers > Tom Welsh > twelsh at square-box.com > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From william.l.lewis at usa.net Thu Feb 20 17:47:29 2003 From: william.l.lewis at usa.net (bill lewis) Date: Thu, 20 Feb 2003 09:47:29 -0700 Subject: Using the avail.cgi script for reporting Message-ID: <717HBTqvd2736S16.1045759649@uwdvg016.cms.usa.net> I have some folks that would like reports in csv format on things that nagios is already keeping track of. I would like to run the avail.cgi from a script to generate the reports. I have tried setting the environment variables suggested and cannot get past more that the first page. Is there a way to do this? thanks, Bill Lewis ----- William L. Lewis email: william.l.lewis at usa.net "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." --Ben Franklin ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thomas.polnik at idpraxis.de Thu Feb 20 19:04:34 2003 From: thomas.polnik at idpraxis.de (thomas polnik) Date: Thu, 20 Feb 2003 18:04:34 +0000 Subject: A small mistake in the documentation? References: Message-ID: <3E5518B2.88232226@idpraxis.de> Hello, I get only errors with this line ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ Is this line correct? After I change the ScriptAlias-statement to ScriptAlias /cgi-bin/nagios/ /usr/local/nagios/sbin/ my nagios works fine. You can find this line: http://nagios.sourceforge.net/docs/1_0/installweb.html http://nagios.sourceforge.net/download/contrib/documentation/english/Nagios_1_0_Docs.pdf -> site 15 http://nagios.sourceforge.net/download/contrib/documentation/german/1_0/installweb.html http://nagios.sourceforge.net/download/contrib/documentation/misc/InstallingNagios-r2.pdf -> site 8 thomas Polnik Berlin, Germany ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vonessj at intelihealth.com Thu Feb 20 18:06:01 2003 From: vonessj at intelihealth.com (VonEssen, John) Date: Thu, 20 Feb 2003 12:06:01 -0500 Subject: Problems during compile on Solaris Message-ID: <1150D7750302044CBA06C923B5D6059621BA2A@EXCHVS1.corp.intelihealth.com> Okay. I compiled jpeg, png, and gd from soure. (Note: I had to install xpm in order for gd to build) Everything (libs and headers) is installed in /usr/local. I then run ./configure --with-gd-inc=/usr/local/include --with-gd-lib=/usr/local/lib and everything compiles successfully. Now I just have to figure out how this program works - configuration wise! Thanks. John -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: Thursday, February 20, 2003 10:33 AM To: VonEssen, John Subject: RE: [Nagios-users] Problems during compile on Solaris I had the same problem until I built libjpeg and gd from source. I don't know if the sunfreeware packages install all of the headers etc... Once I loaded from source it started working though. Greg > -----Original Message----- > From: VonEssen, John [mailto:vonessj at intelihealth.com] > Sent: Thursday, February 20, 2003 9:22 AM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] Problems during compile on Solaris > > > Greg, > > I installed jpeg-6b, gd-1.8.4, and libpng-1.2.4 from packages > at sunfreeware.com. With those packages installed, I still > get the same error: > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o > cgiutils.o auth.o popen.o ../common/objects.c > ../xdata/xodtemplate.c ../common/statusdata.c > ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o > ../xdata/xedtemplate.c -o statusmap.cgi > Undefined first referenced > symbol in file > gdImageCreateFromJpeg /var/tmp/cc8Gezwi.o > ld: fatal: Symbol referencing errors. No output written to > statusmap.cgi > > Should I try to build gd-2.0 from source, using the > openwin/lib and openwin/include options? > > John > > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Wednesday, February 19, 2003 2:09 PM > To: VonEssen, John > Subject: RE: [Nagios-users] Problems during compile on Solaris > > > did you install libjpeg? I had to re-do my installation, and > there are a few steps that you > need to do before installing gd. Here are my notes: > - mkdir /usr/local/jpeg > - cd /usr/local/jpeg > - tar xvf /moc/okc/home/tc8/sun/jpegsrc.v6b.tar > - cd /usr/local/jpeg-6b > - ./configure > - make > - make test > - make install > - make install-lib > - make install-headers > - untar libpng-1.2.5 to /usr/local/png/ > - cd /usr/local/png/libpng-1.2.5 > - cp scripts/makefile.solaris Makefile > - make > - make test > - make install > - untar gd to /usr/local/perl/build/gd-2.0.8 > - cd /usr/local/gd/gd-2.0.8 > - vi configure # add /usr/openwin/lib /usr/openwin/include > to Include and > - # link variables > - ./configure > - make > - make install > > -----Original Message----- > From: VonEssen, John [mailto:vonessj at intelihealth.com] > Sent: Wednesday, February 19, 2003 11:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problems during compile on Solaris > > > I added the gd-1.86 package from sunfreeware.com and then > started the build of nagios. During 'make all' I reach the following: > ... > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statuswrl.c getcgi.o > cgiutils.o auth.o popen.o ../common/objects.c > ../xdata/xodtemplate.c ../common/statusdata.c > ../xdata/xsddefault.c -lm edata.o ../xdata/xedtemplate.c -o > statuswrl.cgi > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o > cgiutils.o auth.o popen.o ../common/objects.c > ../xdata/xodtemplate.c ../common/statusdata.c > ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o > ../xdata/xedtemplate.c -o statusmap.cgi > Undefined first referenced > symbol in file > gdImageCreateFromJpeg /var/tmp/cc8Gezwi.o > ld: fatal: Symbol referencing errors. No output written to > statusmap.cgi > collect2: ld returned 1 exit status > make[1]: *** [statusmap.cgi] Error 1 > make[1]: Leaving directory `/pinky/nagios-1.0/cgi' > make: *** [all] Error 2 > > > Any ideas? Thanks.... > John > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rplewe at hpce.nec.com Thu Feb 20 18:13:18 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Thu, 20 Feb 2003 18:13:18 +0100 Subject: (Host assumed to be up) In-Reply-To: ; from jcarro10@sprintspectrum.com on Thu, Feb 20, 2003 at 10:04:56AM -0600 References: Message-ID: <20030220181318.A1439@hpce.nec.com> On Thu, Feb 20, 2003 at 10:04:56AM -0600, Carroll, Jim P [Contractor] wrote: > Heh, this question seems to hit the list at least once a week. Is it > possible to modify the list subscription confirmation to emphasize to > newbies to read the FAQ, give them the URL, perhaps list a few of the most > popular FAQs...? I have only been on the internet for just under 10 years now. It must have been before that time that this approach had actually had a chance for success? As far as my memory goes, "if everything else fails: read the manual" has been the way. And no, I'm not excluding myself. Rasmus ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From willipl1 at jhuapl.edu Thu Feb 20 18:22:52 2003 From: willipl1 at jhuapl.edu (Lane Williams) Date: Thu, 20 Feb 2003 12:22:52 -0500 Subject: Using the avail.cgi script for reporting In-Reply-To: <717HBTqvd2736S16.1045759649@uwdvg016.cms.usa.net> References: <717HBTqvd2736S16.1045759649@uwdvg016.cms.usa.net> Message-ID: <1045761777.32238.13.camel@lenny.jhuapl.edu> I got a script from Chet Luther, modified it heavily and now it looks something like what I have below. You obviously can format the output however you wish. I used this just for testing the functionality so I suggest using your own formatting. The main line to pay attention to is the "my $request" variable which does a "GET". I've used this idea to output the data to a CSV file, and just dump it to a hash and formatted the output within the script. Hope this helps..... also attached the file in-case email screws up the formatting. #################BEGIN SCRIPT############################# #!/usr/local/perl/bin/perl -w # # Parse the outputs from Nagios' avail.cgi into an HTML table. # use Date::Manip; use LWP::UserAgent; use Time::Local; use Data::Dumper; $~ = ReportFormat; @stime = ("07","00",00); @etime = (18,30,00); $date = `date +"\%m \%d \%Y"`; #month date year chomp $date; ($mon,$day,$year)=split ' ', $date; #$sec1x = &UnixDate ($epoch_date1x, "%s"); #$sec2x = &UnixDate ($epoch_date2x, "%s"); use vars qw($agent); #use strict; my $nagios_url = "http://yoursite/nagios/cgi-bin"; $agent = new LWP::UserAgent(); $agent->agent("Mozilla/6.0"); $agent->timeout(600); my $request = new HTTP::Request(GET => "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mon&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2]&emon=$mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[2]&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&backtrack=4&csvoutput="); $request->header('Accept' => 'text/html'); $request->authorization_basic('username', 'password'); my $response = $agent->request($request); if (!$response->is_success()) { exit; } (@response) = split '\n' , $response->content(); foreach $line (@response){ #print "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; if ($line !~ /^HOST_NAME/){ (@info) = split ',' , $line; @info[0] = map {uc} @info[0]; @info[0] =~ s/"//g; push @{$sys_avail{$info[0]}},($info[7],$info[8],$info[16],$info[17]); ##host_name total_time_up percent_total_time_up total_time_down percent_total_time_down## } } foreach $key (sort keys %sys_avail){ write;} format ReportFormat_TOP = =========================================================== System Availability for @ I have some folks that would like reports in csv format on things that > nagios > is already keeping track of. I would like to run the avail.cgi from a > script > to generate the reports. I have tried setting the environment variables > suggested and cannot get past more that the first page. > > Is there a way to do this? > > thanks, > Bill Lewis > > > ----- > William L. Lewis > email: william.l.lewis at usa.net > "They that can give up essential liberty to obtain a little temporary > safety > deserve neither liberty nor safety." > --Ben Franklin > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: server_report2.pl Type: text/x-perl Size: 2478 bytes Desc: not available URL: From ah43 at httpsite.com Thu Feb 20 18:41:58 2003 From: ah43 at httpsite.com (ah43 at httpsite.com) Date: Thu, 20 Feb 2003 12:41:58 -0500 (EST) Subject: nagat not working properly Message-ID: > Hello All, > > Can anyone tell me how can i configure NAGAT. I have configured as > given in the installation document and also tried some different > alternative but nothing works. The first window is opening but > when I click on some of the link then it shows error. In the > import link, it shows that the nagios.cfg not found. I had significant trouble as well... First, add this line to serviceedit.php at line 58 (before the $objectid= line). $saveobject['contact_groups'] = @implode(",",$saveobject['contact_groups']); Then, fix the template lines in hosts.cfg and services.cfg that say: name generic-service ; blah blah blah Get rid of everything after the word 'generic-service' nagat processes it as part of the name. Then, I imported the configs. Ignore the "No nagios.cfg data found" error. After you click to import them, go back into the importer screen and you'll see the list of other files to import. What I had to do to get them to import correctly was to import one single file at a time, and NOT check off more than one. ---------------------------------- E-Mail: ah43 at httpsite.com Date: 20-Feb-2003 Time: 12:32:00 This message was sent by XFMail ---------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 20 18:43:45 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 12:43:45 -0500 (EST) Subject: check DHCP In-Reply-To: <20030220160044.15488.qmail@web10908.mail.yahoo.com> References: <20030220160044.15488.qmail@web10908.mail.yahoo.com> Message-ID: On Thu, 20 Feb 2003, Steve Dussaux wrote: > Hello, > > I want to check if the DHCP service is Up. > Is there a plugin available ? > > Steve > Plugins - contrib/check_dhcp : needs to be installed suid root. -- -sg ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlyons30 at yahoo.com Thu Feb 20 18:37:57 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 20 Feb 2003 09:37:57 -0800 (PST) Subject: Using the avail.cgi script for reporting In-Reply-To: <1045761777.32238.13.camel@lenny.jhuapl.edu> References: <1045761777.32238.13.camel@lenny.jhuapl.edu> Message-ID: <20030220173757.32608.qmail@web21508.mail.yahoo.com> Wow, Chet should make a website or add it to SourceForge site... :) Lane Williams wrote:I got a script from Chet Luther, modified it heavily and now it looks something like what I have below. You obviously can format the output however you wish. I used this just for testing the functionality so I suggest using your own formatting. The main line to pay attention to is the "my $request" variable which does a "GET". I've used this idea to output the data to a CSV file, and just dump it to a hash and formatted the output within the script. Hope this helps..... also attached the file in-case email screws up the formatting. #################BEGIN SCRIPT############################# #!/usr/local/perl/bin/perl -w # # Parse the outputs from Nagios' avail.cgi into an HTML table. # use Date::Manip; use LWP::UserAgent; use Time::Local; use Data::Dumper; $~ = ReportFormat; @stime = ("07","00",00); @etime = (18,30,00); $date = `date +"\%m \%d \%Y"`; #month date year chomp $date; ($mon,$day,$year)=split ' ', $date; #$sec1x = &UnixDate ($epoch_date1x, "%s"); #$sec2x = &UnixDate ($epoch_date2x, "%s"); use vars qw($agent); #use strict; my $nagios_url = "http://yoursite/nagios/cgi-bin"; $agent = new LWP::UserAgent(); $agent->agent("Mozilla/6.0"); $agent->timeout(600); my $request = new HTTP::Request(GET => "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mon&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2]&emon=$mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[2]&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&backtrack=4&csvoutput="); $request->header('Accept' => 'text/html'); $request->authorization_basic('username', 'password'); my $response = $agent->request($request); if (!$response->is_success()) { exit; } (@response) = split '\n' , $response->content(); foreach $line (@response){ #print "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; if ($line !~ /^HOST_NAME/){ (@info) = split ',' , $line; @info[0] = map {uc} @info[0]; @info[0] =~ s/"//g; push @{$sys_avail{$info[0]}},($info[7],$info[8],$info[16],$info[17]); ##host_name total_time_up percent_total_time_up total_time_down percent_total_time_down## } } foreach $key (sort keys %sys_avail){ write;} format ReportFormat_TOP = =========================================================== System Availability for @ $mon, $day, $year @<:@< - @<:@< $stime[0], $stime[1], $etime[0], $etime[1] page@||| $% =========================================================== HostName Percent of Uptime Percent Down Time ___________________________________________________________ . format ReportFormat = @<<<<<<<<<<<<<<<<< @<<<<<<< @<<<<<<<< $key, "@{$sys_avail{$key}}[1]","@{$sys_avail{$key}}[3]" . ###############################END SCRIPT############################# On Thu, 2003-02-20 at 11:47, bill lewis wrote: > I have some folks that would like reports in csv format on things that > nagios > is already keeping track of. I would like to run the avail.cgi from a > script > to generate the reports. I have tried setting the environment variables > suggested and cannot get past more that the first page. > > Is there a way to do this? > > thanks, > Bill Lewis > > > ----- > William L. Lewis > email: william.l.lewis at usa.net > "They that can give up essential liberty to obtain a little temporary > safety > deserve neither liberty nor safety." > --Ben Franklin > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null #!/usr/local/perl/bin/perl -w # # Parse the outputs from Nagios' avail.cgi into an HTML table. use Date::Manip; use LWP::UserAgent; use Time::Local; use Data::Dumper; $~ = ReportFormat; @stime = ("07","00",00); @etime = (18,30,00); $date = `date +"\%m \%d \%Y"`; #month date year chomp $date; ($mon,$day,$year)=split ' ', $date; #$sec1x = &UnixDate ($epoch_date1x, "%s"); #$sec2x = &UnixDate ($epoch_date2x, "%s"); use vars qw($agent); #use strict; my $nagios_url = "http://yoursite/nagios/cgi-bin"; $agent = new LWP::UserAgent(); $agent->agent("Mozilla/6.0"); $agent->timeout(600); my $request = new HTTP::Request(GET => "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mon&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2] &emon=$mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[2]&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&backtrack=4&csvoutput="); $request->header('Accept' => 'text/html'); $request->authorization_basic('username', 'password'); my $response = $agent->request($request); if (!$response->is_success()) { exit; } (@response) = split '\n' , $response->content(); foreach $line (@response){ #print "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; if ($line !~ /^HOST_NAME/){ (@info) = split ',' , $line; @info[0] = map {uc} @info[0]; @info[0] =~ s/"//g; push @{$sys_avail{$info[0]}}, ($info[7],$info[8],$info[16],$info[17]); ##host_name total_time_up percent_total_time_up total_time down percent_total_time_down## } } foreach $key (sort keys %sys_avail){ write;} format ReportFormat_TOP = =========================================================== System Availability for @ $mon, $day, $year @<:@< - @<:@< $stime[0], $stime[1], $etime[0], $etime[1] page@||| $% =========================================================== HostName Percent of Uptime Percent Down Time ___________________________________________________________ . format ReportFormat = @<<<<<<<<<<<<<<<<< @<<<<<<< @<<<<<<<< $key, "@{$sys_avail{$key}}[1]","@{$sys_avail{$key}}[3]" . --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Feb 20 18:46:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 12:46:03 -0500 (EST) Subject: A small mistake in the documentation? In-Reply-To: <3E5518B2.88232226@idpraxis.de> References: <3E5518B2.88232226@idpraxis.de> Message-ID: It depends on your configure arguments - the default is /nagios/cgi-bin/ The old default (Netsaint and early betas) were the other way. -sg On Thu, 20 Feb 2003, thomas polnik wrote: > Hello, > I get only errors with this line > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > Is this line correct? > > After I change the ScriptAlias-statement to > > ScriptAlias /cgi-bin/nagios/ /usr/local/nagios/sbin/ > > my nagios works fine. > > > You can find this line: > http://nagios.sourceforge.net/docs/1_0/installweb.html > http://nagios.sourceforge.net/download/contrib/documentation/english/Nagios_1_0_Docs.pdf > -> site 15 > http://nagios.sourceforge.net/download/contrib/documentation/german/1_0/installweb.html > http://nagios.sourceforge.net/download/contrib/documentation/misc/InstallingNagios-r2.pdf > -> site 8 > > > thomas Polnik > Berlin, Germany > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 19:02:00 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 20 Feb 2003 12:02:00 -0600 Subject: FAQs and newbies (was: RE: (Host assumed to be up) ) Message-ID: True enough. But even I've had troubles navigating the Nagios docs. "I know I saw it at one time... wonder where I saw that...." Would be helpful at the very least to have a local search engine on www.nagios.org ;) Of course, it's just my $0.02, YMMV, etc etc. jc > -----Original Message----- > From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] > Sent: Thursday, February 20, 2003 11:13 AM > To: Nagios users list > Subject: Re: [Nagios-users] (Host assumed to be up) > > > On Thu, Feb 20, 2003 at 10:04:56AM -0600, Carroll, Jim P > [Contractor] wrote: > > Heh, this question seems to hit the list at least once a > week. Is it > > possible to modify the list subscription confirmation to > emphasize to > > newbies to read the FAQ, give them the URL, perhaps list a > few of the most > > popular FAQs...? > > I have only been on the internet for just under 10 years now. It must > have been before that time that this approach had actually had a > chance for success? As far as my memory goes, "if everything else > fails: read the manual" has been the way. > And no, I'm not excluding myself. > > > Rasmus > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Thu Feb 20 19:02:53 2003 From: syed at nec-labs.com (Syed Ali) Date: Thu, 20 Feb 2003 13:02:53 -0500 Subject: Apache suExec and /usr/local/nagios/etc permissions Message-ID: <951A499AA688EF47A898B45F25BD8EE81573EF@mailer.nec-labs.com> Hello, I am running Apache 1.3.20 on RedHat 7.2. Apache runs under user 'apache'. Nagios is running under user 'nagios'. However, unless I do not give world readable permissions to /usr/local/nagios/etc I cannot access the web interface for Nagios. If I give world readable permission to /usr/local/nagios/etc, then users on the system can view the SNMP RO community in the services.cfg or checkcommands.cfg file. So, how do I go about not allowing my users to be able to read the /usr/local/nagios/etc directory? I had disabled suExec on the httpd server for Cricket to run, but I am willing to give up cricket and enable suEexec. Reading the Apache suExec documentation, it looks like suExec works with v2.0 of Apache and the virtual host directive, neither of which I am using. Also, it seems that suExec will work if you append the ~ but when I set an alias as /~nagios /usr/local/nagios/share I get permission denied reading ~nagios/etc/htpasswd file. (Which means suExec is not working?) Paste from httpd.conf: ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ AllowOverride AuthConfig Options None Order allow,deny Allow from all I also tried: Alias /~nagios/ /usr/local/nagios/share/ AllowOverride AuthConfig Options None Order allow,deny Allow from all Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From rburnson at cps.k12.il.us Thu Feb 20 19:25:39 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 20 Feb 2003 12:25:39 -0600 Subject: Monitoring MS Outlook Web Access Message-ID: Has anyone written any scripts to monitor an OWA system? What I'm looking for is a method of logging into the system with a dummy account, open up its inbox and open an e-mail message. I have a developer working on this with an html scraper, but he's having issues with the .asp pages and pop-up login prompts. Thanks, Richard ? ??? ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 19:34:06 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Thu, 20 Feb 2003 12:34:06 -0600 Subject: FAQs and newbies (was: RE: (Host assumed to be up) ) In-Reply-To: References: Message-ID: <1045766046.3e551f9e4e37f@www.rapidgrid.com> I must agree with this, finding stuff is not easy on the website at all Quoting "Carroll, Jim P [Contractor]" : > True enough. But even I've had troubles navigating the Nagios docs. "I > know I saw it at one time... wonder where I saw that...." Would be helpful > at the very least to have a local search engine on www.nagios.org ;) > > Of course, it's just my $0.02, YMMV, etc etc. > > jc > > > > -----Original Message----- > > From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] > > Sent: Thursday, February 20, 2003 11:13 AM > > To: Nagios users list > > Subject: Re: [Nagios-users] (Host assumed to be up) > > > > > > On Thu, Feb 20, 2003 at 10:04:56AM -0600, Carroll, Jim P > > [Contractor] wrote: > > > Heh, this question seems to hit the list at least once a > > week. Is it > > > possible to modify the list subscription confirmation to > > emphasize to > > > newbies to read the FAQ, give them the URL, perhaps list a > > few of the most > > > popular FAQs...? > > > > I have only been on the internet for just under 10 years now. It must > > have been before that time that this approach had actually had a > > chance for success? As far as my memory goes, "if everything else > > fails: read the manual" has been the way. > > And no, I'm not excluding myself. > > > > > > Rasmus > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GMohney at apacmail.com Thu Feb 20 19:41:37 2003 From: GMohney at apacmail.com (Mohney, Greg) Date: Thu, 20 Feb 2003 12:41:37 -0600 Subject: status.log and nagios.log/status.sav Message-ID: I have this problem too, and I think it might have to do with the fact that I am using mysql as a backend for all status information (every single MySQL option turned on when I built Nagios). Nagios is running fine, but since it keeps all info in the database, it doesnt write a status.log. Anyone have a clue on a fix for this? Need to be able to run commands from the CGIs... Greg -----Original Message----- From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] Sent: Wednesday, February 19, 2003 1:46 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] status.log and nagios.log/status.sav I must have nagios by immaculate conception then, because everything works fine. All my service and host checks are running web itnerface is accessible and working. When I do a ps -ax I get: 1530 ? S 0:01 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg However I dont have status.log running on my system, # ls -al total 72 drwxrwxr-x 4 nagios nagios 4096 Feb 19 19:36 . drwxrwxr-x 16 nagios nagios 4096 Feb 18 16:54 .. drwxrwxr-x 2 nagios nagios 4096 Feb 19 00:00 archives prw-rw---- 1 nagios nagios 0 Feb 19 19:36 nagios.cmd -rw-r--r-- 1 root root 5 Feb 19 19:36 nagios.lock -rw-rw-r-- 1 nagios nagios 20799 Feb 19 19:36 nagios.log drwxrwsr-x 2 nagios nagios 4096 Feb 15 04:18 rw -rw-rw-r-- 1 nagios nagios 0 Feb 19 19:36 status.sav nagios.cfg config: status_file=/usr/local/nagios/var/status.log cgi.cfg config: nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' Nagios Startup process: #/etc/init.d/nagios restart Running configuration check...done Stopping network monitor: nagios Starting network monitor: nagios PID TTY TIME CMD 6984 ? 00:00:00 nagios [root at localhost etc]# find / -name status.log [root at localhost etc]# as you can see above no status.log generated when nagios starts. I would appreciate any help. Babak Russell Scibetti wrote: > If there is no status.log file, then Nagios is not actually running. It > is created on startup and deleted on shutdown of Nagios, leaving behind > nagios.log (trails of state changes) and status.sav (for state retention). > > Russell Scibetti > > Babak Pasdar wrote: > > >Question? > > > >in the process check with the check_nagios function enabled in cgi.cfg, it defaults to /usr/local/nagios/var/status.log. However I have no such thing. I touched a file, but nagios deletes it upon exit. I have two choices. a status.sav file and nagios.log. Am I missing something? > > > >Babak > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > >The most comprehensive and flexible code editor you can use. > >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > >www.slickedit.com/sourceforge > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > -- Babak Pasdar Founder/CTO IGX Global 389 Main St. Hackensack, NJ 07601 www.igxglobal.com (201) 498-0555 ext. 2205 The electronic message that you have received and any attachments are solely intended for the use of the addressee(s) and may contain information that is confidential. If you receive this email in error, please advise us by responding to NOC at igxglobal.com. You are required to delete the contents and destroy any copies immediately. IGX Global is not liable for the views expressed in this electronic message or for the consequences of any computer viruses that may be unknowingly transmitted within this message. This electronic message is also subject to standard copyright/ownership laws. It is not intended to be reproduced, or re-transmitted without the consent of the originator. www.igxglobal.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 20 19:55:53 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 13:55:53 -0500 (EST) Subject: Apache suExec and /usr/local/nagios/etc permissions In-Reply-To: <951A499AA688EF47A898B45F25BD8EE81573EF@mailer.nec-labs.com> References: <951A499AA688EF47A898B45F25BD8EE81573EF@mailer.nec-labs.com> Message-ID: Make sure apache and nagios have a common group membership and use group permissions. About SNMP community - if you have comon community strings across devices, create a $USERx$ macro in resource.cfg for the community. The CGIs do not read resource.cfg. -sg On Thu, 20 Feb 2003, Syed Ali wrote: > Hello, > > I am running Apache 1.3.20 on RedHat 7.2. > Apache runs under user 'apache'. > Nagios is running under user 'nagios'. > > However, unless I do not give world readable permissions to > /usr/local/nagios/etc I cannot access the web interface for Nagios. > If I give world readable permission to /usr/local/nagios/etc, then users > on the system can view the SNMP RO community in the services.cfg or > checkcommands.cfg file. > So, how do I go about not allowing my users to be able to read the > /usr/local/nagios/etc directory? > > I had disabled suExec on the httpd server for Cricket to run, but I am > willing to give up cricket and enable suEexec. > Reading the Apache suExec documentation, it looks like suExec works with > v2.0 of Apache and the virtual host directive, neither of which I am > using. > Also, it seems that suExec will work if you append the ~ but when I set > an alias as /~nagios /usr/local/nagios/share I get permission denied > reading ~nagios/etc/htpasswd file. > (Which means suExec is not working?) > > > Paste from httpd.conf: > > ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > Alias /nagios/ /usr/local/nagios/share/ > > AllowOverride AuthConfig > Options None > Order allow,deny > Allow from all > > > I also tried: > > Alias /~nagios/ /usr/local/nagios/share/ > > AllowOverride AuthConfig > Options None > Order allow,deny > Allow from all > > > Thank you... > > > -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From johnmc at johnmc.org Thu Feb 20 20:06:02 2003 From: johnmc at johnmc.org (John McDonnell) Date: Thu, 20 Feb 2003 11:06:02 -0800 (PST) Subject: FAQs and newbies (was: RE: (Host assumed to be up) ) In-Reply-To: References: Message-ID: On the 20th day of February, Carroll, Jim P [Contractor] said to me: > Would be helpful at the very least to have a local search engine on > www.nagios.org ;) Umm, use Google and add site:nagios.org to your search? It's been my experience that the average net/web user has grown lazier over the last few years. I'll take this opportunity to gripe about top posting and not trimming replies, which will no doubt piss a lot of you off. johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpowell at ena.com Thu Feb 20 20:01:42 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 20 Feb 2003 13:01:42 -0600 Subject: status.log and nagios.log/status.sav Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED47B@mismail.ena.com> This works for me: nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/nagios.log 5 'bin/nagios' > -----Original Message----- > From: Mohney, Greg [mailto:GMohney at apacmail.com] > Sent: Thursday, February 20, 2003 12:42 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] status.log and nagios.log/status.sav > > I have this problem too, and I think it might have to do with the fact > that > I am using mysql > as a backend for all status information (every single MySQL option turned > on > when I built > Nagios). Nagios is running fine, but since it keeps all info in the > database, it doesnt write a > status.log. > > Anyone have a clue on a fix for this? Need to be able to run commands > from > the CGIs... > > Greg > > -----Original Message----- > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > Sent: Wednesday, February 19, 2003 1:46 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] status.log and nagios.log/status.sav > > > > I must have nagios by immaculate conception then, because everything works > fine. All my service and host checks are running web itnerface is > accessible > and working. > > When I do a ps -ax I get: > > 1530 ? S 0:01 /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg > > However I dont have status.log running on my system, > > # ls -al > total 72 > drwxrwxr-x 4 nagios nagios 4096 Feb 19 19:36 . > drwxrwxr-x 16 nagios nagios 4096 Feb 18 16:54 .. > drwxrwxr-x 2 nagios nagios 4096 Feb 19 00:00 archives > prw-rw---- 1 nagios nagios 0 Feb 19 19:36 nagios.cmd > -rw-r--r-- 1 root root 5 Feb 19 19:36 nagios.lock > -rw-rw-r-- 1 nagios nagios 20799 Feb 19 19:36 nagios.log > drwxrwsr-x 2 nagios nagios 4096 Feb 15 04:18 rw > -rw-rw-r-- 1 nagios nagios 0 Feb 19 19:36 status.sav > > > > nagios.cfg config: > > status_file=/usr/local/nagios/var/status.log > > > > cgi.cfg config: > > nagios_check_command=/usr/local/nagios/libexec/check_nagios > /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' > > > > Nagios Startup process: > > #/etc/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Starting network monitor: nagios > PID TTY TIME CMD > 6984 ? 00:00:00 nagios > [root at localhost etc]# find / -name status.log > [root at localhost etc]# > > as you can see above no status.log generated when nagios starts. > > I would appreciate any help. > > Babak > > Russell Scibetti wrote: > > If there is no status.log file, then Nagios is not actually running. It > > is created on startup and deleted on shutdown of Nagios, leaving behind > > nagios.log (trails of state changes) and status.sav (for state > retention). > > > > Russell Scibetti > > > > Babak Pasdar wrote: > > > > >Question? > > > > > >in the process check with the check_nagios function enabled in cgi.cfg, > it defaults to /usr/local/nagios/var/status.log. However I have no such > thing. I touched a file, but nagios deletes it upon exit. I have two > choices. a status.sav file and nagios.log. Am I missing something? > > > > > >Babak > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > >The most comprehensive and flexible code editor you can use. > > >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > >www.slickedit.com/sourceforge > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > -- > > Russell Scibetti > > Quadrix Solutions, Inc. > > http://www.quadrix.com > > (732) 235-2335, ext. 7038 > > > > > > > > -- > Babak Pasdar > Founder/CTO > IGX Global > 389 Main St. > Hackensack, NJ 07601 > www.igxglobal.com > (201) 498-0555 ext. 2205 > > The electronic message that you have received and any attachments are > solely > intended for the use of the addressee(s) and may contain information that > is > confidential. > > If you receive this email in error, please advise us by responding to > NOC at igxglobal.com. You are required to delete the contents and destroy any > copies immediately. IGX Global is not liable for the views expressed in > this electronic message or for the consequences of any computer viruses > that > may be unknowingly transmitted within this message. > > This electronic message is also subject to standard copyright/ownership > laws. It is not intended to be reproduced, or re-transmitted without the > consent of the originator. > > www.igxglobal.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 20 20:07:44 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 14:07:44 -0500 (EST) Subject: status.log and nagios.log/status.sav In-Reply-To: References: Message-ID: Sorry - bad assumption about a file-based setup. For MySQL based status - try contrib/check_nagios_db from the plugins. -sg On Thu, 20 Feb 2003, Mohney, Greg wrote: > I have this problem too, and I think it might have to do with the fact that > I am using mysql > as a backend for all status information (every single MySQL option turned on > when I built > Nagios). Nagios is running fine, but since it keeps all info in the > database, it doesnt write a > status.log. > > Anyone have a clue on a fix for this? Need to be able to run commands from > the CGIs... > > Greg > > -----Original Message----- > From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com] > Sent: Wednesday, February 19, 2003 1:46 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] status.log and nagios.log/status.sav > > > > I must have nagios by immaculate conception then, because everything works > fine. All my service and host checks are running web itnerface is accessible > and working. > > When I do a ps -ax I get: > > 1530 ? S 0:01 /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg > > However I dont have status.log running on my system, > > # ls -al > total 72 > drwxrwxr-x 4 nagios nagios 4096 Feb 19 19:36 . > drwxrwxr-x 16 nagios nagios 4096 Feb 18 16:54 .. > drwxrwxr-x 2 nagios nagios 4096 Feb 19 00:00 archives > prw-rw---- 1 nagios nagios 0 Feb 19 19:36 nagios.cmd > -rw-r--r-- 1 root root 5 Feb 19 19:36 nagios.lock > -rw-rw-r-- 1 nagios nagios 20799 Feb 19 19:36 nagios.log > drwxrwsr-x 2 nagios nagios 4096 Feb 15 04:18 rw > -rw-rw-r-- 1 nagios nagios 0 Feb 19 19:36 status.sav > > > > nagios.cfg config: > > status_file=/usr/local/nagios/var/status.log > > > > cgi.cfg config: > > nagios_check_command=/usr/local/nagios/libexec/check_nagios > /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' > > > > Nagios Startup process: > > #/etc/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Starting network monitor: nagios > PID TTY TIME CMD > 6984 ? 00:00:00 nagios > [root at localhost etc]# find / -name status.log > [root at localhost etc]# > > as you can see above no status.log generated when nagios starts. > > I would appreciate any help. > > Babak > > Russell Scibetti wrote: > > If there is no status.log file, then Nagios is not actually running. It > > is created on startup and deleted on shutdown of Nagios, leaving behind > > nagios.log (trails of state changes) and status.sav (for state retention). > > > > Russell Scibetti > > > > Babak Pasdar wrote: > > > > >Question? > > > > > >in the process check with the check_nagios function enabled in cgi.cfg, > it defaults to /usr/local/nagios/var/status.log. However I have no such > thing. I touched a file, but nagios deletes it upon exit. I have two > choices. a status.sav file and nagios.log. Am I missing something? > > > > > >Babak > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > >The most comprehensive and flexible code editor you can use. > > >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > >www.slickedit.com/sourceforge > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > -- > > Russell Scibetti > > Quadrix Solutions, Inc. > > http://www.quadrix.com > > (732) 235-2335, ext. 7038 > > > > > > > > -- > Babak Pasdar > Founder/CTO > IGX Global > 389 Main St. > Hackensack, NJ 07601 > www.igxglobal.com > (201) 498-0555 ext. 2205 > > The electronic message that you have received and any attachments are solely > intended for the use of the addressee(s) and may contain information that is > confidential. > > If you receive this email in error, please advise us by responding to > NOC at igxglobal.com. You are required to delete the contents and destroy any > copies immediately. IGX Global is not liable for the views expressed in > this electronic message or for the consequences of any computer viruses that > may be unknowingly transmitted within this message. > > This electronic message is also subject to standard copyright/ownership > laws. It is not intended to be reproduced, or re-transmitted without the > consent of the originator. > > www.igxglobal.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bvierra at rapidgrid.com Thu Feb 20 20:39:48 2003 From: bvierra at rapidgrid.com (bvierra at rapidgrid.com) Date: Thu, 20 Feb 2003 13:39:48 -0600 Subject: Monitoring MS Outlook Web Access In-Reply-To: References: Message-ID: <1045769988.3e552f041313a@www.rapidgrid.com> Not sure with Nagios, but for ASP have him use an iframe with width and height of "0". The url being http://user:pass at domain.com/securepages It will work, I have done it many times :) Billy Quoting "Burnson, Richard" : > Has anyone written any scripts to monitor an OWA system? > What I'm looking for is a method of logging into the > system with a dummy account, open up its inbox and open > an e-mail message. I have a developer working on this > with an html scraper, but he's having issues with the .asp > pages and pop-up login prompts. > > Thanks, > Richard > ? > ??? > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Thu Feb 20 20:56:05 2003 From: syed at nec-labs.com (Syed Ali) Date: Thu, 20 Feb 2003 14:56:05 -0500 Subject: Apache suExec and /usr/local/nagios/etc permissions Message-ID: <951A499AA688EF47A898B45F25BD8EE822CFDC@mailer.nec-labs.com> Hi, I tried $USER2$ in services.cfg as follows: check_snmp!.1.3.6.1.2.1.25.3.3.1.2.1!$USER2$!0:90!0:95 But that does not work, i.e., I get a SNMP problem - No data received from host error. Perhaps it has to do with special characters in the SNMP or string.... Thank you... -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Thursday, February 20, 2003 1:56 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Apache suExec and /usr/local/nagios/etc permissions Make sure apache and nagios have a common group membership and use group permissions. About SNMP community - if you have comon community strings across devices, create a $USERx$ macro in resource.cfg for the community. The CGIs do not read resource.cfg. -sg On Thu, 20 Feb 2003, Syed Ali wrote: > Hello, > > I am running Apache 1.3.20 on RedHat 7.2. > Apache runs under user 'apache'. > Nagios is running under user 'nagios'. > > However, unless I do not give world readable permissions to > /usr/local/nagios/etc I cannot access the web interface for Nagios. > If I give world readable permission to /usr/local/nagios/etc, then users > on the system can view the SNMP RO community in the services.cfg or > checkcommands.cfg file. > So, how do I go about not allowing my users to be able to read the > /usr/local/nagios/etc directory? > > I had disabled suExec on the httpd server for Cricket to run, but I am > willing to give up cricket and enable suEexec. > Reading the Apache suExec documentation, it looks like suExec works with > v2.0 of Apache and the virtual host directive, neither of which I am > using. > Also, it seems that suExec will work if you append the ~ but when I set > an alias as /~nagios /usr/local/nagios/share I get permission denied > reading ~nagios/etc/htpasswd file. > (Which means suExec is not working?) > > > Paste from httpd.conf: > > ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > Alias /nagios/ /usr/local/nagios/share/ > > AllowOverride AuthConfig > Options None > Order allow,deny > Allow from all > > > I also tried: > > Alias /~nagios/ /usr/local/nagios/share/ > > AllowOverride AuthConfig > Options None > Order allow,deny > Allow from all > > > Thank you... > > > -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From anders at dira.no Thu Feb 20 20:02:44 2003 From: anders at dira.no (Anders Grue Nerheim) Date: 20 Feb 2003 20:02:44 +0100 Subject: Gimme your web server config's if its not Apache please :) In-Reply-To: References: Message-ID: <1045767791.2655.2.camel@aten.fqdn.no> yah, I'm in on the "home made" plugins part :) can also host stuff if needed. On Thu, 2003-02-20 at 15:19, Thomas Nilsen wrote: > Tom, > > Excellent work. What about having a list of contributed "home made" plugins as well. The add-on plugins list on www.nagios.org is short compared to all the different plugins that must exist. > > Regards, Thomas > > >-----Original Message----- > >From: Tom Welsh [mailto:twelsh at square-box.com] > >Sent: Thursday, February 20, 2003 10:06 AM > >To: nagios-users at lists.sourceforge.net > >Subject: [Nagios-users] Gimme your web server config's if its > >not Apache > >please :) > > > > > >Hi List, > > > >In my continuing effort to capture different Nagios and web server > >config's I was wondering if anyone would mail me the pertinent parts of > >their web server config file that are required to get nagios running > >sweet on their boxes. > > > >I will take this information and post it on http://demo.square-box.com > >under a new tab called web servers. Obviously I have done the Apache > >1.3.26 config I'm running under but I think the community would benefit > >from other web server config's being available. > > > >Either mail them directly to me at my email below or post them to the > >list and I'll get them that way. > > > >If your really feeling kind you could also flesh out some notes on your > >particular web servers authentication mechanisms. Now that > >would save me > >some reading :) > > > >Cheers > >Tom Welsh > >twelsh at square-box.com > > > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > >The most comprehensive and flexible code editor you can use. > >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > >www.slickedit.com/sourceforge > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS > >when reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > DISCLAIMER: > This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 20 21:01:42 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 15:01:42 -0500 (EST) Subject: Can I generate alert for bandwidth utilization ......? In-Reply-To: <00a401c2d8a3$ffcab9e0$5f7b0297@atul> References: <00a401c2d8a3$ffcab9e0$5f7b0297@atul> Message-ID: It's not possible from Nagios's active check framework because of the limited time a plugin has to run. However it is possible with the passive check framework, but you would have to have your own daemon get multiple samples, calculate a rate, and forward info to Nagios for monitoring. Cricket already does this, so it saves resources by not duplicating functionality. -sg On Thu, 20 Feb 2003, Atul Shrivastava wrote: > Hello Mike, > > Can't it be possible with Nagios ...... > > I can do it with Nagios for SNMP OID Gauge Values but I can't do it for > SNMP OID Counter values ........ because the counter is the increment > from the previous instance and for that I have to substract from the > previous value ..... any help .... Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > > ----- Original Message ----- > From: "Mike McClure" > To: > Sent: Thursday, February 20, 2003 11:06 AM > Subject: Re: [Nagios-users] Can I generate alert for bandwidth utilization ......? > > > > Atul, > > > > Cricket has the functionality you describe. See > > http://cricket.sourceforge.net/support/doc/monitor-thresholds.html > > > > - Mike > > > > > Hello All, > > > > > > I want to generate alerts for Bandwidth Utilization if it goes beyond 90 % for > > > router interface. > > > Can anyone has done it before, Pls tell me. > > > Thanks in advance. > > > > > > Regards and have a nice day, > > > Atul Shrivastava > > > Info Structure Services > > > HCL INFOSYSTEMS LTD. > > > E - 4,5,6 Sector XI, > > > Noida - 201301 > > > Tel: 91-120-2526910,2443013 > > > > > > > > > > > > -- > > Mike McClure, CCIE # 5125, CISSP # 30232 > > PNE Services, Inc. - http://www.pneservices.com > > mmcclure at pneservices.com > > mobile: 913-636-5590 > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From henrique.leandro at varig.com Thu Feb 20 21:22:34 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 20 Feb 2003 17:22:34 -0300 Subject: nmap2nagios.pl Message-ID: <1045772554.16256.2.camel@operacao.varig.com> i'm trying to use this wonderfull script but i have some problems: how do i for obtain diferent files (hosts.cfg , services.cfg and hostgroups.cfg) ? how do i for resolv the ip number for fqdn names ? thanks all -- Henrique leandro Varig S.A ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From networks at wi.rr.com Thu Feb 20 21:33:09 2003 From: networks at wi.rr.com (Networks) Date: 20 Feb 2003 14:33:09 -0600 Subject: Notification Interval Problem In-Reply-To: <000701c2d865$71c0ea40$0101a8c0@main> References: <000701c2d865$71c0ea40$0101a8c0@main> Message-ID: <1045773190.30843.9.camel@elijah> Ok I'm still stuck on this. I know that nagios was sending out more then one notification before. (believe it was set to ever two hours.) but now only one notification is ever sent out. Below are the hosts, services,hostgroup, and nagios config files pertaining to the host. I'm really stuck, and may rebuild the box from scratch if I can't figure this out. The config's are attached. One note, I removed the list of host's from the hosts.cfg file, but they all use the same template, so nothing is different. Thanks for your help. Josh -------------- next part -------------- # General Template ****************************** define host{ name template notifications_enabled 1 ; Host notifications are enabled # event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 0 ; Flap detection is enabled # process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts check_command check-host-alive notification_interval 5 notification_period 24x7 notification_options d,u,r max_check_attempts 4 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # HOST ENTRIED GO BELOW *************************** # If you add a host please follow the guidlines that I've layed out. # NOTE: if your host does not reply to ICMP request you must change the check_command # by specifing it under your define host section with something else. define host{ use template host_name 1st-floor-1 alias 1st Floor Stack 1 parents passport address 172.16.4.240 } define host{ use template host_name 1st-floor-2 alias 1st Floor Stack 2 parents passport address 172.16.4.241 } define host{ use template host_name ap-1-north alias ap-1-north parents 1st-floor-2 address 172.16.36.23 } -------------- next part -------------- ############################################################################## # # NAGIOS.CFG - Sample Main Config File for Nagios 1.0 # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not be so # clear without further explanation. # # Last Modified: 07-04-2002 # ############################################################################## # LOG FILE # This is the main log file where service and host events are logged # for historical purposes. This should be the first option specified # in the config file!!! log_file=/usr/local/nagios/var/nagios.log # OBJECT CONFIGURATION FILE(S) # This is the configuration file in which you define hosts, host # groups, contacts, contact groups, services, etc. I guess it would # be better called an object definition file, but for historical # reasons it isn't. You can split object definitions into several # different config files by using multiple cfg_file statements here. # Nagios will read and process all the config files you define. # This can be very useful if you want to keep command definitions # separate from host and contact definitions... # Plugin commands (service and host check commands) # Arguments are likely to change between different releases of the # plugins, so you should use the same config file provided with the # plugin release rather than the one provided with Nagios. cfg_file=/usr/local/nagios/etc/checkcommands.cfg # Misc commands (notification and event handler commands, etc) cfg_file=/usr/local/nagios/etc/misccommands.cfg # You can split other types of object definitions across several # config files if you wish (as done here), or keep them all in a # single config file. cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg # RESOURCE FILE # This is an optional resource file that contains $USERx$ macro # definitions. Multiple resource files can be specified by using # multiple resource_file definitions. The CGIs will not attempt to # read the contents of resource files, so information that is # considered to be sensitive (usernames, passwords, etc) can be # defined as macros in this file and restrictive permissions (600) # can be placed on this file. resource_file=/usr/local/nagios/etc/resource.cfg # STATUS FILE # This is where the current status of all monitored services and # hosts is stored. Its contents are read and processed by the CGIs. # The contentsof the status file are deleted every time Nagios # restarts. status_file=/usr/local/nagios/var/status.log # NAGIOS USER # This determines the effective user that Nagios should run as. # You can either supply a username or a UID. nagios_user=nagios # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios # EXTERNAL COMMAND OPTION # This option allows you to specify whether or not Nagios should check # for external commands (in the command file defined below). By default # Nagios will *not* check for external commands, just to be on the # cautious side. If you want to be able to use the CGI command interface # you will have to enable this. Setting this value to 0 disables command # checking (the default), other values enable it. check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL # This is the interval at which Nagios should check for external commands. # This value works of the interval_length you specify later. If you leave # that at its default value of 60 (seconds), a value of 1 here will cause # Nagios to check for external commands every minute. If you specify a # number followed by an "s" (i.e. 15s), this will be interpreted to mean # actual seconds rather than a multiple of the interval_length variable. # Note: In addition to reading the external command file at regularly # scheduled intervals, Nagios will also check for external commands after # event handlers are executed. # NOTE: Setting this value to -1 causes Nagios to check the external # command file as often as possible. #command_check_interval=1 #command_check_interval=15s command_check_interval=-1 # EXTERNAL COMMAND FILE # This is the file that Nagios checks for external command requests. # It is also where the command CGI will write commands that are submitted # by users, so it must be writeable by the user that the web server # is running as (usually 'nobody'). Permissions should be set at the # directory level instead of on the file, as the file is deleted every # time its contents are processed. command_file=/usr/local/nagios/var/rw/nagios.cmd # COMMENT FILE # This is the file that Nagios will use for storing host and service # comments. comment_file=/usr/local/nagios/var/comment.log # DOWNTIME FILE # This is the file that Nagios will use for storing host and service # downtime data. downtime_file=/usr/local/nagios/var/downtime.log # LOCK FILE # This is the lockfile that Nagios will use to store its PID number # in when it is running in daemon mode. lock_file=/usr/local/nagios/var/nagios.lock # TEMP FILE # This is a temporary file that is used as scratch space when Nagios # updates the status log, cleans the comment file, etc. This file # is created, used, and deleted throughout the time that Nagios is # running. temp_file=/usr/local/nagios/var/nagios.tmp # LOG ROTATION METHOD # This is the log rotation method that Nagios should use to rotate # the main log file. Values are as follows.. # n = None - don't rotate the log # h = Hourly rotation (top of the hour) # d = Daily rotation (midnight every day) # w = Weekly rotation (midnight on Saturday evening) # m = Monthly rotation (midnight last day of month) log_rotation_method=d # LOG ARCHIVE PATH # This is the directory where archived (rotated) log files should be # placed (assuming you've chosen to do log rotation). log_archive_path=/usr/local/nagios/var/archives # LOGGING OPTIONS # If you want messages logged to the syslog facility, as well as the # NetAlarm log file set this option to 1. If not, set it to 0. use_syslog=1 # NOTIFICATION LOGGING OPTION # If you don't want notifications to be logged, set this value to 0. # If notifications should be logged, set the value to 1. log_notifications=1 # SERVICE RETRY LOGGING OPTION # If you don't want service check retries to be logged, set this value # to 0. If retries should be logged, set the value to 1. log_service_retries=1 # HOST RETRY LOGGING OPTION # If you don't want host check retries to be logged, set this value to # 0. If retries should be logged, set the value to 1. log_host_retries=1 # EVENT HANDLER LOGGING OPTION # If you don't want host and service event handlers to be logged, set # this value to 0. If event handlers should be logged, set the value # to 1. log_event_handlers=1 # INITIAL STATES LOGGING OPTION # If you want Nagios to log all initial host and service states to # the main log file (the first time the service or host is checked) # you can enable this option by setting this value to 1. If you # are not using an external application that does long term state # statistics reporting, you do not need to enable this option. In # this case, set the value to 0. log_initial_states=0 # EXTERNAL COMMANDS LOGGING OPTION # If you don't want Nagios to log external commands, set this value # to 0. If external commands should be logged, set this value to 1. # Note: This option does not include logging of passive service # checks - see the option below for controlling whether or not # passive checks are logged. log_external_commands=1 # PASSIVE SERVICE CHECKS LOGGING OPTION # If you don't want Nagios to log passive service checks, set this # value to 0. If passive service checks should be logged, set this # value to 1. log_passive_service_checks=1 # GLOBAL HOST AND SERVICE EVENT HANDLERS # These options allow you to specify a host and service event handler # command that is to be run for every host or service state change. # The global event handler is executed immediately prior to the event # handler that you have optionally specified in each host or # service definition. The command argument is the short name of a # command definition that you define in your host configuration file. # Read the HTML docs for more information. #global_host_event_handler=somecommand #global_service_event_handler=somecommand # INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" service checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all service checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! This is not a # good thing for production, but is useful when testing the # parallelization functionality. # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds inter_check_delay_method=s # SERVICE CHECK INTERLEAVE FACTOR # This variable determines how service checks are interleaved. # Interleaving the service checks allows for a more even # distribution of service checks and reduced load on remote # hosts. Setting this value to 1 is equivalent to how versions # of Nagios previous to 0.0.5 did service checks. Set this # value to s (smart) for automatic calculation of the interleave # factor unless you have a specific reason to change it. # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. service_interleave_factor=s # MAXIMUM CONCURRENT SERVICE CHECKS # This option allows you to specify the maximum number of # service checks that can be run in parallel at any given time. # Specifying a value of 1 for this variable essentially prevents # any service checks from being parallelized. A value of 0 # will not restrict the number of concurrent checks that are # being executed. max_concurrent_checks=0 # SERVICE CHECK REAPER FREQUENCY # This is the frequency (in seconds!) that Nagios will process # the results of services that have been checked. service_reaper_frequency=5 # SLEEP TIME # This is the number of seconds to sleep between checking for system # events and service checks that need to be run. I would recommend # *not* changing this from its default value of 1 second. sleep_time=1 # TIMEOUT VALUES # These options control how much time Nagios will allow various # types of commands to execute before killing them off. Options # are available for controlling maximum time allotted for # service checks, host checks, event handlers, notifications, the # ocsp command, and performance data commands. All values are in # seconds. service_check_timeout=30 host_check_timeout=15 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 # RETAIN STATE INFORMATION # This setting determines whether or not Nagios will save state # information for services and hosts before it shuts down. Upon # startup Nagios will reload all saved service and host state # information before starting to monitor. This is useful for # maintaining long-term data on state statistics, etc, but will # slow Nagios down a bit when it (re)starts. Since its only # a one-time penalty, I think its well worth the additional # startup delay. retain_state_information=1 # STATE RETENTION FILE # This is the file that Nagios should use to store host and # service state information before it shuts down. The state # information in this file is also read immediately prior to # starting to monitor the network when Nagios is restarted. # This file is used only if the preserve_state_information # variable is set to 1. state_retention_file=/usr/local/nagios/var/status.sav # RETENTION DATA UPDATE INTERVAL # This setting determines how often (in minutes) that Nagios # will automatically save retention data during normal operation. # If you set this value to 0, Nagios will not save retention # data at regular interval, but it will still save retention # data before shutting down or restarting. If you have disabled # state retention, this option has no effect. retention_update_interval=60 # USE RETAINED PROGRAM STATE # This setting determines whether or not Nagios will set # program status variables based on the values saved in the # retention file. If you want to use retained program status # information, set this value to 1. If not, set this value # to 0. use_retained_program_state=0 # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files. Setting this to 60 means # that each interval is one minute long (60 seconds). Other settings # have not been tested much, so your mileage is likely to vary... interval_length=60 # AGRESSIVE HOST CHECKING OPTION # If you don't want to turn on agressive host checking features, set # this value to 0 (the default). Otherwise set this value to 1 to # enable the agressive check option. Read the docs for more info # on what agressive host check is or check out the source code in # base/checks.c use_agressive_host_checking=1 # SERVICE CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # service checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of service checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_service_checks=1 # PASSIVE CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # service checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_service_checks=1 # NOTIFICATIONS OPTION # This determines whether or not Nagios will sent out any host or # service notifications when it is initially (re)started. # Values: 1 = enable notifications, 0 = disable notifications enable_notifications=1 # EVENT HANDLER USE OPTION # This determines whether or not Nagios will run any host or # service event handlers when it is initially (re)started. Unless # you're implementing redundant hosts, leave this option enabled. # Values: 1 = enable event handlers, 0 = disable event handlers enable_event_handlers=1 # PROCESS PERFORMANCE DATA OPTION # This determines whether or not Nagios will process performance # data returned from service and host checks. If this option is # enabled, host performance data will be processed using the # host_perfdata_command (defined below) and service performance # data will be processed using the service_perfdata_command (also # defined below). Read the HTML docs for more information on # performance data. # Values: 1 = process performance data, 0 = do not process performance data process_performance_data=0 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata # OBSESS OVER SERVICE CHECKS OPTION # This determines whether or not Nagios will obsess over service # checks and run the ocsp_command defined below. Unless you're # planning on implementing distributed monitoring, do not enable # this option. Read the HTML docs for more information on # implementing distributed monitoring. # Values: 1 = obsess over services, 0 = do not obsess (default) obsess_over_services=0 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND # This is the command that is run for every service check that is # processed by Nagios. This command is executed only if the # obsess_over_service option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on implementing distributed monitoring. #ocsp_command=somecommand # ORPHANED SERVICE CHECK OPTION # This determines whether or not Nagios will periodically # check for orphaned services. Since service checks are not # rescheduled until the results of their previous execution # instance are processed, there exists a possibility that some # checks may never get rescheduled. This seems to be a rare # problem and should not happen under normal circumstances. # If you have problems with service checks never getting # rescheduled, you might want to try enabling this option. # Values: 1 = enable checks, 0 = disable checks check_for_orphaned_services=0 # SERVICE FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of service results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_service_freshness=1 # FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of service check results. If you have # disabled service freshness checking, this option has no effect. freshness_check_interval=60 # AGGREGATED STATUS UPDATES # This option determines whether or not Nagios will # aggregate updates of host, service, and program status # data. Normally, status data is updated immediately when # a change occurs. This can result in high CPU loads if # you are monitoring a lot of services. If you want Nagios # to only refresh status data every few seconds, disable # this option. # Values: 1 = enable aggregate updates, 0 = disable aggregate updates aggregate_status_updates=1 # AGGREGATED STATUS UPDATE INTERVAL # Combined with the aggregate_status_updates option, # this option determines the frequency (in seconds!) that # Nagios will periodically dump program, host, and # service status data. If you are not using aggregated # status data updates, this option has no effect. status_update_interval=15 # FLAP DETECTION OPTION # This option determines whether or not Nagios will try # and detect hosts and services that are "flapping". # Flapping occurs when a host or service changes between # states too frequently. When Nagios detects that a # host or service is flapping, it will temporarily supress # notifications for that host/service until it stops # flapping. Flap detection is very experimental, so read # the HTML documentation before enabling this feature! # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES # Read the HTML documentation on flap detection for # an explanation of what this option does. This option # has no effect if flap detection is disabled. low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # DATE FORMAT OPTION # This option determines how short dates are displayed. Valid options # include: # us (MM-DD-YYYY HH:MM:SS) # euro (DD-MM-YYYY HH:MM:SS) # iso8601 (YYYY-MM-DD HH:MM:SS) # strict-iso8601 (YYYY-MM-DDTHH:MM:SS) # date_format=us # ILLEGAL OBJECT NAME CHARACTERS # This options allows you to specify illegal characters that cannot # be used in host names, service descriptions, or names of other # object types. illegal_object_name_chars=`~!$%^&*|'"<>?,()= # ILLEGAL MACRO OUTPUT CHARACTERS # This options allows you to specify illegal characters that are # stripped from macros before being used in notifications, event # handlers, etc. This DOES NOT affect macros used in service or # host check commands. # The following macros are stripped of the characters you specify: # $OUTPUT$, $PERFDATA$ illegal_macro_output_chars=`~$&|'"<> # ADMINISTRATOR EMAIL ADDRESS # The email address of the administrator of *this* machine (the one # doing the monitoring). Nagios never uses this value itself, but # you can access this value by using the $ADMINEMAIL$ macro in your # notification commands. admin_email=nagios # ADMINISTRATOR PAGER NUMBER/ADDRESS # The pager number/address for the administrator of *this* machine. # Nagios never uses this value itself, but you can access this # value by using the $ADMINPAGER$ macro in your notification # commands. admin_pager=jrobinett at starkinvestments.com # EOF (End of file) -------------- next part -------------- ################################################################################ # Sample object config file for Nagios 1.0 # # Read the documentation for more information on this configuration file. I've # provided some comments here, but things may not be so clear without further # explanation, so make sure to read the HTML documentation! # # Last Modified: 09-17-2002 # ################################################################################ ################################################################################ # SERVICE DEFINITIONS # # SYNTAX: # ################################################################################ # Generic service definition template define service{ name template active_checks_enabled 1 ; Active service checks are enabled # passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Activ # obsess_over_service 0 ; We should obsess over this serf necessary) # check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled # event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 0 ; Flap detection is enabled # process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information acrostarts # is_volatile 0 check_period 24x7 retry_check_interval 1 notification_period 24x7 register 0 ; DONT REGISTER THIS DEFINITION max_check_attempts 3 normal_check_interval 5 check_command check_ping!200.0,60%!500.0,80% notification_options c,r } define service{ use template ; Name of service template to use service_description DNS check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options c,r check_command check_dns hostgroup_name dns-group } define service{ use template ; Name of service template to use service_description SSH check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options c,r check_command check_ssh hostgroup_name ssh-group } define service{ use template ; Name of service template to use service_description WWW check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options c,r check_command check_http hostgroup_name www-group } define service{ use template ; Name of service template to use service_description HP Jet Direct check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups printer-contact notification_interval 10 notification_period 24x7 notification_options n check_command check_hpjd hostgroup_name hp-printers } define service{ use template ; Name of service template to use service_description SMTP check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options c,r check_command check_smtp hostgroup_name smtp-group } define service{ use template ; Name of service template to use service_description FTP check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options c,r check_command check_ftp hostgroup_name ftp-group } # Service definition define service{ use template ; Name of service template to use service_description PING Page is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options r,c check_command check_ping!300.0,80%!500.0,100% hostgroup_name ping-group } define service{ use template ; Name of service template to use service_description PING NoPage is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups printer-contact notification_interval 10 notification_period 24x7 notification_options r,c check_command check_ping!300.0,80%!500.0,100% hostgroup_name all-printers } # Service definition define service{ use template ; Name of service template to use service_description WINDOWS SMB is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 10 notification_period 24x7 notification_options r,c check_command check_smbstatus hostgroup_name smb-group } -------------- next part -------------- ################################################################################ # Sample object config file for Nagios 1.0 # # Read the documentation for more information on this configuration file. I've # provided some comments here, but things may not be so clear without further # explanation, so make sure to read the HTML documentation! # # Last Modified: 03-07-2002 # ################################################################################ ################################################################################ # HOST GROUP DEFINITIONS # # SYNTAX: # ################################################################################ #***** SERVICE GROUP DEFINITIONS ****** # DEFAULT PING GROUP (Everything we ping) define hostgroup{ hostgroup_name ping-group alias Ping Group contact_groups linux-admins members 1st-floor-1,1st-floor-2,ap-1-north,ap-1-south,2nd-floor-1,2nd-floor-2,ap-2-north,ap-2-south,3rd-floor-2,3rd-floor-3,ap-3-south,3rd-floor-1,ap-3-north,pricingsvr,4th-floor-1,ap-4-north,aa103275,aa103276,adpserver,alfred,ap-ll-north,ap-ll-south,appsvr02,batcave,batch-server,batman,bloomberg-1,bloomberg-2,bridge-1,bridge-2,bridge-api-1,bridge-api-2,btrade-1,btrade-2,cobblepot,console0,console1,cvsserver,definity,emccontrol,environ,exchange,exchtest,extranet,filesvr01,filesvr02,first-option-1,first-option-hsrp,frank,ftp01,glbx-1,glbx-2,glbx-hsrp,gordon,greatplains,intranet,intuity,joker,lower-floor-1,newman,oswald,passport,printsvr,rightfax,sispdevdb01,sispdevora,starkpdc,stark-tr,starkwh,sunapp001,sunapp002,sundb001,sundb002,sunapp003,sundb004,svr-rack-1,svr-rack-2,svr-rack-3,switch1,switch2,termserv01,termserv02,trade-floor-1,trade-floor-2,trade-floor-3,trade-floor-4,trade-floor-5,trade-floor-6,trade-floor-7,trade-floor-8,traderoute-1,veritas,vpn,VSS01,webmail,posrec,elijah,slack } # DNS SERVERS define hostgroup{ hostgroup_name dns-group alias DNS Servers contact_groups linux-admins members riddler,frank,joker } # FTP SERVERS define hostgroup{ hostgroup_name ftp-group alias FTP Servers contact_groups linux-admins members ftp01,intranet,cobblepot } # HP PRINTERS define hostgroup{ hostgroup_name hp-printers alias HP Printers contact_groups printer-contact members Trader1,Trader3,Trader4,Trader7,Trader8,Trader9,Admins3,Legals1,Infras1,Backof2,Trader10 } # PRINTERS define hostgroup{ hostgroup_name all-printers alias All Printers contact_groups printer-contact members Admins3,Infras1,Infras2,Admins3,Legals1,Develo2,Develo1,Backof1,Admins2,Admins2,Trader9,Trader8,Trader7,Trader5,Trader4,Trader3,Trader1,Backof2,Trader10,testbox } # SMTP SERVERS define hostgroup{ hostgroup_name smtp-group alias SMTP Servers contact_groups linux-admins members newman,exchtest,oswald } # SSH SERVERS define hostgroup{ hostgroup_name ssh-group alias SSH Servers contact_groups linux-admins members newman,oswald,cobblepot,cobblepot,gordon } # WWW SERVERS define hostgroup{ hostgroup_name www-group alias HTTP Servers contact_groups linux-admins members slack,intranet,elijah,webmail } # SMB SERVERS define hostgroup{ hostgroup_name smb-group alias SMB Servers (File Sever) contact_groups linux-admins members filesvr01,filesvr02,VSS01,adpserver,appsvr02,batch-server,exchange,greatplains,printsvr,starkpdc,starkwh,termserv01,termserv02 } From syed at nec-labs.com Thu Feb 20 21:52:55 2003 From: syed at nec-labs.com (Syed Ali) Date: Thu, 20 Feb 2003 15:52:55 -0500 Subject: Apache suExec and /usr/local/nagios/etc permissions Message-ID: <951A499AA688EF47A898B45F25BD8EE822CFE2@mailer.nec-labs.com> I guess you can ignore the previous post, I got it to work by using the macro in checkcommands.cfg instead of services.cfg. Thank you... -----Original Message----- From: Syed Ali Sent: Thursday, February 20, 2003 2:56 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Apache suExec and /usr/local/nagios/etc permissions Hi, I tried $USER2$ in services.cfg as follows: check_snmp!.1.3.6.1.2.1.25.3.3.1.2.1!$USER2$!0:90!0:95 But that does not work, i.e., I get a SNMP problem - No data received from host error. Perhaps it has to do with special characters in the SNMP or string.... Thank you... -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Thursday, February 20, 2003 1:56 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Apache suExec and /usr/local/nagios/etc permissions Make sure apache and nagios have a common group membership and use group permissions. About SNMP community - if you have comon community strings across devices, create a $USERx$ macro in resource.cfg for the community. The CGIs do not read resource.cfg. -sg On Thu, 20 Feb 2003, Syed Ali wrote: > Hello, > > I am running Apache 1.3.20 on RedHat 7.2. > Apache runs under user 'apache'. > Nagios is running under user 'nagios'. > > However, unless I do not give world readable permissions to > /usr/local/nagios/etc I cannot access the web interface for Nagios. > If I give world readable permission to /usr/local/nagios/etc, then users > on the system can view the SNMP RO community in the services.cfg or > checkcommands.cfg file. > So, how do I go about not allowing my users to be able to read the > /usr/local/nagios/etc directory? > > I had disabled suExec on the httpd server for Cricket to run, but I am > willing to give up cricket and enable suEexec. > Reading the Apache suExec documentation, it looks like suExec works with > v2.0 of Apache and the virtual host directive, neither of which I am > using. > Also, it seems that suExec will work if you append the ~ but when I set > an alias as /~nagios /usr/local/nagios/share I get permission denied > reading ~nagios/etc/htpasswd file. > (Which means suExec is not working?) > > > Paste from httpd.conf: > > ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > Alias /nagios/ /usr/local/nagios/share/ > > AllowOverride AuthConfig > Options None > Order allow,deny > Allow from all > > > I also tried: > > Alias /~nagios/ /usr/local/nagios/share/ > > AllowOverride AuthConfig > Options None > Order allow,deny > Allow from all > > > Thank you... > > > -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark_leddy at hotmail.com Thu Feb 20 22:03:26 2003 From: mark_leddy at hotmail.com (Mark Leddy) Date: Thu, 20 Feb 2003 21:03:26 +0000 Subject: Monitoring MS Outlook Web Access Message-ID: I have used the httpd check to check Exchange 5.5 OWA by looking for a text string "Microsoft Outlook Web Access (R)" or something like that. Our Exchange 5.5 server get ASP error all the time... when the error occurs the sting is not found and we have our alert. What version of Exchange OWA (5.5 /Ex 2000) are you trying to monitor and what types of actions are you trying to monitor for? Just curious.. Mark _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rburnson at cps.k12.il.us Thu Feb 20 22:11:06 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 20 Feb 2003 15:11:06 -0600 Subject: Monitoring MS Outlook Web Access Message-ID: We are actually in the process of an Exchange upgrade, so I have both 5.5 and 2000. Essentially I am trying to go beyond just checking that http responds, but actually simulate a user session by logging in and opening an e-mail. Richard -----Original Message----- From: Mark Leddy [mailto:mark_leddy at hotmail.com] Sent: Thursday, February 20, 2003 3:03 PM To: rburnson at cps.k12.il.us; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring MS Outlook Web Access I have used the httpd check to check Exchange 5.5 OWA by looking for a text string "Microsoft Outlook Web Access (R)" or something like that. Our Exchange 5.5 server get ASP error all the time... when the error occurs the sting is not found and we have our alert. What version of Exchange OWA (5.5 /Ex 2000) are you trying to monitor and what types of actions are you trying to monitor for? Just curious.. Mark _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From T-VANZEE at govst.edu Thu Feb 20 22:19:20 2003 From: T-VANZEE at govst.edu (Van Zee, Timothy) Date: Thu, 20 Feb 2003 15:19:20 -0600 Subject: Monitoring MS Outlook Web Access Message-ID: <7F76AA41FC7DD5119B1E00508BAF0444030B46FC@gsmail.govst.edu> We also use Exchange 2000. If the Information Store is up and running and the temp folder where OWA temp files are stored has space the user will be able to access their mailbox and open messages. It may be easier to use the nt plugin for nagios to monitor drive space for the drive with the OWA temp folder and monitor the Information Store service. I am just beginning with Nagios, so I have not done it yet, but hopefully will have time within the next week or two. Tim Van Zee ITS Network Specialist Governors State University ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From NSosa at oas.org Thu Feb 20 22:18:42 2003 From: NSosa at oas.org (Sosa, Nelson) Date: Thu, 20 Feb 2003 16:18:42 -0500 Subject: Returned mail: User unknown Message-ID: <86FC2125391CDE4C842D0407D581556001A1CFAE@condorito.oas.org> The original message was received at Thu, 20 Feb 2003 16:22:46 0500 ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- ... while talking to mail.Outlook: >>> RCPT To: <<< 550 ... User unknown 550 ... User unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1592 bytes Desc: not available URL: From syed at nec-labs.com Thu Feb 20 22:37:52 2003 From: syed at nec-labs.com (Syed Ali) Date: Thu, 20 Feb 2003 16:37:52 -0500 Subject: Notification Interval Problem Message-ID: <951A499AA688EF47A898B45F25BD8EE822CFE4@mailer.nec-labs.com> Any reason for not having notification_interval in your hosts.cfg file? For your services file you have a notification_interval of 10 minutes. Thank you, Syed Ali (609) 951-2989 -----Original Message----- From: Networks [mailto:networks at wi.rr.com] Sent: Thursday, February 20, 2003 3:33 PM To: Nagios Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Notification Interval Problem Ok I'm still stuck on this. I know that nagios was sending out more then one notification before. (believe it was set to ever two hours.) but now only one notification is ever sent out. Below are the hosts, services,hostgroup, and nagios config files pertaining to the host. I'm really stuck, and may rebuild the box from scratch if I can't figure this out. The config's are attached. One note, I removed the list of host's from the hosts.cfg file, but they all use the same template, so nothing is different. Thanks for your help. Josh ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From networks at wi.rr.com Thu Feb 20 22:56:22 2003 From: networks at wi.rr.com (Networks) Date: 20 Feb 2003 15:56:22 -0600 Subject: Notification Interval Problem In-Reply-To: <951A499AA688EF47A898B45F25BD8EE822CFE4@mailer.nec-labs.com> References: <951A499AA688EF47A898B45F25BD8EE822CFE4@mailer.nec-labs.com> Message-ID: <1045778182.30842.12.camel@elijah> notification_interval is in my hosts.cfg file. Line # 12 It is set to 10 minutes also. Thanks, Josh On Thu, 2003-02-20 at 15:37, Syed Ali wrote: > > Any reason for not having notification_interval in your hosts.cfg file? > For your services file you have a notification_interval of 10 minutes. > > Thank you, > Syed Ali > (609) 951-2989 > > > -----Original Message----- > From: Networks [mailto:networks at wi.rr.com] > Sent: Thursday, February 20, 2003 3:33 PM > To: Nagios > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Notification Interval Problem > > > Ok I'm still stuck on this. I know that nagios was sending out more then > one notification before. (believe it was set to ever two hours.) but now > only one notification is ever sent out. > > Below are the hosts, services,hostgroup, and nagios config files > pertaining to the host. > > I'm really stuck, and may rebuild the box from scratch if I can't figure > this out. > > The config's are attached. > One note, I removed the list of host's from the hosts.cfg file, but they > all use the same template, so nothing is different. > > Thanks for your help. > > Josh > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcarro10 at sprintspectrum.com Thu Feb 20 22:59:47 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 20 Feb 2003 15:59:47 -0600 Subject: Monitoring Windows systems... Message-ID: http://nsclient.ready2run.nl/ > -----Original Message----- > From: Perez, Percy [mailto:PercyP at versa-valves.com] > Sent: Wednesday, February 19, 2003 8:01 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring Windows systems... > > > Hello Everyone, > > I just installed Nagios under a Debian/hppa system. > In the past I used Netsaint with the plugins supplied which > allowed me to > monitor nt systems. > Are there any new plugins for nagios? > Sorry for posting this basic question, but the Mailing-List > Search-engine in > http://sourceforge.net/mailarchive/forum.php?forum_id=1873 is down. > I get "Forum not found" > > Thank you in advance. > > Percy > Proprietary and Confidential: The information transmitted is > intended only > for the person or entity to which 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 in error, please contact > the sender and > delete the material from any computer. > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie at bclnz.net Thu Feb 20 23:19:11 2003 From: jamie at bclnz.net (Jamie) Date: Fri, 21 Feb 2003 11:19:11 +1300 Subject: nmap2nagios.pl References: <1045772554.16256.2.camel@operacao.varig.com> Message-ID: <056d01c2d92e$1956d800$b58031ca@bcl977307> > i'm trying to use this wonderfull script but i have some problems: > > how do i for obtain diferent files (hosts.cfg , services.cfg and > hostgroups.cfg) ? cut & paste? > > how do i for resolv the ip number for fqdn names ? -DNS > > thanks all > > > > -- > Henrique leandro > Varig S.A > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwichman at zantaz.com Thu Feb 20 23:36:44 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Thu, 20 Feb 2003 14:36:44 -0800 Subject: NSCA daemon deactivated due to excessive incoing connections? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4243@zanexch.zantaz.com> I have 2 distributed servers and 1 central nagios server. The central nagios server in /var/log/messages I see regular entries "xinetd[717]: Deactivating service nsca due to excessive incoming connections. Restarting in 30 seconds." And then the service is activated again. I'm rather surprised by it as I don't really have that many services that I'm monitoring.. around 130 in total. Any ideas what I should look at to rectify these messages? Thanks, Gerald This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rburnson at cps.k12.il.us Thu Feb 20 23:48:25 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 20 Feb 2003 16:48:25 -0600 Subject: Monitoring MS Outlook Web Access Message-ID: We still plan on monitoring the Info stores and temp folders as well, but the Exchange admins wanted to check the full interface. Richard -----Original Message----- From: Van Zee, Timothy [mailto:T-VANZEE at govst.edu] Sent: Thursday, February 20, 2003 3:19 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring MS Outlook Web Access We also use Exchange 2000. If the Information Store is up and running and the temp folder where OWA temp files are stored has space the user will be able to access their mailbox and open messages. It may be easier to use the nt plugin for nagios to monitor drive space for the drive with the OWA temp folder and monitor the Information Store service. I am just beginning with Nagios, so I have not done it yet, but hopefully will have time within the next week or two. Tim Van Zee ITS Network Specialist Governors State University ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rburnson at cps.k12.il.us Thu Feb 20 23:52:10 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 20 Feb 2003 16:52:10 -0600 Subject: Monitoring MS Outlook Web Access Message-ID: Thanks! That gets me a step closer, unfortunately now the perl script isn't passing the "@" character. Even with "\" in front. The developer is now looking at modifying the perl module to see if it is being stripped out. At least by hand we can get the form page that the script wants though. Richard -----Original Message----- From: bvierra at rapidgrid.com [mailto:bvierra at rapidgrid.com] Sent: Thursday, February 20, 2003 1:40 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring MS Outlook Web Access Not sure with Nagios, but for ASP have him use an iframe with width and height of "0". The url being http://user:pass at domain.com/securepages It will work, I have done it many times :) Billy Quoting "Burnson, Richard" : > Has anyone written any scripts to monitor an OWA system? > What I'm looking for is a method of logging into the > system with a dummy account, open up its inbox and open > an e-mail message. I have a developer working on this > with an html scraper, but he's having issues with the .asp > pages and pop-up login prompts. > > Thanks, > Richard > ? > ??? > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jarett_DeAngelis at fujifilm.com Fri Feb 21 00:26:52 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Thu, 20 Feb 2003 18:26:52 -0500 Subject: GD installed itself where it shouldn't have? Message-ID: Hi all, Just wanted to let you know I seem to have found a little problem with the way the GD libs install: (I installed the GD libs, JPEG and PNG libs before installing Nagios, btw) For a while now I haven't been able to access the visually-oriented reports and the status maps. I was ignoring the problem because I had more pressing concerns, but finally decided to do something about it. Checked the httpd logs, and low and behold: everything installed in /usr/lib except GD, which installed in /usr/local/lib. This was apparently why Nagios couldn't find it. Just copied them over and it worked. FYI. :) -Jarett ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnichols at pbp.net Fri Feb 21 00:42:04 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Thu, 20 Feb 2003 15:42:04 -0800 (PST) Subject: check_load opinion Message-ID: check_load_ssh!5.00,5.05,5.50!9.00,9.10,9,50 Does that look good? I just want it to bug me if the load average gets over a certain level. I have a box that likes to go insane on occasion and the load average hits 250.0 before I can get to it. Services still respond, albeit slowly.. that's why the normal Nagios checks don't alert me to the problem. Otherwise, "check by SSH" has saved me a ton of time & headache. :-) Thanks! -Jonathan ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From securityguy at ikano.com Fri Feb 21 00:53:12 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Thu, 20 Feb 2003 16:53:12 -0700 Subject: Obsessing over Obsessing... solution In-Reply-To: <004f01c2d8a3$755dddf0$ddd0d0cd@pendleton> References: <004f01c2d8a3$755dddf0$ddd0d0cd@pendleton> Message-ID: <000401c2d93b$3a8c0d30$ddd0d0cd@pendleton> Well, I figured out where my folly was. The send_nsca.cfg file was not readable by the nagios user. Oops... Thanks, Robert S. Galloway Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Robert S. Galloway Sent: Wednesday, February 19, 2003 10:47 PM To: 'Burnson, Richard'; 'nagios-users' Subject: RE: [Nagios-users] Obsessing over Obsessing... -- ocsp_command is running -- send_nsca is broken Hello everyone, I have some new information to add to this. I've setup my submit_check_result script to append the output to a file rather than pipe it to send_nsca. Example: >> /usr/local/nagios/var/ocsp-test.log instead of: | /usr/local/nagios/bin/send_nsca etc... After doing this, I can confirm that Nagios is obsessing over the service checks as documented in the distributed monitoring docs. So, it appears that the issue is specifically with send_nsca. I'm going to keep digging in on it. One thing that I can tell you is if I run my submit_check_result script (copied from the docs) from the command line, everything goes perfectly. But if nagios runs it, it seems to be broken. Thanks, Robert S. Galloway Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com 801-415-8089 ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 21 01:25:50 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 19:25:50 -0500 (EST) Subject: Using the avail.cgi script for reporting In-Reply-To: <20030220173757.32608.qmail@web21508.mail.yahoo.com> References: <20030220173757.32608.qmail@web21508.mail.yahoo.com> Message-ID: If Chet says ok - it can be added to the plugins/contrib-reporting dir :) -sg On Thu, 20 Feb 2003, Jon Lyons wrote: > > Wow, Chet should make a website or add it to SourceForge site... :) > Lane Williams wrote:I got a script from Chet Luther, modified it heavily and now it looks > something like what I have below. You obviously can format the output > however you wish. I used this just for testing the functionality so I > suggest using your own formatting. The main line to pay attention to is > the "my $request" variable which does a "GET". I've used this idea to > output the data to a CSV file, and just dump it to a hash and formatted > the output within the script. > > Hope this helps..... also attached the file in-case email screws up the > formatting. > > #################BEGIN SCRIPT############################# > #!/usr/local/perl/bin/perl -w > # > # Parse the outputs from Nagios' avail.cgi into an HTML table. > # > > use Date::Manip; > use LWP::UserAgent; > use Time::Local; > use Data::Dumper; > $~ = ReportFormat; > @stime = ("07","00",00); > @etime = (18,30,00); > > $date = `date +"\%m \%d \%Y"`; #month date year > chomp $date; > > ($mon,$day,$year)=split ' ', $date; > > #$sec1x = &UnixDate ($epoch_date1x, "%s"); > #$sec2x = &UnixDate ($epoch_date2x, "%s"); > > use vars qw($agent); > #use strict; > > my $nagios_url = "http://yoursite/nagios/cgi-bin"; > > $agent = new LWP::UserAgent(); > $agent->agent("Mozilla/6.0"); > $agent->timeout(600); > > my $request = new HTTP::Request(GET => > "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mon&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2]&emon=$mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[2]&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&backtrack=4&csvoutput="); > > $request->header('Accept' => 'text/html'); > $request->authorization_basic('username', 'password'); > > my $response = $agent->request($request); > > if (!$response->is_success()) { > exit; > } > (@response) = split '\n' , $response->content(); > > foreach $line (@response){ > > #print > "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; > if ($line !~ /^HOST_NAME/){ > > (@info) = split ',' , $line; > @info[0] = map {uc} @info[0]; > @info[0] =~ s/"//g; > push > @{$sys_avail{$info[0]}},($info[7],$info[8],$info[16],$info[17]); > ##host_name total_time_up percent_total_time_up total_time_down > percent_total_time_down## > } > } > > > foreach $key (sort keys %sys_avail){ > > write;} > > format ReportFormat_TOP = > > =========================================================== > System Availability > for > @ $mon, $day, $year > @<:@< - @<:@< > $stime[0], $stime[1], $etime[0], $etime[1] > page@||| > $% > =========================================================== > HostName Percent of Uptime Percent Down Time > ___________________________________________________________ > . > format ReportFormat = > > @<<<<<<<<<<<<<<<<< @<<<<<<< @<<<<<<<< > $key, "@{$sys_avail{$key}}[1]","@{$sys_avail{$key}}[3]" > . > > ###############################END SCRIPT############################# > > > > > > > On Thu, 2003-02-20 at 11:47, bill lewis wrote: > > I have some folks that would like reports in csv format on things that > > nagios > > is already keeping track of. I would like to run the avail.cgi from a > > script > > to generate the reports. I have tried setting the environment variables > > suggested and cannot get past more that the first page. > > > > Is there a way to do this? > > > > thanks, > > Bill Lewis > > > > > > ----- > > William L. Lewis > > email: william.l.lewis at usa.net > > "They that can give up essential liberty to obtain a little temporary > > safety > > deserve neither liberty nor safety." > > --Ben Franklin > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > #!/usr/local/perl/bin/perl -w > # > # Parse the outputs from Nagios' avail.cgi into an HTML table. > > > use Date::Manip; > use LWP::UserAgent; > use Time::Local; > use Data::Dumper; > $~ = ReportFormat; > @stime = ("07","00",00); > @etime = (18,30,00); > > $date = `date +"\%m \%d \%Y"`; #month date year > chomp $date; > > ($mon,$day,$year)=split ' ', $date; > > #$sec1x = &UnixDate ($epoch_date1x, "%s"); > #$sec2x = &UnixDate ($epoch_date2x, "%s"); > > use vars qw($agent); > #use strict; > > my $nagios_url = "http://yoursite/nagios/cgi-bin"; > > $agent = new LWP::UserAgent(); > $agent->agent("Mozilla/6.0"); > $agent->timeout(600); > > my $request = new HTTP::Request(GET => "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mon&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2] > &emon=$mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[2]&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&backtrack=4&csvoutput="); > > $request->header('Accept' => 'text/html'); > $request->authorization_basic('username', 'password'); > > my $response = $agent->request($request); > > if (!$response->is_success()) { > exit; > } > (@response) = split '\n' , $response->content(); > > foreach $line (@response){ > > #print "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; > if ($line !~ /^HOST_NAME/){ > > (@info) = split ',' , $line; > @info[0] = map {uc} @info[0]; > @info[0] =~ s/"//g; > push @{$sys_avail{$info[0]}}, ($info[7],$info[8],$info[16],$info[17]); ##host_name total_time_up percent_total_time_up total_time down percent_total_time_down## > } > } > > > foreach $key (sort keys %sys_avail){ > > write;} > > format ReportFormat_TOP = > > =========================================================== > System Availability > for > @ $mon, $day, $year > @<:@< - @<:@< > $stime[0], $stime[1], $etime[0], $etime[1] > page@||| > $% > =========================================================== > HostName Percent of Uptime Percent Down Time > ___________________________________________________________ > . > format ReportFormat = > > @<<<<<<<<<<<<<<<<< @<<<<<<< @<<<<<<<< > $key, "@{$sys_avail{$key}}[1]","@{$sys_avail{$key}}[3]" > . > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, and more -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwichman at zantaz.com Fri Feb 21 01:47:06 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Thu, 20 Feb 2003 16:47:06 -0800 Subject: NSCA daemon deactivated due to excessive incoi ng connections? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4246@zanexch.zantaz.com> I might also add that the instances parameter had to be increased/set.. basically xinetd is thinking theres a Dos attack going on.. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Gerald Wichmann Sent: Thursday, February 20, 2003 4:45 PM To: Gerald Wichmann; Nagios (E-mail) Subject: RE: [Nagios-users] NSCA daemon deactivated due to excessive incoing connections? Nevermind found the problem.. newer versions of xinetd have a "cps" parameter that by default in xinetd.conf is set to "25 30".. this parameter dictates the max # of connections per second (25) that a service can handle before xinetd shuts it down (DOS attack protection).. the second argument specifies how many seconds it waits before starting the service again (30).. I just had to edit /etc/xinetd.d/nsca and add "cps 200 10" to increase the # of connections per second it can handle. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Gerald Wichmann Sent: Thursday, February 20, 2003 2:37 PM To: Nagios (E-mail) Subject: [Nagios-users] NSCA daemon deactivated due to excessive incoing connections? I have 2 distributed servers and 1 central nagios server. The central nagios server in /var/log/messages I see regular entries "xinetd[717]: Deactivating service nsca due to excessive incoming connections. Restarting in 30 seconds." And then the service is activated again. I'm rather surprised by it as I don't really have that many services that I'm monitoring.. around 130 in total. Any ideas what I should look at to rectify these messages? Thanks, Gerald This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 21 01:51:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 20 Feb 2003 18:51:18 -0600 Subject: check_load opinion Message-ID: First, I think you have a typo. Hopefully what you've written isn't how you have it in your config file. I imagine you meant to make the final comma a period, thus: check_load_ssh!5.00,5.05,5.50!9.00,9.10,9.50 Second, you *might* want to lower the last two values, eg: check_load_ssh!5.00,5.05,5.50!10.00,9.00,8.00 Of course, this would depend on whether your system is running pretty smoothly with rare upward spikes, or whether it's running smoothly with rare downward troughs. To help you make the decision, can you run "sar -q" and get an idea of whether it loses its mind slowly, or whether it happens pretty quickly? Lastly, is the root cause of your system losing its mind out of your control? If brainstorming can help alleviate your pain.... jc > -----Original Message----- > From: Jonathan Nichols [mailto:jnichols at pbp.net] > Sent: Thursday, February 20, 2003 5:42 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_load opinion > > > check_load_ssh!5.00,5.05,5.50!9.00,9.10,9,50 > > Does that look good? > > I just want it to bug me if the load average gets > over a certain level. I have a box that likes to go insane on > occasion and > the load average hits 250.0 before I can get to it. Services still > respond, albeit slowly.. that's why the normal Nagios checks > don't alert > me to the problem. > > Otherwise, "check by SSH" has saved me a ton of time & headache. :-) > > Thanks! > -Jonathan > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwichman at zantaz.com Fri Feb 21 01:44:53 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Thu, 20 Feb 2003 16:44:53 -0800 Subject: NSCA daemon deactivated due to excessive incoi ng connections? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4245@zanexch.zantaz.com> Nevermind found the problem.. newer versions of xinetd have a "cps" parameter that by default in xinetd.conf is set to "25 30".. this parameter dictates the max # of connections per second (25) that a service can handle before xinetd shuts it down (DOS attack protection).. the second argument specifies how many seconds it waits before starting the service again (30).. I just had to edit /etc/xinetd.d/nsca and add "cps 200 10" to increase the # of connections per second it can handle. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Gerald Wichmann Sent: Thursday, February 20, 2003 2:37 PM To: Nagios (E-mail) Subject: [Nagios-users] NSCA daemon deactivated due to excessive incoing connections? I have 2 distributed servers and 1 central nagios server. The central nagios server in /var/log/messages I see regular entries "xinetd[717]: Deactivating service nsca due to excessive incoming connections. Restarting in 30 seconds." And then the service is activated again. I'm rather surprised by it as I don't really have that many services that I'm monitoring.. around 130 in total. Any ideas what I should look at to rectify these messages? Thanks, Gerald This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnichols at pbp.net Fri Feb 21 02:13:32 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Thu, 20 Feb 2003 17:13:32 -0800 (PST) Subject: check_load opinion In-Reply-To: References: Message-ID: > Of course, this would depend on whether your system is running pretty > smoothly with rare upward spikes, or whether it's running smoothly with rare > downward troughs. > Whoops.. I did have a typo in the string. Thanks for pointing that out. :) All of the systems (SuSE Linux) run pretty well, except for one - but it's at SuSE 8.0, and the rest are at 8.1. The rogue box is scheduled for a major software update over this coming weekend. > Lastly, is the root cause of your system losing its mind out of your > control? If brainstorming can help alleviate your pain.... > The planned software update for the machine oughta help.. if not, I'm going to pour some tequila into it and see if that helps. ;) -Thanks! -Jonathan ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From crash4o4 at yahoo.com Fri Feb 21 02:39:59 2003 From: crash4o4 at yahoo.com (frank) Date: Thu, 20 Feb 2003 17:39:59 -0800 (PST) Subject: monitor mysql server Message-ID: <20030221013959.25365.qmail@web41412.mail.yahoo.com> does anyone know where I could find a mysql plugin so I could monitor mysql servers, netsaint has that but nagios doesn't seem to come with it. --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Fri Feb 21 03:05:10 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 20 Feb 2003 20:05:10 -0600 Subject: monitor mysql server Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D408B@mismail.ena.com> The netsaint plugins work with nagios. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: frank To: nagios-users at lists.sourceforge.net Sent: Thu Feb 20 19:39:59 2003 Subject: [Nagios-users] monitor mysql server does anyone know where I could find a mysql plugin so I could monitor mysql servers, netsaint has that but nagios doesn't seem to come with it. _____ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From rksheffield at yahoo.com Fri Feb 21 03:15:52 2003 From: rksheffield at yahoo.com (Rick Sheffield) Date: Thu, 20 Feb 2003 18:15:52 -0800 (PST) Subject: check_snmp: SNMP problem - No data recieved from host Message-ID: <20030221021552.35145.qmail@web14008.mail.yahoo.com> Folks, Using "check_snmp" on the command line isn't working for me but "snmpget" on the command line works fine. If I type this at the command line: check_snmp -H sys-a -C public -o .1.3.6.1.2.1.2.2.1.10.2 I get this output: SNMP problem - No data recieved from host CMD: /usr/local/bin/snmpget -m ALL -v 1 -c public sys-a:161 .1.3.6.1.2.1.2.2.1.10.2 If I then type this at the command line: /usr/local/bin/snmpget -m ALL -v 1 -c public sys-a:161 .1.3.6.1.2.1.2.2.1.10.2 I get expected output: RFC1213-MIB::ifInOctets.2 = Counter32: 2952344668 I'm using Solaris 8 with a fresh CVS copy of the Nagios plugins which seemed to compile and install just fine. The rest of Nagios is running great. Any help would be greatly appreciated, Rick --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From martinedge at kbs.net.au Fri Feb 21 03:11:56 2003 From: martinedge at kbs.net.au (Martin Edge) Date: Fri, 21 Feb 2003 13:11:56 +1100 Subject: hostgroup escalations + service escalations Message-ID: <004a01c2d94e$9bd095d0$0901a8c0@internal.kbs.net.au> Hey Guys, I'm settig up nagios to do some monitoring (surprise?:P) However, I've gotten to the point of doing escalations for all machines. However, when there is a service issue, the escalations section requires me to do a specific service escalation for each service. I guess what I need it to do, is check for a service escalation, if it doesn't exist, look for a host escalation, if it doesn't exist, look for a hostgroup escalation, if that doesn't exist, use the contact-groups as defined in the service. Is there anyway to have Nagios work with this behaviour? Or is it something someone has to hack into the source code? Regards, Martin Edge Software/Network Engineer KBS Internet Phone: 1300 727 205 Web: http://www.kbs.net.au/ Extranet: http://xray.kbs.net.au/ eMail: support at kbs.net.au -------------=-=-=----------------- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 21 03:19:10 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 21:19:10 -0500 (EST) Subject: monitor mysql server In-Reply-To: <20030221013959.25365.qmail@web41412.mail.yahoo.com> References: <20030221013959.25365.qmail@web41412.mail.yahoo.com> Message-ID: On Thu, 20 Feb 2003, frank wrote: > does anyone know where I could find a mysql plugin so I could monitor > mysql servers, netsaint has that but nagios doesn't seem to come with > it. > nagiosplug.sf.net there is a check_mysql plugin -- -sg ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie at bclnz.net Fri Feb 21 04:10:12 2003 From: jamie at bclnz.net (Jamie) Date: Fri, 21 Feb 2003 16:10:12 +1300 Subject: Using the avail.cgi script for reporting References: Message-ID: <001d01c2d956$c09af1f0$b58031ca@bcl977307> I've got it doing: Scalar value @info[0] better written as $info[0] at ./report.pl line 53. Scalar value @info[0] better written as $info[0] at ./report.pl line 53. Scalar value @info[0] better written as $info[0] at ./report.pl line 54. Useless use of string in void context at ./report.pl line 49. Aren't I clever? ;-) jamie ----- Original Message ----- From: "Subhendu Ghosh" To: Sent: Friday, February 21, 2003 1:25 PM Subject: Re: [Nagios-users] Using the avail.cgi script for reporting > > If Chet says ok - it can be added to the plugins/contrib-reporting dir :) > > -sg > > On Thu, 20 Feb 2003, Jon Lyons wrote: > > > > > Wow, Chet should make a website or add it to SourceForge site... :) > > Lane Williams wrote:I got a script from Chet Luther, modified it heavily and now it looks > > something like what I have below. You obviously can format the output > > however you wish. I used this just for testing the functionality so I > > suggest using your own formatting. The main line to pay attention to is > > the "my $request" variable which does a "GET". I've used this idea to > > output the data to a CSV file, and just dump it to a hash and formatted > > the output within the script. > > > > Hope this helps..... also attached the file in-case email screws up the > > formatting. > > > > #################BEGIN SCRIPT############################# > > #!/usr/local/perl/bin/perl -w > > # > > # Parse the outputs from Nagios' avail.cgi into an HTML table. > > # > > > > use Date::Manip; > > use LWP::UserAgent; > > use Time::Local; > > use Data::Dumper; > > $~ = ReportFormat; > > @stime = ("07","00",00); > > @etime = (18,30,00); > > > > $date = `date +"\%m \%d \%Y"`; #month date year > > chomp $date; > > > > ($mon,$day,$year)=split ' ', $date; > > > > #$sec1x = &UnixDate ($epoch_date1x, "%s"); > > #$sec2x = &UnixDate ($epoch_date2x, "%s"); > > > > use vars qw($agent); > > #use strict; > > > > my $nagios_url = "http://yoursite/nagios/cgi-bin"; > > > > $agent = new LWP::UserAgent(); > > $agent->agent("Mozilla/6.0"); > > $agent->timeout(600); > > > > my $request = new HTTP::Request(GET => > > "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mo n&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2]&emon=$ mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[2]&assu meinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&backtrac k=4&csvoutput="); > > > > $request->header('Accept' => 'text/html'); > > $request->authorization_basic('username', 'password'); > > > > my $response = $agent->request($request); > > > > if (!$response->is_success()) { > > exit; > > } > > (@response) = split '\n' , $response->content(); > > > > foreach $line (@response){ > > > > #print > > "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; > > if ($line !~ /^HOST_NAME/){ > > > > (@info) = split ',' , $line; > > @info[0] = map {uc} @info[0]; > > @info[0] =~ s/"//g; > > push > > @{$sys_avail{$info[0]}},($info[7],$info[8],$info[16],$info[17]); > > ##host_name total_time_up percent_total_time_up total_time_down > > percent_total_time_down## > > } > > } > > > > > > foreach $key (sort keys %sys_avail){ > > > > write;} > > > > format ReportFormat_TOP = > > > > =========================================================== > > System Availability > > for > > @ $mon, $day, $year > > @<:@< - @<:@< > > $stime[0], $stime[1], $etime[0], $etime[1] > > page@||| > > $% > > =========================================================== > > HostName Percent of Uptime Percent Down Time > > ___________________________________________________________ > > . > > format ReportFormat = > > > > @<<<<<<<<<<<<<<<<< @<<<<<<< @<<<<<<<< > > $key, "@{$sys_avail{$key}}[1]","@{$sys_avail{$key}}[3]" > > . > > > > ###############################END SCRIPT############################# > > > > > > > > > > > > > > On Thu, 2003-02-20 at 11:47, bill lewis wrote: > > > I have some folks that would like reports in csv format on things that > > > nagios > > > is already keeping track of. I would like to run the avail.cgi from a > > > script > > > to generate the reports. I have tried setting the environment variables > > > suggested and cannot get past more that the first page. > > > > > > Is there a way to do this? > > > > > > thanks, > > > Bill Lewis > > > > > > > > > ----- > > > William L. Lewis > > > email: william.l.lewis at usa.net > > > "They that can give up essential liberty to obtain a little temporary > > > safety > > > deserve neither liberty nor safety." > > > --Ben Franklin > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > > The most comprehensive and flexible code editor you can use. > > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > > www.slickedit.com/sourceforge > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > #!/usr/local/perl/bin/perl -w > > # > > # Parse the outputs from Nagios' avail.cgi into an HTML table. > > > > > > use Date::Manip; > > use LWP::UserAgent; > > use Time::Local; > > use Data::Dumper; > > $~ = ReportFormat; > > @stime = ("07","00",00); > > @etime = (18,30,00); > > > > $date = `date +"\%m \%d \%Y"`; #month date year > > chomp $date; > > > > ($mon,$day,$year)=split ' ', $date; > > > > #$sec1x = &UnixDate ($epoch_date1x, "%s"); > > #$sec2x = &UnixDate ($epoch_date2x, "%s"); > > > > use vars qw($agent); > > #use strict; > > > > my $nagios_url = "http://yoursite/nagios/cgi-bin"; > > > > $agent = new LWP::UserAgent(); > > $agent->agent("Mozilla/6.0"); > > $agent->timeout(600); > > > > my $request = new HTTP::Request(GET => "$nagios_url/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=$mo n&sday=$day&syear=$year&shour=$stime[0]&smin=$stime[1]&ssec=$stime[2] > > &emon=$mon&eday=$day&eyear=$year&ehour=$etime[0]&emin=$etime[1]&esec=$etime[ 2]&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=-1&b acktrack=4&csvoutput="); > > > > $request->header('Accept' => 'text/html'); > > $request->authorization_basic('username', 'password'); > > > > my $response = $agent->request($request); > > > > if (!$response->is_success()) { > > exit; > > } > > (@response) = split '\n' , $response->content(); > > > > foreach $line (@response){ > > > > #print "$mon/$day/$year,$stime[0]:$stime[1],$etime[0]:$etime[1],\n$line\n"; > > if ($line !~ /^HOST_NAME/){ > > > > (@info) = split ',' , $line; > > @info[0] = map {uc} @info[0]; > > @info[0] =~ s/"//g; > > push @{$sys_avail{$info[0]}}, ($info[7],$info[8],$info[16],$info[17]); ##host_name total_time_up percent_total_time_up total_time down percent_total_time_down## > > } > > } > > > > > > foreach $key (sort keys %sys_avail){ > > > > write;} > > > > format ReportFormat_TOP = > > > > =========================================================== > > System Availability > > for > > @ $mon, $day, $year > > @<:@< - @<:@< > > $stime[0], $stime[1], $etime[0], $etime[1] > > page@||| > > $% > > =========================================================== > > HostName Percent of Uptime Percent Down Time > > ___________________________________________________________ > > . > > format ReportFormat = > > > > @<<<<<<<<<<<<<<<<< @<<<<<<< @<<<<<<<< > > $key, "@{$sys_avail{$key}}[1]","@{$sys_avail{$key}}[3]" > > . > > > > > > > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, and more > > -- > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Fri Feb 21 04:14:11 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 20 Feb 2003 22:14:11 -0500 Subject: monitor mysql server In-Reply-To: <20030221013959.25365.qmail@web41412.mail.yahoo.com> References: <20030221013959.25365.qmail@web41412.mail.yahoo.com> Message-ID: <1045797251.1135.4.camel@miles.debisschop.net> On Thu, 2003-02-20 at 20:39, frank wrote: > does anyone know where I could find a mysql plugin so I could monitor > mysql servers, netsaint has that but nagios doesn't seem to come with > it. nagios has it. for some reason configure cannot find the development libraries for mysql when you start your build, perhaps? -- Karl ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From syed at nec-labs.com Fri Feb 21 04:50:08 2003 From: syed at nec-labs.com (Syed Ali) Date: Thu, 20 Feb 2003 22:50:08 -0500 Subject: Notification Interval Problem Message-ID: <951A499AA688EF47A898B45F25BD8EE81573F0@mailer.nec-labs.com> There goes that theory, ha! i guess some of the things to check include: 1. is it scheduled downtime? 2. is the service flapping? also, in your services.cfg try with the check_freshness enabled option. THe Nagios documentation has some excellent info on when notifications are sent and more specifically when they are not sent. I am posting some if it below. Let me know if you think your config has passed the below tests. 1. program filter 2. service and host filter 3. contact filter you can see more at http://nagios.sourceforge.net/docs/1_0/notifications.html. -----Original Message----- From: Networks [mailto:networks at wi.rr.com] Sent: Thursday, February 20, 2003 4:56 PM To: Syed Ali Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Notification Interval Problem notification_interval is in my hosts.cfg file. Line # 12 It is set to 10 minutes also. Thanks, Josh On Thu, 2003-02-20 at 15:37, Syed Ali wrote: > > Any reason for not having notification_interval in your hosts.cfg file? > For your services file you have a notification_interval of 10 minutes. > > Thank you, > Syed Ali > (609) 951-2989 > > > -----Original Message----- > From: Networks [mailto:networks at wi.rr.com] > Sent: Thursday, February 20, 2003 3:33 PM > To: Nagios > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Notification Interval Problem > > > Ok I'm still stuck on this. I know that nagios was sending out more then > one notification before. (believe it was set to ever two hours.) but now > only one notification is ever sent out. > > Below are the hosts, services,hostgroup, and nagios config files > pertaining to the host. > > I'm really stuck, and may rebuild the box from scratch if I can't figure > this out. > > The config's are attached. > One note, I removed the list of host's from the hosts.cfg file, but they > all use the same template, so nothing is different. > > Thanks for your help. > > Josh > > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Feb 21 04:57:16 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 20 Feb 2003 22:57:16 -0500 (EST) Subject: check_snmp: SNMP problem - No data recieved from host In-Reply-To: <20030221021552.35145.qmail@web14008.mail.yahoo.com> References: <20030221021552.35145.qmail@web14008.mail.yahoo.com> Message-ID: On Thu, 20 Feb 2003, Rick Sheffield wrote: > > Folks, > > Using "check_snmp" on the command line isn't working for me but > "snmpget" on the command line works fine. > > If I type this at the command line: > > check_snmp -H sys-a -C public -o .1.3.6.1.2.1.2.2.1.10.2 > > I get this output: > > SNMP problem - No data recieved from host > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c public sys-a:161 .1.3.6.1.2.1.2.2.1.10.2 > > > > If I then type this at the command line: > > /usr/local/bin/snmpget -m ALL -v 1 -c public sys-a:161 .1.3.6.1.2.1.2.2.1.10.2 > > I get expected output: > > RFC1213-MIB::ifInOctets.2 = Counter32: 2952344668 > > > > I'm using Solaris 8 with a fresh CVS copy of the Nagios plugins which > seemed to compile and install just fine. The rest of Nagios is running > great. > > Any help would be greatly appreciated, > > It may be timing out. Do you have a large number of mibs? Try running it by not loading all the mibs. check_snmp -H sys-a -C public -m \" \" -o .1.3.6.1.2.1.2.2.1.10.2 -sg -- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian at dnet.net.id Fri Feb 21 05:20:09 2003 From: christian at dnet.net.id (Chris) Date: Fri, 21 Feb 2003 11:20:09 +0700 Subject: Nagat (newbie) Message-ID: <200302211120.09909.christian@dnet.net.id> Hello, I recently install nagat, i put it in /usr/local/nagios/share directory, then when i try to import nagios cfgs, it says : Importing configuration files: # Processing file : /usr/local/nagios/etc/nagios.cfg.. Warning: fopen("/usr/local/nagios/etc/nagatcfg.dat","w") - Permission denied in /usr/local/nagios/share/nagat/plugin_default.inc on line 98 Warning: Supplied argument is not a valid File-Handle resource in /usr/local/nagios/share/nagat/plugin_default.inc on line 99 Warning: Supplied argument is not a valid File-Handle resource in /usr/local/nagios/share/nagat/plugin_default.inc on line 100 ok! Read 1 configuration files. I've add this in my http.conf : AllowOverride AuthConfig order allow,deny allow from all but it didn't help, what am i missing? regards, chris ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian at dnet.net.id Fri Feb 21 06:55:51 2003 From: christian at dnet.net.id (Chris) Date: Fri, 21 Feb 2003 12:55:51 +0700 Subject: Fwd: Re: Nagat (newbie) Message-ID: <200302211255.51204.christian@dnet.net.id> nop, it's still won't work, I just extract the tar.gz file, change the owner into nagios, rename the directory into nagat and put it into /usr/local/nagios/share/nagat so i can access it from mydomain.com/nagios/nagat This is my local.inc looks like : # Nagat (NGT) main configuration (mind ending slashes /) define("NGT_ROOT","/usr/local/nagios/share/nagat/"); define("NGT_LIB",NGT_ROOT); // location of inc-files (exept local and sticky) define("NGT_WEBROOT","/nagat"); // URL of Nagat # Location of Nagios (mind ending slashes); define("NAGIOS_PREFIX","/usr/local/nagios/"); define("NAGIOS_ETC",NAGIOS_PREFIX."etc/"); # Basic checks if( !is_dir(NGT_ROOT) ) { print "Please edit NGT_ROOT in local.inc to point to the Nagat installation directory."; exit(); } else if( !is_dir(NAGIOS_ETC) ) { print "Please edit NAGIOS_PREFIX in local.inc to point to your Nagios installation."; exit(); } else if( get_cfg_var("register_globals") == 0 ) { print "



register_globals is off. This means you have PHP 4.2 or higher. Nagat was initially made with 4.0.6 and
will in the future make sure that your good choice will be respected. For now, set it to 'on' or just sit tight and
hope it will be fixed in next release of Nagat ;).




"; phpinfo(); exit(); } define("CSS_URL","nagat.css"); error_reporting(7); require_once(NGT_ROOT."sticky.inc"); define("NGT_CFGLOC",NAGIOS_ETC); // Nagat configuration location require_once(NGT_LIB."plugin_default.inc"); regards, christian On Friday 21 February 2003 11:55, you wrote: > Hello, > > You might have not given the permission of the nagios.cfg to the > webserver. Try "chmod 777 nagios.cfg" and i think that it will work. Can > you give me how have you configured your whole nagat so that i can tell > you more about it. Give full configuration detail for nagat. > > Regards, > > Atul Shrivastava > > On Fri, 21 Feb 2003, Chris wrote: > > Hello, > > I recently install nagat, i put it in /usr/local/nagios/share directory, > > then when i try to import nagios cfgs, it says : > > > > Importing configuration files: > > # Processing file : /usr/local/nagios/etc/nagios.cfg.. > > Warning: fopen("/usr/local/nagios/etc/nagatcfg.dat","w") - Permission > > denied in /usr/local/nagios/share/nagat/plugin_default.inc on line 98 > > > > Warning: Supplied argument is not a valid File-Handle resource in > > /usr/local/nagios/share/nagat/plugin_default.inc on line 99 > > > > Warning: Supplied argument is not a valid File-Handle resource in > > /usr/local/nagios/share/nagat/plugin_default.inc on line 100 > > ok! > > > > Read 1 configuration files. > > > > I've add this in my http.conf : > > > > AllowOverride AuthConfig > > order allow,deny > > allow from all > > > > but it didn't help, what am i missing? > > > > regards, > > chris > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting any issue. Messages without supporting info will risk being > > ::: sent to /dev/null ------------------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian at dnet.net.id Fri Feb 21 06:55:17 2003 From: christian at dnet.net.id (Chris) Date: Fri, 21 Feb 2003 12:55:17 +0700 Subject: Nagat (newbie) In-Reply-To: References: Message-ID: <200302211255.17138.christian@dnet.net.id> On Friday 21 February 2003 11:55, you wrote: > Hello, > > You might have not given the permission of the nagios.cfg to the > webserver. Try "chmod 777 nagios.cfg" and i think that it will work. Can > you give me how have you configured your whole nagat so that i can tell > you more about it. Give full configuration detail for nagat. > > Regards, > > Atul Shrivastava > > On Fri, 21 Feb 2003, Chris wrote: > > Hello, > > I recently install nagat, i put it in /usr/local/nagios/share directory, > > then when i try to import nagios cfgs, it says : > > > > Importing configuration files: > > # Processing file : /usr/local/nagios/etc/nagios.cfg.. > > Warning: fopen("/usr/local/nagios/etc/nagatcfg.dat","w") - Permission > > denied in /usr/local/nagios/share/nagat/plugin_default.inc on line 98 > > > > Warning: Supplied argument is not a valid File-Handle resource in > > /usr/local/nagios/share/nagat/plugin_default.inc on line 99 > > > > Warning: Supplied argument is not a valid File-Handle resource in > > /usr/local/nagios/share/nagat/plugin_default.inc on line 100 > > ok! > > > > Read 1 configuration files. > > > > I've add this in my http.conf : > > > > AllowOverride AuthConfig > > order allow,deny > > allow from all > > > > but it didn't help, what am i missing? > > > > regards, > > chris > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > > The most comprehensive and flexible code editor you can use. > > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > > www.slickedit.com/sourceforge > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting any issue. Messages without supporting info will risk being > > ::: sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Fri Feb 21 08:52:55 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 21 Feb 2003 08:52:55 +0100 Subject: Gimme your web server config's if its not Apacheplease :) References: <1045767791.2655.2.camel@aten.fqdn.no> Message-ID: <3E55DAD7.4B9DADFA@gcc.dhl.com> Wouldn't the world be just a better place if all these home brewed plugins were stored where they are meant to be, namely in the contrib directory? Anders Grue Nerheim wrote: > > yah, I'm in on the "home made" plugins part :) > can also host stuff if needed. > > On Thu, 2003-02-20 at 15:19, Thomas Nilsen wrote: > > Tom, > > > > Excellent work. What about having a list of contributed "home made" plugins as well. The add-on plugins list on www.nagios.org is short compared to all the different plugins that must exist. ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matt.M.Garrett at is.shell.com Fri Feb 21 09:57:49 2003 From: Matt.M.Garrett at is.shell.com (Garrett, Matt M SITI-ITDIEEE) Date: Fri, 21 Feb 2003 09:57:49 +0100 Subject: Using the avail.cgi script for reporting Message-ID: <4E88F6699E4BAE41B724A3EC3CC457D50D523E@abe-s-039.europe.shell.com> > Subject: Re: [Nagios-users] Using the avail.cgi script for reporting > > I got a script from Chet Luther, modified it heavily and now it looks > something like what I have below. You obviously can format the output > however you wish. I used this just for testing the functionality so I > suggest using your own formatting. The main line to pay > attention to is > the "my $request" variable which does a "GET". I've used this idea to > output the data to a CSV file, and just dump it to a hash and > formatted > the output within the script. > > Hope this helps..... also attached the file in-case email > screws up the > formatting. > > SNIP Script Wow that works just great , nice to see Just one small thing any idea how to modify it so it does a data range as well e.g from 01 01 2003 to 01 31 2003 But still to keep the time range as well. As my Management seem to be bent on SLA reports............. Matt Matthew Garrett Unix System Support Shell Information Technology International Limited Loirston House, Wellington Road, Altens, Aberdeen AB12 3BH Tel: +44 (0)1224 21 7515 Other Tel: Internal 639 7515 Email: Matt.M.Garrett at is.shell.com Internet: http://www.shell.com ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Fredrik.Wanglund at datavis.se Fri Feb 21 10:31:18 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 21 Feb 2003 10:31:18 +0100 Subject: Monitoring MS Outlook Web Access Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2013C9BC3@storevis.datavis.se> This works for me (OWA with SSL): define service { host_name mailsrv service_description Https check_command check_https!datavis/nagios:!/exchange/!"This page uses frames" use generic-service normal_check_interval 1 } define command { command_name check_https command_line /usr/local/nagios/libexec/check_http --ssl -H $HOSTADDRESS$ -a $ARG1$ -u $ARG2$ -s $ARG3$ } You must make sure your check_http can handle SSL. -----Original Message----- From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] Sent: Thu 20-Feb-03 19:25 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Monitoring MS Outlook Web Access Has anyone written any scripts to monitor an OWA system? What I'm looking for is a method of logging into the system with a dummy account, open up its inbox and open an e-mail message. I have a developer working on this with an html scraper, but he's having issues with the .asp pages and pop-up login prompts. Thanks, Richard ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atul at mindsw.com Fri Feb 21 10:40:46 2003 From: atul at mindsw.com (Atul Gosain) Date: Fri, 21 Feb 2003 15:10:46 +0530 Subject: Service check latency Message-ID: <3E55F41E.80904@mindsw.com> Hi I m having a problem that the service latency is going too high. May services are not checked for even 4 hours and then the nagios doesnt check any service at all. I have to restart the server after that. May be if there are too many critical services, then latency increases and also the cpu load is high when this happens. Can any body tell the reason and the solution if they also faced the same problem. Thanks Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdeblend at gcc.dhl.com Fri Feb 21 10:35:39 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 21 Feb 2003 10:35:39 +0100 Subject: Using the avail.cgi script for reporting References: <4E88F6699E4BAE41B724A3EC3CC457D50D523E@abe-s-039.europe.shell.com> Message-ID: <3E55F2EB.CFBA2212@gcc.dhl.com> "Garrett, Matt M SITI-ITDIEEE" wrote: > > As my Management seem to be bent on SLA reports............. Well, I think you'll have a hard time finding a bigger buzz word than SLA. What I do is dump all availability data into a MySQL database. This can then be used through ODBC to create nice graphs and tables from Access, Excel,... Prerequisites: * MySQL. * A database called "reporting" with two tables: "hosts_last_month" and "services_last_month". They can be empty. * A GNU date. * Bash (might work with Bourne as well, didn't test). You have to replace "guest" in the script by a username that has access on your Nagios cgi's. I launch it every first day of the month from cron. It updates the tables hosts_last_month and services_last_month. It keeps copies of all previous months in the format hosts_year_month and services_year_month. Here is the code: #!/bin/sh year=`date --date="last month" +%Y` month=`date --date="last month" "+%m"` if [ "$month" -eq "1" -o "$month" -eq "3" -o "$month" -eq "5" -o "$month" -eq "7" -o "$month" -eq "8" -o "$month" -eq "10" -o "$month" -eq "12" ] ; then enddate="31"; elif [ "$month" -eq "2" ]; then if [ "$year" -eq "2004" -o "$year" -eq 2008 ]; then enddate="29"; else enddate="28"; fi else enddate="30"; fi # # Create report for all hosts # export QUERY_STRING="show_log_entries=&host=all&timeperiod=custom&smon=$month&sday=1&syear=$year&shour=0&smin=0&ssec=0&emon=$month&eday=$enddate&eyear=$year&ehour=24&emin=0&esec=0&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=0&backtrack=1&csvoutput=" export REMOTE_USER="guest" export REQUEST_METHOD="HEAD" /usr/local/nagios/sbin/avail.cgi | grep -v TIME | grep -v "Cache-Control: no-store" | grep -v "Pragma: no-cache" | grep -v "Last-Modified:" | grep -v "Expires:" | grep -v "Content-type: text/plain" | sed '/^$/d' | sed 's/"//g' | sed 's/%//g' | sed 's/, / /g' > /tmp/nagiosreporttmp.txt cat -n /tmp/nagiosreporttmp.txt > /tmp/nagiosreport.txt echo 'use reporting;' > /tmp/nagiosreport.sql echo 'create table hosts_'$year'_'$month' (HOST_ID SMALLINT DEFAULT 1 NOT NULL, HOST_NAME VARCHAR(30), TIME_UP_SCHEDULED DECIMAL(5,2), PERCENT_TIME_UP_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UP_SCHEDULED DECIMAL(5,2), TIME_UP_UNSCHEDULED INT, PERCENT_TIME_UP_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UP_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_UP INT, PERCENT_TOTAL_TIME_UP DECIMAL(5,2), PERCENT_KNOWN_TIME_UP DECIMAL(5,2), TIME_DOWN_SCHEDULED INT, PERCENT_TIME_DOWN_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_DOWN_SCHEDULED DECIMAL(5,2), TIME_DOWN_UNSCHEDULED INT, PERCENT_TIME_DOWN_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_DOWN_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_DOWN INT, PERCENT_TOTAL_TIME_DOWN DECIMAL(5,2), PERCENT_KNOWN_TIME_DOWN DECIMAL(5,2), TIME_UNREACHABLE_SCHEDULED INT, PERCENT_TIME_UNREACHABLE_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNREACHABLE_SCHEDULED DECIMAL(5,2), TIME_UNREACHABLE_UNSCHEDULED INT, PERCENT_TIME_UNREACHABLE_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNREACHABLE_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_UNREACHABLE INT, PERCENT_TOTAL_TIME_UNREACHABLE DECIMAL(5,2), PERCENT_KNOWN_TIME_UNREACHABLE DECIMAL(5,2), TIME_UNDETERMINED_NOT_RUNNING INT, PERCENT_TIME_UNDETERMINED_NOT_RUNNING DECIMAL(5,2), TIME_UNDETERMINED_NO_DATA INT, PERCENT_TIME_UNDETERMINED_NO_DATA DECIMAL(5,2), TOTAL_TIME_UNDETERMINED INT, PERCENT_TOTAL_TIME_UNDETERMINED DECIMAL(5,2), PRIMARY KEY (HOST_ID));' >> /tmp/nagiosreport.sql echo 'LOAD DATA LOCAL INFILE "/tmp/nagiosreport.txt" INTO TABLE hosts_'$year'_'$month';' >> /tmp/nagiosreport.sql cat /tmp/nagiosreport.sql | /usr/bin/mysql echo 'use reporting;' > /tmp/nagiosreport.sql echo 'drop table hosts_last_month;' >> /tmp/nagiosreport.sql echo 'create table hosts_last_month (HOST_ID SMALLINT DEFAULT 1 NOT NULL, HOST_NAME VARCHAR(30), TIME_UP_SCHEDULED DECIMAL(5,2), PERCENT_TIME_UP_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UP_SCHEDULED DECIMAL(5,2), TIME_UP_UNSCHEDULED INT, PERCENT_TIME_UP_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UP_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_UP INT, PERCENT_TOTAL_TIME_UP DECIMAL(5,2), PERCENT_KNOWN_TIME_UP DECIMAL(5,2), TIME_DOWN_SCHEDULED INT, PERCENT_TIME_DOWN_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_DOWN_SCHEDULED DECIMAL(5,2), TIME_DOWN_UNSCHEDULED INT, PERCENT_TIME_DOWN_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_DOWN_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_DOWN INT, PERCENT_TOTAL_TIME_DOWN DECIMAL(5,2), PERCENT_KNOWN_TIME_DOWN DECIMAL(5,2), TIME_UNREACHABLE_SCHEDULED INT, PERCENT_TIME_UNREACHABLE_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNREACHABLE_SCHEDULED DECIMAL(5,2), TIME_UNREACHABLE_UNSCHEDULED INT, PERCENT_TIME_UNREACHABLE_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNREACHABLE_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_UNREACHABLE INT, PERCENT_TOTAL_TIME_UNREACHABLE DECIMAL(5,2), PERCENT_KNOWN_TIME_UNREACHABLE DECIMAL(5,2), TIME_UNDETERMINED_NOT_RUNNING INT, PERCENT_TIME_UNDETERMINED_NOT_RUNNING DECIMAL(5,2), TIME_UNDETERMINED_NO_DATA INT, PERCENT_TIME_UNDETERMINED_NO_DATA DECIMAL(5,2), TOTAL_TIME_UNDETERMINED INT, PERCENT_TOTAL_TIME_UNDETERMINED DECIMAL(5,2), PRIMARY KEY (HOST_ID));' >> /tmp/nagiosreport.sql echo 'LOAD DATA LOCAL INFILE "/tmp/nagiosreport.txt" INTO TABLE hosts_last_month;' >> /tmp/nagiosreport.sql cat /tmp/nagiosreport.sql | /usr/bin/mysql # # Create report for all services # export QUERY_STRING="show_log_entries=&service=all&timeperiod=custom&smon=$month&sday=1&syear=$year&shour=0&smin=0&ssec=0&emon=$month&eday=$enddate&eyear=$year&ehour=24&emin=0&esec=0&assumeinitialstates=yes&assumestateretention=yes&initialassumedstate=0&backtrack=1&csvoutput=" export REMOTE_USER="guest" export REQUEST_METHOD="HEAD" /usr/local/nagios/sbin/avail.cgi | grep -v TIME | grep -v "Cache-Control: no-store" | grep -v "Pragma: no-cache" | grep -v "Last-Modified:" | grep -v "Expires:" | grep -v "Content-type: text/plain" | sed '/^$/d' | sed 's/"//g' | sed 's/%//g' | sed 's/, / /g' > /tmp/nagiosreporttmp.txt cat -n /tmp/nagiosreporttmp.txt > /tmp/nagiosreport.txt echo 'use reporting;' > /tmp/nagiosreport.sql echo 'create table services_'$year'_'$month' (SERVICE_ID SMALLINT DEFAULT 1 NOT NULL, HOST_NAME VARCHAR(30), SERVICE_DESCRIPTION VARCHAR(50), TIME_OK_SCHEDULED INT, PERCENT_TIME_OK_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_OK_SCHEDULED DECIMAL(5,2), TIME_OK_UNSCHEDULED INT, PERCENT_TIME_OK_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_OK_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_OK INT, PERCENT_TOTAL_TIME_OK DECIMAL(5,2), PERCENT_KNOWN_TIME_OK DECIMAL(5,2), TIME_WARNING_SCHEDULED INT, PERCENT_TIME_WARNING_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_WARNING_SCHEDULED DECIMAL(5,2), TIME_WARNING_UNSCHEDULED INT, PERCENT_TIME_WARNING_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_WARNING_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_WARNING INT, PERCENT_TOTAL_TIME_WARNING DECIMAL(5,2), PERCENT_KNOWN_TIME_WARNING DECIMAL(5,2), TIME_UNKNOWN_SCHEDULED INT, PERCENT_TIME_UNKNOWN_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNKNOWN_SCHEDULED DECIMAL(5,2), TIME_UNKNOWN_UNSCHEDULED INT, PERCENT_TIME_UNKNOWN_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNKNOWN_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_UNKNOWN INT, PERCENT_TOTAL_TIME_UNKNOWN DECIMAL(5,2), PERCENT_KNOWN_TIME_UNKNOWN DECIMAL(5,2), TIME_CRITICAL_SCHEDULED INT, PERCENT_TIME_CRITICAL_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_CRITICAL_SCHEDULED DECIMAL(5,2), TIME_CRITICAL_UNSCHEDULED INT, PERCENT_TIME_CRITICAL_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_CRITICAL_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_CRITICAL INT, PERCENT_TOTAL_TIME_CRITICAL DECIMAL(5,2), PERCENT_KNOWN_TIME_CRITICAL DECIMAL(5,2), TIME_UNDETERMINED_NOT_RUNNING INT, PERCENT_TIME_UNDETERMINED_NOT_RUNNING DECIMAL(5,2), TIME_UNDETERMINED_NO_DATA INT, PERCENT_TIME_UNDETERMINED_NO_DATA DECIMAL(5,2), TOTAL_TIME_UNDETERMINED INT, PERCENT_TOTAL_TIME_UNDETERMINED DECIMAL(5,2), PRIMARY KEY (SERVICE_ID));' >> /tmp/nagiosreport.sql echo 'LOAD DATA LOCAL INFILE "/tmp/nagiosreport.txt" INTO TABLE services_'$year'_'$month';' >> /tmp/nagiosreport.sql cat /tmp/nagiosreport.sql | /usr/bin/mysql echo 'use reporting;' > /tmp/nagiosreport.sql echo 'drop table services_last_month;' >> /tmp/nagiosreport.sql echo 'create table services_last_month (SERVICE_ID SMALLINT DEFAULT 1 NOT NULL, HOST_NAME VARCHAR(30), SERVICE_DESCRIPTION VARCHAR(50), TIME_OK_SCHEDULED INT, PERCENT_TIME_OK_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_OK_SCHEDULED DECIMAL(5,2), TIME_OK_UNSCHEDULED INT, PERCENT_TIME_OK_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_OK_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_OK INT, PERCENT_TOTAL_TIME_OK DECIMAL(5,2), PERCENT_KNOWN_TIME_OK DECIMAL(5,2), TIME_WARNING_SCHEDULED INT, PERCENT_TIME_WARNING_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_WARNING_SCHEDULED DECIMAL(5,2), TIME_WARNING_UNSCHEDULED INT, PERCENT_TIME_WARNING_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_WARNING_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_WARNING INT, PERCENT_TOTAL_TIME_WARNING DECIMAL(5,2), PERCENT_KNOWN_TIME_WARNING DECIMAL(5,2), TIME_UNKNOWN_SCHEDULED INT, PERCENT_TIME_UNKNOWN_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNKNOWN_SCHEDULED DECIMAL(5,2), TIME_UNKNOWN_UNSCHEDULED INT, PERCENT_TIME_UNKNOWN_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_UNKNOWN_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_UNKNOWN INT, PERCENT_TOTAL_TIME_UNKNOWN DECIMAL(5,2), PERCENT_KNOWN_TIME_UNKNOWN DECIMAL(5,2), TIME_CRITICAL_SCHEDULED INT, PERCENT_TIME_CRITICAL_SCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_CRITICAL_SCHEDULED DECIMAL(5,2), TIME_CRITICAL_UNSCHEDULED INT, PERCENT_TIME_CRITICAL_UNSCHEDULED DECIMAL(5,2), PERCENT_KNOWN_TIME_CRITICAL_UNSCHEDULED DECIMAL(5,2), TOTAL_TIME_CRITICAL INT, PERCENT_TOTAL_TIME_CRITICAL DECIMAL(5,2), PERCENT_KNOWN_TIME_CRITICAL DECIMAL(5,2), TIME_UNDETERMINED_NOT_RUNNING INT, PERCENT_TIME_UNDETERMINED_NOT_RUNNING DECIMAL(5,2), TIME_UNDETERMINED_NO_DATA INT, PERCENT_TIME_UNDETERMINED_NO_DATA DECIMAL(5,2), TOTAL_TIME_UNDETERMINED INT, PERCENT_TOTAL_TIME_UNDETERMINED DECIMAL(5,2), PRIMARY KEY (SERVICE_ID));' >> /tmp/nagiosreport.sql echo 'LOAD DATA LOCAL INFILE "/tmp/nagiosreport.txt" INTO TABLE services_last_month;' >> /tmp/nagiosreport.sql cat /tmp/nagiosreport.sql | /usr/bin/mysql rm -f /tmp/nagiosreport.sql rm -f /tmp/nagiosreporttmp.txt rm -f /tmp/nagiosreport.txt If anyone is interested, I might clean it up (move paths to variables etc...) a bit and post it to the contrib. Kind regards, Tom ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From francesco.albrizio at init.it Fri Feb 21 12:54:06 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Fri, 21 Feb 2003 12:54:06 +0100 Subject: Problem executing custom notification perl script References: <004101c2d810$ea20f520$3302a8c0@init.it> Message-ID: <00ab01c2d99f$f0593200$3302a8c0@init.it> Evolution: now all is working, but I don't understand why. I had to modify rights on the script, but not execution and reading rights (that there were before), I had to add writing (!) permission to nagios group and rest of the world (i.e: chmod 777